<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[[SecurityRatty] tag: cryptographer]]></title>
    <link>http://securityratty.com/tag/cryptographer</link>
    <description></description>
    <pubDate>Fri, 11 Jan 2008 03:51:20 +0000</pubDate>
    <generator>iRatty Engine</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Quantum Cryptography]]></title>
      <link>http://securityratty.com/article/665acbc2a4e65a38fe46108c2e80bb3b</link>
      <guid>http://securityratty.com/article/665acbc2a4e65a38fe46108c2e80bb3b</guid>
      <description><![CDATA[Quantum cryptography is back in the news, and the basic idea is still unbelievably cool, in theory, and nearly useless in real life
The idea behind quantum crypto is that two people communicating...]]></description>
      <content:encoded><![CDATA[<p>Quantum cryptography is back in the news, and the basic idea is still unbelievably cool, in theory, and nearly useless in real life.</p>

<p>The idea behind quantum crypto is that two people communicating using a quantum channel can be absolutely sure no one is eavesdropping.  Heisenberg's uncertainty principle requires anyone measuring a quantum system to disturb it, and that disturbance alerts legitimate users as to the eavesdropper's presence.  No disturbance, no eavesdropper -- period.</p>

<p>This month we've seen reports on a new <a href="http://news.bbc.co.uk/2/hi/science/nature/7661311.stm">working</a> quantum-key distribution <a href="http://news.cnet.com/8301-1009_3-10064219-83.html?part=rss&subj=news&tag=2547-1_3-0-5">network</a> in Vienna, and a new quantum-key distribution <a href="http://www.theregister.co.uk/2008/10/09/quantum_crypto_turbo_charged/">technique</a> out of Britain. Great stuff, but headlines like the BBC's "'Unbreakable' encryption unveiled" are a bit much.</p>

<p>The basic science behind quantum crypto was developed, and prototypes built, in the early 1980s by Charles Bennett and Giles Brassard, and there have been <a href="http://www.cs.mcgill.ca/~crepeau/CRYPTO/Biblio-QC.html">steady advances</a> in engineering since then. I describe basically how it all works in <cite>Applied Cryptography, 2nd Edition</cite> (pages 554-557). At least one company already <a href="http://www.magiqtech.com/">sells</a> quantum-key distribution products.</p>

<p>Note that this is totally separate from <a href="http://en.wikipedia.org/wiki/Quantum_computer">quantum computing</a>, which also has implications for cryptography. Several groups are working on designing and building a quantum computer, which is fundamentally different from a classical computer. If one were built -- and we're talking science fiction here -- then it could factor numbers and solve discrete-logarithm problems very quickly. In other words, it could break all of our commonly used public-key algorithms. For symmetric cryptography it's not that dire: A quantum computer would effectively halve the key length, so that a 256-bit key would be only as secure as a 128-bit key today. Pretty serious stuff, but years away from being practical. I think the best quantum computer today can factor the number 15.</p>

<p>While I like the science of quantum cryptography -- my undergraduate degree was in physics -- I don't see any commercial value in it. I don't believe it solves any security problem that needs solving. I don't believe that it's worth paying for, and I can't imagine anyone but a few technophiles buying and deploying it. Systems that use it don't magically become unbreakable, because the quantum part doesn't address the weak points of the system.</p>

<p>Security is a chain; it's as strong as the weakest link. Mathematical cryptography, as bad as it sometimes is, is the strongest link in most security chains. Our symmetric and public-key algorithms are pretty good, even though they're not based on much rigorous mathematical theory. The real problems are elsewhere: computer security, network security, user interface and so on.</p>

<p>Cryptography is the one area of security that we can get right. We already have good encryption algorithms, good authentication algorithms and good key-agreement protocols.  Maybe quantum cryptography can make that link stronger, but why would anyone bother? There are far more serious security problems to worry about, and it makes much more sense to spend effort securing those.</p>

<p>As I've often said, it's like defending yourself against an approaching attacker by putting a huge stake in the ground. It's useless to argue about whether the stake should be 50 feet tall or 100 feet tall, because either way, the attacker is going to go around it. Even quantum cryptography doesn't "solve" all of cryptography: The keys are exchanged with photons, but a conventional mathematical algorithm takes over for the actual encryption.</p>

<p>I'm always in favor of security research, and I have enjoyed following the developments in quantum cryptography. But as a product, it has no future. It's not that quantum cryptography might be insecure; it's that cryptography is already sufficiently secure.</p>

<p>This essay <a href="http://www.wired.com/politics/security/commentary/securitymatters/2008/10/securitymatters_1016">previously appeared</a> on Wired.com.</p>

<p>EDITED TO ADD (10/21):  It's amazing; even reporters <a href="http://www.itproportal.com/articles/2008/10/20/can-quantum-computing-be-used-tackle-payment-card-fraud/">responding to my essay</a> get it completely wrong:</p>

<blockquote>Keith Harrison, a cryptographer with HP Laboratories, is quoted by the Telegraph as saying that, as quantum computing becomes commonplace, hackers will use the technology to crack conventional encryption.

<p>"We have to be thinking about solutions to the problems that quantum computing will pose," he told the Telegraph. "The average consumer is going to want to know their own transactions and daily business is secure.</p>

<p>"One way of doing this is to use a one time pad  essentially lists of random numbers where one copy of the numbers is held by the person sending the information and an identical copy is held by the person receiving the information. These are completely unbreakable when used properly," he explained.</p>

<p>The critical feature of quantum computing is the unique fact that, if someone tampers with an information feed between two parties, then the nature of the quantum feed changes.</p>

<p>This makes eavesdropping impossible.</blockquote></p>

<p>No, it wouldn't make eavesdropping impossible.  It would make eavesdropping <i>on the communications channel</i> impossible unless someone made an implementation error.  (In the 80s, the NSA broke Soviet one-time-pad systems because the Soviets reused the pad.)  Eavesdropping via spyware or Trojan or TEMPEST would still be possible.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=NpW5M"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=NpW5M" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=NzQ5M"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=NzQ5M" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Tue, 21 Oct 2008 02:48:49 +0000</pubDate>
      <category domain="http://securityratty.com/tag/cryptography">cryptography</category>
      <category domain="http://securityratty.com/tag/quantum cryptography">quantum cryptography</category>
      <category domain="http://securityratty.com/tag/quantum">quantum</category>
      <category domain="http://securityratty.com/tag/quantum-key distribution network">quantum-key distribution network</category>
      <category domain="http://securityratty.com/tag/quantum channel">quantum channel</category>
      <category domain="http://securityratty.com/tag/quantum system">quantum system</category>
      <category domain="http://securityratty.com/tag/quantum-key distribution technique">quantum-key distribution technique</category>
      <category domain="http://securityratty.com/tag/quantum feed">quantum feed</category>
      <category domain="http://securityratty.com/tag/quantum crypto">quantum crypto</category>
      <source url="http://www.schneier.com/blog/archives/2008/10/quantum_cryptog.html">Quantum Cryptography</source>
    </item>
    <item>
      <title><![CDATA[A Cryptographer and a Data Communications Guy Talk About Risk Management]]></title>
      <link>http://securityratty.com/article/5c18b17d022b8a56101fd4b3d13c5f03</link>
      <guid>http://securityratty.com/article/5c18b17d022b8a56101fd4b3d13c5f03</guid>
      <description><![CDATA[Sounds like the beginning of a joke, right? So these two guys walk into a bar
The Bruce Schneier and Marcus Ranum have an article up on TechTarget/Information Security Magazine called, creatively...]]></description>
      <content:encoded><![CDATA[<blockquote><p>Sounds like the beginning of a joke, right?  <em>So these two guys walk into a bar&#8230;</em></p></blockquote>
<p>&#8220;The&#8221; Bruce Schneier and Marcus Ranum have an article up on TechTarget/Information Security Magazine called, creatively enough, &#8220;<span class="homeSplashTitle"><span class="text0"><strong><a href="http://searchsecurity.techtarget.com/magazineFeature/0,296894,sid14_gci1332745_idx1,00.html">Bruce Schenier, Marcus Ranum debate risk management</a>&#8220;. </strong></span></span></p>
<p>Unfortunately, to get to the article, you&#8217;ll have to either already be a subscriber to IT Security, a subscriber to TechTarget, or go through the 20 minute process of signing up by giving TechTarget all sorts of &#8220;market information&#8221; about how you&#8217;re really Brandon Walsh, CSO of &#8220;The Peach Pit&#8221; Industries in Beverly Hills, CA 90210 (phone 714-867-5309).</p>
<p>For those of you who are already a TechTarget person, the link is above.  For those who aren&#8217;t, or those who just don&#8217;t have the time, I&#8217;ll summarize.  The &#8220;debate&#8221; is kind of awkward because both authors seem come to the same conclusion:</p>
<p style="text-align: center;"><em><strong>Risk Management, it&#8217;s something our profession should do, something humans do naturally, it&#8217;s necessary in business, but gosh - we don&#8217;t have enough data.</strong></em></p>
<p>I&#8217;m not a cryptographer.  I don&#8217;t *nearly* have the insight on privacy and politics that Bruce has.  I&#8217;m not deep in IP communications.  I haven&#8217;t got a proven track record of innovation in IP Security products like Marcus has.  But here&#8217;s the thing, I hope you&#8217;ll never hear me pretend that I have the skill set to speak authoritatively on those subjects.  Heck, I wouldn&#8217;t claim to be a &#8220;risk&#8221; expert because I have a some insight into my shortcomings and what is needed to tackle such a complex problem.  But such a tepid article on something that (at least I think) is so important kind of, well, confuses me.</p>
<p>Why is it such a boring article?  I&#8217;m not sure.  Maybe because they&#8217;re just two guys who would rather debate the merits of specific controls or control activities (after all, their penetration testing debate was a huge success), but there&#8217;s no new information in the &#8220;debate&#8221;.  It&#8217;s the same old &#8220;insurance companies know risk because they have scads of data and we don&#8217;t have that&#8221; complaint. You know what?  I&#8217;m tired of hearing that line, so let&#8217;s talk about it.</p>
<p><strong>HOW DO YOU KNOW WE DON&#8217;T HAVE THE AMOUNT OF DATA WE NEED TO DO RISK MANAGEMENT WELL?</strong></p>
<p>Not particularly picking on Marcus, but in the article he uses the common complaint, &#8220;We lack the data to do risk management well.&#8221;  This mantra is repeated to the point where I&#8217;m blase&#8217; about it.  But for some reason, this sentence really jumped out at me this time for two reasons.  It made me ask:</p>
<p>1.)  How do you <em>know</em> we don&#8217;t have the proper amount of data?</p>
<p>2.)  Can we even define &#8220;well&#8221; (i.e. what &#8220;good&#8221; risk management is) yet?</p>
<p>I really don&#8217;t know that the industry, especially concerning IT risk, is mature enough to really conclude that we don&#8217;t know (in the case of the former), nor that we can define (latter), conclusively.</p>
<p><strong>PLAYING THE CONTRARIAN</strong></p>
<p>Just because I&#8217;m feeling kind of zany this morning, let me suggest something.  Maybe there actually is lots of evidence out there for us to use.  Maybe:</p>
<p>1.)  It&#8217;s just that we don&#8217;t have particularly good models that provide context.</p>
<p>2.)  When that evidence isn&#8217;t an obvious phenomena that lends itself to easy measurement, we throw our hands up in disgust and fall back on &#8220;lack of data&#8221;, &#8220;can&#8217;t quantify risk&#8221;, &#8220;best practices work just fine&#8221; or any other number of arguments, no,<em> excuses</em> we use to justify our inability to be precise about the past (more or less the present or future - apologies to Niels Bohr).</p>
<p><strong>IT&#8217;S IN THE WAY THAT YOU USE IT</strong></p>
<p>Now I actually am happy to acknowledge that we don&#8217;t have enough data to be precise.  You, me, even smart guys like Marcus and Bruce - we&#8217;ll never be able to &#8220;engineer&#8221; risk management.  But you know what?  Neither can Insurance companies.  Sure, there are plenty of places where they have enough data to apply a traditional frequentist approach to risk valuations.   But there are plenty of times Insurers actually insure and they don&#8217;t have centuries or decades of data.  There are plenty of times when they rely on the &#8220;estimates&#8221; of subject matter experts.  There are many times they have enough information to be <em><strong>accurate</strong></em> rather than precise, and that&#8217;s good enough for them.</p>
<p>For that matter, it&#8217;s worth noting that there are plenty of scientific disciplines that have to deal in imprecise prior information, or evidence that&#8217;s fraught with uncertainty (what Ranum calls &#8220;squishy&#8221;, and what I&#8217;ve heard real honest to goodness physicists call &#8220;noisy&#8221;).  Unfortunately, we&#8217;re going to be like them.  Until we can read minds and predict the future, there will always be uncertainty in our measurements and posterior conclusions.  The trick is in how you deal with it and express it.  And while I really don&#8217;t know how much time Marcus or Bruce have really spent in the deep end on the subject of risk and its management - I have seen people doing brilliant things around risk (though they just aren&#8217;t mainstream).  Whether the tools are Bayesian methods, Monte Carlo engines, reductionist models of complex problems, there are risk analysts trying to deal with the problem.  These analysts are applying scientific method(s) and developing reasonable approaches to a very complex problem.  <em><strong>There are people trying, and our body of knowledge is growing</strong></em>, growing well beyond &#8220;gee, I haven&#8217;t got an obvious solution so I&#8217;ll blame it on lack of data&#8221;.  Heck, I&#8217;ve seen readers of this blog suggest Douglas Hubbard&#8217;s book in other security forums!<span style="color: #ff0000;">*</span></p>
<p><strong>I&#8217;VE GOT YOUR DATA RIGHT HERE&#8230;</strong></p>
<p>But we don&#8217;t have enough data?  I have to ask, how much more do we need?  I mean crikey, JPMC just visited our ISSA chapter claiming, like, a bajillion events an hour.  There&#8217;s not one, but several companies out there that will want to tell you about how they have deep &#8220;insight&#8221; into the attacker community.  The boundaries of IT Risk losses are pretty well established by events that happen to public companies.  We have pretty mature testing/assessment tools and methodologies now that help us test our ability to resist the force an attacker can apply to us.  So what part of the Threat Landscape, Asset (Controls) Landscape, or Loss Magnitude landscape is too incomplete (and what are you doing to find the information you need)?</p>
<p><strong>SO WHY DO WE FAIL?</strong></p>
<p>Which brings me to a final, somewhat depressing conclusion.  Maybe there&#8217;s data, and maybe we&#8217;re starting to see the means to use it.  But in the end I do have to agree with Marcus that the vast majority of the infosec world *is* doing a really, really bad job with regards to &#8220;risk&#8221; and &#8220;risk management&#8221;.  The majority of people I know consider GRC to be a cruel, expensive joke.  Risk Assessment Methodologies tend to be built on the faulty premise that if we create a repeatable process, our measurements and conclusions will magically become accurate and wise.  Risk models tend to be factors loosely measured by ordinal scales and then somehow &#8220;multiplied&#8221; together to create a relatively meaningless qualitative value.  The State of the Union here is not good.  But after reading such a superficial treatment of an important and complex subject, I am left wondering if Bruce and Marcus were the right people to write about risk management in a mainstream publication.  As Inspector Callahan says, &#8220;<strong><a href="http://www.youtube.com/watch?v=cZNlraF0xec">A man&#8217;s got to know his limitations</a></strong>.&#8221;</p>
<p>===============================</p>
<p><span style="color: #ff0000;">*</span> <em>Speaking of which, if you want to do one cost effective thing to address your uncertainty - go find Douglas Hubbard&#8217;s book. It&#8217;s even got a nice recommendation from Peter Tippett.  The book is called &#8220;How To Measure Anything&#8221; - the title sounds rather hyperbolic, but there are good techniques in it we can use to identify useful information and refine our ability to frame that qualitative information into quantitative values. The key is how Hubbard has you deal with your uncertainty.  For those of you who are more scientific minded and want to dig deep into the subject, I have on good authority that E.T. Jaynes &#8220;Probability Theory, The Logic of Science&#8221; is a rather under appreciated work.</em></p>
]]></content:encoded>
      <pubDate>Thu, 16 Oct 2008 11:32:16 +0000</pubDate>
      <category domain="http://securityratty.com/tag/risk management">risk management</category>
      <category domain="http://securityratty.com/tag/management">management</category>
      <category domain="http://securityratty.com/tag/risk">risk</category>
      <category domain="http://securityratty.com/tag/engineer risk management">engineer risk management</category>
      <category domain="http://securityratty.com/tag/methodologies">methodologies</category>
      <category domain="http://securityratty.com/tag/risk assessment methodologies">risk assessment methodologies</category>
      <category domain="http://securityratty.com/tag/risk models">risk models</category>
      <category domain="http://securityratty.com/tag/risk analysts">risk analysts</category>
      <category domain="http://securityratty.com/tag/models">models</category>
      <source url="http://riskmanagementinsight.com/riskanalysis/?p=487">A Cryptographer and a Data Communications Guy Talk About Risk Management</source>
    </item>
    <item>
      <title><![CDATA[Hacking Mifare Transport Cards]]></title>
      <link>http://securityratty.com/article/3a7dba1bb2685c0c225ca69eddd304c7</link>
      <guid>http://securityratty.com/article/3a7dba1bb2685c0c225ca69eddd304c7</guid>
      <description><![CDATA[London's Oyster card has been cracked , and the final details will become public in October. NXP Semiconductors, the Philips spin-off that makes the system, lost a court battle to prevent the...]]></description>
      <content:encoded><![CDATA[<p>London's Oyster card has been <a href="http://www.guardian.co.uk/technology/2008/jun/26/hitechcrime.oystercards">cracked</a>, and the final details will become public in October. NXP Semiconductors, the Philips spin-off that makes the system, lost a court battle to prevent the researchers from publishing. People might be able to use this information to ride for free, but the sky won't be falling. And the publication of this serious vulnerability actually makes us all safer in the long run.</p>

<p>Here's the story. Every Oyster card has a radio-frequency identification chip that communicates with readers mounted on the ticket barrier. That chip, the "Mifare Classic" chip, is used in hundreds of other transport systems as well — Boston, Los Angeles, Brisbane, Oslo, Amsterdam, Taipei, Shanghai, Rio de Janeiro — and as an access pass in thousands of companies, schools, hospitals, and government buildings around Britain and the rest of the world.</p>

<p>The security of Mifare Classic is terrible. This is not an exaggeration; it's kindergarten cryptography. Anyone with any security experience would be embarrassed to put his name to the design. NXP attempted to deal with this embarrassment by keeping the design secret.</p>

<p>The group that <a href="http://www.ru.nl/ds/research/rfid/">broke</a> Mifare Classic is from Radboud University Nijmegen in the Netherlands. They <a href="http://technology.timesonline.co.uk/tol/news/tech_and_web/article4184481.ece">demonstrated the attack</a> by riding the Underground for free, and by <a href="http://www.youtube.com/watch?v=NW3RGbQTLhE">breaking into</a> a building. Their two papers (one is already <a href="http://www.cs.ru.nl/~flaviog/publications/Attack.MIFARE.pdf">online</a>) will be published at <a href="http://www.scc.rhul.ac.uk/CARDIS/">two</a> <a href="http://www.isac.uma.es/esorics08/">conferences</a> this autumn.</p>

<p>The second paper is the one that NXP <a href="http://news.cnet.com/8301-10784_3-9985886-7.html?hhTest=1">sued</a> <a href="http://www.secureidnews.com/news/2008/07/10/nxp-sues-to-prevent-hackers-from-releasing-mifare-flaws/">over</a>. They called disclosure of the attack "irresponsible," warned that it will cause "immense damages," and claimed that it "will jeopardize the security of assets protected with systems incorporating the Mifare IC." The <a href="http://zoeken.rechtspraak.nl/resultpage.aspx?snelzoeken=true&amp;searchtype=ljn&amp;ljn=BD7578&amp;u_ljn=BD7578">Dutch court</a> would have none of it:  "Damage to NXP is not the result of the publication of the article but of the production and sale of a chip that appears to have shortcomings."</p>

<p>Exactly right. More generally, the notion that secrecy supports security is <a href="http://www.schneier.com/crypto-gram-0205.html#1">inherently flawed</a>. Whenever you see an organization claiming that design secrecy is necessary for security — in ID cards, in voting machines, in airport security — it invariably means that its security is lousy and it has no choice but to hide it. Any competent cryptographer would have designed Mifare's security with an open and public design.</p>

<p>Secrecy is fragile. Mifare's security was based on the belief that no one would discover how it worked; that's why NXP had to muzzle the Dutch researchers. But that's just wrong. Reverse-engineering isn't hard. <a href="http://computerworld.com/action/article.do?command=viewArticleBasic&amp;taxonomyName=spam__malware_and_vulnerabilities&amp;articleId=9078038&amp;taxonomyId=85">Other</a> <a href="http://www.cs.virginia.edu/~evans/pubs/usenix08/">researchers</a> <a href="http://eprint.iacr.org/2008/166">had</a> <a href="http://staff.science.uva.nl/~delaat/sne-2006-2007/p41/Report.pdf">already</a> <a href="http://www.translink.nl/media/bijlagen/nieuws/TNO_ICT_-_Security_Analysis_OV-Chipkaart_-_public_report.pdf">exposed</a> Mifare's lousy security. A Chinese company even <a href="http://www.fmsh.com/english/product_chipcard.php?product=FM11RF32">sells</a> a <a href="http://www.fmsh.com/english/products/FM11RF32_FS_ENG.pdf">compatible chip</a>. Is there any doubt that the bad guys already know about this, or will soon enough?</p>

<p>Publication of this attack might be expensive for NXP and its customers, but it's good for security overall. Companies will only design security as good as their customers know to ask for. NXP's security was so bad because customers didn't know how to evaluate security: either they don't know what questions to ask, or didn't know enough to distrust the marketing answers they were given. This court ruling encourages companies to build security properly rather than relying on shoddy design and secrecy, and discourages them from promising security based on their ability to threaten researchers.</p>

<p>It's unclear how this break will affect <a href="http://www.tfl.gov.uk/">Transport for London</a>. Cloning takes only a few seconds, and the thief only has to brush up against someone carrying a legitimate Oyster card. But it requires an RFID reader and a small piece of software which, while feasible for a techie, are too complicated for the average fare dodger. The police are likely to quickly arrest anyone who tries to sell cloned cards on any scale. TfL <a href="http://news.cnet.co.uk/software/0,39029694,49297810,00.htm">promises</a> <a href="http://www.techradar.com/news/world-of-tech/tfl-responds-to-oyster-hack-runling-428238">to</a> turn off any cloned cards within 24 hours, but that will hurt the innocent victim who had his card cloned more than the thief.</p>

<p>The vulnerability is far more serious to the companies that use Mifare Classic as an access pass. It would be very interesting to know how NXP presented the system's security to them.</p>

<p>And while these attacks only pertain to the Mifare Classic chip, it makes me suspicious of the entire product line. NXP sells a more secure chip and has another on the way, but given the number of basic cryptography mistakes NXP made with Mifare Classic, one has to wonder whether the "more secure" versions will be sufficiently so.</p>

<p>This essay <a href="http://www.guardian.co.uk/technology/2008/aug/07/hacking.security">originally appeared</a> in the <i>Guardian</i>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=lyT29K"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=lyT29K" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=3HhhnK"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=3HhhnK" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Thu, 07 Aug 2008 02:07:02 +0000</pubDate>
      <category domain="http://securityratty.com/tag/mifare">mifare</category>
      <category domain="http://securityratty.com/tag/design">design</category>
      <category domain="http://securityratty.com/tag/design secrecy">design secrecy</category>
      <category domain="http://securityratty.com/tag/mifare classic chip">mifare classic chip</category>
      <category domain="http://securityratty.com/tag/secrecy">secrecy</category>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/secrecy supports security">secrecy supports security</category>
      <category domain="http://securityratty.com/tag/security properly">security properly</category>
      <category domain="http://securityratty.com/tag/chip">chip</category>
      <source url="http://www.schneier.com/blog/archives/2008/08/hacking_mifare.html">Hacking Mifare Transport Cards</source>
    </item>
    <item>
      <title><![CDATA[The DNS Vulnerability]]></title>
      <link>http://securityratty.com/article/2fa89601e50143e1b069f4876ad01123</link>
      <guid>http://securityratty.com/article/2fa89601e50143e1b069f4876ad01123</guid>
      <description><![CDATA[Despite the best efforts of the security community, the details of a critical internet vulnerability discovered by Dan Kaminsky about six months ago have leaked. Hackers are racing to produce exploit...]]></description>
      <content:encoded><![CDATA[<p>Despite the best efforts of the security community, the details of a critical internet vulnerability discovered by Dan Kaminsky about six months ago have leaked. Hackers are racing to produce exploit code, and network operators who haven't already patched the hole are scrambling to catch up. The whole mess is a good illustration of the problems with researching and disclosing flaws like this.</p>

<p>The <a href="http://darkoz.com/?p=15">details</a> of the <a href="http://blog.invisibledenizen.org/2008/07/kaminskys-dns-issue-accidentally-leaked.html">vulnerability</a> aren't important, but basically it's a form of DNS cache poisoning. The DNS system is what translates domain names people understand, like www.schneier.com, to IP addresses computers understand: 204.11.246.1. There is a whole family of vulnerabilities where the DNS system on your computer is fooled into thinking that the IP address for www.badsite.com is really the IP address for www.goodsite.com -- there's no way for you to tell the difference -- and that allows the criminals at www.badsite.com to trick you into doing all sorts of things, like giving up your bank account details. Kaminsky discovered a particularly nasty variant of this cache-poisoning attack.</p>

<p>Here's the way the timeline was supposed to work: Kaminsky discovered the vulnerability about six months ago, and quietly worked with vendors to patch it. (There's a fairly straightforward fix, although the implementation nuances are complicated.) Of course, this meant describing the vulnerability to them; why would companies like Microsoft and Cisco believe him otherwise? On July 8, he held a <a href="http://news.bbc.co.uk/2/hi/technology/7496735.stm">press conference</a> to <a href="http://www.doxpara.com/?p=1162">announce</a> the <a href="http://www.kb.cert.org/vuls/id/800113">vulnerability</a> -- but not the details -- and reveal that a patch was available from a long list of vendors. We would all have a month to patch, and Kaminsky would release details of the vulnerability at the <a href="http://www.blackhat.com/html/bh-usa-08/bh-us-08-main.html">BlackHat</a> conference early next month.</p>

<p>Of course, the details <a href="http://it.slashdot.org/it/08/07/21/2212227.shtml">leaked</a>. <a href="http://blog.wired.com/27bstroke6/2008/07/details-of-dns.html">How</a> isn't important; it could have leaked a zillion different ways. Too many people knew about it for it to remain secret. Others who knew the general idea were too smart <a href="http://addxorrol.blogspot.com/2008/07/on-dans-request-for-no-speculation.html">not to speculate</a> on the details. I'm kind of amazed the details remained secret for this long; undoubtedly it had leaked into the underground community before the public leak two days ago. So now everyone who back-burnered the problem is rushing to patch, while the hacker community is racing to produce working exploits. </p>

<p>What's the moral here? It's easy to condemn Kaminsky: If he had shut up about the problem, we wouldn't be in this mess. But that's just wrong. Kaminsky found the vulnerability by accident. There's no reason to believe he was the first one to find it, and it's ridiculous to believe he would be the last. Don't shoot the messenger. The problem is with the DNS protocol; it's insecure.</p>

<p>The real lesson is that the <a href="http://www.schneier.com/crypto-gram-0103.html#1">patch treadmill</a> doesn't work, and it hasn't for years. This cycle of finding security holes and rushing to patch them before the bad guys exploit those vulnerabilities is expensive, inefficient and incomplete. We need to design security into our systems right from the beginning. We need <a href="http://www.schneier.com/blog/archives/2007/08/assurance.html">assurance</a>. We need security engineers involved in system design. This process won't prevent every vulnerability, but it's much more secure -- and cheaper -- than the patch treadmill we're all on now.</p>

<p>What a security engineer brings to the problem is a particular <a href="http://www.schneier.com/blog/archives/2008/03/the_security_mi.html">mindset</a>. He thinks about systems from a security perspective. It's not that he discovers all possible attacks before the bad guys do; it's more that he anticipates potential types of attacks, and defends against them even if he doesn't know their details. I see this all the time in good cryptographic designs. It's over-engineering based on intuition, but if the security engineer has good intuition, it generally works.</p>

<p>Kaminsky's vulnerability is a perfect example of this. Years ago, cryptographer Daniel J. Bernstein <a href="http://cr.yp.to/djbdns/forgery.html">looked at DNS security</a> and decided that Source Port Randomization was a smart design choice. That's exactly the work-around being rolled out now following Kaminsky's discovery. Bernstein didn't discover Kaminsky's attack; instead, he saw a general class of attacks and realized that this enhancement could protect against them. Consequently, the DNS program he wrote in 2000, <a href="http://cr.yp.to/djbdns/dnscache.html">djbdns</a>, doesn't need to be patched; it's already immune to Kaminsky's attack.</p>

<p>That's what a good design looks like. It's not just secure against known attacks; it's also secure against unknown attacks. We need more of this, not just on the internet but in voting machines, ID cards, transportation payment cards ... everywhere. Stop assuming that systems are secure unless demonstrated insecure; start assuming that systems are insecure unless designed securely.</p>

<p>This essay <a href="http://www.wired.com/politics/security/commentary/securitymatters/2008/07/securitymatters_0723">previously appeared</a> on Wired.com.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=mOWtcJ"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=mOWtcJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=xoZIeJ"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=xoZIeJ" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Tue, 29 Jul 2008 02:01:52 +0000</pubDate>
      <category domain="http://securityratty.com/tag/vulnerability">vulnerability</category>
      <category domain="http://securityratty.com/tag/kaminsky">kaminsky</category>
      <category domain="http://securityratty.com/tag/dan kaminsky">dan kaminsky</category>
      <category domain="http://securityratty.com/tag/details">details</category>
      <category domain="http://securityratty.com/tag/critical internet vulnerability">critical internet vulnerability</category>
      <category domain="http://securityratty.com/tag/bank account details">bank account details</category>
      <category domain="http://securityratty.com/tag/discover kaminsky">discover kaminsky</category>
      <category domain="http://securityratty.com/tag/patch">patch</category>
      <category domain="http://securityratty.com/tag/release details">release details</category>
      <source url="http://www.schneier.com/blog/archives/2008/07/the_dns_vulnera.html">The DNS Vulnerability</source>
    </item>
    <item>
      <title><![CDATA[Security Matters: Lesson From the DNS Bug: Patching Isn't Enough]]></title>
      <link>http://securityratty.com/article/91e8b8fee8fdb20a8381e76c3ea40942</link>
      <guid>http://securityratty.com/article/91e8b8fee8fdb20a8381e76c3ea40942</guid>
      <description><![CDATA[Despite the best efforts of the security community, the details of a critical internet vulnerability discovered by Dan Kaminsky about six months ago have leaked. Hackers are racing to produce exploit...]]></description>
      <content:encoded><![CDATA[<p>
Despite the best efforts of the security community, the details of a critical internet vulnerability discovered by Dan Kaminsky about six months ago have leaked. Hackers are racing to produce exploit code, and network operators who haven't already patched the hole are scrambling to catch up. The whole mess is a good illustration of the problems with researching and disclosing flaws like this.
</p><p>
The <a href="http://darkoz.com/?p=15">details</a> of the <a href="http://blog.invisibledenizen.org/2008/07/kaminskys-dns-issue-accidentally-leaked.html">vulnerability</a> aren't important, but basically it's a form of DNS cache poisoning. The DNS system is what translates domain names people understand, like www.schneier.com, to IP addresses computers understand: 204.11.246.1. There is a whole family of vulnerabilities where the DNS system on your computer is fooled into thinking that the IP address for www.badsite.com is really the IP address for www.goodsite.com -- there's no way for you to tell the difference -- and that allows the criminals at www.badsite.com to trick you into doing all sorts of things, like giving up your bank account details. Kaminsky discovered a particularly nasty variant of this cache-poisoning attack.
</p><p>
Here's the way the timeline was supposed to work: Kaminsky discovered the vulnerability about six months ago, and quietly worked with vendors to patch it. (There's a fairly straightforward fix, although the implementation nuances are complicated.) Of course, this meant describing the vulnerability to them; why would companies like Microsoft and Cisco believe him otherwise? On July 8, he held a <a href="http://news.bbc.co.uk/2/hi/technology/7496735.stm">press conference</a> to <a href="http://www.doxpara.com/?p=1162">announce</a> the <a href="http://www.kb.cert.org/vuls/id/800113">vulnerability</a> -- but not the details -- and reveal that a patch was available from a long list of vendors. We would all have a month to patch, and Kaminsky would release details of the vulnerability at the <a href="http://www.blackhat.com/html/bh-usa-08/bh-us-08-main.html">BlackHat</a> conference early next month.
</p><p>
Of course, the details <a href="http://it.slashdot.org/it/08/07/21/2212227.shtml">leaked</a>. <a href="http://blog.wired.com/27bstroke6/2008/07/details-of-dns.html">How</a> isn't important; it could have leaked a zillion different ways. Too many people knew about it for it to remain secret. Others who knew the general idea were too smart <a href="http://addxorrol.blogspot.com/2008/07/on-dans-request-for-no-speculation.html">not to speculate</a> on the details. I'm kind of amazed the details remained secret for this long; undoubtedly it had leaked into the underground community before the public leak two days ago. So now everyone who back-burnered the problem is rushing to patch, while the hacker community is racing to produce working exploits. 
</p><p>
What's the moral here? It's easy to condemn Kaminsky: If he had shut up about the problem, we wouldn't be in this mess. But that's just wrong. Kaminsky found the vulnerability by accident. There's no reason to believe he was the first one to find it, and it's ridiculous to believe he would be the last. Don't shoot the messenger. The problem is with the DNS protocol; it's insecure.
</p><p>
The real lesson is that the <a href="http://www.schneier.com/crypto-gram-0103.html#1">patch treadmill</a> doesn't work, and it hasn't for years. This cycle of finding security holes and rushing to patch them before the bad guys exploit those vulnerabilities is expensive, inefficient and incomplete. We need to design security into our systems right from the beginning. We need <a href="http://www.schneier.com/blog/archives/2007/08/assurance.html">assurance</a>. We need security engineers involved in system design. This process won't prevent every vulnerability, but it's much more secure -- and cheaper -- than the patch treadmill we're all on now.
</p><p>
What a security engineer brings to the problem is a particular <a href="http://www.schneier.com/blog/archives/2008/03/the_security_mi.html">mindset</a>. He thinks about systems from a security perspective. It's not that he discovers all possible attacks before the bad guys do; it's more that he anticipates potential types of attacks, and defends against them even if he doesn't know their details. I see this all the time in good cryptographic designs. It's over-engineering based on intuition, but if the security engineer has good intuition, it generally works.
</p><p>
Kaminsky's vulnerability is a perfect example of this. Years ago, cryptographer Daniel J. <a href="http://cr.yp.to/djbdns/forgery.html">Bernstein looked at DNS security</a> and decided that Source Port Randomization was a smart design choice. That's exactly the work-around being rolled out now following Kaminsky's discovery. Bernstein didn't discover Kaminsky's attack; instead, he saw a general class of attacks and realized that this enhancement could protect against them. Consequently, the DNS program he wrote in 2000, <a href="http://cr.yp.to/djbdns/dnscache.html">djbdns</a>, doesn't need to be patched; it's already immune to Kaminsky's attack.
</p><p>
That's what a good design looks like. It's not just secure against known attacks; it's also secure against unknown attacks. We need more of this, not just on the internet but in voting machines, ID cards, transportation payment cards ... everywhere. Stop assuming that systems are secure unless demonstrated insecure; start assuming that systems are insecure unless designed securely.
</p>
<p>
---
</p>
<p><em>Bruce Schneier is chief security technology officer of BT, and author of </em>Beyond Fear: Thinking Sensibly About Security in an Uncertain World<em>.</em>
</p><br style="clear: both;"/>
  <img alt="" style="border: 0; height:1px; width:1px;" border="0" src="http://www.pheedo.com/img.phdo?i=409677f2963be2209f491c6d93077da2" height="1" width="1"/>
<img src="http://www.pheedo.com/feeds/tracker.php?i=409677f2963be2209f491c6d93077da2" style="display: none;" border="0" height="1" width="1" alt=""/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=h5CELJ"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=h5CELJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=boiM6j"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=boiM6j" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=Jt6fdj"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=Jt6fdj" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=rgr4DJ"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=rgr4DJ" border="0"></img></a>
 <a href="http://feeds.wired.com/~f/wired/politics/security?a=24FrZJ"><img src="http://feeds.wired.com/~f/wired/politics/security?i=24FrZJ" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=zjgcMj"><img src="http://feeds.wired.com/~f/wired/politics/security?i=zjgcMj" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=iNUmwj"><img src="http://feeds.wired.com/~f/wired/politics/security?i=iNUmwj" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=WnDE0J"><img src="http://feeds.wired.com/~f/wired/politics/security?i=WnDE0J" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/wired/politics/privacy/~4/344028309" height="1" width="1"/><img src="http://feeds.wired.com/~r/wired/politics/security/~4/344028448" height="1" width="1"/>]]></content:encoded>
      <pubDate>Wed, 23 Jul 2008 15:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/security engineer">security engineer</category>
      <category domain="http://securityratty.com/tag/security engineer brings">security engineer brings</category>
      <category domain="http://securityratty.com/tag/security holes">security holes</category>
      <category domain="http://securityratty.com/tag/smart design choice">smart design choice</category>
      <category domain="http://securityratty.com/tag/design">design</category>
      <category domain="http://securityratty.com/tag/security engineers">security engineers</category>
      <category domain="http://securityratty.com/tag/kaminsky">kaminsky</category>
      <category domain="http://securityratty.com/tag/dan kaminsky">dan kaminsky</category>
      <source url="http://feeds.wired.com/~r/wired/politics/security/~3/344028448/securitymatters_0723">Security Matters: Lesson From the DNS Bug: Patching Isn't Enough</source>
    </item>
    <item>
      <title><![CDATA[Credentica]]></title>
      <link>http://securityratty.com/article/9e55063ea26863f5a10805f54b61aa53</link>
      <guid>http://securityratty.com/article/9e55063ea26863f5a10805f54b61aa53</guid>
      <description><![CDATA[Cryptographer Stefan Brands has a new company, Credentica , that allows people to disclose personal information while maintaining privacy and minimizing the threat of identity theft
I know Stefan;...]]></description>
      <content:encoded><![CDATA[<p>Cryptographer Stefan Brands has a new company, <a href="http://www.credentica.com/">Credentica</a>, that <a href="http://www.wired.com/politics/security/news/2008/02/credentica">allows people</a> to disclose personal information while maintaining privacy and minimizing the threat of identity theft.</p>

<p>I know Stefan; he's good.  The cryptography behind this system is almost certainly impeccable. I like systems like this, and I want them to succeed.  I just don't see a viable business model.</p>

<p>I'd like to be proven wrong.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=8BxAGXE"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=8BxAGXE" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=DlYlJcE"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=DlYlJcE" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Fri, 15 Feb 2008 02:02:52 +0000</pubDate>
      <category domain="http://securityratty.com/tag/cryptographer stefan brands">cryptographer stefan brands</category>
      <category domain="http://securityratty.com/tag/stefan">stefan</category>
      <category domain="http://securityratty.com/tag/viable business model">viable business model</category>
      <category domain="http://securityratty.com/tag/disclose personal information">disclose personal information</category>
      <category domain="http://securityratty.com/tag/credentica">credentica</category>
      <category domain="http://securityratty.com/tag/identity theft">identity theft</category>
      <category domain="http://securityratty.com/tag/impeccable">impeccable</category>
      <category domain="http://securityratty.com/tag/system">system</category>
      <category domain="http://securityratty.com/tag/threat">threat</category>
      <source url="http://www.schneier.com/blog/archives/2008/02/credentica.html">Credentica</source>
    </item>
    <item>
      <title><![CDATA[NSA Backdoors in Crypto AG Ciphering Machines]]></title>
      <link>http://securityratty.com/article/1a60159596edfc262cf2de2acead7fe1</link>
      <guid>http://securityratty.com/article/1a60159596edfc262cf2de2acead7fe1</guid>
      <description><![CDATA[This story made the rounds in European newspapers some years ago -- mostly stories in German, if I remember -- but it wasn't covered much here in the U.S. For half a century, Crypto AG, a Swiss...]]></description>
      <content:encoded><![CDATA[<p><a href="http://www.inteldaily.com/?c=169&a=4686">This story</a> made the rounds in European newspapers some years ago -- mostly stories in German, if I remember -- but it wasn't covered much here in the U.S.</p>

<blockquote>For half a century, Crypto AG, a Swiss company located in Zug, has sold to more than 100 countries the encryption machines their officials rely upon to exchange their most sensitive economic, diplomatic and military messages. Crypto AG was founded in 1952 by the legendary (Russian born) Swedish cryptographer Boris Hagelin. During World War II, Hagelin sold 140,000 of his machine to the US Army.

<p>"In the meantime, the Crypto AG has built up long standing cooperative relations with customers in 130 countries," states a prospectus of the company. The home page of the company Web site says, "Crypto AG is the preferred top-security partner for civilian and military authorities worldwide. Security is our business and will always remain our business."</p>

<p>And for all those years, US eavesdroppers could read these messages without the least difficulty. A decade after the end of WWII, the NSA, also known as No Such Agency, had rigged the Crypto AG machines in various ways according to the targeted countries. It is probably no exaggeration to state that this 20th century version of the "Trojan horse" is quite likely the greatest sting in modern history.</blockquote></p>

<p>We don't know the truth here, but the article lays out the evidence pretty well.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=aLALRMD"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=aLALRMD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=SMPrtyD"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=SMPrtyD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=PoHQgUD"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=PoHQgUD" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Fri, 11 Jan 2008 03:51:20 +0000</pubDate>
      <category domain="http://securityratty.com/tag/crypto">crypto</category>
      <category domain="http://securityratty.com/tag/machines">machines</category>
      <category domain="http://securityratty.com/tag/company">company</category>
      <category domain="http://securityratty.com/tag/swiss company">swiss company</category>
      <category domain="http://securityratty.com/tag/company web site">company web site</category>
      <category domain="http://securityratty.com/tag/century">century</category>
      <category domain="http://securityratty.com/tag/20th century version">20th century version</category>
      <category domain="http://securityratty.com/tag/military messages">military messages</category>
      <category domain="http://securityratty.com/tag/countries">countries</category>
      <source url="http://www.schneier.com/blog/archives/2008/01/nsa_backdoors_i.html">NSA Backdoors in Crypto AG Ciphering Machines</source>
    </item>
  </channel>
</rss>
