<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0"><channel><title>Perimeter Grid</title> <link>http://perimetergrid.com/wp</link> <description>Building Security in a Networked World</description> <lastBuildDate>Sat, 13 Aug 2011 06:02:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PerimeterGrid" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="perimetergrid" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>DefCon 19, Day 3</title><link>http://perimetergrid.com/wp/2011/08/12/defcon-19-day-3/</link> <comments>http://perimetergrid.com/wp/2011/08/12/defcon-19-day-3/#comments</comments> <pubDate>Sat, 13 Aug 2011 06:02:53 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[hardware]]></category> <category><![CDATA[networks]]></category> <category><![CDATA[physical security]]></category> <category><![CDATA[products]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=149</guid> <description><![CDATA[Sunday was interesting &#8212; this was actually the first DefCon I have attended (and I&#8217;ve been to the last five) where Sunday was actually busy. Normally Sunday feels very empty &#8212; most people have gone home, and the ones that are still around are too hung over to go to the morning sessions. I was [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Sunday was interesting &#8212; this was actually the first DefCon I have attended (and I&#8217;ve been to the last five) where Sunday was actually <em>busy</em>.  Normally Sunday feels very empty &#8212; most people have gone home, and the ones that are still around are too hung over to go to the morning sessions.  I was not <em>quite</em> hung over enough to miss the morning sessions, so off I went.  I&#8217;d imagine a lot of people took advantage of DefCon TV, though.</p><p>I started the day with Whit Diffie &#038; Moxie Marlinspike&#8217;s Q&#038;A session in Track 1.  There was no topic in the program; instead, they just both answered questions about SSL and cryptography.  One interesting detail: one of the reasons RSA has become more successful (or at least frequently used) than Diffie-Hellman was that Diffie himself favored it, on account of certain attacks for which RSA is more favorable (though Diffie-Hellman is better against others.)  A lot of the discussion, though, was about Moxie&#8217;s notary system proposal.  I have to give Moxie credit here &#8212; though I&#8217;m still not sure that I agree with his proposal, I probably spent more time debating it with people than I spent talking about any other presentation this weekend.  It certainly spawned a lot of conversation.</p><p>Paul Craig&#8217;s <a
href="http://ikat.ha.cked.net/">iKAT tool</a> is always interesting, and he presented a new version.  The previous one only attacked Windows kiosks, and now he&#8217;s cross-platform.  Essentially, the principle is that Internet kiosks are designed with the threat model of defending the kiosk from the user&#8230; and not defending it from the Internet.  Thus, iKAT is an Internet site that can be used by the user to attack his own machine, under the assumption that his own machine is some sort of locked-down Internet kiosk with restricted permissions.  iKAT allows the user to take full administrative control of most of them, either just to get unrestricted Internet orb, if he&#8217;s less friendly, to Trojan the card-reader.</p><p>Next, Alva Duckwall presented <a
href="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Duckwall" title="A Bridge Too Far">A Bridge Too Far</a>, a talk on bypassing 802.1x via creating a layer-2 transparent bridge.  This was actually a rather cool talk, and coupled very well with yesterday&#8217;s talk on exploiting hotel VoIP via VLAN-hopping by cloning the phone.  With all the focus being on Layer-3 protocols these days, it&#8217;s cool to see that you can still do some interesting stuff at Layer-2.</p><p>There was a talk in the afternoon on <a
href="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Dinaburg">bit-squatting</a> &#8212; essentially, a binary version of typosquatting wherein you register a domain that&#8217;s a 1-bit error off from a legitimate domain, not intending to catch user error but rather to catch hardware and network errors.  1-bit errors are fairly common, at least when multiplied by billions of Internet users.  I didn&#8217;t attend the talk because I felt that all the interesting material was basically contained in the title &#8212; the moral of the story is going to be that you should probably register the 1-bit-off domain names of your own if you&#8217;re going to create a highly-targeted site like a banking site.  Talking to people who did attend&#8230; the consensus was that it shouldn&#8217;t have been a 50-minute talk.</p><p>Instead, I visited <a
href="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#datagram">datagram&#8217;s talk on tamper-evident devices</a>.  Most of them, well, aren&#8217;t tamper-evident, at least not against a skilled attacker.  The attacks range from very obvious (stretching plastic, razoring up adhesive) to requiring more knowledge (dissolving adhesive with a wide variety of organic and inorganic solvents) to very clever.  Note that during the Tamper Evident contest at DefCon, wherein people tried to bypass a wide variety of anti-tampering seals and devices&#8230; none of the seals or devices successfully resisted attack.</p><p>I followed this up with a talk by the DefCon NOC on <a
href="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Bryan">Building the DefCon network</a>.  It&#8217;s an interesting challenge &#8212; building a high-bandwidth network, wired and wireless, for use by 12,000 people, many of whom will be actively attacking it, given only 3 days, using only hardware you can afford to keep in a box 51 weeks of the year.   Considering their constraints they do a remarkable job.  This year&#8217;s secure wireless was, so far as anyone could tell, actually secure&#8230; and possibly safer than using GSM or CDMA in this environment (GSM is definitely broken, and the not-quite-confirmed rumor is that CDMA users were hit by an 0day MitM this year, too.)  DefCon TV was a huge hit, even though it did not successfully reach all rooms.</p><p>The last talk of the day was Jayson Street&#8217;s dramatically-titled <a
href="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Street">&#8220;Steal Everything, Kill Everyone, Cause Total Financial Ruin!&#8221;</a> It was sometimes amusing, but overall it was mostly a self-aggrandizing pentester talking about various (mostly physical) exploits he had pulled off.  Not really any valuable content for a security pro, though your average non-security person would probably be shocked at how trivially exploitable most systems are.</p><p>Having spent pretty much the whole weekend at DefCon events, I decided to go back down to the Strip, see a show, and have some delicious steak frites and wine at the Paris.  It was a nice ending to a packed weekend.</p><p>Overall, DefCon this weekend was a huge success (I&#8217;m making a note here.)  The Rio was a great environment, much better than the Riviera, with enough room to grow and real food to eat.  Staying in the conference hotel and having a group to enjoy DefCon with made it a much more fun experience than past years; both will be things I&#8217;ll be sure to repeat.  (Incidentally, Google Plus is a great tool for attending a con with a group &#8212; it&#8217;s like having your own private Twitter &#8212; though I can&#8217;t say that I have found much <em>else</em> it&#8217;s good for yet.)  Speaking of Twitter, while it&#8217;s been indefensible for DefCon in prior years, at this point since everyone has a smartphone and a Twitter account the #defcon hashtag actually has so much traffic it&#8217;s almost impossible to keep track of.  Every time you bring it up there are hundreds of new tweets.</p><p>I think the new non-electronic badges were a success.  While perhaps less &#8220;cool&#8221; than the electronic ones, far more people participated in the badge contest this year than have ever participated in hacking the electronic badges, and while badge lines did run 2-3 hours, at least they were available before the con started.  At some point, DefCon management needs to learn that the conference is growing 10%+ per year and that they need to order enough badges for growth; considering the much lower cost of non-electronic badges, perhaps they&#8217;ll do that next year.  The lines are entirely unnecessary &#8212; they exist only because everybody knows that badges have been under-ordered and people at the back of the line won&#8217;t get one.  Without this pressure to get badges <I>first</I>, the infamous LineCon could be avoided.</p><p>DC303 and Rapid7 threw great parties.  However, most of the fun I had was around the Rio pools &#8212; having them open until 2am was great, though even later would be nice (and allowing alcohol instead of having everyone smuggle it in would be an improvement, though I&#8217;m not holding my breath on that one.)  Finally, thanks to DC206 for a great time, a lot of very interesting conversation, and confusing the hell out of taxi drivers.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Hg2nnmiy9N8:lsp6l1q6M5s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Hg2nnmiy9N8:lsp6l1q6M5s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Hg2nnmiy9N8:lsp6l1q6M5s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Hg2nnmiy9N8:lsp6l1q6M5s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Hg2nnmiy9N8:lsp6l1q6M5s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Hg2nnmiy9N8:lsp6l1q6M5s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/08/12/defcon-19-day-3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DefCon 19, Day 2</title><link>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-2/</link> <comments>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-2/#comments</comments> <pubDate>Thu, 11 Aug 2011 06:29:28 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[networks]]></category> <category><![CDATA[products]]></category> <category><![CDATA[risk]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=145</guid> <description><![CDATA[My experiences attending DefCon 19.<p></p> ]]></description> <content:encoded><![CDATA[<p>I slept in a bit on Saturday and missed the 10am panels.  None of them seemed very relevant to me, though now I kind of regret missing the <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Roberts">first panel</A>.  Apparently the former CEO of HBGary Federal, Aaron Barr, was scheduled to speak, but his former employer threatened him with a lawsuit, so at the last minute he was replaced with the mysterious masked pirate Baron von Arr.  I&#8217;m certain no one has any idea who he might have been.  I was also unable to make it to Schuyler Towne&#8217;s <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Towne">DIY Non-Destructive Entry</A> talk on bypassing locks and doors, which is unfortunate as Schuyler is and interesting speaker; this is another one I&#8217;ll be sure to catch on video.</p><p>Mycurial gave an <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Arlen">overview of High-Frequency Trading systems</A> in the next talk.  These are the systems by which computers trade stocks and other investments with other computers, as a form of arbitrage &#8212; they offer things for sale to fulfill trades before they actually have the items in question, then quickly buy them.  It&#8217;s a speed game, with latency measured in nanoseconds, such that distance between the trader and the exchange matters (light can only go 11 feet per nanosecond, after all, so a few hundred yards might put you behind another trader, resulting in a loss.)  As a result, conventional security measures are practically nonexistent.  Networks run on custom, non-standards-compliant TCP/IP and Ethernet stacks.  Firewalls and IDSs, which can add latency in <I>micro</I>seconds, are absolutely prohibitively slow.  These networks are &#8220;dedicated,&#8221; but these days no network connections are truly dedicated &#8212; leased lines are still packet switched and trunked.  If someone managed to find their way into one of these networks they could do a lot of damage.  For that matter, who&#8217;s to say the traders aren&#8217;t subtly attacking each other?  We still don&#8217;t know for sure what caused the <A
HREF="http://en.wikipedia.org/wiki/Flash_crash">May 6th Flash Crash</A>.</p><p>I did not manage to catch Richard Thieme&#8217;s <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Thieme">Staring Into The Abyss</A> at either BlackHat or DefCon, which is unfortunate; many attendees said it was the best talk of the conference.  This will be another one to catch on video.</p><p>I went to a talk on <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Carey">the Metasploit vSploit Modules</A>, which are modules intended to test IDSs, WAFs, and other network monitoring and filtering technology.  Pretty neat code, but not really relevant to my interests.</p><p>Gus Fritchie&#8217;s <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Fritschie">Getting Fucked On The River</A> explored vulnerabilities in online poker servers, and the arms race between cheaters and the poker sites&#8217; attempts to stop them.  There have been a host of exploits, from a predictable random number generator (if you seed your card-shuffling algorithm with a 32-bit number, there are only 4 billion possible decks of cards, which means someone can essentially build a deck rainbow table and predict draws with great accuracy), to back-door &#8220;cheat detection&#8221; code that actually leaked hole cards to an insider, to poker bots that play well enough to beat average players (and can beat even skilled players if many of them collude together, or be used to launder money.)</p><p>A talk called <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Ostrom">VoIP Hopping The Hotel</A> was one of the very few technical exploit talks I saw at DefCon this year.  Luxury hotels are starting to put VoIP phones in rooms, using the same Ethernet lines as the in-room Internet.  If you plug into the phone&#8217;s port, though, you see nothing on the network, and can&#8217;t get an IP &#8212; 802.1q VLAN trunking is used so the phones exist on a different virtual network than the Internet connections, and only the phones can see it.  Now, properly used, 802.1q trunking is secure&#8230; but &#8220;properly used&#8221; means never allowing an untrusted user access to a &#8220;trunk port&#8221; (a single port which hosts multiple VLANs.)  Since the hotel port does just this &#8212; both the VoIP VLAN and the Internet VLAN &#8212; it&#8217;s possible to use some tools demonstrated in this talk to gain access to the VoIP VLAN with a computer, puzzling out the VLAN ID for the VoIP VLAN and cloning the phone&#8217;s MAC and IP addresses.  It takes some skill &#8212; send one wrong packet on the VoIP VLAN and you&#8217;ll trigger port security and get the whole connection shut down at the switch &#8212; but with proper tools isn&#8217;t very hard.  So why would you want to be on the VoIP VLAN?  Well, network designers tend to be lazy&#8230; and that VLAN tends to be the hotel&#8217;s internal network.</p><p>Finally, <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Percoco2">This is REALLY Not The Droid You&#8217;re Looking For</A> was another good exploit talk.  On Android devices, it&#8217;s possible to craft an application that uses only common permissions (&#8220;Read Phone State&#8221;) and uses only &#8220;safe&#8221; APIs (meaning automatic approval for publication in the Android Market) that spawns a service that watches for a specified list of apps, and (upon seeing one) foregrounds itself silently over the app in question.  So someone can make a game which, after you have played it once, silently lies in wait and when I load up Facebook, or my bank&#8217;s app, or my password manager, pops up a fake login screen over the real one and intercepts the password.  As a user, there is no defense and no detection; there may be no fix for this short of a significant overhaul of Android&#8217;s UI APIs and permissions.</p><p>Also back this year (for the first time in many years) was DefCon TV &#8212; the talks were broadcast over the hotel&#8217;s internal cable system to all the rooms.  So when a talk filled up, you could just go back to your room and watch it there if you were staying in the Rio.  It was quite convenient, though in some rooms (including mine) not all 5 tracks were available.  Still, according to the DefCon Goons this helped a lot with crowding, since many people would watch talks from their rooms and only come down to the conference floor for more social activities.</p><p>For the evening, I met up with the DC206 group again, ate over at the Gold Coast hotel, and then dropped into the IOActive Freakshow (yet another pool party), followed by the DC303 party (featuring Dual Core and C64, playing a mostly drum-and-bass set in lieu of the usual nerdcore, albeit still with some rapping) and finally the DefCon White Ball (with Miss Jackalope playing more drum-and-bass.)  There was a lot of dancing and not a small amount of drinking, with the usual discussion of hacking, infosec, and reasons to make a Tesla coil out of DefCon badges.  All in all, it was another good night.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=c-1_Jr9w8TU:tpF5a86SCFA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=c-1_Jr9w8TU:tpF5a86SCFA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=c-1_Jr9w8TU:tpF5a86SCFA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=c-1_Jr9w8TU:tpF5a86SCFA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=c-1_Jr9w8TU:tpF5a86SCFA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=c-1_Jr9w8TU:tpF5a86SCFA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-2/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>DefCon 19, Day 1</title><link>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-1/</link> <comments>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-1/#comments</comments> <pubDate>Thu, 11 Aug 2011 05:49:42 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[industry]]></category> <category><![CDATA[physical security]]></category> <category><![CDATA[privacy]]></category> <category><![CDATA[risk]]></category> <category><![CDATA[society]]></category> <category><![CDATA[statistics]]></category> <category><![CDATA[terrorism]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=140</guid> <description><![CDATA[Having finished with BlackHat, I checked out of the Flamingo and moved to DefCon&#8217;s new location this year, the Rio. This was an enormous upgrade from the Riviera, the previous location. For one, the conference center is nearly 50% bigger, and it&#8217;s beautiful. Traffic flow was greatly improved, despite record attendance (~12,000, from estimates I&#8217;ve [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Having finished with BlackHat, I checked out of the Flamingo and moved to DefCon&#8217;s new location this year, the Rio.  This was an <I>enormous</I> upgrade from the Riviera, the previous location.  For one, the conference center is nearly 50% bigger, and it&#8217;s beautiful.  Traffic flow was greatly improved, despite record attendance (~12,000, from estimates I&#8217;ve heard, up 20% from last year.)  It was crowded, but it was a manageable crowd, and I managed to get into everything I wanted to, save for a talk in Track 2 (by far the smallest of the 5 presentation rooms.)  What&#8217;s more, the DefCon Goons improved things as the conference went along (they always do), so Saturday went even better than Friday.</p><p>I started the first day with 1o57&#8242;s talk on the new DefCon badge.  This year&#8217;s badges were non-electronic (for the first time in several years) &#8212; they were antiqued titanium discs with the Eye of Ra and various codes inscribed in them with a water knife.  Apparently making the 10,000 DefCon badges actually used the entire supply of sheet titanium in the United States at the time.  Bright side of them being non-electronic: they actually had them before the con started!  There has been a history of the badges getting hung up in customs on the way from China, but the non-electronic badges were produced in the USA.  1o57 designed an elaborate puzzle contest around the badges, but I can&#8217;t say much about it as I didn&#8217;t participate this year.  There was, however, a very nice-looking code wheel on the floor of the Rio convention center rotunda that was key to the game and gave the room a nice DefCon look, so it was appreciated even by non-participants.</p><p>I spent the next couple of hours exploring the non-talk aspects of DefCon (none of the sessions in those slots were particularly interesting to me) and bought up some DefCon shirts and a couple of 2600 Hacker Calendars.  I also donated $170 to the <A
HREF="http://www.eff.org">Electronic Frontier Foundation</A> in my name and my wife&#8217;s, though I didn&#8217;t actually end up going to the party to which that entitled me admission (the donation and not the party was the primary purpose anyway.)</p><p>I dropped into Mark Weber Tobias&#8217;s physical security talk, called <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Tobias">Insecurity: An Analysis Of Current Commercial And Government Security Lock Designs</A>, which involved some hilarious attacks on &#8220;high-security&#8221; physical locks.  You know those locks with 5 vertically-arranged pushbuttons you see in every airport or government building?  They pop right open if you stick a neodymium-iron-boron magnet on the side.  A keycard/keypad electronic lock with a USB port on the bottom for reprogramming is impervious to electronic attacks&#8230; but opens if you shove a paperclip to the back of the USB port.  This sort of attack was ubiquitous &#8212; simple modifications that made sophisticated electronic locks open in purely mechanical ways.  The overall point is that to get through a door, you do not have to open the lock &#8212; you have to actuate the mechanism that the lock actuates.  Sometimes this is really easy.</p><p>The next talk was entitled <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#Rezchikov">Why Airport Security Can&#8217;t Be Done FAST</A>, about the TSA&#8217;s Future Attribute Screening Technology.  This project intends to detect malicious intent, based on biometrics and facial cues, kind of like an electronic <A
HREF="http://en.wikipedia.org/wiki/Lie_to_me">Cal Lightman</A>.  The problem, in short, is the standard Bayesian statistical issues that always come up when trying to detect something vanishingly rare like terrorism.  The top 10 airlines in the world carry a billion passengers per year &#8212; the top 5 US carriers alone carry 500 million per year.  How many of these are terrorists who actually intend to blow up a plane that flight?  Let&#8217;s be very conservative and pretend 100 people try to board an American plane with the intent to blow it up every year (probably an enormous overestimate.)  Now let&#8217;s imagine my FAST system is 99.9% accurate at detecting terrorists &#8212; sounds great, doesn&#8217;t it?  Let&#8217;s get that into our airports immediately!  But wait&#8230; 99.9% accurate means it will probably catch all 100 terrorists.  It&#8217;ll also catch 500,000 innocent people &#8212; 0.1% of the 500 million passengers.  So if FAST points you out as a terrorist, there&#8217;s a 0.0002% chance it&#8217;s right!  Due to the base rate fallacy, a 99.9% accurate terrorist detector&#8217;s alarms are false positives 99.9998% of the time.  Oops.</p><p>What do you bet the real FAST isn&#8217;t 99.9% accurate, either?</p><p>I next attended the <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#PanelEFF">EFF Year in Civil Liberties panel</A> for a summary of legal issues in information security, privacy, and free speech.  This was followed by the <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-speakers.html#PanelDCG">Hackerspace Panel</A>, about hackerspaces and DefCon groups around the country and what they do to encourage innovation and bring hackers, makers, and other interested people together.  Both panels went very well, especially given that the Q&#038;A nature of panels often makes them hit-or-miss.</p><p>Friday night at DefCon is surprisingly free of events &#8212; about all that&#8217;s going on is the Black Ball and the DefCon Pool Party.  I met up with the DC206 group again, had some dinner, and mostly hung out at the pool party for the evening and discussed the day&#8217;s events and other topics in hackerdom.  Frankly, talking about interesting topics (in a hot tub outside with DJs spinning techno in the background, no less) beats most parties anyway.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=xXeqCMbic7k:0zv6lgczaKs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=xXeqCMbic7k:0zv6lgczaKs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=xXeqCMbic7k:0zv6lgczaKs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=xXeqCMbic7k:0zv6lgczaKs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=xXeqCMbic7k:0zv6lgczaKs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=xXeqCMbic7k:0zv6lgczaKs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/08/10/defcon-19-day-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>BlackHat USA 2011, Day 2</title><link>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-2/</link> <comments>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-2/#comments</comments> <pubDate>Thu, 11 Aug 2011 05:03:49 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[risk]]></category> <category><![CDATA[society]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=135</guid> <description><![CDATA[The second day of BlackHat started out with a keynote by Mudge. I attended this one despite the normally-dull nature of BlackHat keynotes, because while Mudge is a Fed now (he works for DARPA), he has a long history as a contributor to hacker culture and I wanted to hear what he had to say. [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>The second day of BlackHat started out with a keynote by Mudge.  I attended this one despite the normally-dull nature of BlackHat keynotes, because while Mudge is a Fed now (he works for DARPA), he has a long history as a contributor to hacker culture and I wanted to hear what he had to say.  He introduced a DARPA program called Cyber Fast Track (it&#8217;s not government if it doesn&#8217;t have &#8220;cyber&#8221; in the name, after all) that allows small companies and even hackerspaces to receive grants to do infosec research, without having to jump through the hoops and fill out the forms for traditional government financing, all of which are designed for huge government contractors like Lockheed Martin and are nigh-impossible for individuals and startups.  I appreciate the work he&#8217;s doing, and especially the fact that accepting these grants involves giving DARPA only government-use rights and not signing over the IP for the research.</p><p>Next I went to Chris Paget&#8217;s <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Paget">overview of the Final Security Review for Windows Vista</A>.  Since I&#8217;m someone who&#8217;s actually done Final Security Reviews for Microsoft and is part of the team that owns the Security Development Lifecycle, there was nothing here I didn&#8217;t know.  However, Chris gave a very favorable review of Microsoft, and it was clear that she really appreciated the work Microsoft does in securing their products.  For all the bad press Microsoft used to get in security, Microsoft has the most mature and complete security processes in the industry, and this is a remarkable turnaround when you look at where they were in 2001.  It&#8217;s good to know that even on the much-maligned Vista they gave Chris and her team full access to everything and everyone remotely relevant, and got a very good return on investment in terms of security bugs fixed.</p><p>I missed the next session to pick up my DefCon badge.  In my five years of attending DefCon, they have run out of badges every time, thanks to DT underestimating attendance (each DefCon has been much bigger than the last, recessions notwithstanding.)  As a result, everyone queues up early to get one, making for hours-long lines.  Though this year they went for a non-electronic badge, and thus at least had them on time, they did still run out by midday Saturday.  Lines were about an hour at BlackHat, and apparently ran to over two at the Rio.</p><p>In the afternoon, I dropped into Moxie Marlinspike&#8217;s <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Marlinspike">SSL and the Future of Authenticity</A>.  Moxie is worried about the constant compromises of SSL Certificate Authorities &#8212; many have had bugs in them that made it possible to get real, valid certificates issued to you for other people&#8217;s domains (e.g. google.com, or your bank), thus making it possible to eavesdrop on SSL communications in a man-in-the-middle scenario.   One of the most-public breaches was the attack on Comodo that resulted in many false certificates being generated for some of the most important sites on the Web.  But what happened to Comodo?  Nothing!  The CA system has no ability to change.  Browsers trust Comodo, and even if we don&#8217;t like the idea of trusting them anymore &#8212; when they have been proven untrustworthy &#8212; there&#8217;s nothing to do about it.  If browser vendors dropped Comodo, 20-25% of all secure sites on the Web would stop working.  Moxie proposed a new system (he demonstrated it with a Firefox plugin called Convergence) wherein the user selects trustworthy parties, called notaries, which verify certificates for him.  The notary system will prevent a man-in-the-middle attack just as well as the CA system does, and if you distrust a notary you can just switch to others, and nothing breaks.  The user chooses who to trust.  On one hand, this does give trust agility &#8212; the ability to change who you trust &#8212; which Moxie highly values, and it does prevent man-in-the-middle attacks unless the attacker is very close (from a network-topology standpoint) to the destination host (which is unusual &#8212; in most MitM attacks, the attacker is very close to the source host, not the destination.)  On the other hand, I&#8217;m not quite convinced &#8212; the system does not prove authenticity, only that no MitM is present, so it doesn&#8217;t really substitute for the CAs.  However, I&#8217;d say my friends and I spent more time discussing this talk than any other at BlackHat or DefCon, so right or wrong he got us thinking, which can only be good in the long run.  The CA system really is broken, and it&#8217;s untenably fragile &#8212; if <I>one</I> CA has its private key widely distributed, everyone will be able to make fake SSL certificates forever.  And there are thousands of CAs.</p><p>I went up to IOActive&#8217;s IOAsis suite at the top of the Forum Tower in lieu of the next BlackHat session.  I&#8217;m not sure what actually happened between BlackHat and IOActive this year, but for the first time since I&#8217;ve attended the conference, IOActive had no official presence at the conference (whereas before they&#8217;ve been one of the top-tier sponsors) and ran their own parallel events at Caesars instead.  I had a pass to IOActive&#8217;s events as well &#8212; spend five years in infosec in the Seattle industry and it&#8217;s hard not to know half of IOActive, particularly their CEO who seems to have the remarkable ability to remember everyone she meets, instantly and forever.  I went to a talk they hosted about malware tools like Spy Eye and Zeus.  Overall, they&#8217;re remarkable professionally-developed tools, with high-quality tutorials and documentation.  They really make being a criminal easy, and if you happen to live in a non-extradition country like Russia, it turns out crime <I>does</I> pay.</p><p>Finally, I went to a talk about the latest <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Laurie">Chip &#038; PIN exploits</A>.  I have to admit, as an American, Chip &#038; PIN exploits always seem kind of lame.  They boil down to &#8220;with this amazing exploit, we can make European credit cards <I>almost</I> as insecure as American ones are <I>all the time</I>!&#8221;  The fact that if you steal a credit card you can, you know, buy stuff with it until the cardholder notices it&#8217;s gone and calls the bank just doesn&#8217;t seem like a revelation.  This said, it is interesting to see some of the dubious security decisions made in this &#8220;secure&#8221; payment system, and Chip &#038; PIN will be coming to the U.S. in the near future.  The worst threat here is not technical but legal &#8212; in most European countries, the fact that a transaction happened via Chip &#038; PIN is considered <I>prima facie</I> proof that you authorized the transaction and are fully liable &#8212; either that, or you were negligent with your PIN and still fully liable.  The fact that it&#8217;s possible to make these transactions without a PIN makes this dangerous.</p><p>At this point, BlackHat USA 2011 was over.  I headed back up to IOActive&#8217;s IOAsis suite for their post-conference reception.  I not only met up with several people from IOActive, but I also happened to strike up a conversation with someone who informed me that she was with the <A
HREF="http://www.dc206.org/">DC206 group</A> &#8212; the local DefCon club here in Seattle that meets at <A
HREF="http://www.blacklodgeresearch.org/">The Black Lodge</A> about 10 miles from here.  We quickly found we had several friends in common, and she introduced me to the other DC206/Black Lodge people at the party.  This worked out very well, as I ended up hanging out with them for the next three days of DefCon, and had a lot of great conversations with a very interesting mix of security pros, makers, and hackers as a result.  Though I&#8217;ve been by the Black Lodge and DC206 events before, I plan to make an effort to be present for more of them in the future.</p><p>We went to the Microsoft party at the Haze nightclub in Aria, primarily because given the youth of the Aria property, none of us had ever seen it before.  The party itself wasn&#8217;t bad &#8212; quite good compared to last year&#8217;s event &#8212; and they had a nerdcore rapper performing (I honestly don&#8217;t remember if it was DualCore or MC Frontalot, having encountered both of them multiple times during the week.)  However, we stayed only briefly then moved to the Rio, where we hung out with other DefCon attendees at the pool.  The Rio was kind enough to keep the pool open until 1am (much later than normal) for DefCon attendees, and even until 2am on subsequent nights, which was quite appreciated.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Odrec-oEQZU:wo2usWseiB0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Odrec-oEQZU:wo2usWseiB0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Odrec-oEQZU:wo2usWseiB0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Odrec-oEQZU:wo2usWseiB0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Odrec-oEQZU:wo2usWseiB0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Odrec-oEQZU:wo2usWseiB0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>BlackHat USA 2011, Day 1</title><link>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-1/</link> <comments>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-1/#comments</comments> <pubDate>Thu, 11 Aug 2011 04:07:55 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[mitigations]]></category> <category><![CDATA[products]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=133</guid> <description><![CDATA[I spent last week in Las Vegas, for BlackHat USA 2011 and DefCon 19 &#8212; my annual security conference pilgrimage. Overall impression: the quality of the actual presentations was below-average this year, but it was still an educational experience, a good professional networking event, and probably the most fun I&#8217;ve had at DefCon so far. [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>I spent last week in Las Vegas, for <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-home.html">BlackHat USA 2011</A> and <A
HREF="https://www.defcon.org/html/defcon-19/dc-19-index.html">DefCon 19</A> &#8212; my annual security conference pilgrimage.  Overall impression: the quality of the actual presentations was below-average this year, but it was still an educational experience, a good professional networking event, and probably the most fun I&#8217;ve had at DefCon so far.</p><p><lj-cut>Since work wouldn&#8217;t allow me to book travel until July 1st, I had to stay across the street from BlackHat, at the Flamingo.  It&#8217;s an okay place, though my room&#8217;s wired Internet and one of the lamps was broken, as well as something else unimportant that I have now forgotten.  But it&#8217;s as close to Caesars as you can get without actually being in Caesars.  Next year I&#8217;ll book a room in Caesars&#8217; Palace Tower (particularly ideal, since its elevator actually goes straight to the conference center) six months ahead of time, and just cancel it if work decides not to send me to the conference &#8212; the deposit is refundable, so I won&#8217;t be out anything.</p><p>BlackHat&#8217;s had the usual (for the last few years) dull government keynote speaker (Ambassador Cofer Black this year, who said &#8220;cyber&#8221; about 100 times, as only government speakers <I>ever</I> do) for the first day.  I spent a bit of time at a <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Ramachandran">WiFi Penetration Testing Workshop</A>, followed by a very interesting talk on <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Johansen">Google Chrome OS</A>.  The gist of it is that in Chrome OS, since the browser is the operating system, a cross-site scripting exploit (which is very common and very easy) becomes the equivalent of administrative remote code execution on a conventional OS like Windows or MacOS.  Since an XSS can call Chrome OS&#8217;s APIs, clicking one malicious link can give an attacker full access to all data for all applications on the system.  While I don&#8217;t use Chrome OS (and, frankly, neither does anyone else), rumors that Windows 8 will support DHTML-based applications (like all of Chrome OS&#8217;s apps are) make me hope that the Windows 8 team is considering exploits like this.</p><p>Next was Dan Kaminsky&#8217;s talk, <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Kaminsky">Black Ops of TCP/IP 2011</A>.  While it sure beat last year&#8217;s Kaminsky talk (&#8220;Hey, let&#8217;s talk about DNSSEC!  By the way, did I mention I started a new company that makes DNSSEC tools?&#8221;), the description was rather misleading &#8212; he spent a third of the talk talking about BitCoins (short-short version: the BitCoin system does not scale well, and unless used <I>very</I>carefully is not anonymous), then talked a bit about various sequence-number prediction vulnerabilities (well, sort-of-vulnerabilities), and showed off a tool (&#8220;nooter&#8221;) that can detect non-neutral networks (i.e. networks, like your ISP, that may be favoring some companies over others for extra cash rather than providing you a straightforward Internet connection.)  The nooter tool was kind of clever, though, and it really would detect non-neutral ISPs, which is a valuable public service even if, well, not all that interesting.</p><p>I missed a <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Borgaonkar">talk on femtocells</A> that I&#8217;ll have to catch on video, as it sounds interesting.  Femtocells are the cell-network extension terminals you can get put in your house if you have terrible cell reception, but since this amounts to the cell phone company giving you physical control of an extension of their network, they&#8217;re apparently eminently hackable.  But instead, I went to a talk on <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#McGrew">post-exploitation forensics with Metasploit</A>.  He made a module for Meterpreter that allows you, the attacker, to remotely mount a block device from a compromised victim machine.  As a result, you can actually access the disk as if it were local, even to the point of using forensic imaging tools like EnCase on it.  It&#8217;s slow, of course, but this brings capabilities to every hacker that&#8230; well, that the FBI and NSA have probably been doing to people for several years now.</p><p>I skipped the talk on <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Dinaburg">bit-squatting</A>, because I felt the description essentially encapsulated all there was to say about the topic.  Due to quantum mechanics, thermodynamics, and other inescapable laws of physics, computers make one-bit errors pretty frequently.  If you register a domain that is 1 bit off from a real domain, occasionally (<I>very</I> occasionally) someone who types in the real domain name perfectly fine will get sent to your domain instead.  So if you are running a high-sensitivity business site, you might want to register all the valid 1-bit-off versions of your domain name, too, to keep malicious people from squatting it.  It&#8217;s just typo-squatting with binary.  From talking to people who went to the talk, they pretty much agreed that this could have been a 10-minute talk instead of 75.</p><p>Instead, I hit <A
HREF="http://blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Perkins">Aerial Cyber-Apocalypse</A>.  These people bought a cheap Army target drone, replaced the engine with electric, and added WiFi, GSM, and Bluetooth sniffers to it.  The result: a tiny UAV, with GPS-guided autopilot, that can fly autonomously, circle an area, and eavesdrop on all the wireless networks and Bluetooth devices there, as well as hijacking nearby cell phones.  Plus you can connect to the UAV via 900MHz radio and actually launch proactive attacks over the WiFi.  Suddenly wireless networks inside a walled or fenced compound aren&#8217;t so safe.  Though what this really made me think is &#8220;So, less than $2000 will make you a little aircraft, capable of carrying 20-50 pounds, that&#8217;s GPS guided and can take off, fly for over an hour, and land on its own on a 40-foot runway without any external control.  Why exactly do drug smugglers build manned submarines instead of building these things by the dozen?  20-50 pounds of coke is not insignificant.&#8221;</p><p>Also during the day, Microsoft announced a $200,000 prize for development of the best new mitigation technology of the year.  This is actually kind of neat &#8212; companies pay bug bounties all the time, but a prize not for finding something wrong but for finding a way to <I>prevent</I> exploits is new.  They&#8217;re looking for things like StackGuard, DEP, and ASLR that have really made modern OSs much harder to exploit than older versions (well, except MacOS, which falls over if you blow on it.)  On one hand, $200,000 is a lot of money, but on the other hand, you&#8217;d think someone who developed something like this would make a lot more money just starting a company to sell it instead of handing it to MS for a prize.  Anticipating this, the terms of the contest say that collecting the prize gives MS the non-exclusive right to <I>use</I> the technology if they wish &#8212; including building a version of it into Windows if they think it appropriate &#8212; but does not sign over the IP to Microsoft.  You retain ownership.</p><p>The evening&#8217;s <A
HREF="http://pwnies.com/nominations/">Pwnie Awards</A> included a well-deserved lifetime achievement award, and some very amusing award categories &#8212; all five nominees for &#8220;Most Epic Fail&#8221; were divisions of Sony, and the award for &#8220;Epic 0wnage&#8221; had nominees of Anonymous for the HBGary hack, LulzSec for hacking <I>everyone</I>, Bradley Manning, and Stuxnet.  &#8220;Worst Vendor Response&#8221; went quite deservedly to RSA, for essentially losing the keys to the kingdom and then trying to cover it up, resulting in the Chinese breaking into Lockheed Martin.</p><p>For the evening, I went to the private Qualys reception at Yellowtail restaurant in the Bellagio and ate some sushi, while chatting with someone visiting from Germany.  I then moved over to McAfee&#8217;s party atop Chateau at the Paris, where I spent a lot of time talking to security pros, as well as reminiscing about 1990s games with someone in a DOOM shirt (it said &#8220;IDDQD&#8221; and &#8220;IDKFA&#8221; on it.)  Alas, I spent a little too much time there, as by the time I left to head to the WhiteHat Security/Accuvant Labs party (they had Crystal Method playing) at PURE, the club was full and they weren&#8217;t letting anyone else in, even those like me with invitations.  So I took a taxi over to the Palms to drop into the Rapid7 party.  Rapid7 (owners of the fantastic, indispensable, and free Metasploit tool) threw by far the best BlackHat party I&#8217;ve ever been to &#8212; normally these are fairly dull events (95% male, mostly standing around trying to talk over the music), but this was an actual party &#8212; I mean, people were actually <I>dancing</I> on the dance floor, which is unheard-of for a BlackHat party.  Admittedly, part of what made it good was that Moon (the club on top of the Palms) is an incredible space &#8212; top of a skyscraper, roof open to the sky, balconies overlooking the Strip and the city on all sides, multiple levels so that there was both a &#8220;loud&#8221; area and a &#8220;quiet&#8221; (relatively) area so that both talkers &#038; partiers could have a good time, etc.  Still, it was a good time and pretty impressive for a vendor party.  And thus ended Day 1.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_uKNEMlxGRg:iPNhbRncPBw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_uKNEMlxGRg:iPNhbRncPBw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=_uKNEMlxGRg:iPNhbRncPBw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_uKNEMlxGRg:iPNhbRncPBw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=_uKNEMlxGRg:iPNhbRncPBw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_uKNEMlxGRg:iPNhbRncPBw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/08/10/blackhat-usa-2011-day-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Decrypting bin Laden’s Hard Drives</title><link>http://perimetergrid.com/wp/2011/05/05/decrypting-bin-ladens-hard-drives/</link> <comments>http://perimetergrid.com/wp/2011/05/05/decrypting-bin-ladens-hard-drives/#comments</comments> <pubDate>Thu, 05 May 2011 21:52:56 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[terrorism]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=130</guid> <description><![CDATA[With the news that the raid on Osama bin Laden's compound resulted in the capture of at least 10 hard drives and over 100 miscellaneous data storage devices (CDs, DVDs, flash drives, floppy disks, etc.), a common question that's come up on news sites is "So, how likely are we to be able to decrypt these things?  How good is the best non-government-grade encryption, anyway?"<p></p> ]]></description> <content:encoded><![CDATA[<p>With the news that the raid on Osama bin Laden&#8217;s compound resulted in the capture of at least 10 hard drives and over 100 miscellaneous data storage devices (CDs, DVDs, flash drives, floppy disks, etc.), a common question that&#8217;s come up on news sites is &#8220;So, how likely are we to be able to decrypt these things?  How good is the best non-government-grade encryption, anyway?&#8221;</p><p>Pretty good.  The actual algorithm used is generally AES-256, which is so far as anyone knows unbreakable.  The only known way to bypass it is by guessing the key, and guessing a 256-bit key is computationally infeasible.  Imagine the NSA has a computer that can break 56-bit DES &#8212; the standard government code of a decade ago &#8212; in a single second.  If they had a <em>billion</em> of those computers (vastly more than they do, even though the NSA has acres of supercomputers), it would still take 5&#215;10<sup>42</sup> years to crack a single AES-256 key &#8212; that&#8217;s a billion billion billion billion times the age of the Universe.  It cannot be done.</p><p>But here&#8217;s the good news for people trying to break into Osama bin Laden&#8217;s hard drives &#8212; they probably don&#8217;t need to crack AES-256.  Implementing a crypto algorithm is really the easy part of cryptography &#8212; the hard part is key management.  How do you keep track of the key (which is basically a 77-digit number) and make it usable by people?  There are a variety of potential weaknesses:</p><p>1.) Crypto software often has bugs or environmental factors that leak keys.  AES may be unbreakable, and software like TrueCrypt and PGP implement AES, but is their actual implementation perfect?  It may not be &#8212; there may be bugs in the software that make extracting the key possible.</p><p>2.) Software doesn&#8217;t run in a vacuum.  For instance, when running software on Windows, segments of code and data not in use are swapped out to disk.  If the crypto key happened to be in memory and was swapped out, that key might remain on the disk for quite some time.  A skilled attacker using forensics software might be able to obtain some or even all of the key this way.</p><p>3.) Because no one can remember a 77-digit number, generally not only is the data on a disk encrypted, but the key itself is encrypted with a password and stored next to the data.  Unless the password is 50+ characters long, it&#8217;s actually a lot easier to try every possible password than it is to try every possible key.  And short passwords (<12 digits to those of us in the civilian world, maybe up to 15-16 for the NSA) can be cracked instantly using a rainbow table.  What's more, people re-use passwords -- if the same password as is used for the crypto software is also used to log into the PC, or into some web sites, or for multiple kinds of encryption, etc., it may be possible to attack some other, weaker system for the password and then use it to decrypt the key.</p><p>The NSA probably has key-extraction scripts already written and ready to go for hundreds of kinds of crypto software, operating systems, etc. to prevent them from having to do the comparatively very hard task of cryptanalysis.</p><p>With Osama bin Laden in particular, they may have another advantage -- due to the fear of CIA/NSA "back doors" in American and European cryptography products, there has been a tendency in Islamist movements to write their own cryptography software.  Ironically, the back doors probably don't exist -- but writing your own cryptography software is almost always a recipe for disaster.  The problem is that anybody can write a security system so strong that <em>they</em> can&#8217;t figure out how to break it, and many times they mistakenly assume that means <em>nobody</em> can figure out how to break it.  Almost everybody gets cryptography wrong the first few times they try to implement it; if bin Laden were using some sort of &#8220;homebrew&#8221; crypto that hasn&#8217;t been peer-reviewed by a few dozen cryptanalysts, it almost certainly has a key-leaking bug in it somewhere.</p><p>Overall, despite that consumer-grade encryption is actually very strong and computationally infeasible to break, it is extremely likely that the NSA will be able to bypass whatever crypto Osama bin Laden used on his hard drives &#8212; if, indeed, he used any at all.  They just won&#8217;t do it by attacking the crypto.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=603w7lVDo28:PPqeetQgpRs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=603w7lVDo28:PPqeetQgpRs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=603w7lVDo28:PPqeetQgpRs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=603w7lVDo28:PPqeetQgpRs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=603w7lVDo28:PPqeetQgpRs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=603w7lVDo28:PPqeetQgpRs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2011/05/05/decrypting-bin-ladens-hard-drives/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Useless Password Advice</title><link>http://perimetergrid.com/wp/2010/10/12/useless-password-advice/</link> <comments>http://perimetergrid.com/wp/2010/10/12/useless-password-advice/#comments</comments> <pubDate>Tue, 12 Oct 2010 19:10:26 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[authentication]]></category> <category><![CDATA[mitigations]]></category> <category><![CDATA[passwords]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=126</guid> <description><![CDATA[The mainstream press is full of articles telling you how to use secure passwords, like this one in MSNBC or this one in TechNewsDaily. They echo the traditional wisdom on password security &#8212; use a long password, put numbers and symbols and multiple cases in it, and don&#8217;t record it anywhere. Well, I suppose there&#8217;s [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>The mainstream press is full of articles telling you how to use secure passwords, like <a
href="http://www.msnbc.msn.com/id/39631224/ns/technology_and_science-tech_and_gadgets/">this one in MSNBC</a> or <a
href="http://www.technewsdaily.com/how-to-write-the-perfect-password-100128-0118/">this one in TechNewsDaily</a>.  They echo the traditional wisdom on password security &#8212; use a long password, put numbers and symbols and multiple cases in it, and don&#8217;t record it anywhere.</p><p>Well, I suppose there&#8217;s nothing <em>wrong</em> with that, but it&#8217;s usually not very useful.  Let&#8217;s look at the advice in the second article above:</p><p><strong>1.) Don&#8217;t be cute</strong><br
/> Okay, they have a good point here.  Using a password like 123456, qwerty, password, secret, etc. actually will get your password hacked.  If your password is subject to a dictionary attack, it genuinely is very easy to get into your account.  Keep in mind that a &#8220;dictionary&#8221; doesn&#8217;t mean the Merriam-Webster one, though &#8212; it means a wordlist of common passwords, so things like 123456 and major historical dates and most proper names are in the dictionary.  Don&#8217;t use them.</p><p><strong>2.) Longer is better.<br
/> 3.) Use the shift key.<br
/> 4.) Comic book cussing is good.</strong><br
/> These three are sort of true, but usually aren&#8217;t useful.  Assuming all lower-case letters, there are 308 million possible 6-character passwords, yet 208 <em>billion</em> 8-character ones.  Numbers, case, and symbols turn that 208 billion to 722 trillion.  But for passwords on web sites, it&#8217;s irrelevant!  To crack a website password, the attacker has to send each guess <em>to the server</em>.  The proper solution here isn&#8217;t longer passwords for users &#8212; it&#8217;s <em>password lockout</em>.  If after 3 wrong passwords, you&#8217;re required to wait just 5 minutes before you can try again, even that all-lower-case-letters 6-character password will require an average of <em>655 years</em> to crack.  Password lockout makes brute-force hopeless &#8212; so all your password has to be is something not in the dictionary (for hacker values of &#8220;dictionary&#8221;).  More secure sites like banks could implement progressive lockout &#8212; say, after being locked out for 5 minutes three times without a correct password, disabling the account entirely and requiring you to call or otherwise verify your identity.</p><p>The one place this <em>is</em> true, however, is for passwords protecting or being used as cryptographic keys.  If you have an encrypted file, you want the password to be long and complex, because someone who has the encrypted file can try all the passwords he wants as fast as he wants.  There&#8217;s no server to lock him up &#8212; he&#8217;s doing the cracking on his own machine!  But for web site passwords, it just doesn&#8217;t matter at all.</p><p><strong>5. Keep it centered.</strong><br
/> This is just plain silly.  It&#8217;s not remotely true that &#8220;nearly all&#8221; passwords are stored with the last character in clear; in fact, most aren&#8217;t stored at all, using a hash check instead.  This is a particular flaw in one specific password storage routine.  There have been others &#8212; for instance, the old NT LANMAN hashes were split such that a password could be broken into 7-character chunks and each cracked individually, so passwords of 8-13 characters were actually easier to crack in some cases than 7-character ones.  Must we always figure out exactly what password-storage routines every app and website uses, and craft passwords to match?  Of course not.</p><p><strong>6.) Keep it fast, keep it mental.</strong><br
/> If it&#8217;s your ATM PIN, you may have to worry about shoulder surfing.  Likewise if you work for the CIA and there are spies everywhere.  But passwords you use at home?  Probably not a big concern.  And what about writing down passwords &#8212; why not do it?  If the password record is stored in your house, someone would have to burgle you to get it, which is (hopefully) pretty unlikely.  Now, writing it down in a place proximate to attack is a bad idea, of course &#8212; putting your work password on a post-it on your workplace desk, for instance, or writing down your banking &#038; credit card passwords on a paper in your wallet (right next to the credit and debit cards that identify which banks you use and the ID that shows your name&#8230;) is a recipe for getting hacked.  Putting a password list into a <a
href="http://www.mandylionlabs.com/products.htm">dedicated device</a> is very secure, albeit excessive for most people.</p><p><strong>7.) Remain paranoid.<br
/> 8.) Don&#8217;t double up.</strong><br
/> Password rotation and avoiding reuse are actually the best recommendations on the list.  For websites, a simple 6- or 7-letter password you change every 6-12 months and don&#8217;t recycle is probably a great deal more secure than setting your password to &#038;*Q}}@#$7-=[\?~^.</p><p>It's also very hard to remember to do. <img
src='http://perimetergrid.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>9.) Loose lips sink ships.</strong><br
/> This isn't really related to password selection like the others, but yeah, don't tell other people your passwords unless you're entirely comfortable with them being you.  If it's your spouse, fine, but sharing passwords among semi-trusted groups like coworkers is a bad idea, and giving it to anyone on the phone who claims to need it is a terrible one.  (One of the most famous hacks of AT&#038;T's COSMOS billing system back in the 80's came from someone simply calling an operator and saying "Hi, this is Ken [the name of the company CEO at the time].  What&#8217;s the root password?&#8221;)</p><p><strong>10.) Don’t turn your back on your computer.</strong><br
/> Oh, come on, this is why we have screen savers.</p><p>If I were to come up with a list of password security advice, it would look like this:<br
/> 1.) Don&#8217;t use dictionary words, people&#8217;s names, or anything you think might be a common password.  Make up something unique.<br
/> 2.) If the password is to something important &#8212; like your bank account &#8212; change it every few months.<br
/> 3.) Never use the same password for important things as you use for frivolous websites.</p><p>And that would be about it.  Short enough to remember.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Gyfdko8aK0c:hT9lvy0GCIg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Gyfdko8aK0c:hT9lvy0GCIg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Gyfdko8aK0c:hT9lvy0GCIg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Gyfdko8aK0c:hT9lvy0GCIg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=Gyfdko8aK0c:hT9lvy0GCIg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=Gyfdko8aK0c:hT9lvy0GCIg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/10/12/useless-password-advice/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>BlackHat 2010: Day 1</title><link>http://perimetergrid.com/wp/2010/08/12/blackhat-2010-day-1/</link> <comments>http://perimetergrid.com/wp/2010/08/12/blackhat-2010-day-1/#comments</comments> <pubDate>Thu, 12 Aug 2010 17:28:48 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[authentication]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[mitigations]]></category> <category><![CDATA[products]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=115</guid> <description><![CDATA[I&#8217;ve just returned from a trip to BlackHat Briefings USA 2010 and DefCon 18. As always, it was an enjoyable week in Las Vegas learning about the latest research, networking with the surprisingly small world of security professionals, and generally having fun hanging out with a lot of interesting people with the hacker mindset. BlackHat [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just returned from a trip to <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-home.html">BlackHat Briefings USA 2010</a> and <a
href="http://defcon.org/html/defcon-18/dc-18-index.html">DefCon 18</a>.  As always, it was an enjoyable week in Las Vegas learning about the latest research, networking with the surprisingly small world of security professionals, and generally having fun hanging out with a lot of interesting people with the hacker mindset.</p><p>BlackHat started out with a <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-keynote.html">keynote from Jane Holl Lute, Deputy Secretary of Homeland Security</a>.  She gave the sort of banal, predictable speech we expect from a political appointee &#8212; the country needs a secure homeland, dynamic economy, and the rule of law.  &#8220;Cyberspace&#8221; isn&#8217;t a warzone, because wars happen somewhere, kill people, are lawless, and &#8220;cyberspace&#8221; isn&#8217;t like this.  (The one sure sign you&#8217;re listening to a government official is the constant use of the prefix &#8220;cyber-&#8221;.  An even more sure sign is the use of &#8220;cyber&#8221; as a noun by itself, which so far as I can tell is done <em>only</em> by feds.)</p><p>She states that the five essential missions of DHS are to prevent terrorist attack, secure borders (while expediting trade &amp; travel), enforce immigration laws, ensure the safety &amp; security of &#8220;cyberspace,&#8221; and help build a resilient society.  While I really like the emphasis on resilience in her rhetoric, I do wish DHS had more visible efforts in that direction rather than appearing to be wholly focused on prevention.  She also laments that billions have been spent in cybersecurity, but the most fundamental problems still aren&#8217;t fixed, and claims that the administration wants to build a cybersecurity strategy and vision for the nation.  I find this claim curious for two reasons: first of all, billions have been spent on physical security, too, and yet we don&#8217;t seem to have &#8220;fixed&#8221; crime and violence, so why should we expect information security to be any different?  And second, DHS saying we <em>need</em> a &#8220;cybersecurity&#8221; strategy implies that they don&#8217;t <em>have</em> one.</p><p>Jeff Moss seemed far more excited about this talk than its content warranted.  Simple politeness to a speaker, or the effect of his presence on the Homeland Security Advisory Council?  Also, during Q&amp;A one person asked her why, given that the TSA is the laughingstock of the world, we should expect DHS to do any better with the Internet.  (While the question is admittedly a cheap shot and not an actual argument, her response &#8212; which was to say that the TSA is just fine and not mocked throughout the world at all &#8212; did not exactly inspire confidence either.)</p><p>My first session after the keynote was called <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-briefings.html#Grugq">Base Jumping, by the Grugq</a>.  This was one of two major talks about cell phone hacking on GSM this year.  The GSM protocol specification runs dozens of documents and thousands of pages, but according to the Grugq, the important one is GSM 04 08, which defines layer 3.</p><p>GSM is based on TDMA (Time Division Multiple Access,) so decoding is based on time &#8212; the clock in a phone must be synced with the clock in the base station.  Only a tiny amount of data is sent per timeslot.  There are only 23 bytes in a timeslot, so you can do a complete exhaustion fuzzing in 3 days (and he did.)</p><p>Communication is done over a variety of named channels.  BCCH (broadcast control channel) is how a base station sends out its information messages. PCH (paging channel) announces incoming SMS or phone calls. RACH (random access channel) is used by the phone to request a channel, which it gets back over AGCH (access granted channel.)  Opening a channel is slow &#8211; it takes 2-3 seconds.  Since it&#8217;s based on timeslots, can take quite a while for the base station to have an open slot of the appropriate channel to reply in.</p><p>Collisions are frequent since channel number is just 25 bits, and some cheap phones actually hardcode a list of random numbers instead of generating them (apparently generating a 25-bit number is just too hard for them.)</p><p>Police sometimes use IMSI catchers, which impersonate the network and make the phones all hand over their IMSI (International Mobile Subscriber Identifier &#8212; your ID off your SIM card that tells the phone company who you are.)  The protocol is flawed &#8212; the phone authenticates with the network, but the network does not authenticate to the phone, and thus can be impersonated.</p><p>A German group built an open-source baseband for a common, cheap cell phone (the Motorola C118 or C123, about 5 Euro on eBay.).  This can then be hacked to send arbitrary GSM traffic.  Among the Grugq&#8217;s apps were:</p><p>RACHell: request channel allocation, then flood the base station with requests.  This will DoS the entire cell by using all the channels.  A cell can only hold about 1000 users.  Since the cell is backed up to a base station controller (BSC), this attack may take down the BSC as well (which shuts down the whole tower for half a day.)</p><p>IMSI Flood: send IMSI ATTACH messages, indicating a user coming online.  These are sent pre-authentication, and if you send too many random numbers as IMSIs, it can overwhelm the HLR/VLR infrastructure (the database that tells which tower has which phones attached to it) and takes down the whole network.  This could also be used to make police IMSI catchers pretty much useless.  I got the idea that the Grugq had not actually tested this, since taking down a cell network might get a little unwanted attention.</p><p>IMSI DETACH: When phones are turned off, they tell the network they&#8217;re no longer available via sending a single unauthenticated frame.  If you have someone&#8217;s IMSI (which you can look up by phone number for $0.006,) you can send one for someone else, which disables that phone from receiving calls or SMS and cuts off any in-progress phone calls.  The victim can still make new calls, however, which will reattach them to the network &#8212; but if you&#8217;re sending DETACHes every 5 seconds, this will do little good.</p><p>Baseband fuzzing: fuzzing the baseband (the radio in individual phones) by impersonating the tower pretty much causes every phone available to crash.  However, lacking the code for the basebands, the Grugq didn&#8217;t find any remote exploits here.  However, the overall point is that GSM is no longer a walled garden &#8212; anyone can send GSM traffic with minimal equipment now, and protocol security is required.</p><p>The next session I attended was <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-briefings.html#KaneParry">More Bugs in More Places, by David Kane-Parry of Leviathan Security</a>.  This was an overview of the SDKs and security models for Android, Windows Phone 7, BlackBerry, and iPhone.  There was nothing particularly new here, nor did he come to any conclusion as to the superiority or inferiority of any one of the platforms, so I&#8217;m not going to go into details.</p><p>The next talk was <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-briefings.html#Jack">Barnaby Jack of IOActive with the wildly popular topic of jackpotting ATMs</a>.</p><p>Current ATM attacks are mostly skimmers, physical theft, Ram raids (dragging the ATM away with a truck,) card trapping and shoulder surfing PINs, or frontal attack via safe cutting or even explosives.  Barnaby Jack wanted to instead attack the software.  Most new model ATMs are Windows CE based, with an ARM/Xscale processor, remote connection via TCP/IP or dial-up, with SSL support and a Triple DES encrypted PIN pad.  Since the developers of Windows CE developers concerned were more concerned with protection (in the process sense) than security, this provides an opportunity.</p><p>To reverse engineer this, he bought a couple of ATMs and had them delivered to his house (which the delivery people found rather bizarre, but did.)  ATMs boot directly to a proprietary ATM application.  In order to get a shell, he connected a JTAG interface for full debugging access to the processor core, set a breakpoint on CreateProcess(), and replaced the target ATM executable string with explorer.exe.  With explorer, he could connect a USB disk and keyboard and copy files off for offline research, make registry changes permanent (so as to always boot Explorer), create a debugging environment, then set up remote app debugging in Visual Studio.</p><p>The external attack surface is limited to the card reader, keypad, network, and motherboard inputs.  This leads to two possible attack plans &#8212; remote over the network ,or a walk-up attack.  It turns out the walk-up attack is quite possible, since while the cash is protected by a two-inch-thick steel safe, the motherboard is protected by <em>a one-key-fits-all lock you can buy keys for on the Internet</em>.</p><p>With motherboard accessible, you can access USB, SecureDigital, and CompactFlash slots.  On boot, the app code checks these drives for firmware upgrades and applies them.  (And there&#8217;s a reboot switch on the motherboard, too!)</p><p>From a remote perspective, ATMs support remote monitoring and configuration to allow changing splash screens, cash denominations, etc., or even do remote firmware upgrades.  There are multiple levels of authentication, but Barnaby Jack found a vulnerability in this authentication process allowing for a remote authentication bypass.  (He did not disclose his authentication bypass, but said he found it by fuzzing, so this work will probably be duplicated by others.)</p><p>He demonstrated two tools &#8212; one was Dillinger, a remote ATM attack and administration tool which exploits the remote authentication bypass.  It&#8217;s reliable on dial-up or TCP/IP, and exchange scanning with a VoIP wardriver like WarVox is possible.  Dillinger allows management of unlimited ATMs, can test remote bypass, retrieve location &amp; master passwords, upload rootkits, and even retrieve the track data from all the cards that have been inserted into the machine.</p><p>Scrooge, an ATM rootkit, runs on the device hidden in background, activated by special key sequence or custom card.  It runs on any ARM/Xscale ATM, or Intel ones with some tweaks, but must be customized for different ATM models.  It has a keyboard filter that hooks the ATM keypad &amp; side buttons &#8212; SetWindowsHook() is undocumented on CE but still works.  A special key sequence (or a card whose track data spells out &#8220;GIMMEDALOOT&#8221;) launches a menu.  Scrooge captures track data and pin-pad input, and can issue remote commands.</p><p>This is better seen than described.  Here&#8217;s some video of remote ATM hacking with Dillinger:</p><p><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowscriptaccess" value="always" /><param
name="src" value="http://www.youtube.com/v/qwMuMSPW3bU&amp;hl=en_US&amp;fs=1" /><param
name="allowfullscreen" value="true" /><embed
type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/qwMuMSPW3bU&amp;hl=en_US&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p><p>And here we have the aftermath of a physical attack, where he opened the ATM with a key, stuck in a USB drive, and hit the reset button on the motherboard:</p><p><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowscriptaccess" value="always" /><param
name="src" value="http://www.youtube.com/v/fS3Z8Xv-vUc&amp;hl=en_US&amp;fs=1" /><param
name="allowfullscreen" value="true" /><embed
type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/fS3Z8Xv-vUc&amp;hl=en_US&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p><p>The &#8220;777 Jackpot!&#8221; on the screen and the peppy music are a nice touch.</p><p>As for how to prevent these sorts of vulnerabilities in the future, he recommends that ATM vendors offer upgrade options on the physical locks (say to at least making the key unique), implement binary signing at the kernel level to prevent unauthorized firmware upgrades, and disabling remote management on the device.</p><p>For the final presentation of the day, I attended <a
href="http://blackhat.com/html/bh-us-10/bh-us-10-briefings.html#Kaminsky">Dan Kaminsky&#8217;s talk</a>, which was actually not the talk described in the BlackHat documentation at all, but rather an entirely different talk on using DNSSEC to implement public key infrastructure, due to the fact that the DNSSEC root was finally signed (after only 18 years&#8230;) three weeks ago.</p><p>Dan seeks to use DNSSEC to solve a variety of problems, by creating what he calls a Domain Key Infrastructure:</p><ul><li>For users: when you receive an email, you can actually know for certain who it came from.</li><li>For infrastructure buyers: we need strong authentication as much today as we did when trying (and failing) to create PKI in the past, and with DNSSEC we can actually create a working PKI.  60% of security breaches are credential-related.</li><li>For infrastructure builders: DKI will make security products scale, and allow devices to validate the identity of peers.  You can build scalable federated systems.</li><li>For hackers and penetration testers: Dan&#8217;s new company will be actively supporting an aggressive public audit of all DNSSEC and DKI technologies.</li></ul><p>Dan&#8217;s definitely right about one thing &#8212; we aren&#8217;t going to get security via moralizing about user education or waiting for regulation. Will have to deliver a better product as judged by the people who have to run it.</p><p>DNSSEC is simple &#8212; it works just like DNS, but referrals and authoritative records are signed.  Thus, when referred elsewhere, you&#8217;re told not only where the server to ask is, but also how to recognize it.  Keys can lead to other keys.</p><p>DNSsec was complex to deploy because it was designed to allow &#8220;key in a vault&#8221; security, where keys are offline and not generated on demand.  When it was proposed <em>eighteen years ago</em>, CPUs were slow, and some installations are incredibly large (e.g. .com)  Offline keying is cumbersome.  However, there&#8217;s an alternative that&#8217;s relatively simple to deploy.</p><p>Phreebird is a DNSSEC server that&#8217;s simple because it uses online keysigning, just like SSL, SSH, and IPsec.  There is some risk here, of course, but we seem to accept it everywhere else, as everyone keeps keys online for some protocols.  Those who are really concerned about security can use a hardware security module.  Phreebird works as a proxy, and has effectively nothing to configure &#8212; you change the port of the DNS server, run Phreebird, and then supply the signature to your DNS registrar.  It&#8217;s presently implemented as a UDP port forwarder, but they&#8217;re rebuilding it as a Linux mangle table.  It&#8217;s very fast; according to Dan, it&#8217;s an order of magnitude faster than the DNS servers it&#8217;s proxying, so there should be almost no load.  For performance, it caches signed responses, but always passes queries to the real nameserver so that all scenarios work &#8212; but if it gets the same thing, it pulls up the cached signed response instead of resigning.  Phreebird is open source and will be out in the next few weeks.</p><p>Distributed authentication is only interesting if it&#8217;s end-to-end.  The current methods of DNSSEC lookups, chasing &#038; tracing, are blocked by various types of servers, which makes operational implementation difficult.  Phreebird also supports wrapping DNS (and DNSSEC) in HTTP, using a custom DNS server that exposes an HTTP endpoint and takes base64-encoded DNS requests.  They claim there is no performance hit.</p><p>Likewise, while X.509 is flawed (since a certificate just has to chain to one of a few hundred root CAs by way of thousands of untrustworthy intermediaries, and there is no exclusion or delegation,) it can still be used to wrap DNSSEC &#8212; high performance, easy tunneling via DNS over X.509 over SSL.  When one of these certificates is received, you just need to extract all the keys from the trust chain and validate it all.</p><p>From here, Dan got into the more interesting stuff &#8212; what he calls DKI (Domain Key Infrastructure.)  What if you could use DNSSEC to create a working PKI system?  Since DNSSEC lets you strongly authenticate a domain, you can then ask that domain to authenticate users, and trust the response since you have a key for the domain.  To demonstrate this, he presented PhreeShell: federated identity for OpenSSH.  With this modification, .ssh/authorized_keys2 contains identities (e.g. grant@perimetergrid.com) rather than keys &#8212; it makes delegating access trivially easy.</p><p>Trusting DNSSEC eliminates the scaling issues of federated PKI.  Really, you&#8217;re not trusting DNSSEC so much as ICANN, but it seems a fairly good choice for a single root keyholder in that it has external political constraints and a delegation system designed to prevent operational dependency.</p><p>So how do we implement DKI everywhere?  Eventually, by adding the functionality to everything &#8212; link in LDNS or libunbound.  On Linux, you can make most things work by patching X509_verify_cert in OpenSSL, because practically everything calls out to it for crypto, but there&#8217;s nothing so simple in the browser world, where IE uses CryptoAPI, Firefox and Chrome use NSS, and most apps are cross-platform.  For this, Dan has an app called Phoxie, which is a remote validation proxy for production browsers that allows certificate verification against DNSsec in current browsers.  It&#8217;s also possible to make self-certifying URLs, but they look horrible and become unusable if the certificate ever expires or needs rotated, so they&#8217;re not a good solution.</p><p>Finally, we may get secure email out of this.  If we can verify what server sent an email (which with DNSSEC we can), we can also in many cases be sure who sent it (as if the email came from a &#8220;respectable&#8221; domain it wouldn&#8217;t let users send mail as each other.)  Right now the user experience around secure email is minimal, but our faith in it has been low &#8212; if most email could be verified, we could easily get to a world where email clients only stated mail was &#8220;From&#8221; someone if this fact had been cryptographically verified, and otherwise used some suspicion-inducing verbiage (e.g. the X-Supposedly-From header.)</p><p>Overall, Dan&#8217;s talk was interesting, but I find my enthusiasm is rather limited by lack of faith any of this stuff will be <em>used</em>.  DNSSEC has been around for 18 years and no one uses it yet; having the root signed is a wonderful step and I hope it leads to the revolution in PKI Dan&#8217;s touting, but I also feel like I&#8217;ll believe it when I see it.</p><p>After all the talks, I dropped in on parties thrown by Mandiant, IOActive, and NetWitness, but unfortunately had to skip Tenable and Rapid7.  There are so many parties, receptions, and events that it&#8217;s impossible to visit all or even most of them.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=gUsHgl9lf94:3DI-G2tbWJA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=gUsHgl9lf94:3DI-G2tbWJA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=gUsHgl9lf94:3DI-G2tbWJA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=gUsHgl9lf94:3DI-G2tbWJA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=gUsHgl9lf94:3DI-G2tbWJA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=gUsHgl9lf94:3DI-G2tbWJA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/08/12/blackhat-2010-day-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The Trouble With Fighting Your Users</title><link>http://perimetergrid.com/wp/2010/08/10/the-trouble-with-fighting-your-users/</link> <comments>http://perimetergrid.com/wp/2010/08/10/the-trouble-with-fighting-your-users/#comments</comments> <pubDate>Tue, 10 Aug 2010 21:39:27 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[risk]]></category> <category><![CDATA[society]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=117</guid> <description><![CDATA[Companies like Apple that try to control devices purchased by end-users create their own serious security problems. It turns out that Apple trying to protect itself from you makes you vulnerable to attackers. Apple doesn&#8217;t want you to run anything on your phone that they didn&#8217;t approve. But of course, customers want to run whatever [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Companies like Apple that try to control devices purchased by end-users create their own serious security problems.  It turns out that Apple trying to protect itself from you makes you vulnerable to attackers.</p><p>Apple doesn&#8217;t want you to run anything on your phone that they didn&#8217;t approve.  But of course, customers want to run whatever they want on the phone they bought, regardless of if Apple likes it.  This creates end-user demand for jailbreaks &#8212; software that attacks their phone&#8217;s OS to remove Apple&#8217;s restrictions.  Whenever one is discovered, Apple patches it, but another one is always discovered soon afterwards.</p><p>Right now, there&#8217;s a website, <a
href="http://jailbreakme.com">jailbreakme.com</a>, that offers the easiest, most convenient jailbreak yet.  You browse to the site on your iPhone, iPad, or iPod Touch, and suddenly it&#8217;s jailbroken and the non-Apple application stores like Cydia are available.  It&#8217;s very slick, and much easier than any previous jailbreak, many of which required modifying OS images, caching key signatures from Apple, and other tasks that required at least some moderate technical savvy.  People really like jailbreakme.com &#8212; it makes taking ownership of your own phone quick and easy!</p><p>How does it work?  Well, it&#8217;s a combination of two exploits.  When you visit the site, it loads a PDF that exploits a bug in Apple&#8217;s font rendering (iPhones render PDFs themselves, using Apple code &#8212; Adobe&#8217;s reader is not even involved) to load and run arbitrary code.  Then <em>that</em> code exploits another vulnerability, in the iOS kernel, to run code as root, outside the app sandbox.  This third piece of code jailbreaks the phone and installs the necessary backdoors to wrest control away from Apple and give it to the user.</p><p>But&#8230; there&#8217;s a problem here.  The fact that this works means that there&#8217;s an unpatched remote root exploit on every iOS device.  That is, on an iPhone, iPad, or iPod Touch, any website you visit or any email you receive can silently load and run arbitrary code on your device, which will then reside there permanently and do whatever the attacker wants.  How do you know this hasn&#8217;t already happened to your phone, and your location isn&#8217;t being tracked, your calls tapped, your SMS messages and web passwords forwarded to some Russian crime syndicate?  You don&#8217;t.  There&#8217;s no way to know, because there&#8217;s no anti-malware software for iOS &#8212; Apple would never approve it anyway, since you&#8217;re not &#8220;supposed&#8221; to be able to run anything but Apple-approved apps anyway.</p><p>In a normal, open ecosystem, like that on PCs, this problem would be less likely to happen.  If a security researcher discovered remote exploits like this, they would often follow responsible disclosure practices, and contact the vendor and let them know about the problem so it could be fixed.  But they&#8217;re not willing to do this for Apple &#8212; because they need the remote exploit to have unfettered access to their own phones!</p><p>Apple has created a situation where someone acting in good faith to help iPhone users use their own devices has to keep security flaws away from Apple, so that they can also be used by malicious attackers.  Apple and Apple&#8217;s users are on opposing sides &#8212; helping Apple hurts legitimate users, yet helping users jailbreak also means helping attackers exploit them.</p><p>What&#8217;s more, when Apple releases a patch to iOS to make it no longer vulnerable to these attacks, they will undoubtedly reverse the jailbreaks in the same patch.  Thus, <em>users will not want to install the patch</em>, since it will kill functionality that they want on their phones!  In the IT world, it&#8217;s hard enough to get people to patch even when there&#8217;s no downside, and Apple&#8217;s creating customers who deliberately avoid patches and updates, since most of Apple&#8217;s &#8220;security fixes&#8221; are aimed at protecting Apple from customers, not protecting customers from harm.</p><p>Come on, Apple, would a settings checkbox marked &#8220;Allow execution of unsigned code&#8221; be so bad?  You could even pop up a warning that turning it on makes you ineligible for Apple support.  Is it really better to force your userbase to help hackers?</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ms6aFtV6uRI:B2FxA_-TW7k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ms6aFtV6uRI:B2FxA_-TW7k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=ms6aFtV6uRI:B2FxA_-TW7k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ms6aFtV6uRI:B2FxA_-TW7k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=ms6aFtV6uRI:B2FxA_-TW7k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ms6aFtV6uRI:B2FxA_-TW7k:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/08/10/the-trouble-with-fighting-your-users/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Secure Use of Cloud Storage</title><link>http://perimetergrid.com/wp/2010/08/03/secure-use-of-cloud-storage/</link> <comments>http://perimetergrid.com/wp/2010/08/03/secure-use-of-cloud-storage/#comments</comments> <pubDate>Wed, 04 Aug 2010 05:39:50 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[mitigations]]></category> <category><![CDATA[SOA/XML]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=110</guid> <description><![CDATA[At BlackHat Briefings USA 2010 in Las Vegas this year, I presented a session entitle Secure Use of Cloud Storage, covering ways that developers can use (and misuse) cloud storage systems like Microsoft&#8217;s Windows Azure Storage and Amazon&#8217;s Simple Storage Service (S3) and SimpleDB. While the released versions are available on the BlackHat official website, [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>At BlackHat Briefings USA 2010 in Las Vegas this year, I presented a session entitle Secure Use of Cloud Storage, covering ways that developers can use (and misuse) cloud storage systems like Microsoft&#8217;s Windows Azure Storage and Amazon&#8217;s Simple Storage Service (S3) and SimpleDB.</p><p>While the <a
href="http://www.blackhat.com/html/bh-us-10/bh-us-10-archives.html#Bugher">released versions</a> are available on the <a
href="http://www.blackhat.com">BlackHat official website</a>, I&#8217;m also making these available here for those who are interested.  You can download either the <a
href='http://perimetergrid.com/Secure%20Use%20of%20Cloud%20Storage.pptx' >unabridged slide deck</a> (which was cut down considerably to fit in the BlackHat 75-minute time limit) or the <a
href="http://perimetergrid.com/Secure%20Use%20of%20Cloud%20Storage%201.0.docx">complete whitepaper</a>.  These are both more recent than the versions on the BlackHat site.</p><p>In addition, I&#8217;ll be posting writeups of the talks I attended at BlackHat 2010 and DefCon 18 in the coming days.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bHxSDyWPMfw:he5iVllegfU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bHxSDyWPMfw:he5iVllegfU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=bHxSDyWPMfw:he5iVllegfU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bHxSDyWPMfw:he5iVllegfU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=bHxSDyWPMfw:he5iVllegfU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bHxSDyWPMfw:he5iVllegfU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/08/03/secure-use-of-cloud-storage/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DefCon 18 Schedule</title><link>http://perimetergrid.com/wp/2010/07/27/defcon-18-schedule/</link> <comments>http://perimetergrid.com/wp/2010/07/27/defcon-18-schedule/#comments</comments> <pubDate>Tue, 27 Jul 2010 16:08:39 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=103</guid> <description><![CDATA[If you happen to want a machine-readable (e.g. XML or iCal) version of the DefCon 18 schedule, my lovely wife made one which I&#8217;ve posted one on Google Calendar: XML iCal HTML This is accurate as of 7/27, so be aware that more recent schedule changes may not be reflected! I&#8217;ll be attending the conference, [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>If you happen to want a machine-readable (e.g. XML or iCal) version of the DefCon 18 schedule, my lovely wife made one which I&#8217;ve posted one on Google Calendar:</p><p><a
href="http://www.google.com/calendar/feeds/perimetergrid.com_gt9ftosd83p0u5ul0sk9t772ns%40group.calendar.google.com/public/basic">XML</A><br
/> <a
href="http://www.google.com/calendar/ical/perimetergrid.com_gt9ftosd83p0u5ul0sk9t772ns%40group.calendar.google.com/public/basic.ics">iCal</A><br
/> <a
href="http://www.google.com/calendar/hosted/perimetergrid.com/embed?src=perimetergrid.com_gt9ftosd83p0u5ul0sk9t772ns%40group.calendar.google.com&#038;ctz=America/Los_Angeles">HTML</A></p><p>This is accurate as of 7/27, so be aware that more recent schedule changes may not be reflected!  I&#8217;ll be attending the conference, not editing a Google Calendar.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=f1vYJAYJOZY:qOFw4465iz0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=f1vYJAYJOZY:qOFw4465iz0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=f1vYJAYJOZY:qOFw4465iz0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=f1vYJAYJOZY:qOFw4465iz0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=f1vYJAYJOZY:qOFw4465iz0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=f1vYJAYJOZY:qOFw4465iz0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/07/27/defcon-18-schedule/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Google SSL Search</title><link>http://perimetergrid.com/wp/2010/05/24/google-ssl-search/</link> <comments>http://perimetergrid.com/wp/2010/05/24/google-ssl-search/#comments</comments> <pubDate>Mon, 24 May 2010 18:30:22 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[industry]]></category> <category><![CDATA[privacy]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=98</guid> <description><![CDATA[Google has added the ability to access their search engine via SSL.  The interface couldn&#8217;t be simpler &#8212; you just go to https://www.google.com instead of http://www.google.com.  The news media has been quite favorable to this &#8212; after all, search queries are at least semi-private in that you might not want your employer or neighbors to [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Google has added the ability to access their search engine via SSL.  The interface couldn&#8217;t be simpler &#8212; you just go to <a
href="https://www.google.com">https://www.google.com</a> instead of <a
href="http://www.google.com">http://www.google.com</a>.  The news media has been quite favorable to this &#8212; after all, search queries are at least semi-private in that you might not want your employer or neighbors to know what you&#8217;re searching for.  With SSL searches, only Google knows what you&#8217;re searching for.  From a consumer-privacy perspective, it&#8217;s a good thing.</p><p>On the other hand, search is not exactly something people have been clamoring for SSL on.  Implementing SSL for large amounts of web traffic is not cheap (done right it&#8217;s not terribly expensive, either, but it&#8217;s an engineering effort at least,) so normally it&#8217;s only done in response to either regulation or customer demand.</p><p>I think Google has an ulterior motive here &#8212; possibly two of them.  Current web browsers, as a privacy feature, will not pass extra headers from an SSL site to a non-SSL site or vice-versa.  This means that if I click a link on the SSL Google site, the web site I clicked on will not receive a Referrer: header indicating what I had searched for on Google.</p><p>(Incidentally, yes, this <em>does</em> mean that right now every time you click a link or ad on Google, the site you click through to gets to see what you searched for.  It&#8217;s always been this way, most people just don&#8217;t know it.)</p><p>There&#8217;s a big business in website analytics.  People run various statistics packages on their website to find out what searches lead to them, what sites link to them, etc.  It&#8217;s critical for optimizing marketing or advertising strategies.  There are also several analytics services that will do this for you, including Google&#8217;s own product Google Analytics.  If everyone started using SSL for searches, all of these would be broken&#8230; well, except Google&#8217;s of course, because Google Analytics doesn&#8217;t need to rely on the Referrer: header &#8212; it has the inside scoop from Google Search itself.</p><p>In addition to this, in the pay-per-click advertising world, conversion tracking is very important.  One advertiser may pay for thousands of keywords and run dozens or hundreds of ads.  They track each click all the way through to sales &#8212; in other words, they look not just at which ads people click on, but which ads <em>buyers</em> click on, vs. ads that only attract browsers who don&#8217;t follow through and purchase.  Once again, these usually work via the Referrer: header, which SSL takes away.  And once again, Google offers its own conversion tracking system, which will no doubt still work when all the others are broken.  This one can be worked around &#8212; you can make a third-party PPC conversion-tracking system that doesn&#8217;t use Referrer:, it&#8217;s just a little more work &#8212; but not everyone will work around it.</p><p>Both of these results would mean, in a world where <em>many</em> searches were over SSL, rather than just a tiny fraction as it is today, that advertisers &amp; webmasters would have the choice of either operating &#8220;blind&#8221; or giving all their data over to Google.  And they have a very good reason not to want to do this &#8212; if you&#8217;re an ad buyer, and Google is the supplier you buy from, do you want Google to know exactly what keywords &amp; placements are most profitable to you?  Clearly Google can use this inside knowledge of their customers&#8217; businesses to maximize prices on the most effective advertising spots.</p><p>This is the sort of thing that can lead to an antitrust lawsuit.  So far Google has managed to spin it as a consumer-friendly privacy feature, but we&#8217;ll see if that lasts.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=fV2q_Gjkb6k:Aewb-zcaG6s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=fV2q_Gjkb6k:Aewb-zcaG6s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=fV2q_Gjkb6k:Aewb-zcaG6s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=fV2q_Gjkb6k:Aewb-zcaG6s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=fV2q_Gjkb6k:Aewb-zcaG6s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=fV2q_Gjkb6k:Aewb-zcaG6s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2010/05/24/google-ssl-search/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>BlackHat 2009, Day 2</title><link>http://perimetergrid.com/wp/2009/08/13/blackhat-2009-day-2/</link> <comments>http://perimetergrid.com/wp/2009/08/13/blackhat-2009-day-2/#comments</comments> <pubDate>Thu, 13 Aug 2009 21:04:57 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[anonymity]]></category> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[hardware]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[legal]]></category> <category><![CDATA[networks]]></category> <category><![CDATA[passwords]]></category> <category><![CDATA[risk]]></category> <category><![CDATA[society]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=92</guid> <description><![CDATA[The Thursday keynote was given by Bob Lentz, a Deputy Assistant Secretary of Defense for the United States. His main point was the paradigm shift from network-centric security to what he called content-centric security, and the fact that this devalues the protections around network perimeters. Static defenses don&#8217;t work when all the services being used [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>The Thursday keynote was given by Bob Lentz, a Deputy Assistant Secretary of Defense for the United States.  His main point was the paradigm shift from network-centric security to what he called content-centric security, and the fact that this devalues the protections around network perimeters.  Static defenses don&#8217;t work when all the services being used are distributed and not found behind your firewall; the adversary is effectively always inside your firewall.  Other notable but less positive things from the speech included that the Department of Defense considers &#8220;reducing anonymity&#8221; a strategic goal, and that the government still likes to prefix &#8220;cyber-&#8221; on everything, creating &#8220;cyberczar,&#8221; &#8220;cybertime,&#8221; &#8220;cyber green movement,&#8221; and even &#8220;cyber&#8221; as a standalone noun.</p><p>This year, BlackHat had an entire Cloud Computing track, running all day on Thursday, of which I attended a great deal.  Part of my job involves protecting cloud computing services, so it seemed very relevant, and it&#8217;s certainly a hot topic in the industry right now.  It began with <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Stamos">Alex Stamos, Nathan Wilcox, and Andrew Becherer</a> presenting a lecture on cloud computing models and vulnerabilities.</p><p>They defined cloud computing as not just virtualization, but including general-purpose hosts, central management, application mobility, distributed data, low-touch provisioning, and soft failover.  They looked at three different cloud models: Software as a Service, Platform as a Service, and Infrastructure as a Service, and the differences &amp; vulnerabilities in each.</p><p>The Software as a Service (SaaS) model is to outsource everything.  From a security perspective it&#8217;s not necessarily a bad idea &#8212; the cloud provider probably has a lot more security people than the average company.  On the other hand, you also outsource all your data &#8212; the recent Twitter &#8220;breach&#8221; via somebody logging into Twitter&#8217;s Google Docs account shows the risks this can entail.  You lose the perimeter, endpoint management, the ability to use better authentication than simple passwords, credential quality controls, password reset processes, and realtime anomaly detection (though you hope the cloud provider has some of these things.)  It puts all your eggs in one basket &#8212; if someone can read your email, they can access all your data.  SaaS products include Office Live, Google Apps, and Salesforce.com.  None of these have decent audit &amp; rollback capability; Google Apps at least provides login history (though you have to write code &amp; call an API to get at it) but still no read/write level auditing.  Salesforce.com offers some write logging.  However, the biggest flaw with SaaS models may well be authentication &#8212; all your security relies on a password, with all the vulnerability that entails, and you can&#8217;t even set a strong password policy (for all the good it would do you.)  Google Apps actually lets you use a SAML-based SSO system; with other SaaS apps the best you can do is set a strong password policy via employee education.</p><p>Another issue with SaaS providers is the legal concerns &#8212; the cloud service EULAs tend to promise basically nothing and disclaim all liability.  Also, they forbid malicious traffic &#8212; even pentesting your own app.  There&#8217;s also decreased protection from search and subpoena.  Since the data is stored with someone else, there&#8217;s no Constitutional protection from search, and even statutory protection is usually only for &#8220;communication.&#8221;  Are Google Docs communication?  Courts haven&#8217;t really defined this yet.  The net result of this is that there&#8217;s no need for a warrant, probable cause, or even notice of a search &#8212; you can&#8217;t fight a seizure before it happens, but only after the fact.</p><p>Platform as a Service (PaaS) is the model of having a common development platform provided, yet allowing people to customize their applications.  This is the model of Google AppEngine, Force.com, and (maybe) Windows Azure.  (Azure is a unique case, kind of halfway between PaaS and IaaS; I&#8217;ll come back to this.)  This section of the presentation was rather odd, as they really looked at the common web vulnerabilities (CSRF, XSS, SQL injection) and investigated how the platform protected you from them.  In short, the answer is that they don&#8217;t.  Some of the platforms have some inherent protection available (e.g. Windows Azure apps are typically ASP.NET, which has some built-in XSRF protection via ViewStateUserKey, XSS protection via encoders, and SQL injection via LINQ), but it&#8217;s up to the developer to actually use them.  I found this section somewhat lacking, because it wasn&#8217;t really about the cloud platforms at all, but rather the common web technologies sitting on them.</p><p>The Infrastructure as a Service (IaaS) model is that taken by Amazon EC2 and similar services.  It provides virtual machines with short-lived instances, non-persistent local storage, and available helper services.  Though the presenters thought of Azure as very much a PaaS model, I think it&#8217;s a little fuzzier here &#8212; while Azure does not allow you to choose an operating system (the Windows Azure OS runs on every VM), it does not constrain you to anywhere near the degree of Google AppEngine or Force.com, as you can run arbitrary native code on it.  It would be impossible to use AppEngine or Force.com to run anything but a web site; Azure is like EC2 in that it could be used for any flexible computing task, not just web sites.</p><p>The problems with IaaS services are usually hypervisor flaws or problems in the helper services.  However, they brought up something very new here that I don&#8217;t think any of the current cloud providers consider &#8212; lack of entropy.  Virtual hardware has mostly deterministic timings &#8212; input events don&#8217;t exist and block device events are abstracted.  Thus, entropy is generated very slowly if at all.  What&#8217;s more, in the case of Amazon EC2, since OS images are available to everyone, an attacker can get a copy of the stored entropy pool you&#8217;re using (which will never update after the image is originally created, thus depriving the system of another source of entropy) and eliminate it as well.  The net result of this is that pseudo-random number generators &#8212; even cryptographically strong ones &#8212; are unreliable and may be predictable.  This attack may or may not be practical given the specifics of the system in question, but for now you may not want to build your online casino or public key infrastructure in an IaaS environment!  Cloud providers may actually have to have random number generation as a helper service as well, supported by <a
href="http://en.wikipedia.org/wiki/Hardware_random_number_generator">quantum hardware</a>.</p><p>Next, <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Grossman">Jeremiah Grossman and Trey Ford</a> presented a sequel to last year&#8217;s talk on &#8220;making money the black hat way.&#8221;  Essentially, it was a survey of interesting hacks-for-profit that have been carried out recently.  They noted that hacking activity is up this year (layoffs create more hackers?) and that 69% of attacks are discovered only because a 3rd party tells the company it&#8217;s been hacked.</p><p>Some of the interesting ones: eBay gave away 1000 items for $1 in a &#8220;Holiday Doorbusters&#8221; promotion.  However, almost 100% of them were bought by bots, which was evident because the items were purchased before the item description page was even viewed.  StrongWebmail.com had a contest to give $10,000 to whoever could hack into the CEO&#8217;s webmail account; rather than attacking the servers, the winners of the contest sent the CEO phishing mail with an XSRF in it that stole the contents of the account.  (Amusingly, they got him to open the mail by labeling it &#8220;I think I won.&#8221;)  Grossman &amp; Ford also brought up cookie-stuffing, a type of affiliate fraud that&#8217;s been around for many years; it&#8217;s a well-known technique in the affiliate marketing world (basically you spoof the referrer while iframing the advertiser&#8217;s site on your site, then drive traffic to your site in ways that would not please the advertiser if they knew about it) but was apparently new to most of the BlackHat audience.  They also brought up the technique of using embedded site search to fake authority links, another well-known &#8220;black hat&#8221; SEO technique.  Marketers have apparently also begun spamming Google Maps with fake businesses, so as to come up first in &#8220;local searches&#8221; with their web-based and not-remotely-local businesses.  A man in Britain used Google Earth to find all the lead roofs in London, then steal the lead tile in the middle of the night.</p><p>Some of the more ambitious hacks were more intriguing, though.  One man discovered that you could order &#8220;advance replacements&#8221; for broken iPods from Apple just by giving them a credit card number as collateral; he used low-balance anonymous Visa gift cards to get 9,000 iPods.  Another group put their garage band music in the Amazon and iTunes stores using Tunecore, then bought hundreds of downloads of their own album with stolen credit cards (thus getting a big check from Tunecore.)  One thing to note is that these people got caught only because <em>they weren&#8217;t trying not to</em>.  The iPod guy shipped all 9,000 to his home address; the Tunecore fraud was so blatant as to get this garage band&#8217;s album onto Amazon and iTunes top-10 bestsellers.</p><p>Finally, in South America, the system for getting logging permits for the Amazon rain forest was put online.  An investigation discovered that <em>107 different logging companies</em> had hired hackers to compromise the site, which was full of common web vulnerabilities.  All told, 1.7 million cubic feet of lumber were smuggled out of the country.  Scary permit systems in the United States that are now protected only by a web site: entrance visas, hazardous material transport, and open burning permits.</p><p>Next, <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Meer">Haroon Meer, Nick Arvanitis, and Marco Slaviero</a> presented a talk on &#8220;Clobbering the Cloud.&#8221;  This SensePost talk covered much of the same material as the iSec Partners talk earlier in the day.  Their primary risk factors for cloud computing were as follows: lack of transparency from cloud providers (opaque EULAs), people don&#8217;t want to store regulated data in the cloud, vendor lock-in especially if the vendor goes out of business or stops offering the service, availability concerns (not just servers being down, but also things like password lockout from DoS attacks), monoculture issues (worms and cascading compromise are a big concern when you have thousands of perfectly-identical boxes), and trust in the cloud provider &#8212; you have to trust your cloud provider implicitly not to lose your data or have system failures.  In addition, there&#8217;s the problem that the cloud is available to the bad guys, too &#8212; cloud boxes can be used for click fraud, DoS, or spamming (for a short time Amazon EC2 was the net&#8217;s #1 spammer.)  Finally, the security of your environment is all in the hands of the account owner, who authenticates with nothing more than a password, and is (in most companies) probably a non-technical executive.  Breaking into the CIO&#8217;s email now makes you the global administrator of the company&#8217;s entire infrastructure.</p><p>The presenters then went into more detail about attacks on Amazon Web Services (EC2, S3, SQS, and DevPay) in particular.  I can understand why they chose AWS; due to its flexibility, it&#8217;s certainly the most fun of the cloud services for a hacker to play with (though Windows Azure is getting there, too.)  EC2 is based on a modified Xen hypervisor, and supports running any OS you want that can run in that environment.  Amazon provides 47 OS images, but users have contributed over 72,000 more, and an EC2 user can choose to boot any of them.  Sometimes user images have interesting things in them, like other user&#8217;s EC2 credentials, for example.</p><p>Scanning EC2 is prohibited, but you can start up one of the images and scan it yourself via an SSH tunnel (or even have the machine scan itself.)  They found 646 Nessus critical vulns in Amazon&#8217;s public images; you can also steal Amazon&#8217;s own Windows activation keys off their images.  The DevPay system is interesting; it&#8217;s supposed to allow a user to make an image then charge other users for its use (e.g. to resell an application on EC2.)  However, the presenters found you could get a DevPay image and modify its ancestor info (stored in the image itself) so as to credit use of it to you rather than the original author, then reregister it for others to use.</p><p>Simply putting up pre-owned (pun intended) images for others&#8217; use can be an attack on AWS.  If you prop up a box with a good name (e.g. &#8220;Ubuntu 9.04 Standard Image, All Patches&#8221;) and a low-numbered ID (so it shows up at the top of the list), and people will use your image to host their apps!  You can get a low-numbered ID simply by registering repeatedly; since it&#8217;s a hash, eventually you&#8217;ll get lucky and have one start with zero.  You can only have 20 images per account, but you can create 20 accounts in 3 minutes, so there&#8217;s no effective limit.</p><p>After that talk, I went over to the mobile track to hear <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Burns">Jesse Burns</a> talk about Android.  Android interests me because I&#8217;d really like a phone that behaves like a computer (i.e. a device I own) rather than like a toy the phone company is reluctantly allowing me to touch, and Android&#8217;s open-source nature has real potential to give me that.  It&#8217;s not that I trust Google any more than any other wireless provider, just that the platform seems much more hackable and thus inherently harder to control.</p><p>Android has a dual security model &#8212; Android permissions on various privileges, plus Linux permissions on the filesystem.  Applications have their own UIDs/GIDs and are thus somewhat isolated from each other. A package (application) is made up of Activities (GUIs,) Services (background tasks,) Broadcast Receivers (event handlers,) Content Providers (databases,) and Instrumentations (used for testing.)  For interprocess communication, there are Intents, which are sets of name-value pairs with routing information.  Applications are written in Java, but they&#8217;re not applets (i.e. no Java sandbox.)</p><p>Available attack surfaces for a malicious app include other apps, system services under privileged accounts (like the clipboard or the surfaceflinger, which draws the UI and owns the screen,) the binder (the inter-process communication system, similar to domain sockets,) and anonymous shared memory.  There are a variety of tools available &#8212; one can just install a bash shell on Android (either interactively or over the wire or network,) use logcat to look at logs, view Android system properties, check the /proc and /sys filesystems, run dmesg to get kernel output, and all the usual Linux attacks.  There&#8217;s also a file in /data/system/packages.xml that contains data about every installed app, including the location of the app and its manifest.  /proc/binder contains a transaction log of the inter-process communication, and /proc/binder/proc contains data of all the processes themselves.</p><p>Another interesting detail about Android is the &#8220;secret code&#8221; handler.  When you dial *#*#somenumber#*#*, this triggers the secret code handler for that number, which can do pretty much whatever an app wants it to do.  The only secret codes on &#8220;stock&#8221; Android are 8351 and 8350, which turn voice dialer logging on and off, respectively.  However, wireless providers may add additional codes &#8212; the presenter found some in T-Mobile&#8217;s MyFaves app, for example.  Finally, the presenter had a series of Android hacking apps he&#8217;d developed &#8212; Manifest Explorer (to view the system manifest and the manifest of each app, such as to see what events they react to,) Package Play (to see the parts of a package or to directly activate Activities,) Intent Sniffer (to view Intents as they&#8217;re routed at runtime,) and Ill Intent (an Intent fuzzer.)</p><p>The last presentation of the day was <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Schneier">Bruce Schneier</a>, whose talk was entitled Reconceptualizing Security.  Mostly, he gave the same speech he always does, about fear, psychology, security vs. security theater, why we mis-estimate risk, etc.; pick up a copy of <em>Beyond Fear</em> or <em>Secrets and Lies</em> if you want the details.  However, during Q&amp;A he did also talk about the attack on AES-256 that was just demonstrated.  It&#8217;s a feasible attack on 10 rounds of AES-256 (out of 14,) in 2<sup>42</sup> time.  It&#8217;s a related-key attack that works only on 256-bit keys (not on shorter ones,) so there&#8217;s no reason to panic right now, but it does show that the margin of safety on AES is smaller than we thought.  There may need to be a Double-AES in the same way Triple-DES was devised as a stopgap until a new cryptosystem is developed.  Alternately, the standard could be changed to increase the number of rounds, but that would require replacing or updating all the AES-based crypto hardware out there.</p><p>And that wrapped up BlackHat 2009.  Overall, there was nothing as Earth-shattering as last year&#8217;s DNS exploit, though it turns out that the SSL issues are pretty nasty.  After BlackHat, I hit the Microsoft Security Researcher Appreciation Party at Christian Audigier, which was actually a pretty good party this year without any of the problems of previous years.  It&#8217;s only drawback was that it only ran two hours.  However, at this point DefCon festivities had begun, so there was still plenty going on; my next post will get into DefCon 17.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=cskOg66oP6M:lVf75vep2yY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=cskOg66oP6M:lVf75vep2yY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=cskOg66oP6M:lVf75vep2yY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=cskOg66oP6M:lVf75vep2yY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=cskOg66oP6M:lVf75vep2yY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=cskOg66oP6M:lVf75vep2yY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/08/13/blackhat-2009-day-2/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>BlackHat 2009, Day 1</title><link>http://perimetergrid.com/wp/2009/08/01/blackhat-2009-day-1/</link> <comments>http://perimetergrid.com/wp/2009/08/01/blackhat-2009-day-1/#comments</comments> <pubDate>Sat, 01 Aug 2009 07:01:45 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[industry]]></category> <category><![CDATA[passwords]]></category> <category><![CDATA[risk]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=89</guid> <description><![CDATA[The annual Vegas security conference is upon us again, and there have been plenty of interesting presentations. Last year, it felt like WiFi was the &#8220;theme&#8221; of the year &#8212; this year, the most interesting (and well-attended) briefings were on SSL and mobile devices. The Wednesday keynote was presented by Douglas Merrill, the COO of [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>The annual Vegas security conference is upon us again, and there have been plenty of interesting presentations.  Last year, it felt like WiFi was the &#8220;theme&#8221; of the year &#8212; this year, the most interesting (and well-attended) briefings were on SSL and mobile devices.</p><p>The Wednesday keynote was presented by Douglas Merrill, the COO of EMI Records, formerly of Google, RAND Corporation, and several other places.  He spoke on a popular topic for security conference keynotes &#8212; risk assessment and innovation.  80% of CEOs believe they&#8217;ve had a data breach, even though the statistics show that it&#8217;s basically impossible for the actual rate to be that high.  And most of the breaches that do happen are trivial &#8212; looking at Privacy Watch&#8217;s statistics, 16% are lost laptops, 11% are paper that&#8217;s thrown away, etc.  Actual hacker activity accounts for only a small percentage of the breaches &#8212; certainly not enough to justify what we spend on security.  We constantly try as an industry to come up with &#8220;security ROI&#8221; metrics to show execs, but most of them are just nonsense; we make up numbers, then multiply them by numbers we also made up, and that&#8217;s how much you saved in the security breaches that didn&#8217;t happen but might have.</p><p>The #1 driver of security for CEOs is BCP (business continuity planning) &#8212; they just want to make sure things keep running no matter what.  For security people, the #1 driver tends to be compliance &#8212; because it&#8217;s a stick with which we can make executives spend money even when they don&#8217;t want to.  Due to the huge downside of a breach for us (since our job is preventing them, having one happen looks really bad), we overinvest in prevention.</p><p>Merrill&#8217;s point was that this overinvestment in security can stifle innovation, especially when perimeters (my favorite thing to hate, I know) are involved.  People use consumer tools because the enterprise tools restrict them too much.  Giving people control of their machines promotes innovation, and companies where people are free to innovate are more profitable &#8212; but giving people control makes endpoint security impossible, and reduces control by security and IT.  We risk our jobs by doing the right thing for the company, and so we continue to do the &#8220;safe&#8221; thing even when it doesn&#8217;t make sense.  Overall, it was a pretty good keynote &#8212; nothing revolutionary in it, but certainly food for thought for an audience of security professionals.</p><p>The second talk I attended to was three &#8220;mini-talks&#8221; about new <a
href="http://www.metasploit.org/">Metasploit</a> functionality, presented by <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Daizovi">Dino Dai Zovi</a>, <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Kershaw">Mike Kershaw</a>, and <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Gates">Chris Gates</a>.</p><p>Dai Zovi adapted Meterpreter for the Mac.  He created a Mach-O function resolver, and found one in the OS that wasn&#8217;t covered by the library randomization.  His payload injects a remote execution loop, creates a bundle in RAM, then loads and executes it (neat trick, very hard to do in Windows but apparently easy on a Mac.)  This can be used to load either Dai Zovi&#8217;s CocoaSequenceGrabber payload (which forces the webcam to take photos and send them to the hacker), or Macterpreter, a Meterpreter port by Charlie Miller.  Pretty much all of Meterpreter works except process migration (processes owned by the same user can&#8217;t write to each other on Macs), so it should be good for all your Mac-hacking needs.  He&#8217;s also added 4 exploits from the Mac Hacker&#8217;s Handbook to Metasploit.</p><p>Kershaw sought to adapt all the old shared-media attacks (i.e. what we did in the 80&#8242;s and 90&#8242;s on hub-based Ethernet) to WiFi.  His LORCON2 library translates between 802.11 (WiFi) and 802.3 (Ethernet), so you can spoof ARP, DNS, even TCP connections.  This gives you the airpwn attack in Metasploit &#8212; you can spoof, say, urchin.js or other common embedded JS files, give them a cache lifetime of a decade, and have someone&#8217;s browser calling home for a good long time even when they move off the unsafe network.  Open and WEP networks literally can&#8217;t be secured against this, since you can spoof the AP to the client (so no AP-based defenses can be effective &#8212; the AP doesn&#8217;t even see the attack.)  If you have the key, you can even do this on WPA-PSK (by forcing deauths and spoofing the AP.)</p><p>Gates essentially ported every Oracle attack of the last 10 years to Metasploit (all 11 of &#8216;em.)  Since Oracle charges for updates, there are tons of vulnerable servers out there (albeit not usually on the Internet.)  There&#8217;s a TNS mixin, and an Oracle DB access plugin that executes queries via Oracle Instant Client (on Linux and Mac OS only, though Chris offered a reward to anyone who would port it to Windows this weekend.)  It can grab the SID from the server on Oracle 9, or brute-force it on Oracle 10 (or sometimes grab it, depending on what Oracle modules are loaded.)  All of these exploits were old, but they&#8217;re now really easy to perform.</p><p><a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#VelaNava">David Lindsey and Eduardo Vela</a> gave a talk on bypassing XSS filters. They weren&#8217;t looking at escaping/sanitizing functions, but rather HTTP IDS and other external anti-XSS measures.</p><p>They went through a long list of HTML tricks that can be done to evade these filters.  Omitting whitespace, using / for spaces (did you know &lt;img/src=&#8221;file.gif&#8221;alt=&#8221;text&#8221;&gt; &#8212; no spaces &#8212; is treated as valid HTML by most browsers?), roundabout parameters (using separate&lt;param&gt; tags for everything even when you don&#8217;t have to), using data= rather than src= in tags that support it, embedding JavaScript in weird tags like &lt;isindex&gt;, prepending useless namespaces on tags (e.g. &lt;x:script xmlns x=&#8230;.&gt;), using alternate syntax (why say &#8220;document.cookie&#8221; when &#8220;document[cookie]&#8221; or &#8220;with(document)alert(cookie)&#8221; will do), etc.</p><p>They even went into truly strange things, like using the ternary operator to make strings that were valid as both HTML and JavaScript but had different meanings in each, or using deprecated or broken syntaxes (which tends to be browser-specific.)  Adding multiple parameters with the same name has undefined behavior, but works in some browsers.  With Unicode, you can pad small (one-byte) characters out to extra bytes, which shouldn&#8217;t work but is accepted by some Unicode implementations (including Java and PHP.)</p><p>Perhaps most interestingly, filters could often be bypassed by ridiculous measures &#8212; such as using prompt() instead of alert() when testing for XSS, or using &#8216; or &#8217;2&#8242;=&#8217;2&#8242; instead of &#8216; or &#8217;1&#8242;=&#8217;1&#8242; to test for SQL injection, or /etc/x/../passwd instead of /etc/passwd.  Some badly implemented filters just look for specific attacks, not general patterns.</p><p><a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Kaminsky">Dan Kaminsky</a> had managed to keep his talk secret this year, so we went into it knowing nothing but that it was &#8220;something about network security.&#8221;  His talk was entitled &#8220;Black Ops of PKI,&#8221; and covered some vulnerabilities involving X.509 certificates (a theme I&#8217;ll revisit a lot when I do my DefCon writeup.)  60% of data breaches are not due to vulnerabilities, but just bad password handling &#8212; and PKI, based on X.509 certs, was supposed to fix all that.  Of course, what&#8217;s actually been implemented is not really what most of us mean by PKI &#8212; the universal directory of distinguished names was never built &#8212; but certificates are everywhere now.</p><p>For those of you not familiar with them, X.509 certs are the basis of SSL/TLS and many other encrypted protocols.  A certificate is supposed to indicate that the entity presenting it really is the entity named in the certificate.  These are signed by various Certificate Authorities, which all themselves have certificates signed by other authorities, chaining all the way to the Root CAs, which have their certificates just built in to your browser &amp; other software.  As long as you trust the root CAs to validate other CAs, and trust those CAs to only sign legitimate certs, the system should work.  But&#8230; that&#8217;s a lot of trust.</p><p>The problem is, X.509 can&#8217;t exclude &#8212; every CA can issue certs for every name.  It&#8217;s too hard to interoperate with private CAs, so companies promise to behave and root CAs like VeriSign give them a signed intermediate certificate, allowing them to give out valid certs for anyone.  What&#8217;s more, these certificates depend on various hashing algorithms for their security (since the hashes are what gets signed.)  RapidSSL used MD5 for its signatures, and last year some security researchers took advantage of known issues in MD5 to create their own intermediate cert that was &#8220;signed&#8221; by RapidSSL&#8217;s signature.  Luckily, that group had no intent to abuse the cert, so RapidSSL moved to a better hash and all was well.</p><p>Kaminsky discovered that one of VeriSign&#8217;s own certs is self-signed with MD2.  There&#8217;s not even any good reason to self-sign a root cert, but they always do (because people &#8212; and programs &#8212; just expect a cert to be signed.)  MD2, like MD5, has known vulnerabilities &#8212; it&#8217;s subject to a <a
href="http://en.wikipedia.org/wiki/Preimage_attack">preimage attack</a> that will eventually let someone create their own root cert that VeriSign&#8217;s self-signature works on.  The complexity of this attack is outside our capabilities right now (2<sup>73</sup>), but won&#8217;t be for much longer.  This certificate was replaced by VeriSign (with one signed in SHA-1), but it will still probably be a long time before every client gets it off the list.</p><p>Much more interesting, though, were attacks on CAs themselves via PKCS#10 (the protocol by which you request a certificate to be issued to you.)  When you request a certificate, you provide a &#8220;distinguished name&#8221;, part of which is the &#8220;common name&#8221; (domain name, in the case of SSL certs), as a specially-formatted string (it&#8217;s fixed-length, not null-terminated), in a binary package.  Originally, requesting a cert was a manual process with lots of in-depth verification, but now it&#8217;s all automated.  Kaminsky asked&#8230; what happens if you have multiple common names in one distinguished name?  (Undefined; different CAs and clients do different things.)  The identifier for common name is 2.5.4.3&#8230; what if you provide 2.5.4.03?  Is that the same?  The strange binary protocol means it may be, and 2.5.4.2<sup>64</sup>+3 might be, too.  What if there&#8217;s a null in the name?  Since the protocol uses Pascal strings (length specified) rather than C strings (null-terminated), nulls in the name are valid, but practically every SSL client there is blows up at them.</p><p>And that was about it.  Kaminsky ended with a recommendation that we embrace DNSSEC, so we can put certificate hashes in DNS.  Unlike X.509, DNSSEC can exclude &#8212; we can ensure that only the authorized owner of a domain can provide its certificate, as well as make it possible for domains with EV certificates to exclude normal certificates for that domain.  After what Dan presented the previous two years, this one seemed kind of disappointing &#8212; an MD2 cert and some parsing flaws in CAs?  That&#8217;s it?</p><p>Actually, it turns out that these are devastating, and essentially render SSL unable to protect communications on untrusted networks (you know, precisely the places where you want SSL to protect you.)  Smart hackers will be picking up wildcard certificates while they can, as CAs will be scrambling to fix this.  As to why, I&#8217;ll explain that during my DefCon Day 1 writeup &#8212; Moxie Marlinspike and Mike Zusman presented research (apparently done at the same time as Kaminsky&#8217;s) that actually exploits this stuff.</p><p>The last presentation I went to on Day 1 was <a
href="http://www.blackhat.com/html/bh-usa-09/bh-usa-09-speakers.html#Hassell">Riley Hassell</a>&#8216;s talk on &#8220;Exploiting Rich Content.&#8221;  The description made this sound like it was about attacking <em>web sites that use rich content</em> (e.g. Flash, Java, Media Player, QuickTime, etc.), but it was actually about attacking the content engines themselves (e.g. making Flash malware), which, to me, is a much less interesting space.  But then, my job is protecting web sites &#038; services from attack, not being Adobe.</p><p>Hassell demonstrated how, using a fault injection fuzzer called FlashFire, he found 23 vulnerabilities in Flash on 785 codepaths, most of them being read-beyond-bounds issues.  Normally those aren&#8217;t considered terribly serious, but since Flash runs in a browser, they can be.  Essentially, it&#8217;s possible to write a Flash component on one web page that steals all the information in your browser&#8217;s memory space.  If you have your bank&#8217;s website open in another tab, that could obviously be a bad thing.  It&#8217;s quite the scalable bug, considering as Flash is installed on 99% of browsers, and the bug works on all platforms.</p><p>And that was it for Day 1.  I went to an IOActive reception at Spago, met some interesting people (most of them from IOActive), and called it a night &#8212; most of the BlackHat nightlife seems to be on Day 2.  I&#8217;ll update this post with links to the presentation decks and/or videos when they become available online (decks will probably be relatively soon, but BlackHat does not usually post videos until months after the conference since they are sold for a pretty hefty fee at first.)</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=1a9y_nzbKU4:fs1f6anS7Cs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=1a9y_nzbKU4:fs1f6anS7Cs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=1a9y_nzbKU4:fs1f6anS7Cs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=1a9y_nzbKU4:fs1f6anS7Cs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=1a9y_nzbKU4:fs1f6anS7Cs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=1a9y_nzbKU4:fs1f6anS7Cs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/08/01/blackhat-2009-day-1/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Hotel Internet and ISP Paywalls</title><link>http://perimetergrid.com/wp/2009/07/28/hotel-internet-and-isp-paywalls/</link> <comments>http://perimetergrid.com/wp/2009/07/28/hotel-internet-and-isp-paywalls/#comments</comments> <pubDate>Wed, 29 Jul 2009 05:47:08 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[authentication]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=87</guid> <description><![CDATA[So, I&#8217;m currently in a hotel, to remain nameless here, for BlackHat 2009 and DefCon 17. As is usual for expensive hotels, Internet access is available &#8212; both wired and wireless &#8212; for a substantial fee ($13.99/day here.) This is enforced via a paywall. For anyone who has never tried to use Internet in a [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>So, I&#8217;m currently in a hotel, to remain nameless here, for <a
href="http://www.blackhat.com">BlackHat 2009</a> and <a
href="http://www.defcon.org">DefCon 17</a>.  As is usual for expensive hotels, Internet access is available &#8212; both wired and wireless &#8212; for a substantial fee ($13.99/day here.)  This is enforced via a paywall.</p><p>For anyone who has never tried to use Internet in a hotel, the way this works is as follows:</p><ol><li>You connect to the wired or wireless network, and are assigned an IP address via DHCP.</li><li>All Internet connections are directed by the gateway to the same IP &#8212; one that rejects everything but ports 80 and 443, and redirects those to a web page that asks you to confirm your acceptance of the exorbitant fees and provide your room number.</li><li>Once you accept the terms, the redirect goes away and you have unfettered access to the Internet, usually via a true Internet-routeable (not <a
href="http://en.wikipedia.org/wiki/RFC_1918">RFC 1918</a>) IP.</li></ol><p>Now, for me, the first thought I have is, &#8220;How have they implemented this?  Doing it &#8216;for real&#8217; would require tons of custom hardware and software!  Surely they took shortcuts.&#8221;  So, I booted into <a
href="http://www.remote-exploit.org/backtrack.html">BackTrack 4</a>, fired up Wireshark, and took a look around on the wired network.</p><p>The first thing I noticed was that, for the most part, all the traffic I was seeing was my own.  So at least this wasn&#8217;t some kind of dreadful 1990&#8242;s-era shared-backbone network.  However, there were two exceptions to this rule &#8212; ARPs, and DHCP Offers and ACKs.</p><p>So, what can we learn from this?  We&#8217;re on the equivalent of switch-based Ethernet, where the only traffic that reaches our PC is that destined for our MAC address.  The switch remembers which MACs are one which ports, and won&#8217;t forward us anything that doesn&#8217;t correspond to our MAC.  We get ARPs and DHCP because those are sent to the Broadcast MAC &#8212; switches forward them to everybody.  This tells us one avenue for attack &#8212; we can get other traffic routed to us by sending out packets with a spoofed MAC.  If the switch learns that a given MAC is on our port, it will start sending us the traffic for it.</p><p>But that&#8217;s not useful.  MACs are 48-bit numbers; I&#8217;m certainly not going to start guessing them.  What&#8217;s probably of most interest to people on hotel Internet is how to get it without paying, not how to route others&#8217; traffic to themselves.  Okay, at BlackHat and DefCon, routing others&#8217; traffic is probably of interest, but not generally.</p><p>But this tells us another avenue for attack, too.  If we&#8217;re receiving broadcast traffic meant for others (presumably other hotel rooms) on switch-based Ethernet, then this means that the system doesn&#8217;t have the ability to send the DHCP and ARP traffic to only one room!  If it were really designed securely, it would &#8212; there would be point-to-point traffic to each room.  Since there&#8217;s not, then it must simply be addressing traffic to each room and putting it into a switch.</p><p>We have a clue as to how it addresses traffic to the room.  The charge of $13.99 per day is <em>per laptop</em> &#8212; that is, if you use multiple machines, you have to pay for each of them.  This policy is clearly daft &#8212; it seems very unlikely that the hotel expects anyone to actually pay the fee 2-3 times per day, and so all it does is curtail usability for no reason.  Which means that it&#8217;s likely a technical limitation &#8212; which is to say, they&#8217;re identifying unique customers by MAC address.</p><p>MAC (Media Access Control) address is assumed by most people to be static.  It comes with your network card, and whatever MAC your card has is the one you have for life.  And in Windows, this is true with most network drivers &#8212; they provide no facility to change your MAC.  On a Linux such as BackTrack, though, this assumption is wrong.</p><p>The easiest way to get free access on a hotel network, then, is to just use the MAC of someone who already paid.  We fire up Wireshark, and add a filter excluding our own IP, such as:</p><p>ip.src != 1.2.3.4 &#038;&#038; ip.dst != 1.2.3.4</p><p>Where 1.2.3.4 is the IP we get from ifconfig.  This should filter down to nothing but DHCP offers &#038; acks.  We then pick any random DHCP ACK, and open the &#8220;Bootstrap Protocol&#8221; node, where we find a line labeled &#8220;Client MAC address.&#8221;  This will list the address, both in the form that enumerates the manufacturer, and in the form we want &#8212; six colon-separated octets (e.g. 00:11:22:aa:bb:cc).</p><p>Now we just tell the system that we are, in fact, someone else.  This is a simple task in Linux:</p><p>macchanger eth0 00:11:22:aa:bb:cc<br
/> /etc/init.d/networking restart</p><p>Now we&#8217;ve just changed or MAC to someone else&#8217;s, and requested a new IP address.  But, how do we know that the MAC we changed to is any better than our own?  Well, it stands to reason that if someone is connecting to the hotel network, they intend to access the Internet.  If the ACK is brand new it may not work, but anything more than a few minutes old is probably golden &#8212; and if it&#8217;s not, you just pick a different DHCP ACK out of Wireshark and try again.</p><p>Drawback to this method: it is possible, depending on how the hotel runs its network, that you just DOSsed the legitimate user, which is clearly undesirable.  It&#8217;s not likely, though &#8212; the gateway probably just redirects users who aren&#8217;t on a MAC whitelist to the paywall, and lets everyone else through.  The switch is now routing that MAC to two different rooms, each of which have their own IP, and apart from occasional glitches from layer 2 or 3 collisions, it will probably work fairly well.  Nevertheless, don&#8217;t fool yourself into thinking this sort of thing is totally harmless.</p><p>From the hotel&#8217;s perspective, this sort of thing is not trivial to foil.  If they want to prevent this from happening, they need a way to address <em>rooms</em>, not laptops, and that means assigning a switch port or IP address to each one rather than doing a continuous dynamic re-provisioning.  This is expensive&#8230; probably much more expensive than just allowing the occasional network-security geek with a Linux install bypass their paywall.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=PDT-X3cUms0:1AQojWlG4X4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=PDT-X3cUms0:1AQojWlG4X4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=PDT-X3cUms0:1AQojWlG4X4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=PDT-X3cUms0:1AQojWlG4X4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=PDT-X3cUms0:1AQojWlG4X4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=PDT-X3cUms0:1AQojWlG4X4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/07/28/hotel-internet-and-isp-paywalls/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>A “Clear” Case of Failure</title><link>http://perimetergrid.com/wp/2009/06/29/a-clear-case-of-failure/</link> <comments>http://perimetergrid.com/wp/2009/06/29/a-clear-case-of-failure/#comments</comments> <pubDate>Mon, 29 Jun 2009 19:52:25 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[risk]]></category> <category><![CDATA[society]]></category> <category><![CDATA[terrorism]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=84</guid> <description><![CDATA[Clear, the &#8220;trusted traveler&#8221; program that allowed customers to bypass airport security lines, has shut down.  The story is an interesting case of bureaucratic disincentives and general failure around the whole mess known as airport security. A privately-run alternative to the TSA&#8217;s Registered Traveller program, Clear started out with what seemed like a good idea [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Clear, the &#8220;trusted traveler&#8221; program that allowed customers to bypass airport security lines, has <a
href="http://www.wired.com/epicenter/2009/06/vip-airport-screening-company-closes-lanes/">shut down</a>.  The story is an interesting case of bureaucratic disincentives and general failure around the whole mess known as airport security.</p><p>A privately-run alternative to the TSA&#8217;s Registered Traveller program, Clear started out with what seemed like a good idea &#8212; allow frequent travelers to undergo a thorough background check to make sure they weren&#8217;t terrorists or criminals in lieu of screening them every time they went to the airport.  For someone who travels by air every week or even every day, the long-run time savings would be worth a fortune.  The TSA was all for this idea, since their goal is to prevent hijackings, not just have people take off their shoes for fun.  So Clear (originally called Verified Identity Pass) was started &#8212; and frequent travellers could pay $200 per year, have a background check performed on them, and get a nifty-looking smart card that they could use at any of a dozen major airports to skip to the front of the security screening line.</p><p>Wait a minute&#8230; skip to the <em>front </em>of the security screening line?  Yep, somewhere along the line some government bureaucrat changed the rules such that Clear and Registered Traveller-certified people still have to undergo the screening, they just get to go to the front of the line.  I can easily see their motivation for doing so.  Imagine being an assistant director at the TSA in charge of such a program: &#8220;So, what happens if, God forbid, someone with a Clear card blows up a plane?  What would we say to the public?  &#8217;Yeah, he had a bomb on him, but we didn&#8217;t search him, because he&#8217;d undergone a background check a couple years ago.  You see, he&#8217;d never blown up any aircraft before, so we had no idea this would happen.&#8217;&#8221;  It would go even worse for the TSA if said terrorist were a member of a group that the public would consider an &#8220;obvious&#8221; terrorist suspect (e.g. a Muslim of Arabic descent) and would pretty certainly end the careers of everyone involed in the program, if not end the TSA itself.</p><p>So the Clear card was changed to only allow you to skip the <em>line</em>, while still undergoing the full security screening.  What no one seems to have thought of, though, is&#8230; why bother with the background check?  If you still have to be screened at the airport, what&#8217;s the point of having to be investigated to get the card?  In what way does the screening <em>line </em>contribute to security?  Many of these same airports let members of airlines&#8217; top-tier frequent flyer clubs skip the line, too, and they&#8217;re not required to have background checks.  Essentially, Clear and Registered Traveller simply morphed into HOT lanes &#8212; pay a fee, and you get to go faster than people who don&#8217;t pay a fee.  It&#8217;s not &#8220;trusted&#8221; status, it&#8217;s &#8220;VIP&#8221; status.  A smart card with associated fingerprint and iris scans seems kind of excessive for jumping a line.</p><p>Also, Bruce Schneier <a
href="http://www.schneier.com/blog/archives/2009/06/clear_shuts_dow.html">brings up an interesting point</a> &#8212; now that Clear is out of business and having all its assets transferred to creditors, what happens to all the personal data in the background checks?  Who gets <em>that</em> asset?</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bw1yUYqje6A:kqTDDXL8v1w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bw1yUYqje6A:kqTDDXL8v1w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=bw1yUYqje6A:kqTDDXL8v1w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bw1yUYqje6A:kqTDDXL8v1w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=bw1yUYqje6A:kqTDDXL8v1w:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=bw1yUYqje6A:kqTDDXL8v1w:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/06/29/a-clear-case-of-failure/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>False Expense Service Reveals the Trouble With Documents</title><link>http://perimetergrid.com/wp/2009/06/29/false-expense-service-reveals-the-trouble-with-documents/</link> <comments>http://perimetergrid.com/wp/2009/06/29/false-expense-service-reveals-the-trouble-with-documents/#comments</comments> <pubDate>Mon, 29 Jun 2009 18:30:27 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[authentication]]></category> <category><![CDATA[legal]]></category> <category><![CDATA[society]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=82</guid> <description><![CDATA[There&#8217;s been some news coverage lately about FalseExpense.com, a service that produces fake receipts to order &#8220;for novelty use only.&#8221; The obvious purpose of this is to help people scam their companies&#8217; expense reporting system by &#8220;padding&#8221; receipts.  People who are reimbursed for hotel, meals, etc. can create receipts for slightly more than they actually [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>There&#8217;s been some news coverage lately about <a
href="http://www.falseexpense.com/">FalseExpense.com</a>, a service that produces fake receipts to order &#8220;for novelty use only.&#8221;</p><p>The obvious purpose of this is to help people scam their companies&#8217; expense reporting system by &#8220;padding&#8221; receipts.  People who are reimbursed for hotel, meals, etc. can create receipts for slightly more than they actually pay (or for that matter, create receipts for meals they skip altogether or eat a balogna sandwich for) and pocket the difference.  Apparently the same company aims to help people rip off their employers in any way they desire, as they also run &#8220;Fake Sick Notes USA.&#8221;  (Though people running that particular scam are often <a
href="http://www.dailymail.co.uk/news/worldnews/article-1080010/Call-centre-worker-caught-boss-posting-sickie-plan-Facebook.html">caught by their own actions</a>.)</p><p>It&#8217;s interesting that receipts are considered &#8220;proof&#8221; of purchase.  A receipt, after all, is just a piece of paper, and what&#8217;s more, there is no standard for what a receipt looks like.  People know it should be printed on &#8220;receipt paper&#8221; &#8212; which is usually thin thermal paper, but is sometimes quite heavy paper tape that&#8217;s inkjet or impact printed &#8212; and contain certain pertinent data, like the location of the purchase, the tax, the total, and some legalese at the bottom.  In the modern era, receipts often have serial numbers or bar codes on them, which makes the receipt uniquely identifiable <em>by the issuer</em>, but is quite useless for anyone else to authenticate them.  After all, only someone who has access to Target&#8217;s computer system can say if Target receipt #824935729345 is authentic or not.  And when it comes to small mom-and-pop retailers (which often have cash register receipts that contain literally nothing but prices) and online retailers (whose receipts are trivially-forged HTML emails), receipt as proof of anything becomes even more ridiculous.</p><p>All this false expense site does is make available to the general public an ability that&#8217;s been available to the tech-savvy for years.  Someone with Photoshop and a USB thermal printer (easily available on eBay for under $100) has been able to forge receipts since the 1990s.  This is another case (like <a
href="http://perimetergrid.com/wp/2008/01/01/checks-the-most-dangerous-transaction/">checking accounts</a>) where the &#8220;security&#8221; of a system comes not from any internal defense, but simply from the fact that most people don&#8217;t have a <a
href="http://perimetergrid.com/wp/2008/01/31/how-to-get-a-job-in-information-security/">security mindset</a> &#8212; most people don&#8217;t look at everyday systems and think about their weak points and where they break down.  Since a recept is <em>used as </em>proof of purchase, people assume it <em>is </em>proof of purchase.</p><p>Unfortunately, there&#8217;s really not much to be done to &#8220;secure&#8221; receipts.  To do so would require data-sharing between merchants, employers, and the IRS, so as to make receipt numbers authenticable &#8212; and that&#8217;s a case of the solution being worse than the disease (the privacy implications would be staggering.)  As an employer, the best solution may be to simply avoid the problem &#8212; have the company book hotel and travel for the employee (rather than reimbursing after-the-fact), and provide a <em>per diem </em>allowance for expenses rather than reimbursing exact receipts.  Any time you rely on receipts from employees, there&#8217;s the potential for fraud losses.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_Xxlrl05pfY:ZfqmVKotdYc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_Xxlrl05pfY:ZfqmVKotdYc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=_Xxlrl05pfY:ZfqmVKotdYc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_Xxlrl05pfY:ZfqmVKotdYc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=_Xxlrl05pfY:ZfqmVKotdYc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=_Xxlrl05pfY:ZfqmVKotdYc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/06/29/false-expense-service-reveals-the-trouble-with-documents/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Conficker Mostly a Dud</title><link>http://perimetergrid.com/wp/2009/04/06/conficker-mostly-a-dud/</link> <comments>http://perimetergrid.com/wp/2009/04/06/conficker-mostly-a-dud/#comments</comments> <pubDate>Tue, 07 Apr 2009 01:49:09 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[industry]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=79</guid> <description><![CDATA[After tons of breathless media coverage about how April 1st might be the latest &#8220;cyber-catastrophe,&#8221; the date has come and gone and&#8230; nothing happened. There was, admittedly, some cause for concern.  With 250,000 known machines infected with Conficker.C (and estimates of the full number of infected machines as high as 15 million before antivirus software [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>After tons of breathless media coverage about how April 1st might be the latest &#8220;cyber-catastrophe,&#8221; the date has come and gone and&#8230; nothing happened.</p><p>There was, admittedly, some cause for concern.  With 250,000 known machines infected with Conficker.C (and estimates of the full number of infected machines as high as 15 million before antivirus software started knocking them out,) activation of the worm would have created the world&#8217;s largest botnet overnight, far surpassing the Storm Worm&#8217;s 120,000-machine network.  It would have the power to bring down pretty much any target on the Internet at will, at least for a short time.  People feared that it would be turned against some critical infrastructure target (e.g. the root DNS servers) or major commercial site and bring down the Internet.</p><p>And that threat&#8230; is still there.  April 1st was only the <em>first </em>day Conficker.C could have been activated &#8212; not the <em>only </em>day.  Those infected machines are all out there, still polling for their master every day.  While the mitigations that have been put in place at many domain registrars will greatly reduce its impact, the fact remains that it would still be a huge botnet, not to mention that it could execute arbitrary code on any of the infected machines.  (If you&#8217;re worried you might be infected, just check out the rather-ingenious <a
href="http://www.confickerworkinggroup.org/infection_test/cfeyechart.html">Conficker Eye Chart</a>.)  But with the security industry aware of the threat, chances are that most of the machines that try to &#8220;call home&#8221; will not find anything listening on the other side, even if the worm&#8217;s authors <em>do </em>try to activate it.</p><p>If they&#8217;re smart, they probably won&#8217;t activate it at all.  Since botnet controllers constantly try to steal each other&#8217;s botnets, modern worms contain code to ensure that only the author can take control.  In the case of Conficker, this defense is actually very strong &#8212; orders for the worm have to be cryptographically signed, using a public-key algorithm.  On one hand, this means no one but the worm&#8217;s actual authors can give it orders &#8212; but on the other hand, it leaves them holding a smoking gun.  <em>Only </em>the worm&#8217;s authors can possibly have the private key that creates the signatures Conficker looks for &#8212; which means that possession of that key is all but proof of authorship (and thus of a very serious crime.)  Having such a trail pointing at them may prevent them from trying to use it at all, especially since the domain-registration algorithm has been cracked and domain registrars are monitoring attempted registrations for anyone trying to register a name that Conficker will eventually look for.</p><p>Overall, the response to the Conficker worm is another success story for the security industry.  There&#8217;s a paper about containing the worm over at the <a
href="http://www.honeynet.org/papers/conficker">Honeynet Project</a> that makes for good reading.  This said, it also points to the problem with the &#8220;detect-and-patch&#8221; model of computer security &#8212; this could have been much worse.  If the original Conficker variants had been as sophisticated as the C variant, and the worm activated on February 1st instead of April 1st, we would have had a very different story.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=rKr7gSiSpJs:ymhs8EdN4Wk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=rKr7gSiSpJs:ymhs8EdN4Wk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=rKr7gSiSpJs:ymhs8EdN4Wk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=rKr7gSiSpJs:ymhs8EdN4Wk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=rKr7gSiSpJs:ymhs8EdN4Wk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=rKr7gSiSpJs:ymhs8EdN4Wk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2009/04/06/conficker-mostly-a-dud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Exploiting Public Information for Stock Manipulation</title><link>http://perimetergrid.com/wp/2008/09/14/exploiting-public-information-for-stock-manipulation/</link> <comments>http://perimetergrid.com/wp/2008/09/14/exploiting-public-information-for-stock-manipulation/#comments</comments> <pubDate>Sun, 14 Sep 2008 23:52:25 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[attacks]]></category> <category><![CDATA[legal]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=76</guid> <description><![CDATA[Last Wednesday, 9/10, United Airlines saw its stock drop by over 75% in fifteen minutes, over a mistaken news story that came across the Bloomberg business wire announcing that it had filed for bankruptcy.  How this happened has interesting implications for security. Back on December 10th, 2002, United Airlines really did file for bankruptcy.  It [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Last Wednesday, 9/10, United Airlines saw its stock drop by over 75% in fifteen minutes, over a mistaken news story that came across the Bloomberg business wire announcing that it had filed for bankruptcy.  How this happened has interesting implications for security.</p><p>Back on December 10th, 2002, United Airlines really <em>did </em>file for bankruptcy.  It was all over the news, their stock plummeted, they went into reorganization (Chapter 11), and eventually emerged as a going concern.  it wasn&#8217;t a good thing for most involved, but it was over and done with.</p><p>Many online newspapers have archives of old stories that can be browsed.  The <em>Florida Sun-Sentinel </em>is no exception; it&#8217;s a pretty typical newspaper.  Online newspapers also often have dynamic lists of links &#8212; &#8220;Most Popular,&#8221; &#8220;Most Active,&#8221; etc., based on what articles have been read lately.  For some reason, which we may never know, the 12/10/2002 article somehow made it onto one of the lists.  Maybe it was a slow day and a couple people happened to click on it in rapid succession and it bubbled up to the list, and once it was there people started clicking on it (as the story would be pretty big news if it weren&#8217;t six years old.)  Whatever the cause, a link to this old story found its way onto the homepage &#8212; Tribune Co. says it was &#8220;<a
href="http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&amp;STORY=/www/story/09-09-2008/0004882072&amp;EDATE=">due to traffic volume</a>,&#8221; which I think lends credence to the &#8220;a few people clicked on a slow news day&#8221; theory, though it could have been deliberate, which I&#8217;ll get to later.</p><p>News aggregators, the most popular being <a
href="http://news.google.com">Google News</a>, crawl reputable news sources like online newspapers for interesting stories, then bump them up or down on their pages based on how popular they turn out to be.  Since this was on the <em>Sun-Sentinel</em>&#8216;s homepage, and probably their RSS feeds as well, the Googlebot pulled it up.  However, the <em>Sun-Sentinel</em>&#8216;s page did not list a dateline for the story &#8212; so, lacking any other information, the Googlebot concluded it was new; this is not unreasonable for something suddenly showing up on the front page of a newspaper.  Google News <a
href="http://googlenewsblog.blogspot.com/2008/09/update-on-united-airlines-story.html">published the article in their aggregator</a> with a dateline of 9/10/08.</p><p>People started reading the article, and that pushed it up in the rankings.  Soon, UAL&#8217;s bankruptcy was a top story on Google News, which is read by millions.  Some of those readers included stock analysts, one of whom proceeded to put the &#8220;news&#8221; on the Bloomberg wire, the primary source of breaking news used on Wall Street.  On one hand, it seems foolish of him, and this was probably a career-limiting move.  But on the other hand, Google linked him to the web site of a legitimate newspaper owned by Tribune Co. &#8212; he didn&#8217;t exactly read this on &#8220;hot-stock-picker.ru&#8221; or something; why would he doubt its veracity?  It was clearly a professionally-written news article in a major newspaper (or at least a minor paper from a major publisher.)</p><p>Wall Street today bears little resemblance to its history before the late 1980s, when &#8220;program trades&#8221; started.  Program trades are basically what they sound like &#8212; computer programs set to execute trades when certain conditions are met.  There were apparently a decent number of program trades set to dump UAL stock upon getting bad news about it over the Bloomberg wire, and they did just that.  UAL, as a mid-cap company with very high volatility, was quite heavily held by hedge funds, who are very heavy users of program trades.  Large, institutional investors &#8212; including hedge funds, perhaps especially hedge funds &#8212; limit their risk by having standing &#8220;stop-loss orders&#8221; on large positions.  These are orders to sell the entire position should its share price fall below a certain floor.  The hedge fund selling based on the news was enough to send the stock price down across a few stop-loss orders &#8212; and their selling sent it through more, and so on.  The stock dropped 79% in 15 minutes, eradicating literally billions of dollars in shareholder value.  At that point, the exchange stepped in and froze the stock, halting any further trading (as well as the runaway program trades.)</p><p>Once people figured out what was going on, the stock was bid back up to $10 again (about 85% of its original value.)  A lot of people ended up upset with Bloomberg, and Google, and the <em>Sun-Sentinel</em>, but there&#8217;s no one to sue &#8212; the <em>Sun-Sentinel </em>didn&#8217;t do anything wrong (they didn&#8217;t republish the story or try to call attention to it, it just sat in its archives like it had for the last six years), and the newswires and aggregators aren&#8217;t liable for checking the accuracy of things they link to.</p><p>What I found interesting, though, is the implications this has for deliberate manipulation.  This appears to have been an accident, but what if someone were to set out to do this on purpose?  All they would need is to find a newspaper or other reputable news source that doesn&#8217;t have reliable datelines on all their stories, then pick a stock that has recovered from old bad news or plummeted after old good news &#8212; just something where the news, if new, would affect the price substantially.  Rather than waiting for the story to coincidentally rise to the top, a botnet or set of proxies could bid the story up to &#8220;most popular&#8221; quite quickly.  The attacker would just have to keep it there long enough to be picked up by aggregators.</p><p>Essentially, this person would have tomorrow&#8217;s news today, and could trade on it.  (Well, really it&#8217;s yesterday&#8217;s news, but they&#8217;d know it before everyone else &#8220;knew&#8221; it.)  If you were doing this intentially to UAL, you&#8217;d first buy put options and short-sell the stock, in anticipation of the sudden drop.  Once it dropped 50%, you&#8217;d unwind those positions and start buying &#8212; after all, once the error is discovered, the stock will mostly revert to its original value.  It&#8217;s not even clear that this sort of manipulation would be illegal &#8212; the attacker isn&#8217;t a fiduciary, and can&#8217;t be charged with insider trading or most securities violations.  Federal law is fuzzy enough that prosecutors can sometimes find a way to charge just about any person with a crime if they really want to, but this would be quite difficult to prove.  It&#8217;s not like lots of people don&#8217;t hold put options and short sales on volatile, risky companies like UAL, and reversing the position after a big drop would hardly make you alone among traders.  Making 5-10 times their investment on something like this would not be difficult if it worked.</p><p>The interesting part about this is that it doesn&#8217;t involve an &#8220;attack&#8221; in the traditional sense.  There&#8217;s no cross-site scripting or SQL injection, no stealing of confidential data.  Nothing is involved but clicking on an old news story a few dozen times, and being positioned in the market such that the resulting chaos works to your advantage.  It&#8217;s even possible that this <em>did </em>happen with UAL, and the companies involved don&#8217;t want to talk about it, for fear of giving people ideas.</p><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=IvNol8QMPJM:aZN2X9-NrMw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=IvNol8QMPJM:aZN2X9-NrMw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=IvNol8QMPJM:aZN2X9-NrMw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=IvNol8QMPJM:aZN2X9-NrMw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=IvNol8QMPJM:aZN2X9-NrMw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=IvNol8QMPJM:aZN2X9-NrMw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2008/09/14/exploiting-public-information-for-stock-manipulation/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>DefCon 16, Day 1</title><link>http://perimetergrid.com/wp/2008/08/24/defcon-16-day-1/</link> <comments>http://perimetergrid.com/wp/2008/08/24/defcon-16-day-1/#comments</comments> <pubDate>Sun, 24 Aug 2008 21:15:16 +0000</pubDate> <dc:creator>Grant Bugher</dc:creator> <category><![CDATA[anonymity]]></category> <category><![CDATA[attacks]]></category> <category><![CDATA[crypto]]></category> <category><![CDATA[networks]]></category> <category><![CDATA[physical security]]></category><guid isPermaLink="false">http://perimetergrid.com/wp/?p=73</guid> <description><![CDATA[Having finished up with the BlackHat briefings, it was time to go on to DefCon.  While many of the speakers from BlackHat stay on for DefCon, there&#8217;s also a lot of DefCon-only presentations, usually with a more attack-oriented focus (in keeping with DefCon&#8217;s nature as a hacker convention rather than a security conference like BlackHat.) [...]<p></p> ]]></description> <content:encoded><![CDATA[<p>Having finished up with the BlackHat briefings, it was time to go on to DefCon.  While many of the speakers from BlackHat stay on for DefCon, there&#8217;s also a lot of DefCon-only presentations, usually with a more attack-oriented focus (in keeping with DefCon&#8217;s nature as a hacker convention rather than a security conference like BlackHat.)</p><p>The day began with <a
href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Cicero">Hacking E.S.P.</a> (Educational Software Packages.)  Schools, by their nature, have sensitive PII data &#8212; transcripts, schedules, billing information, etc.  A lot of this data is either stored directly in web-based educational software used by students, or is stored in other systems students access&#8230; probably with the same password.  Overall, though, this was a pretty typical application service provider hacking presentation &#8212; many of the schools they investigated used the same software on their sites, and that software was often woefully bad: Passwords sent &#8220;encrypted&#8221; in Base64 encoding &#8212; and not even that if JavaScript is turned off.  Trivial session stealing via Hamster-style sidejacking, with the added bonus that the Session ID is set <em>before </em>login so you can steal a session ID then wait for someone to use it.  Copious cross-site scripting vulnerabilities to allow for cookie stealing.</p><p>Generally someone would have to have a login on such a system to be able to exploit these things.  However, the username/password scheme is often helpfully revealed on the front page, and some schools even allow you to create your own account on the system. Google showed 34,000 instances of this one flawed software package alone.  Considering as schools account for 34% of data breaches, this sort of buggy software is probably commonplace.</p><p
style="text-align: left;">The second presentation I attended was about <a
href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Wong">Adobe local shared objects</a>.  In short, these are Flash cookies.  Just as your browser will store small data items (cookies) for a website, and return those items to the website when asked, Adobe Flash has a similar mechanism for Flash applets.  However, since these are stored by Flash and not by the browser, your browser doesn&#8217;t manage them &#8212; there is no indication to the user what data is being stored, and the data is not removed when you delete cookies or &#8220;private data&#8221; in your browser.  Ad networks have used these to &#8220;back up&#8221; your cookies &#8212; if you delete them, they are restored from a Flash local shared object when you next visit a site with the ads on it.  These are also hard to filter for systems like Privoxy and other anonymizers, because Flash uses a proprietary encoding for its XML RPC calls, in which the local shared objects are embedded.</p><p
style="text-align: left;">On the bright side, there is a Flash applet on the Adobe site called <a
href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html">Flash Settings Manager</a> that will let you delete these objects and put in settings to manage them.  On the not-so-bright-side, this is in-band signaling (i.e. Flash is configured by a Flash applet), so any advertiser can override your settings later.  Also, as you may recall from the RIA presentation at Black Hat that I discussed earlier, there are a lot of other local storage mechanisms besides this one in Flash &#8212; Silverlight, HTML 5, and other frameworks also have local storage that is outside your browsers&#8217; ability to manage.</p><p
style="text-align: left;">I next attended a presentation about vulnerabilities in <a
href="http://www.torproject.org/">TOR</a>, the onion-routing anonymity provider originally developed by the Department of the Navy and until recently maintained by the <a
href="http://www.eff.org/">EFF</a>.  TOR has become quite popular, at this point containing 1,500 relays and 200,000 users.  However, over the last several years, it&#8217;s seen several vulnerabilities that have threatened the anonymity it provides:</p><ul><li>2004: Error in how AES counter mode was used resulted in cryptography with only 16 bits of entropy.</li><li>2005: A relay cell length overflow could be used to force an exit node to send contents of memory</li><li>2005: Diffie-Hellman handshake bug in OpenSSL didn&#8217;t check for trivial keys, so a malicious entry node could mount a man-in-the-middle attack</li><li>2006: By running several fast TOR servers, an attacker could end up as both entry &amp; exit node for a user, thus compromising anonymity and potentially finding hidden services.  The fix for this was the addition of &#8220;entry guards&#8221; &#8212; trusted entry nodes that are re-used by users.</li><li>2006: Clients could create or extend channels even if server mode was turned off</li><li>2007: &#8220;Stable&#8221; or &#8220;Guard&#8221; status, normally applied to the top <em>n </em>nodes, could be stolen by malicious nodes by claiming high uptime and bandwidth.  The fix for this was to put in thresholds above which a node always gets guard status, rather than making it a top <em>n</em> calculation.</li><li>2007: XSRF attacks by web sites could make use of the TOR control port</li><li>2008: Nodes could be made to connect to their own public IPs</li><li>2008: The <a
href="http://perimetergrid.com/wp/2008/05/17/ubuntudebian-crng-cracked-ssh-vulnerable/">Debian OpenSSL PRNG flaw</a> compromised 300 of the 1,500 relay identity keys, and 3 of the 6 directory authority keys.  If one more authority key had been compromised, someone could have taken control of the network</li></ul><p>There are still some outstanding issues in TOR:</p><ul><li>You can build infinite-length circuits and use them as a DOS multiplier</li><li>Snooping on exit relays works &#8212; if someone uses an insecure protocol that gives away their identity (like POP&#8230; or even HTTP depending on what they send), TOR won&#8217;t necessarily protect them.  This isn&#8217;t a bug in TOR, but just the nature of what it does &#8212; no software package will give totally anonymous communication if the communication itself gives your identity to the recipient.</li><li>People who run relays are unknowns &#8212; there is no way to know how many are malicious.  However, TOR depends on having a large, diverse set of servers, so making more restrictions on who can run servers might actually lower, rather than raise, the network&#8217;s secuirty.</li><li>Exit relays sometimes end up in restricted space (e.g. behind China&#8217;s firewall) &#8212; which means TOR users get restricted, too.</li><li>Many users of TOR toggle it on and off during a single browser session.  However, a JavaScript refresh attack on one of the non-TOR sessions can sometimes retrieve data from the previous TOR session.</li><li>Firefox bugs leak data, and that data doesn&#8217;t go through TOR, since on Windows it works as an HTTP proxy.  Users can work around this by proxying their entire network stack through a VPN connection like a <a
href="http://www.janusvm.com/">JanusVM</a>.</li><li>It&#8217;s possible to block access to TOR.  If an adversary (say, the Chinese government) filters out the directory authorities, the download site, and all the relays, it&#8217;s very hard to get on.</li><li>If you can see both input and output (by running many, many nodes, or having a massive filtering apparatus at the Tier3 ISPs &#8212; FBI, maybe?) traffic confirmation is easy.  (i.e. if I already suspect you, specifcially, of doing something, I can confirm you did it much more easily than I can &#8220;go fishing&#8221; for people doing unknown bad things.)  Defensive dropping or adaptive packing would help with this, but would raise TOR&#8217;s latency.</li><li>You can fingerprint websites based on the size &amp; response time of the pages and tell what people are doing via traffic analysis.</li><li>A congestion attack by a website can find TOR nodes, and coupled with latency analysis on routers, can find the person communicating.</li><li>Data retention laws in many countries are resulting in data being stored that could make traffic analysis easier.</li></ul><p>So, with all these problems in TOR, does that mean we shouldn&#8217;t use it?  Not at all!  The known vulnerabiliites currently outstanding would apply to any low-latency mix network.  They&#8217;re not bugs in TOR, they&#8217;re limitations in this approach to anonymity, which remains better than any <em>other </em>approach to anonymity known.  TOR isn&#8217;t perfect, it&#8217;s just better than everything else.  Now, there may be better approaches to <em>specific problems </em>(e.g. there is one particular adversary you want to hide from, not just people in general), but for general anonymity, you still can&#8217;t beat TOR, even with its flaws.</p><p>I unfortunately missed much of strace and RSnake&#8217;s <a
href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Stracener">presentation on Google Gadgets</a>.  In short, gadgets are pieces of HTML and JavaScript code hosted on third-party sites and brought into a Google-owned namespace.  Though this namespace doesn&#8217;t have direct access to Google cookies, the fact remains that it&#8217;s loading unknown JavaScript onto a Google page &#8212; it&#8217;s basically XSS-by-design.  Gadgets can communicate with or post to other users and gadgets on Google, and it turns out to be pretty easy to sneakily force a user to install a gadget onto their Google homepage.  If someone could crack a server hosting a trusted gadget, they could take control of the data of many Google users simultaneously.  Most of these vulnerabilities would apply to any gadget-based architecture, such as the Live start page, or Facebook&#8217;s apps, too.</p><p>The next presentation I attended was &#8220;Satan is on my Friends List,&#8221; about <a
href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Hamiel">attacking social networks</a>.  In short, social networks are full of promiscuous and pervasive trust relationships, which results in a large number of business logic flaws.  These attacks aren&#8217;t on code vulnerabilities like SQL injection, but rather just exploiting how the systems work.</p><p>Sites often don&#8217;t protect &#8220;non-sensitive&#8221; operations, like logging out or adding friends, from XSRF attacks.  Thus, it&#8217;s possible to craft comments that log out anyone who views them&#8230; which makes it rather hard to delete them (since you have to be logged in to delete a comment.)  XSRFs can be put into image links, meta refresh tags, IFRAMEs, etc.</p><p>In addition, social networks are ideal platforms for social engineering attacks.  Build a plausible profile for someone else using social and public sources, and then friend a few dozen people who are known to friend everyone right back to build a &#8220;respectable&#8221; number of connections.  Joing groups, and start friending real associates of the person being impersonated.  At that point, you have a web site that can be used to confirm your identity as someone else.</p><p>The Facebook and OpenSocial APIs for integrated social apps are also good avenues for attack.  They have convenient APIs and execute arbitrary code by design &#8212; the social networks don&#8217;t care about application malware, as it&#8217;s on a second domain and they&#8217;re legally protected by their EULA.  However, if you widely distribute an app based on some current meme, get hundreds of users, then replace that app in-place with malware, you have an instant social network botnet.  You can use them as open redirects, put phishing items on their social network page, etc.  Also, applications have all the access that friends do &#8212; just the data disclosure may be enough for identity theft, impersonation, or at least some minor mayhem.  They can publish to a user&#8217;s profile to infect others, too.</p><p>Unfortunately, the fixes for these issues are just what the social network sites don&#8217;t want to hear &#8212; less external content, reduced API functionality, no opt-in security models, review and lifetimes for applications, etc.  Thus, these vulnerabilities are probably here to stay.</p><p>The last presentation I attended was by Errata Security, about <a
href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Maynor">interesting penetration tests</a>.  Modern penetration tests are &#8220;supposed to be boring&#8221; &#8212; they&#8217;re often done for the purpose of meeting compliance objectives, so companies are mostly interested in meeting a checklist, not in security.  They want to be secure against likely attacks and &#8220;script kiddies,&#8221; but are not interested in making the kinds of expensive changes required to defend against a determined, well-funded adversary.  The main exceptions are government agencies and Wall Street, who know they&#8217;re the targets for those determined adversaries.</p><p>Maynor &amp; Graham walked through a couple of interesting things they did as part of penetration testing.  One of these involved hacking the well-firewalled network of a company that was based at a secure facility, one where they could not simply walk onto the premises.  Instead, the wired an iPhone to a UPS battery and put it into the original iPhone packaging, then mailed it to the company.  With a UPS battery, an iPhone can run for 5 straight days with the WiFi on.  They modified the phone to add tcpdump and APlogger, and added a cron job that would send an SSH tunnel out to their computers every hour over the AT&amp;T EDGE connection.  The result was a WiFi sniffer &amp; endpoint inside the &#8220;secure facility&#8221; from which they could scan the internal network and run Metasploit to break into things.  An iPhone, after jailbreak has been run, is essentially a tiny BSD box &#8212; a perfectly suitable hacking platform.  Who thinks about their network being hacked by a cardboard box in the mailroom?</p><p>They also built a better phishing site.  Even security-aware people who are looking for phishing sites look for a valid SSL certificate bound to the site and signed by a trusted authority.  However, all it takes to get a real SSL certificate signed is about $2,700.  Start a business, register with Dun &amp; Bradstreet to get a credit rating, then apply for a real certificate from VeriSign or Thawte.  You can even sign ActiveX controls and require users to install them as a &#8220;secuirty feature.&#8221;  Since so many banks and companies outsource their applications or their HR and IT infrastructure, a phishing site with a good certificate is often indistinguishable from an outsourced site.  Just send someone at the comapany an email saying that the company has changed 401(k) providers, and they need to go to this outsourced site and sign up.</p><p>As is customary with DefCon, there wasn&#8217;t much talk about how to prevent these vulnerabilities.  However, it gives you something to think about, and it&#8217;s often very hard to guard against clever attacks against business logic flaws.  There&#8217;s no substitute for good threat modeling and flexible thinking.</p><p
style="text-align: left;"><p></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ZtgihMggKSo:jBn5bkatqjs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ZtgihMggKSo:jBn5bkatqjs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=ZtgihMggKSo:jBn5bkatqjs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ZtgihMggKSo:jBn5bkatqjs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?i=ZtgihMggKSo:jBn5bkatqjs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PerimeterGrid?a=ZtgihMggKSo:jBn5bkatqjs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/PerimeterGrid?d=7Q72WNTAKBA" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://perimetergrid.com/wp/2008/08/24/defcon-16-day-1/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using xcache
Page Caching using xcache
Database Caching using disk: basic

Served from: perimetergrid.com @ 2012-01-31 11:21:58 -->

