<?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:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-37798047</atom:id><lastBuildDate>Wed, 15 Jul 2009 07:21:29 +0000</lastBuildDate><title>Errata Security</title><description>Errata Security is a consulting and product testing company that offers expertise in cybersecurity to our clients.</description><link>http://erratasec.blogspot.com/</link><managingEditor>noreply@blogger.com (David Maynor)</managingEditor><generator>Blogger</generator><openSearch:totalResults>307</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/blogspot/lfzO" type="application/rss+xml" /><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/blogspot/lfzO" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FlfzO" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5480705532999240185</guid><pubDate>Fri, 03 Jul 2009 19:52:00 +0000</pubDate><atom:updated>2009-07-06T15:21:32.450-05:00</atom:updated><title>The Economist on the Kindle</title><description>You can now get a subscription to the &lt;a href="http://www.economist.com"&gt;Economist&lt;/a&gt; on the &lt;a href="http://www.amazon.com/The-Economist/dp/B0027VSU9S/ref=sr_1_1?ie=UTF8&amp;s=digital-text&amp;qid=1246654012&amp;sr=1-1"&gt;Kindle&lt;/a&gt; (or Kindle readers on devices like the iPhone).&lt;br /&gt;&lt;br /&gt;Economics is the &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Red_pill"&gt;red pill&lt;/a&gt;&lt;/i&gt;. It explains how the world &lt;i&gt;really&lt;/i&gt; works. Whereas a normal newspaper will report an event as inexplicable, &lt;i&gt;The Economist&lt;/i&gt; might explain how it's the expected result of an economics concept, like decreasing marginal returns, incentives, opportunity cost, etc.&lt;br /&gt;&lt;br /&gt;For example, last year a hurricane took out oil refinery production in the south. The result was long gas lines, with people waiting hours to get gasoline. Typical news stories talked about how the government should act to reduce prices, shorten lines, and crack down on "gougers". Economics explains that the gas lines are the direct consequence of the government's anti-gouging law, and that if the government allowed "gouging", prices would rise a little bit and the lines would disappear.&lt;br /&gt;&lt;br /&gt;If you know basic economics, &lt;i&gt;The Economist&lt;/i&gt; is a great explanation of the news. If you don't, then it's a great use of the news to explain basic economics. Or, a combination of both: I studied economics in college, but it wasn't until I started ready &lt;i&gt;The Economist&lt;/i&gt; that I really started to &lt;a href="http://en.wikipedia.org/wiki/Grok"&gt;grok&lt;/a&gt; the subject.&lt;br /&gt;&lt;br /&gt;If you want to learn economics, I recommend &lt;i&gt;&lt;a href="http://www.amazon.com/Principles-Economics-N-Gregory-Mankiw/dp/0324589972/ref=sr_1_6?ie=UTF8&amp;s=books&amp;qid=1246651665&amp;sr=8-6"&gt;Principles of Economics&lt;/a&gt;&lt;/i&gt; by Greg Mankiw.&lt;br /&gt;&lt;br /&gt;PS: &lt;i&gt;The Economist&lt;/i&gt; has a left-wing bias like much of the rest of the media, but at least it's a saner left-wing bias. For example, it believes in global warming, but correctly points out that the "cap-and-trade" mechanism used in Europe (and soon to be used in the United States if the Senate bill passes) is &lt;a href="http://www.economist.com/world/unitedstates/displaystory.cfm?story_id=13952934"&gt;expensive and corrupt&lt;/a&gt;, compared to a more efficient and transparent carbon tax.&lt;br /&gt;&lt;br /&gt;PPS: The Kindle isn't the future of publishing, but it certainly fits my lifestyle of heavy reading and traveling.&lt;br /&gt;&lt;br /&gt;PPPS: This &lt;a href="http://money.cnn.com/2009/07/06/news/economy/minimum_wage/index.htm"&gt;CNN story on the upcoming federal minimum wage increase&lt;/a&gt; is another good example. Economists believe that increasing minimum wage increases unemployment. &lt;i&gt;The Economist&lt;/i&gt; magazine mentions this when reporting on minimum wage, other news sources (like CNN) don't.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5480705532999240185?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/07/economist-on-kindle.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5608997710540234097</guid><pubDate>Fri, 12 Jun 2009 21:09:00 +0000</pubDate><atom:updated>2009-06-12T18:45:48.696-05:00</atom:updated><title>Asynchronocity and Internet Scale</title><description>Schools teach you the wrong way to write network code. They teach you the "&lt;b&gt;synchronous&lt;/b&gt;" method. You send a request, wait for a response, then process the response. This doesn't scale to large programs that must interacts with thousands of peers at gigabit speeds. These types of programs require "&lt;b&gt;asynchronous&lt;/b&gt;" coding.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The problem is that while you are waiting for a response, you can't do anything else useful. You can't simultaneously interact with a second system, for example. Normally, this isn't a problem because computers respond so quickly that you don't notice the wait. You can also hide it by using multiple threads, but if you had 10 threads, then 10 slow systems will noticeably slow your code.&lt;br /&gt;&lt;br /&gt;Asynchronous coding solves this problem by never waiting. It sits in a loop processing events, either incoming packets, or timeout events.&lt;br /&gt;&lt;br /&gt;Let's use a TCP connection as an example. As everyone knows, the client sends a SYN packet to the server, the server responds with a SYN-ACK, then the client sends an ACK. This SYN-SYNACK-ACK is known as the "three-way-handshake".&lt;br /&gt;&lt;br /&gt;In synchronous code, you send a SYN, then stop and wait for a SYN-ACK. When you get a response packet, you first test it to make sure it conforms to the SYN-ACK you were expecting, otherwise you handle some sort of error.&lt;br /&gt;&lt;br /&gt;In asynchronous code, the receive thread sits in an "event dispatch loop". It processes incoming packets. If an incoming SYN-ACK is received, it looks it up in a connection table to see if anybody has sent a SYN packet. If so, it dispatches the SYN-ACK as appropriate.&lt;br /&gt;&lt;br /&gt;Imagine you are writing a port scanner, like nmap. One way you could write this is to launch many threads, where each one sends out a SYN packet, then stops and waits for the SYN-ACK. This could could generate &lt;b&gt;thousands of packets per second&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Or, you could write your mapping program with two threads: one that does nothing but sends out SYN packets, and a second thread that receives SYN-ACKs in response. This code could generate a &lt;b&gt;million packets per second&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Recently, a hacker released a TCP DoS tool called NKiller2. The tool uses asynchronous network code. It can appear confusing to people accustomed to synchronous programming. A synchronous coder might expect it to launch many threads, where each thread sends out a SYN and waits for responses for that one connection. This would be too slow - it would probably DoS itself creating too man threads before it was able to DoS the victim.&lt;br /&gt;&lt;br /&gt;Instead, NKiller2 is written asynchronously. It runs two threads, one thread that spews out SYN packets, and another thread that responds to incoming packets. This may not be obvious, because both steps are part of the same thread of execution. The code has an event dispatch loop that looks like the following:&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;while () {&lt;br /&gt;    . . .…&lt;br /&gt;    send_syn_probe(Target, Sniffer);&lt;br /&gt;    . . . &lt;br /&gt;    state = check_replies(Target, Sniffer, &amp;reply);&lt;br /&gt;    switch (state) &lt;br /&gt;    {&lt;br /&gt;      case S_SYNACK:&lt;br /&gt;        send_probe(reply, Target, S_SYNACK);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/tt&gt;&lt;br /&gt;If you are used to synchronous programming, you might assume that the "send_syn_probe()" and "check_replies()" function are related, that it first sends a SYN then checks for a reply to that SYN. That's NOT what's going on.&lt;br /&gt;&lt;br /&gt;Instead it's really running two threads, one that sits in a loop sending SYNs, and another that sits in a loop processing replies. The code just combines both into the same loop. You could put the "send_syn_probe()" function at the bottom of the loop, AFTER the "check_replies()", and the code would behave the same.&lt;br /&gt;&lt;br /&gt;Or, you could create two versions of this program. Create one that sends SYNs, but has the "check_replies()" commented out. Create a second program with "send_syn_probe()" commented out, but which only receives replies. Now run them both at the same time, and you'll get identical results as the original program.&lt;br /&gt;&lt;br /&gt;This code also uses the technique of being completely "stateless". One way to write this code would be for it to create a small connection record. However, since it is creating millions of connections, it would need a large table in memory to track what each connection is doing. Instead, it's much simpler. It will reply to a SYN-ACK packet regardless if it sent a matching SYN packet.&lt;br /&gt;&lt;br /&gt;That would be one (of many) easy ways to see if somebody is running this tool against you. Whenever you suspect somebody is DoSing you, send them a SYN-ACK packet out of the blue. If it's a normal, stateful system that tracks SYNs it sent, then the suspected attacker will respond with some sort of error. If it is stateless, Internet scale attacker, they will respond with a data packet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Internet scale programming like this is all around us. When the Internet worms were ravaging the Internet, a common technique was to set up "tarpits". A tarpit would accept an incoming TCP connection, but never respond. The worm on the other end would stop and wait for a response. Since the tarpit would never respond, the worm would wait forever, stopping its spread. Some worms would launch a hundred threads, each thread would eventually find a tarpit and be halted. (Note: I first tried this with the Morris Worm, it effectively slowed it down, but it would eventually timeout connections and move on - the first worm was written better than most following worms).&lt;br /&gt;&lt;br /&gt;Another example of this is Internet-wide scanning. Kaminksy used this approach for scanning for DNS servers: have one thread spew out DNS packets, and a second thread receive them. I used the same technique for scanning for SNMP vulnerabilities. I wrote it for the military to scan Class A networks (with 16-million addresses), but it would scale to the entire Internet. My SNMP scanner was also stateless: it would accept any SNMP response regardless if it actually sent the system a request. This was actually pretty interesting seeing how many SNMP responses didn't match correctly with a request I sent (such as multi-homed hosts).&lt;br /&gt;&lt;br /&gt;It works the other way around, too. IronPort used this approach to receiving large amounts of e-mail. They called the operating system they built around this idea "&lt;a href="http://www.ironport.com/products/ironport_asyncos_operating_system.html"&gt;AsyncOS&lt;/a&gt;". (They also use this for sending spam).&lt;br /&gt;&lt;br /&gt;Asynchronicity is why BlackICE/Proventia IPS is faster than application gateways. Fundamentally, they do the same thing: process application layer data and block it. However, BlackICE does this asynchronously, with a single thread. Application-layer gateways tend to be written synchronously, with a limited amount of threads waiting for data.&lt;br /&gt;&lt;br /&gt;Conclusion&lt;br /&gt;&lt;br /&gt;They teach you synchronous coding in school because it's easy to understand. However, in order to write software to "Internet scale", you have to learn how to write asynchronous code. This applies to worms, DoS tools, port scanners, firewalls, IPS, e-mail gateways, and so on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5608997710540234097?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/06/asynchronocity-and-internet-scale.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-7907648609638384648</guid><pubDate>Wed, 10 Jun 2009 20:09:00 +0000</pubDate><atom:updated>2009-06-11T09:45:21.433-05:00</atom:updated><title>Why people don't get security</title><description>Security is only as strong as your weakest link.&lt;br /&gt;&lt;br /&gt;Everyone has heard this. It seems obvious. Yet, people repeatedly fail at understanding it.&lt;br /&gt;&lt;br /&gt;Recently, a startup called "StrongWebMail" offered a $10k competition to hack their CEO's webmail account. They give you the CEO's password. Their hook is that they also authenticate by calling you back on the phone, so knowing their password isn't enough. Hackers broke in and claim the reward using a typical cross-site-scripting attack.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theregister.co.uk/2009/06/10/strongwebmail/"&gt;When conceding, StrongWebMail said this&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;It is important to note that the front end protection offered by StrongWebmail.com was not compromised. In fact, Lance [James] and his team were forced to find a way around the phone authentication. We are working with our email provider to solve this vulnerability and ensure that the backend email software is more secure.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This misses the point. The flaw used to crack the system wasn't something rare or unusual, it was instead the most common flaw in web applications. It is a type of flaw that was first exploited over a decade ago in webmail applications.&lt;br /&gt;&lt;br /&gt;At the same time, all webmail providers can fix flaws like this within hours, not wait weeks for some other organization to fix the flaw.&lt;br /&gt;&lt;br /&gt;This is like advertising you have elite commandos protecting the front door of your bank, yet leaving your back door open. Sure, no other bank has commandos, yet no other banks leave their back door open, either.&lt;br /&gt;&lt;br /&gt;Nobody cares about the strength of your strongest feature. What people care about is the strength of your weakest feature. By this measure, &lt;b&gt;StrongWebMail is less secure than any other e-mail system and you would be a fool to rely upon it.&lt;/b&gt; It doesn't matter how strong their strongest link is when they have so many weak links.&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;By the way, the simple fact they had this contest in the first place means they cannot be trusted. It's a magic trick most frequently used by snake-oil salesmen.&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;I misspelled the name in the first post. It should be "StrongWebMail" not "StrongMail", which refers to a completely different company.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-7907648609638384648?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/06/why-people-dont-get-security.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5633092474179338698</guid><pubDate>Thu, 04 Jun 2009 22:10:00 +0000</pubDate><atom:updated>2009-06-05T16:24:33.271-05:00</atom:updated><title>Why deep packet inspection is faster</title><description>Snort recently added a more complex NetBIOS, SMB, DCE-RPC protocol parser into its code. In other words, it added "deep packet inspection" (DPI) for these protocols.&lt;br /&gt;&lt;br /&gt;This means Snort is now slower, right? If you've got an internal network full of these sorts of packets, shouldn't you be worried that your Snort boxes might be overloaded with this new deep-packet-inspection code?&lt;br /&gt;&lt;br /&gt;Nope. Snort is now faster.&lt;br /&gt;&lt;br /&gt;The reason is that deep packet inspection is actually FASTER than blindly searching traffic for patterns. The more you understand about the structure of a packet, the LESS work you have to do analyzing it for intrusions.&lt;br /&gt;&lt;br /&gt;This was the curious thing we found with BlackICE/Proventia (the IDS/IPS that does more deep packet inspection than any competing product). As everyone knows, adding signatures to an IDS makes it slower. We found the reverse: as we added signatures, the product got faster. The reason was because as we added signatures, we also added more deep-packet-inspection logic. This then meant we needed to do less work later on, and the faster the product became.&lt;br /&gt;&lt;br /&gt;This is why Snort still struggles at 1-gbps, whereas Proventia scales to 6-gbps: Proventia does more DPI.&lt;br /&gt;&lt;br /&gt;Not all DPI will speed up code, of course. When DPI can be done in a single pass, then it will speed things up. Some DPI, though, requires you to backtrack, which further requires you to buffer old data so that you can backtrack to it. This is the case when looking for intrusions within Word documents. Also, decompression streams can be slow: a 1-gbps gzipped stream can easily expand out to 10-gbps worth of data. If you put Proventia in front of your servers sending out compressed HTTP traffic, you might want to turn off the decompression feature for that reason.&lt;br /&gt;&lt;br /&gt;Also, a lot depends upon how you write your DPI logic. The Snort NetBIOS/DCE code isn't horrendously bad, but it's slower than it needs to be. For example, it uses the "ntohs()" function to swap bytes, which is a bad way of coding. Most DPI code, like that you find in e-mail servers, is a lot worse. That's why DPI is considered "slow", it's because most programmers don't write DPI code well.&lt;br /&gt;&lt;br /&gt;UPDATE&lt;br /&gt;&lt;br /&gt;Consider this rule I downloaded from &lt;a href="http://www.emergingthreats.org"&gt;EmergencyThreats.net&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;alert tcp $HOME_NET any -&gt; $EXTERNAL_NET $HTTP_PORTS (\&lt;br /&gt;        msg:"ET P2P ABC Torrent User-Agent (ABC/ABC-3.1.0)"; \&lt;br /&gt;        flow:to_server,established; \&lt;br /&gt;        &lt;b&gt;content:"User-Agent\: ABC/ABC"; nocase;&lt;/b&gt; \&lt;br /&gt;        sid:2003475;)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This is blind to the HTTP protocol. It is slow, because it must search everything that goes across those ports. It's prone to false positives, because the pattern may exist for reasons unrelated to the original attack.&lt;br /&gt;&lt;br /&gt;However, with hypothetical DPI extensions to Snort, you might write it like the following. Since it reduces the range of the pattern down to just that header field, it would be faster, and less prone to false-positives.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;alert &lt;b&gt;http&lt;/b&gt; $HOME_NET any -&gt; $EXTERNAL_NET &lt;b&gt;any&lt;/b&gt; (\&lt;br /&gt;        msg:"ET P2P ABC Torrent User-Agent (ABC/ABC-3.1.0)"; \&lt;br /&gt;        &lt;b&gt;header.useragent:"ABC/ABC";&lt;/b&gt; \&lt;br /&gt;        sid:2003475;)&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5633092474179338698?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/06/why-deep-packet-inspection-is-faster.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5593236612431863227</guid><pubDate>Wed, 27 May 2009 00:52:00 +0000</pubDate><atom:updated>2009-05-26T20:19:17.209-05:00</atom:updated><title>No killer robots soon</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img.slate.com/media/93/090521_LA_robotsTN.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 252px; height: 195px;" src="http://img.slate.com/media/93/090521_LA_robotsTN.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;I'm reading this &lt;i&gt;Slate&lt;/i&gt; article about whether &lt;a href="http://www.slate.com/id/2218834/"&gt;you should be worried about robots eventually taking over&lt;/a&gt;. The author of that article has a "Harvard Ph.D. in security studies" and "helped write the new president's defense policy agenda". The article was disappointing.&lt;br /&gt;&lt;br /&gt;The point he misses is that &lt;b&gt;today's robots are not autonomous&lt;/b&gt;. The "&lt;a href="http://en.wikipedia.org/wiki/Unmanned_aerial_vehicle"&gt;Umanned Aerial Vehicles&lt;/a&gt;" (UAVs) dropping bombs in Afghanistan still have pilots, it's just that the pilots are located at a military base safely in a bunker rather in the vehicle itself. They don't make decisions to drop bombs, those decisions are likewise made by people, then remote signals sent to the UAV to drop them.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What we have today is not "robotics" so much as "telerobotics".&lt;/b&gt; They aren't mechanical soldiers so much as remote tools used by human soldiers -- soldiers who are not in harms way.&lt;br /&gt;&lt;br /&gt;I'm an investor in a company that makes remote controlled guns that can, among other things, be controlled through the Internet. They sell them to the military. One of the main features is how and when these devices will actually fire a weapon.&lt;br /&gt;&lt;br /&gt;The next level of telerobotics is "programmed response". My companies telerobitic guns have the feature where they can remember scans of the environment, and if something appears in the environment that doesn't belong there, the guns will swivel around, aim at the object, and shoot it. Yet, this still a sort of telerobotics: while the device itself chose to shoot, it did so on precisely programmed responses. It's still humans in control, with the robotics doing precisely what they are told to do.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;I've walked past one of these units and had the gun slowly swivel as it followed me across the room. It's a bit unnerving.&lt;/b&gt; You do get a Terminator-like, sinister feeling about the device, yet, there is no intelligence lurking back there. It's just following lines of code.&lt;br /&gt;&lt;br /&gt;When the robots rise up and enslave us, they won't be the military robots, but our personal robots like washing machines, toasters, and cars. The military is a bunch of control freaks. They don't like the idea of anything, not even their own soldiers, making decisions on their own.&lt;br /&gt;&lt;br /&gt;Finally, I'd like to point out that this problem is "&lt;a href="http://en.wikipedia.org/wiki/AI-complete"&gt;AI-complete&lt;/a&gt;". The robotic revolution requires artificial intelligence (AI), and if we ever perfect AI, we'll have a lot more to worry about than the errant robot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5593236612431863227?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/05/no-killer-robots-soon.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-1677882702911264083</guid><pubDate>Sun, 24 May 2009 21:59:00 +0000</pubDate><atom:updated>2009-05-26T01:04:21.787-05:00</atom:updated><title>Sidejacking poem</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TJ2XNCjin0s/ShnDs7ewokI/AAAAAAAAAGQ/3lZ93VHIdac/s1600-h/new-yorker.GIF"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 138px; height: 137px;" src="http://3.bp.blogspot.com/_TJ2XNCjin0s/ShnDs7ewokI/AAAAAAAAAGQ/3lZ93VHIdac/s200/new-yorker.GIF" border="0" alt=""id="BLOGGER_PHOTO_ID_5339514009872802370" /&gt;&lt;/a&gt;&lt;br /&gt;"&lt;a href="http://www.newyorker.com/fiction/poetry/2009/05/11/090511po_poem_mchugh"&gt;Hackers Can Sidejack Cookies&lt;/a&gt;", according to a poem recently published in the New Yorker.&lt;br /&gt;&lt;br /&gt;For those who don't know, "sidejacking" is a new variant of cookie hijacking I came up with two years ago at BlackHat. Also, my recent post on the new &lt;i&gt;Star Trek&lt;/i&gt; movie comes up on top when you Google "&lt;a href="http://erratasec.blogspot.com/2009/05/star-trek-sucked.html"&gt;star trek sucked&lt;/a&gt;". The moral of the story is that if you produce enough original content, odd bits will eventually start filtering through the mass (un)conscious.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-1677882702911264083?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/05/sidejacking-poem.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_TJ2XNCjin0s/ShnDs7ewokI/AAAAAAAAAGQ/3lZ93VHIdac/s72-c/new-yorker.GIF" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-8560836724761100378</guid><pubDate>Fri, 15 May 2009 23:16:00 +0000</pubDate><atom:updated>2009-05-15T18:46:56.395-05:00</atom:updated><title>Scan 3rd party websites for safeness</title><description>Since I'm a right-wing wacko who enjoys &lt;a href="http://www.drudgereport.com"&gt;Druge Report&lt;/a&gt;, I noticed this &lt;a href="http://www.politico.com/news/stories/0509/22574.html"&gt;this article&lt;/a&gt; that claims the U.S. Attorney's Office in Massachusetts told employees not to log onto the Drudge Report because it contained viruses.&lt;br /&gt;&lt;br /&gt;Drudge itself isn't hosting malware intentionally, but malware may get through. One possible reason is that they are using a advertising aggregator that isn't too picky about which adds it serves. Another possible reason is it has an exploitable bug, hackers have broken in, and are now attacking visitors.&lt;br /&gt;&lt;br /&gt;A good example of this is the related news aggregator &lt;a href="http://www.breitbart.com"&gt;BreitBart.com&lt;/a&gt; which right this moment has an obvious SQL injection vulnerability. Pick any article with an "id" field in the URL, add a quote, and you get an SQL error message back. If you edit the following URL as shown to add a quote ' character in the &lt;i&gt;id&lt;/i&gt; field, you will get the following SQL error message:&lt;br /&gt;URL:&lt;a href="http://www.breitbart.com/article.php?id=D986V0E80"&gt;http://www.breitbart.com/article.php?id=D986V0E80&lt;/a&gt;&lt;br /&gt;Edit:&lt;a href="http://www.breitbart.com/article.php?id=D986'V0E80"&gt;http://www.breitbart.com/article.php?id=D986&lt;b&gt;'&lt;/b&gt;V0E80&lt;/a&gt;&lt;br /&gt;Message:&lt;blockquote&gt;&lt;i&gt;Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&lt;b&gt;V0E80' ORDER BY issue_date DESC LIMIT 1&lt;/b&gt;' at line 3&lt;/i&gt;&lt;/blockquote&gt;&lt;br /&gt;This means that BreitBart has probably been taken over by hackers, who are either now delivering malware, or are waiting for the next QuickTime/Flash/PDF 0day in order to deliver that.&lt;br /&gt;&lt;br /&gt;I feel safe browsing these websites because I browse inside a virtual machine, which has non-root privileges, using NoScript and AdBlock within Firefox. I may be a little extreme, but at MINIMUM, user should browse the Internet without root privileges.&lt;br /&gt;&lt;br /&gt;Large organizations might consider scanning websites that are popular among their users to look for obvious vulnerabilities like SQL-injection. Like it or not, popular websites like CNN are part of your infrastructure, and when they get hacked, your users can get hacked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-8560836724761100378?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/05/scan-3rd-party-websites-for-safeness.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-899148353230537221</guid><pubDate>Wed, 13 May 2009 21:21:00 +0000</pubDate><atom:updated>2009-05-13T23:57:55.222-05:00</atom:updated><title>How to measure download speed</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sgs6lumbm_I/AAAAAAAAAGI/UYsu_yUdcMc/s1600-h/centos-download.GIF"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 127px;" src="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sgs6lumbm_I/AAAAAAAAAGI/UYsu_yUdcMc/s200/centos-download.GIF" border="0" alt=""id="BLOGGER_PHOTO_ID_5335422603389279218" /&gt;&lt;/a&gt;&lt;br /&gt;There are lots of "speed tests" websites that will measure your download speed, such as the ones provided DSLreports and SpeakEasy. &lt;br /&gt;&lt;br /&gt;Or, you can BitTorrent a Linux distro. The advantage is that instead of incoming data from a single site, you get hundreds of streams of incoming data from all over the Internet. The only limitation will be the download link.&lt;br /&gt;&lt;br /&gt;I just got a new cable modem line. It's supposed to be 15megs down, but DSLreports said it was only 8mbps down. That could be a limitation with DSLreports, though, so I downloaded CentOS (popular version of Linux) to be sure, and I'm indeed limited to 8mbps down. &lt;br /&gt;&lt;br /&gt;The graph of traffic shows that the traffic quickly ramps up and pegs at the maximum. I accidentally had the maximum set to 900-&lt;b&gt;Kbytes&lt;/b&gt;/second, I had to up the limit, at which point the traffic averages at 1000-&lt;b&gt;Kbytes/second&lt;/b&gt;, or 8-mbps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-899148353230537221?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/05/how-to-measure-download-speed.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sgs6lumbm_I/AAAAAAAAAGI/UYsu_yUdcMc/s72-c/centos-download.GIF" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5973795592761424676</guid><pubDate>Fri, 08 May 2009 19:41:00 +0000</pubDate><atom:updated>2009-05-16T13:52:23.606-05:00</atom:updated><title>Star Trek Sucked</title><description>&lt;a href="http://entertainment.slashdot.org/article.pl?sid=09/05/08/1634236"&gt;Everyone else&lt;/a&gt; is going to love the new Star Trek movie, but not me. It's got great visuals, great casting, great acting, great editing, and just about everything you'd want in a Hollyword blockbuster movie. It's got all the appropriate "in" jokes that left the Trekkies in the audience giggling throughout the movie. For me, though, it's not what I want from a Star Trek movie.&lt;br /&gt;&lt;br /&gt;First of all, I hate time travel. It's a form of "&lt;a href="http://en.wikipedia.org/wiki/Deus_ex_machina"&gt;deus ex machina&lt;/a&gt;". If you allow time travel in your universe, then the universe has no rules because people can go back and change what happened. Everything becomes a loose end. If the bad guys blow up a planet, just go back in time and kill their grandfather. It means no story truly exists, because someone can come back from the future and change the story. It's the second worst plot device in sci-fi (the worst is where at the end you realize it was all a dream). Time travel is the last refuge of incompetent writers; if they can't figure out how to fit a prequel into the Star Trek universe, they simple go back in time and change the universe.&lt;br /&gt;&lt;br /&gt;Second, the movie isn't sci-fi enough. What makes sci-fi different than other genres is that the "setting" is as interesting as "plot" and "character". Blade Runner would have been a good movie, but what made it a great movie was the distopic, cyberpunk vision of the future. In the new Star Trek, the setting is more of an update to the latest fashion rather than the latest technology. It sure is pretty, but it's not interesting.&lt;br /&gt;&lt;br /&gt;Lastly, and most importantly, is that the movie is the opposite of Rodenberry's original vision. Rodenberry showed us future not just where technology had improved, but where people had improved as well. Spock's logic wasn't something to look down upon, it was something to look up to. Things like the "Prime Directive" showed the importance of ethics. In this new Star Trek, the opposite is true. Kirk acts like a small minded jerk, demonstrates no moral fiber or great character, and yet is mysteriously promoted above those who do show character. I suppose this is what Hollywood has to do in order to sell movies. Everyone wants more money. However, if you are producing a movie, you don't make one that glorifies hard work, risk taking, education, or saving. Instead, you show movies where rich people steal money and act like greedy bastards, so the audience can feel better about themselves for their lack of industry, risk taking, education, or savings. &lt;br /&gt;&lt;br /&gt;It was Rodenberry's belief in mankind that made the original Star Trek series a commercial flop, but cult favorite. I guess you can have one, or the other, but not both.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5973795592761424676?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/05/star-trek-sucked.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">58</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-2066079883228306497</guid><pubDate>Thu, 30 Apr 2009 20:01:00 +0000</pubDate><atom:updated>2009-04-30T16:45:21.152-05:00</atom:updated><title>How to stop the swine flu</title><description>Don't do this:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_TJ2XNCjin0s/SfoD0XekzlI/AAAAAAAAAGA/K6oaxy4adv8/s1600-h/swineflu.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_TJ2XNCjin0s/SfoD0XekzlI/AAAAAAAAAGA/K6oaxy4adv8/s400/swineflu.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5330577307136740946" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UPDATE:&lt;/b&gt; ...or maybe do it. Exposing ourselves to non-dangerous strains may be the best way to build immunity to the dangerous strains.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-2066079883228306497?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/how-to-stop-swine-flu.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_TJ2XNCjin0s/SfoD0XekzlI/AAAAAAAAAGA/K6oaxy4adv8/s72-c/swineflu.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-2384713236075246769</guid><pubDate>Sun, 26 Apr 2009 14:43:00 +0000</pubDate><atom:updated>2009-04-26T09:45:48.980-05:00</atom:updated><title>Cyberspies, #2</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://media.economist.com/images/20090425/D1709LD1.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 300px; height: 239px;" src="http://media.economist.com/images/20090425/D1709LD1.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;As I blogged, that &lt;a href="http://online.wsj.com/article/SB123914805204099085.html"&gt;WSJ story on cybespies&lt;/a&gt; was crap. However, that story had "legs". When a story gets attention, other news organizations jump on it and create their own version of the story. You can see similar stories, like these from the &lt;a href="http://news.bbc.co.uk/2/hi/technology/7990997.stm"&gt;BBC&lt;/a&gt;, &lt;a href="http://abcnews.go.com/US/wireStory?id=7286503"&gt;Reuters&lt;/a&gt;, and &lt;a href="http://www.cnn.com/2009/TECH/04/08/grid.threat/index.html?iref=mpstoryview"&gt;CNN&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Every journalist knew the story was crap. It was ethically questionable (relied upon anonymous sources that couldn't be challenged). The original journalist who wrote the story knew it was crap. Her editor knew it was crap (indeed, probably asked the journalist who wrote it to sex it up). Other journalists who wrote their own version of the story knew it was crap.&lt;br /&gt;&lt;br /&gt;So, each journalist had to make their own ethical decision. It's obvious that the public wants to read about the story, so do you feed the public's appetite, or do you stand up for ethics and quality news? Most organizations made the wrong decisions. CNN's version of the story is probably the most reasonable: they tracked down the original anonymous guys making the claim, and then did their research debunking the claims. CNN also used the correct word "hackers" whereas everyone else used the misleading word "spies". (hackers hint independent people, spies implies people who work directly for their governments).&lt;br /&gt;&lt;br /&gt;However, it is The Economist that made the best choice in &lt;a href="http://www.economist.com/opinion/displaystory.cfm?story_id=13527677"&gt;their version of the story&lt;/a&gt;, where they point out what all the other journalists knew:&lt;br /&gt;&lt;b&gt; But the most likely explanation for the sudden spate of scare stories is rather more mundane: a turf war between American government agencies over who should oversee the nation's cyber-security.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I highly recommend The Economist weekly news magazine. It is the most intelligent source of mainstream news available. Other sources like the New York Times or Newsweek or cable news channels target a dumber audience and consequently have dumber news, The Economist targets a more educated audience.&lt;br /&gt;&lt;br /&gt;As a side note, I'm disappointed that the news organizations didn't contact any pentesters who had broken into power grids (such as &lt;a href="http://www.blackhat.com/presentations/bh-federal-06/BH-Fed-06-Maynor-Graham-up.pdf"&gt;myself&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-2384713236075246769?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/cyberspies-2.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-6468463354838832408</guid><pubDate>Fri, 24 Apr 2009 09:53:00 +0000</pubDate><atom:updated>2009-04-25T22:06:52.035-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">hacker tool</category><category domain="http://www.blogger.com/atom/ns#">ARGs</category><category domain="http://www.blogger.com/atom/ns#">Terminator</category><title>Tales of hacker tools Vol 1: View Source</title><description>5am and I can't sleep. I am obsessed with &lt;a href="http://en.wikipedia.org/wiki/Alternate_reality_game"&gt;"Alternate Reality Games"&lt;/a&gt; or ARGs. I started with &lt;a href="http://en.wikipedia.org/wiki/Majestic_(video_game)"&gt;Majestic&lt;/a&gt; from EA and I was hooked from there. With the upcoming &lt;a href="http://terminatorsalvation.warnerbros.com/"&gt;Terminator: Salvation,&lt;/a&gt; it seems &lt;a href="http://www.warnerbros.com/"&gt;WB&lt;/a&gt; thought that an ARG would be a good way to promote the upcoming movie. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are two sites (that I have found so far): &lt;a href="http://www.skynetresearch.com/"&gt;Skynet Research&lt;/a&gt; and &lt;a href="http://resistorbeterminated.com/"&gt;Resist or be Terminated&lt;/a&gt;. Both are funny videos to watch and accept user created submissions. On the Resist site you can sign up and play a simulator that lets you collect resources, build military units, and attack other players. Since I love all three of those things, it seemed like a win-win. The problem is, for a detail-oriented person, the documentations on gameplay is...well there is none. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I decided to use the very dangerous but time honored hacking technique of "View Source". This technique is not for rookies and I am sure it must violate some international law, but I am a maverick and I really want to win this game. Here is what I found:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AKhPPf_qofs/SfGQDG_7z0I/AAAAAAAAAkg/K0v3PJFPlJg/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 107px;" src="http://3.bp.blogspot.com/_AKhPPf_qofs/SfGQDG_7z0I/AAAAAAAAAkg/K0v3PJFPlJg/s320/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5328198217248788290" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Medieval game? An empire? Galava? MUD?!?! What does this have to do with John Connor and his plucky band of resistance fighters and their battle with Oba^H^H^HSkynet? Using another hidden hacker tool, Google, will lead you to a new &lt;a href="http://beta1.galava.net/home"&gt;site&lt;/a&gt;. Although the names have been changed, the basic layout of this game is the same as the Terminator game. Even better, they have documentation and forums. What works in the Galava game also works in the Terminator game. Armed with this information my performance has spiked in the last 2 hours.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The moral of this story is beware of hacker tools like "View Source" and "Google". They could give unauthenticated, 3rd party attackers insight into your application design, and can cause unexpected results. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-6468463354838832408?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/tales-of-hacker-tools-vol-1-view-source.html</link><author>noreply@blogger.com (David Maynor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_AKhPPf_qofs/SfGQDG_7z0I/AAAAAAAAAkg/K0v3PJFPlJg/s72-c/Picture+1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-4696285807925009988</guid><pubDate>Thu, 23 Apr 2009 18:53:00 +0000</pubDate><atom:updated>2009-04-24T17:53:39.831-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">RSA</category><title>RSA 2009</title><description>I was trying to figure out the mood at the RSA security conference. Due to the recession, attendance is down 30%.&lt;br /&gt;&lt;br /&gt;First of all, it appears that the recession affects cybersecurity less than other parts of IT. I would personally describe cybersecurity as a luxury, but compliance (HIPAA, SOX, PCI, etc.) make it a non-luxury. Companies cannot cut back on security and stay within compliance.&lt;br /&gt;&lt;br /&gt;Second of all, it seems there has been a shift from products to consulting/services. Companies are encouraged to shed full-time employees (which commit the companies to things like health insurance and severance packages), so they fill the gaps by hiring part time employees (aka. consultants). Likewise, companies may find that if they can’t hire more people to manage more firewalls, they will stop buying firewalls, so hiring freezes can indirectly freeze product spending.&lt;br /&gt;&lt;br /&gt;Thirdly, it appears that federal government sales are up. It appears that government departments are flush with cash. Any company that does a substantial amount of business with the government is going to post good earnings this quarter.&lt;br /&gt;&lt;br /&gt;Fourth, it seems that when analysts go up to a booth, they are looking for work ("can I advise your on your marketing strategy") rather than information ("tell me about your product"). I've heard about a lot of layoffs in the analyst community. This is part of the larger trend that companies are trying to figure out how to do more with the products they already have, rather than buy new products. I know from experience that companies only use 20% of the functionality of their security products. I'd suggest to analysts looking for work that they write reports on how companies can use that 80% of other functionality of the products they already own.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-4696285807925009988?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/rsa-2009.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5708529213601304946</guid><pubDate>Wed, 22 Apr 2009 22:45:00 +0000</pubDate><atom:updated>2009-04-23T13:21:47.817-05:00</atom:updated><title>Why "cyber commands" fail</title><description>&lt;a href="http://en.wikipedia.org/wiki/United_States_Secretary_of_Defense"&gt;Defense Secretary Gates&lt;/a&gt; has announced that he wants offensive cyber warfare capability.&lt;br /&gt;&lt;br /&gt;It's not going to work. Hacking is &lt;a href="http://en.wikipedia.org/wiki/Asymmetric_warfare"&gt;"asymmetric" warfare&lt;/a&gt;. The military is trying to shoehorn it into traditional "symmetric" warfare.&lt;br /&gt;&lt;br /&gt;Hacking doesn't work the way it's portrayed in the movies. In the movie Swordfish, the villain puts the hero in front of a computer open to a website, puts a gun to the hero's head, and tells the hero to hack into the website in 60 seconds "or else". That's not the way hacking works, the best hackers in the world could not do that.&lt;br /&gt;&lt;br /&gt;However, you could tell a good hacker to break into any website in 60 seconds. In hacking, it's difficult accomplishing a specific, narrowly defined goal. The broader the range of goals, the more likely the hacker will succeed at one of them.&lt;br /&gt;&lt;br /&gt;What the military wants is a hacker squad that they can give a specific objective, and have the hackers carry out that objective within a specific timeframe. For example, they might tell hackers to take out Iran's radar at midnight so that fighter jets can enter their airspace a few minutes later to bomb their nuclear plants. That's not going to work.&lt;br /&gt;&lt;br /&gt;What you could do is tell hackers to go after Iran and do whatever they can to disrupt their nuclear developments. One hacker might find a way to shut down safety controls and cause a nuclear meltdown, another might jam the centrifuges, another might change the firmware on measuring equipment to incorrect measure the concentration of U238.&lt;br /&gt;&lt;br /&gt;Or, you could give the hackers six months to infiltrate Iran's computers, then come back with a list of options. Maybe disabling the radar system will be one of them, maybe not. But that's not the sort of thing the military is tasked to do - that's more an intelligence operation the CIA would be doing.&lt;br /&gt;&lt;br /&gt;I use this scenario as an example because something similar happened in the first Iraq war in 1990, where our "hackers" were able to disable their radar by hacking into their phone network. This happened because of circumstance and luck, not because it was a carefully laid out plan to disable their radar that way.&lt;br /&gt;&lt;br /&gt;China and Russia understand this. They don't directly employ hackers or tell the hackers to accomplish certain goals. They let the hackers have free range to do whatever they want. If the hackers come across something interesting, such as plans for the Joint Strike Fighter, the government buys it, but no government official ever told the hackers specifically to steal those plans.&lt;br /&gt;&lt;br /&gt;The reason China and Russia can do this is because that's already the way totalitarian regimes work. A good example is the Russian "Nashi" organization. This is a militant, nationalistic youth group encouraged by the government. Among the things these thugs do is beat up journalists critical of the central government. They also show up at anti-government demonstrations to rough up the demonstrators. In this way, the government gets what it wants (suppressing dissent) without having to do the dirty work itself.&lt;br /&gt;&lt;br /&gt;I mention the Nashi because it appears that youths affiliated with that group were also responsible for some of the cyber attacks against Estonia in that dispute in 2007. It is probable that no Russian government official directed the attacks - that's the entire point. By encouraging nationalistic groups, things like this happen without the government having to direct anything.&lt;br /&gt;&lt;br /&gt;There are problems with this technique. Sometimes the youth groups don't do enough, sometimes they get out of hand. China props up Japan as their primary adversary, and last year, riots demonstrating against Japan got out of hand, and the Chinese government had to back down on their anti-Japan rhetoric. Whatever the costs, though, it allows the government to keep their hands clean.&lt;br /&gt;&lt;br /&gt;So how can the United States get in on this sort of asymmetric warfare action?&lt;br /&gt;&lt;br /&gt;The first thing is that you have to stoke some sort of nationalism in the way that Russia and China do. I'm not sure this is in our character (especially under the current president), however, so we'd probably have to find some alternative. Instead of pro-USA nationalism we could instead focus on human rights activism. The government could spend a lot of time talking to the press about the sorts of human rights abuses that go on in Russia and China. Get our own USA hackers thinking about human rights as their own causus belli.&lt;br /&gt;&lt;br /&gt;The second thing they need to do is create a climate where our own hackers can operate. I would gladly hack into Iranian computers, but I'm not sure how this fits into US law. (I don't mind breaking Iranian law, but I'm a stickler as far as US law is concerned).&lt;br /&gt;&lt;br /&gt;This would be similar to the "letters of mark and reprisal" used by governments during the 1700s. In those days, national navies were too small to patrol the entire ocean. Therefore, governments licensed privateers to prey upon a hostile nation's shipping. The privateers kept half the booty, and gave the other half to their respective government. This is essentially what China and Russia have done.&lt;br /&gt;&lt;br /&gt;A third thing our military would need to do is train our hackers in the target language. Foreign hackers usually learn English, but American hackers rarely learn foreign languages, especially Russian, Chinese, or Farsi (Iranian). If we want to encourage our hackers to go after those countries in the same way they come after us, we need to encourage them to learn those languages. The military runs an excellent school in Monterey. They should recruit people at conferences like Defcon to take their language aptitude tests (right there at the conference), and for hackers who score well, pay them to attend their 6-month high-intensity language courses.&lt;br /&gt;&lt;br /&gt;The fourth thing our military would need to do is fix their horrid purchasing processes. I experienced this when selling BlackICE to the military: it almost cost us more going through the byzantine purchase process than we got in money from the purchase. Let's say that you found a robustly exploitable Windows server vulnerability. It's worth $100,000 to our military. There is no way they could buy it. If you tried selling it to them, it would cost you more than $100,000 to go through their obstacles.&lt;br /&gt;&lt;br /&gt;Note that I think the individuals who run our military are very, very smart. I've met several generals and colonels who understand this. The problem is that while individuals are smart, the organization is dumb as a rock. The organization crushes precisely the sort of creative thinking need to have a successful "cyber" offensive capability.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5708529213601304946?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/why-cyber-commands-fail.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-7330526955709024756</guid><pubDate>Thu, 16 Apr 2009 17:32:00 +0000</pubDate><atom:updated>2009-04-16T12:41:25.366-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Apple</category><category domain="http://www.blogger.com/atom/ns#">0day</category><title>Ode to 50cent</title><description>I was recently on a plane for a LONG, LONG time. For me this is roughly equivalent to putting a cat in a box and dangling it over water. I get bored easy and after watching all the television shows I had brought with me I decided to play with IDA and any unsuspecting binaries from my laptop that I randomly selected. While doing this I noticed iTunes kept crashing, predictably and reliably in the same place. I decided to use gdb to see what the hubbub was all about. However I got dissed and iTunes would not allow itself to be debugged.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AKhPPf_qofs/SedtEBbsFVI/AAAAAAAAAjo/C6KRcjGJk6I/s1600-h/Picture+5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 122px;" src="http://2.bp.blogspot.com/_AKhPPf_qofs/SedtEBbsFVI/AAAAAAAAAjo/C6KRcjGJk6I/s320/Picture+5.png" alt="" id="BLOGGER_PHOTO_ID_5325345000260375890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This would not do. Not knowing anything about the anti-debugging capabilities of iTunes I decided the best way (and the laziest way) for a programmer to try and keep me from debugging is ptrace. I set a breakpoint on ptrace and tried it again.  I got a nibble. I typed return, and then let iTunes continue on its way. It worked somewhat: it would continue but I was prompted over and over again to complete the same task and if I deleted the breakpoint iTunes would exit. I decided to modify ptrace to return immediately. I did so with the following command:&lt;br /&gt;&lt;br /&gt;set *(int)ptrace = 0xc3&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AKhPPf_qofs/SedtW2JiiDI/AAAAAAAAAjw/ThOIWgi9zMo/s1600-h/Picture+6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 288px;" src="http://3.bp.blogspot.com/_AKhPPf_qofs/SedtW2JiiDI/AAAAAAAAAjw/ThOIWgi9zMo/s320/Picture+6.png" alt="" id="BLOGGER_PHOTO_ID_5325345323648976946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;0xc3 translated to ret. After I did this I deleted the breakpoint and let iTunes go about its normal activity, or as 50cent would say, “sit back and let the money pile up.”&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AKhPPf_qofs/SedsJNk00TI/AAAAAAAAAjY/rjDbTB1jb8s/s1600-h/Picture+1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 254px;" src="http://2.bp.blogspot.com/_AKhPPf_qofs/SedsJNk00TI/AAAAAAAAAjY/rjDbTB1jb8s/s320/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5325343989907640626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;B00m, we have a crash.&lt;br /&gt;&lt;br /&gt;Now I can examine the information from the crash and work on how exploitable the problem is. The exploitability is a post for another day; I just thought some folks could use a nifty trick if they found themselves in a jam.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AKhPPf_qofs/Sedsh2vJTdI/AAAAAAAAAjg/U4rnKgDf1ps/s1600-h/Picture+4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 313px;" src="http://2.bp.blogspot.com/_AKhPPf_qofs/Sedsh2vJTdI/AAAAAAAAAjg/U4rnKgDf1ps/s320/Picture+4.png" alt="" id="BLOGGER_PHOTO_ID_5325344413273640402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;(This post was written to 50cents “How to rob.” Also I typed some commands in gdb that produced errors becasue my regular alias file was not loaded.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-7330526955709024756?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/ode-to-50cent.html</link><author>noreply@blogger.com (David Maynor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_AKhPPf_qofs/SedtEBbsFVI/AAAAAAAAAjo/C6KRcjGJk6I/s72-c/Picture+5.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-884231625750211910</guid><pubDate>Thu, 16 Apr 2009 01:33:00 +0000</pubDate><atom:updated>2009-04-15T21:39:42.350-05:00</atom:updated><title>SSL acceleration</title><description>This Slashdot article &lt;a href="http://tech.slashdot.org/article.pl?sid=09/04/15/2016231"&gt; discusses building an SSL accelerator&lt;/a&gt; for $5k worth of hardware rather than $50k for a "hardware" accelerator like F5, that has similar performance.&lt;br /&gt;&lt;br /&gt;Probably not necessary. You can probably do SSL just on the servers themselves without too much of a performance hit. If you need more performance, an SSL accelerator probably wouldn't help that much, you'd probably need a load balancer instead -- like F5.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-884231625750211910?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/ssl-acceleration.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-216637776718439685</guid><pubDate>Thu, 09 Apr 2009 05:02:00 +0000</pubDate><atom:updated>2009-04-09T00:33:02.753-05:00</atom:updated><title>THIS IS SO AWESOME!!!</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_TJ2XNCjin0s/Sd2FVkDbFRI/AAAAAAAAAFI/25kDNHnsXxw/s1600-h/southpark1.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 198px;" src="http://1.bp.blogspot.com/_TJ2XNCjin0s/Sd2FVkDbFRI/AAAAAAAAAFI/25kDNHnsXxw/s200/southpark1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5322556940123575570" /&gt;&lt;/a&gt;&lt;br /&gt;This story from &lt;a href="http://entertainment.slashdot.org/article.pl?sid=09/04/08/236221"&gt;Slashdot&lt;/a&gt; and &lt;a href="http://www.telegraph.co.uk/news/newstopics/celebritynews/5122031/South-Park-creators-given-signed-photo-of-Saddam-Hussein.html"&gt;Telegraph.co.uk&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;During his captivity, U.S. Marines forced Saddam Hussein to watch "&lt;a href="http://www.imdb.com/title/tt0158983/"&gt;South Park: Bigger, Longer And Uncut&lt;/a&gt;". That movie portrayed &lt;b&gt;Saddam Hussein as Satan's gay lover&lt;/b&gt;. (This character also appeared in several of the South Park TV shows).&lt;br /&gt;&lt;br /&gt;I'm not too happy with the invasion of Iraq, and I didn't want Saddam to face the death penalty, but I always &lt;b&gt;wanted him to face exactly what we thought of him&lt;/b&gt;. Ever since I saw the movie, I have thought to myself "I hope that if we ever catch the bastard that we force him to watch this". And, apparently, we did. I would pay money to shake the hands of the Marines who did this.&lt;br /&gt;&lt;br /&gt;By the way, it should be remembered that the South Park movie was a musical as heartwarming and endearing as "The Sound of Music". One of the songs, "&lt;a href="http://en.wikipedia.org/wiki/Blame_Canada"&gt;Blame Canada&lt;/a&gt;" was nominated for an Oscar.&lt;br /&gt;&lt;br /&gt;On the other hand, I forbid my parents from watching the movie, because it is not "age appropriate". Senior citizens are not at the developmental stage where they can handle it (although children are, of course). Sadly, I suspect my dad has been sneaking behind my back watching South Park episodes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-216637776718439685?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/this-is-so-awesome.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_TJ2XNCjin0s/Sd2FVkDbFRI/AAAAAAAAAFI/25kDNHnsXxw/s72-c/southpark1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-4317417357907603424</guid><pubDate>Wed, 08 Apr 2009 07:05:00 +0000</pubDate><atom:updated>2009-04-08T02:23:23.506-05:00</atom:updated><title>Has the power grid been penetrated by enemies?</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_TJ2XNCjin0s/SdxQrhZ8b6I/AAAAAAAAAFA/OVPlbDMf_xk/s1600-h/300px-Electrical_Substation.JPG"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 150px;" src="http://1.bp.blogspot.com/_TJ2XNCjin0s/SdxQrhZ8b6I/AAAAAAAAAFA/OVPlbDMf_xk/s200/300px-Electrical_Substation.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5322217568276869026" /&gt;&lt;/a&gt;&lt;br /&gt;This Wall Street Journal article "&lt;a href="http://online.wsj.com/article/SB123914805204099085.html"&gt;Electricity Grid in U.S. Penetrated By Spies&lt;/a&gt;" is an example of "yellow journalism". It makes eye catching claims whose only source is anonymous government officials, backed up by pseudo-experts that nobody has heard of before.&lt;br /&gt;&lt;br /&gt;The source of this story probably has to do with this:&lt;blockquote&gt;Last week, Senate Democrats introduced a proposal that would require all critical infrastructure companies to meet new cybersecurity standards and grant the president emergency powers over control of the grid systems and other infrastructure.&lt;/blockquote&gt;There's no coordinated conspiracy here, but there are a lot of government officials who stand to gain by this attempt at drastically increasing government control over the Internet. They will certain call up reporters they know and attempt to get them to write scare stories precisely like this.&lt;br /&gt;&lt;br /&gt;Another quote from the story is:&lt;blockquote&gt;Last year, a senior Central Intelligence Agency official, Tom Donohue, told a meeting of utility company representatives in New Orleans that a cyberattack had taken out power equipment in multiple regions outside the U.S. The outage was followed with extortion demands, he said.&lt;/blockquote&gt;I know of a similar story, told to me by the people who investigated the incident. It appeared that hackers had broken into the power control systems (in a country outside the US), caused a small blackout, and had made ransom demands. &lt;b&gt;As it turns out, it was an inside job, not an attack from the outside&lt;/b&gt;. Both the outside "hacker" and the inside guy (who flipped the appropriate switch to cause a blackout) were arrested and put in jail. (The timing and details are similar enough that it's my guess the stories refer to the same incident).&lt;br /&gt;&lt;br /&gt;Notice how my story has an ending, whereas Tom Donohue's story doesn't. Seriously, how could the CIA not know how the story turned out. The hackers made ransom demands, but then what?&lt;br /&gt;&lt;br /&gt;My conclusion is that the CIA and/or Tom Donohue is lying. They are claiming something to be solid research which is only vague innuendo and rumors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-4317417357907603424?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/has-power-grid-been-penetrated-by.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_TJ2XNCjin0s/SdxQrhZ8b6I/AAAAAAAAAFA/OVPlbDMf_xk/s72-c/300px-Electrical_Substation.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">10</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-354437975708095503</guid><pubDate>Tue, 07 Apr 2009 22:25:00 +0000</pubDate><atom:updated>2009-04-07T17:51:14.317-05:00</atom:updated><title>Dallas FBI raid, part 2</title><description>Wired Thread Level has a &lt;a href="http://blog.wired.com/27bstroke6/2009/04/data-centers-ra.html"&gt;writeup of that recent Dallas FBI raid&lt;/a&gt; that seized all the computers at a couple of colos. In particular, they have a copy of the &lt;a href="http://blog.wired.com/27bstroke6/files/faulknercrydon_technology_affidavit.pdf"&gt;warrant&lt;/a&gt; authorizing the raid. It confirms what I said in my previous blog on the subject.&lt;br /&gt;&lt;br /&gt;Being technical means &lt;b&gt;I'm more interested in reading the search warrant itself than I am reading the Wired story&lt;/b&gt;. Being technical, I wish more news articles were like that Wired article publishing the raw, technical sources of their data rather than digested summary of the content. I hope one day that it will be journalistic ethics that interview notes and other material be posted online next to the stories.&lt;br /&gt;&lt;br /&gt;In any case, if you read the warrant, you see it's about this guy Mike Faulkner. It certainly appears this guy is up to no good. The warrant lists a number of places to search, such as his home, business, mail post office box, and so forth. However, is also lists the "Core IP" location that made the news. I've read the affidavit twice and found nothing that implicates "Core IP" other than the fact that one of Faulkner's business was once a customer of Core IP. There is certainly nothing that justifies the grabbing of all the customer equipment at the Core IP location.&lt;br /&gt;&lt;br /&gt;As I said in my previous post, the FBI is good at crime, and it appears probable that Faulkner is a criminal. On the other hand, they are bad with computers, and there is nothing that justifies the way they raped Core IP and its customers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-354437975708095503?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/dallas-fbi-raid-part-2.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-7607996511491565174</guid><pubDate>Sat, 04 Apr 2009 20:10:00 +0000</pubDate><atom:updated>2009-04-04T15:14:33.239-05:00</atom:updated><title>Why SSL sucks, #458738</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sde-6ZM8qiI/AAAAAAAAAEc/ACU48Uzi61g/s1600-h/yahoo-login.PNG"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 66px;" src="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sde-6ZM8qiI/AAAAAAAAAEc/ACU48Uzi61g/s200/yahoo-login.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5320931395168414242" /&gt;&lt;/a&gt;&lt;br /&gt;I accessed "mail.yahoo.com" and got this error message saying the certificate is bad. Normally, this would be cause to panic. While lesser sites might get SSL wrong, the big sites should get it right. Therefore, if you see a certificate error at a big site like Yahoo!, you should assume somebody is trying to man-in-the-middle your connection.&lt;br /&gt;&lt;br /&gt;However, on closer inspection, it appears that Yahoo! fouled up. It's the result of "mail.yahoo.com" incorrectly using a certificate for "login.yahoo.com".&lt;br /&gt;&lt;br /&gt;The fact that even a large site like Yahoo! cannot get SSL is pretty damning for SSL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-7607996511491565174?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/why-ssl-sucks-458738.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_TJ2XNCjin0s/Sde-6ZM8qiI/AAAAAAAAAEc/ACU48Uzi61g/s72-c/yahoo-login.PNG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">15</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-5140082805521146063</guid><pubDate>Sat, 04 Apr 2009 08:11:00 +0000</pubDate><atom:updated>2009-04-04T03:18:27.725-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fbi</category><category domain="http://www.blogger.com/atom/ns#">dallas</category><title>FBI takes down Dallas ISP</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_TJ2XNCjin0s/SdcXqQU92eI/AAAAAAAAAD0/f_y_uZUeH4Y/s1600-h/fbi_logo.gif"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 194px; height: 200px;" src="http://4.bp.blogspot.com/_TJ2XNCjin0s/SdcXqQU92eI/AAAAAAAAAD0/f_y_uZUeH4Y/s200/fbi_logo.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5320747499466381794" /&gt;&lt;/a&gt;&lt;br /&gt;The &lt;a href="http://cbs11tv.com/local/Core.IP.Networks.2.974706.html"&gt;FBI raided a Dallas ISP&lt;/a&gt; and took all the servers belonging to roughly 50 people.&lt;br /&gt;&lt;br /&gt;This seems excessive. I want to see the search warrant. In America, a search warrant is supposed to be limited to a specific item being searched for. What makes our country free is that the national police can't come in and grab everything like this.&lt;br /&gt;&lt;br /&gt;Unfortunately, in my personal experience, the FBI is a bit corrupt. Few FBI agents that deal with "cybercrime" know anything about computers. As a consequence, they can be easily manipulated to do terrible things like this. It is quite plausible that the MPAA manipulated them to do this massive server grab in order to track down who released the recent Wolverine flick to the Internet.&lt;br /&gt;&lt;br /&gt;On the other hand, the FBI is very good at crime in general. There could be legitimate reasons for the massive grab. We'll just have to wait until data is published (i.e. the search warrant authorizing this).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-5140082805521146063?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/fbi-takes-down-dallas-isp.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_TJ2XNCjin0s/SdcXqQU92eI/AAAAAAAAAD0/f_y_uZUeH4Y/s72-c/fbi_logo.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-1894329188074573589</guid><pubDate>Thu, 02 Apr 2009 23:47:00 +0000</pubDate><atom:updated>2009-04-02T19:04:42.183-05:00</atom:updated><title>GPU cracking for $250</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TJ2XNCjin0s/SdVSliYd_3I/AAAAAAAAADc/W4uDFWnvo8c/s1600-h/gtx275pny.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 150px;" src="http://3.bp.blogspot.com/_TJ2XNCjin0s/SdVSliYd_3I/AAAAAAAAADc/W4uDFWnvo8c/s200/gtx275pny.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5320249339646181234" /&gt;&lt;/a&gt;&lt;br /&gt;ATI and nVidia have just shipped their spring refresh cards. Both now sell an essentially &lt;a href="http://www.anandtech.com/video/showdoc.aspx?i=3539"&gt;top-of-the-line&lt;/a&gt; card for &lt;a href="http://www.extremetech.com/article2/0,2845,2344294,00.asp"&gt;$250&lt;/a&gt; (either the ATI HD 4590 or the nVidia GTX 275). If you do password cracking for pentests, you might want to pick up a few of these cards.&lt;br /&gt;&lt;br /&gt;Both would be an excellent card to buy for password cracking. Either would increase password cracking speed by around 10x. I prefer the nVidia card because the CUDA programming support is easier to work with, but I suspect the ATI card may be slightly faster for crunching numbers.&lt;br /&gt;&lt;br /&gt;Note the way I say "top-of-the-line". For graphics, the more expensive GTX 285 is better than the GTX 275. However, both cards have the same number of "stream processors" at roughly the same clock speed. Therefore, both should crack passwords at the same speed. What makes the GTX 275 cheaper is the fact that it less backend graphics resources (fewer raster units, slower memory speed, narrower memory bandwidth, smaller frame buffer). We don't care about these other graphics resources -- all we care about is the number of "stream processors" and how fast they run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-1894329188074573589?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/04/gpu-cracking-for-250.html</link><author>noreply@blogger.com (Robert Graham)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_TJ2XNCjin0s/SdVSliYd_3I/AAAAAAAAADc/W4uDFWnvo8c/s72-c/gtx275pny.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-6968385134538135245</guid><pubDate>Thu, 26 Mar 2009 14:43:00 +0000</pubDate><atom:updated>2009-03-26T09:48:09.739-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">firefox</category><category domain="http://www.blogger.com/atom/ns#">0day</category><title>New Firefox 0day in WinDBG</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AKhPPf_qofs/ScuU6Ms26vI/AAAAAAAAAi4/k-c1BeLIkT8/s1600-h/Picture+5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 229px;" src="http://4.bp.blogspot.com/_AKhPPf_qofs/ScuU6Ms26vI/AAAAAAAAAi4/k-c1BeLIkT8/s320/Picture+5.png" alt="" id="BLOGGER_PHOTO_ID_5317507512603699954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here is a screenshot of the new &lt;a href="http://www.milw0rm.com/exploits/8285"&gt;FF 0day in WinDBG&lt;/a&gt; using the &lt;a href="http://www.codeplex.com/msecdbg"&gt;!exploitable&lt;/a&gt; extension. I am swamped with work right now, when I get a moment I try to post a more detailed writeup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-6968385134538135245?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/03/new-firefox-0day-in-windbg.html</link><author>noreply@blogger.com (David Maynor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_AKhPPf_qofs/ScuU6Ms26vI/AAAAAAAAAi4/k-c1BeLIkT8/s72-c/Picture+5.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-8649425446820744803</guid><pubDate>Wed, 11 Mar 2009 20:51:00 +0000</pubDate><atom:updated>2009-03-11T15:54:25.570-05:00</atom:updated><title>Deep packet inspection is not the same as snooping</title><description>"&lt;a href="http://news.zdnet.co.uk/security/0,1000000189,39625971,00.htm"&gt;Speaking at a House of Lords event&lt;/a&gt; to mark the 20th anniversary of the invention of the World Wide Web, Berners-Lee said that deep packet inspection (DPI) was the electronic equivalent of opening people's mail."&lt;br /&gt;&lt;br /&gt;No it's not. It's the equivalent of weighing mail in order to figure out how to best deliver packages. Small letters take one path through the postal system, large boxes take another. So-called "postal neutrality" laws would force the post office to route both letters and boxes the same, making the postal system less efficient.&lt;br /&gt;&lt;br /&gt;Such "postal neutrality" laws would tilt the market in favor of deliver monopoly Federal Express. This is why the monopoly is pushing for such laws. In much the same way, monopolies like Google, eBay, and Amazon are pushing for net neutrality laws.&lt;br /&gt;&lt;br /&gt;I'm joking about "postal neutrality", of course, but I'm not joking about net neutrality. People really do believe in regulating the Internet to help monopolies entrench themselves. People really do believe that "Vint Cerf" is some sort of wise-man saying what's good for the Internet, rather than simply a corporate shill for a monopoly.&lt;br /&gt;&lt;br /&gt;The great thing about our society is that you can encrypt your traffic if you don't want somebody to read it, and you can anonymize it through TOR for even more protection. Seems like it's a better bet to me to ensure that these freedoms are preserved, rather than fighting for a world where governments and Google can read our e-mail, but the ISPs cannot.&lt;br /&gt;&lt;br /&gt;On an unrelated not, I'm also amused by this &lt;a href="http://resources.zdnet.co.uk/articles/features/0,1000002000,39454822,00.htm"&gt;article that explains Deep Packet Inspection&lt;/a&gt;. When discussing DPI, the article claims "until now, this wasn't possible with IDS/IPS or stateful firewalls. The different is that DPI has the ability to inspect traffic at layers 2 through 7".&lt;br /&gt;&lt;br /&gt;This isn't true. I wrote the first IPS (BlackICE Guard, now IBM Proventia). It's full layer 7, at multi-gigabit speeds. For example, one of the signatures it can block are e-mails with ZIP attachments, where the ZIP file contains a filename that has more than 4 space characters followed by a ".exe" extension. (Viruses put lots of spaces in front the .exe extension to prevent you from seeing it). Proventia has to reassemble TCP stream, parse layer 7 protocols like SMTP, and then parse RFC822 e-mail headers, MIME, BASE64 encoding, and finaly ZIP file format.&lt;br /&gt;&lt;br /&gt;And, you know this is true because when the event fires, the full filename appears along with the event. This would be impossible without full 7 layer inspection.&lt;br /&gt;&lt;br /&gt;The Proventia IPS does deeper layer 7 inspection than any of the DPI discussed in the "net neutrality" debate. It has done so since 1999. That's one of its selling features: it includes the 7 layer decoded information as part of its events (which no other IPS does).&lt;br /&gt;&lt;br /&gt;The so-called "deep" packet inspection everyone is talking about is actually pretty shallow. While inspecting HTTP headers is certainly deeper than inspecting TCP headers, they still aren't capturing and indexing everyone's traffic -- at least, not any more than google-analytics does already.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-8649425446820744803?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/03/deep-packet-inspection-is-not-same-as.html</link><author>noreply@blogger.com (Robert Graham)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-37798047.post-7558168052994125139</guid><pubDate>Wed, 11 Mar 2009 05:34:00 +0000</pubDate><atom:updated>2009-03-11T00:57:47.068-05:00</atom:updated><title>SOURCE Boston</title><description>&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;I'll be at SOURCE Boston this week listening to talks from security professionals such as David Mortman, Adam Shostack, Dan Kaminski, and others. I am especially looking forward to panel hosted by Ryan Naraine entitled "The Partial Disclosure Dilemna."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;From the &lt;a href="http://www.sourceconference.com/"&gt;website&lt;/a&gt;, "SOURCE Conference is the first and only conference that combines advanced technology and application security practices with the business of security in an intimate and manageable environment. "&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;I'll be live microblogging the conference from day to day. To read a take on SOURCE Boston from a project manager's perspective, you can follow me here: &lt;a href="http://twitter.com/Errata"&gt;http://www.twitter.com/Errata/&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37798047-7558168052994125139?l=erratasec.blogspot.com'/&gt;&lt;/div&gt;</description><link>http://erratasec.blogspot.com/2009/03/source-boston.html</link><author>noreply@blogger.com (Marisa Fagan)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>
