<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;Ck4CQHk9eSp7ImA9WxNbEU8.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359</id><updated>2009-11-13T09:02:41.761-05:00</updated><title>The Security Shoggoth</title><subtitle type="html">Stories of an elder thing creation making its way in the world of information security.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://secshoggoth.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/TheSecurityShoggoth" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;DEYMRXo7eCp7ImA9WxNVEkw.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-1547013369612028716</id><published>2009-10-22T08:30:00.002-04:00</published><updated>2009-10-22T08:56:24.400-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-22T08:56:24.400-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="malware analysis" /><title>Tracking the Defenders</title><content type="html">I've been working hard the last few weeks to get my malware analysis class ready, but something popped up that got me thinking.  In the last few days a number of blogs have reported about avtracker.info, a site which is tracking the IP addresses that AV companies use to research malware.&lt;br /&gt;&lt;br /&gt;According to the supposed &lt;a href="http://www.peterkleissner.com/"&gt;author&lt;/a&gt;*, the reason this site is in existence is:&lt;br /&gt;&lt;blockquote&gt;If you DDoS them, then you will lame down the whole AV business, then there won’t be any new detections for the time you cut them from the internet. The IP list is also useful for software that downloads something from the internet, in order to hide it from automatic analyzers like Anubis. You can simply exit the program when the IP matches with one of the AV list – and then your program stays secure from automatic analysis.&lt;/blockquote&gt;I have to admit that I'm not surprised at these reasons, or even that this is happening.  In fact, I suspect its been happening a long time and this is just the first time a public list has been made.&lt;br /&gt;&lt;br /&gt;Think about it - we watch where the attackers are coming from.  We have honeypots, &lt;a href="http://feeds.dshield.org/block.txt"&gt;block lists&lt;/a&gt;, and share information amongst each other - why should we think the attackers are doing any differently?&lt;br /&gt;&lt;br /&gt;This does illustrate a good point, however.  In my class I teach that you should never allow malware you are analyzing to contact its home servers from your organization.  When you do, the attackers can figure out where you are coming from and, in the best case, block your access.  In the worst case you would be on the receiving end of a DDoS attack.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* I say supposed because I have no proof one way or another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-1547013369612028716?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/1547013369612028716/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=1547013369612028716" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1547013369612028716?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1547013369612028716?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/rnzaUBDyaRQ/tracking-defenders.html" title="Tracking the Defenders" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/10/tracking-defenders.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8DSXY4cSp7ImA9WxNQEkU.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-1038109990670694787</id><published>2009-09-18T11:20:00.003-04:00</published><updated>2009-09-18T11:31:18.839-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-18T11:31:18.839-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="hacks" /><title>Quick Backup Script</title><content type="html">I often create scripts and programs (Perl mostly) to help me do things.  When I'm developing these scripts, I will typically write a chunk of code, test it, add more functionality, test it, rinse, repeat.&lt;br /&gt;&lt;br /&gt;However, there are times where I'll delete a chunk of code to try something different and end up breaking my entire script.  Of course, when this happens I don't have a backup of the old code available to go back to.&lt;br /&gt;&lt;br /&gt;To help me, I made this small script which will backup a file given to it to a directory.  All it does is copy the file to a backup directory and tack on a date string to the end of it so every backup copy is unique.  Yes, this is a simple copy, but it makes it nice to have to do things quickly.&lt;br /&gt;&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;# quick script to backup files&lt;br /&gt;&lt;br /&gt;DEFAULTDIR=${HOME}/backup&lt;br /&gt;DATE=`date +%s`&lt;br /&gt;if [ $# -lt 1 ] ; then&lt;br /&gt;    echo $0 file-to-backup [path to backup dir]&lt;br /&gt;    exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# set the backup dir location&lt;br /&gt;BACKUPDIR=${2:-$DEFAULTDIR}&lt;br /&gt;&lt;br /&gt;if [ ! -d ${BACKUPDIR} ] ; then&lt;br /&gt;    echo ${BACKUPDIR} did not exist. Creating.&lt;br /&gt;    mkdir -p ${BACKUPDIR}&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# make sure the file exists&lt;br /&gt;if [ ! -f $1 ] ; then&lt;br /&gt;    echo $1 does not exist.&lt;br /&gt;    exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;cp $1 $BACKUPDIR/${1}-${DATE}&lt;br /&gt;if [ $? -eq 0 ] ; then&lt;br /&gt;    echo Successfully copied $1 to $BACKUPDIR/${1}-${DATE}&lt;br /&gt;else&lt;br /&gt;    echo Error copying $1 to $BACKUPDIR/${1}-${DATE}&lt;br /&gt;fi&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;I just copied it to /usr/local/bin, called it &lt;span style="font-style: italic;"&gt;myback&lt;/span&gt;, and chmod +x'd it.  Now, whenever I want to backup a script quickly I just run "myback script".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-1038109990670694787?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/1038109990670694787/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=1038109990670694787" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1038109990670694787?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1038109990670694787?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/5lnjpHZE7IQ/quick-backup-script.html" title="Quick Backup Script" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/09/quick-backup-script.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAFR304eCp7ImA9WxNTGE0.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-2829275012695584460</id><published>2009-08-20T17:11:00.003-04:00</published><updated>2009-08-20T17:28:36.330-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-20T17:28:36.330-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="conference" /><category scheme="http://www.blogger.com/atom/ns#" term="class" /><category scheme="http://www.blogger.com/atom/ns#" term="malware analysis" /><title>Introduction to Malware Dissection</title><content type="html">This October 29-30th the annual &lt;a href="http://www.informationsecuritysummit.org/"&gt;Ohio Information Security Summit&lt;/a&gt; will be held.  I highly recommend attending it if you can.  The conference features two days of great talks, keynotes, labs and networking.  It has been going on for a few years now and never fails to disappoint anyone who attends, especially for the price ($275 until Oct 1, $350 after).  In addition to the normal talks, the summit is offering a number of &lt;a href="http://www.informationsecuritysummit.org/training.php"&gt;pre-conference training courses&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I will be teaching a 2 day introduction to malware analysis class as one of the pre-conference training courses.  The course is geared to those who want to learn malware analysis or are just starting out.  We'll cover all of the basics for malware analysis including setting up your analysis lab, static analysis and dynamic analysis.  In the end, you'll walk out of the class with the knowledge of how to take a malware sample and determine what it does, who it contacts and what risk it poses.&lt;br /&gt;&lt;br /&gt;In the courses I have taken, I've found that I learn alot more by actually doing things rather than watching a powerpoint presentation for 8 hours. Because of this, the class will be structured around a number of labs which have you do the analysis using various tools on actual malware.  I've collected a number of cool malware samples which will be analyzed in the course in various ways and I'm really excited about it.  At the end of the class they'll also be an analysis contest where prizes will be given out.&lt;br /&gt;&lt;br /&gt;Since we will be handling live malware there are some &lt;a href="http://www.informationsecuritysummit.org/training.php"&gt;laptop requirements listed in the course description.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If anyone has any questions on the course or the laptop requirements, please contact me.  I look forward to seeing you there!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-2829275012695584460?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/2829275012695584460/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=2829275012695584460" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2829275012695584460?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2829275012695584460?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/rygmwOG-fEU/introduction-to-malware-dissection.html" title="Introduction to Malware Dissection" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/08/introduction-to-malware-dissection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8EQnc5cSp7ImA9WxNTFEg.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-623131935543588669</id><published>2009-08-16T16:15:00.005-04:00</published><updated>2009-08-16T16:33:23.929-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-16T16:33:23.929-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="musing" /><title>Its Not Always A Security Issue</title><content type="html">I've been spending this weekend fixing my in-laws computer.  Like most of you, I'm the family "tech support" for anything that goes wrong with a computer.  This past week I received a call from my mother-in-law that she was getting pop ups on her computer stating that it was infected and that the program would remove it if they paid for the full version.  Classic sign of fake anti-virus.&lt;br /&gt;&lt;br /&gt;After some quick research, we were able to determine that it was &lt;a href="http://www.bleepingcomputer.com/virus-removal/remove-advanced-virus-remover"&gt;Advanced Virus Remover&lt;/a&gt;.  It appeared to be pretty simple to get off (delete some files, clear out some of the registry, etc) but since I was not there I decided the best way was to have her reboot into safe mode and perform a system restore.  (Unlike some of my relatives, my m-i-l can actually do things like that without me hand-holding.)  Of course, when she tried to go into safe mode, it blue screened.&lt;br /&gt;&lt;br /&gt;The next day I went over to see if I could figure out what was going on.  I was able to remove the malware (and two others) fairly quickly, but we were still getting errors.  In short time I realized that part of the hard drive had gotten corrupted and was causing the BSODs - not the original malware.&lt;br /&gt;&lt;br /&gt;This made me remember another story from a job in a previous life.  I had been called down to another department by a friend.  The entire department were having some odd problems.  Whenever they tried to print their machines would BSOD.  Since I was the resident "malware guy", they decided to call me in to see if I could find anything.  When I got there, some Windows admins were also there looking at some of the systems.  My friend took me to the system with the original problem and I started to examine it.&lt;br /&gt;&lt;br /&gt;After a few minutes I couldn't find anything indicative of malware on the sytem.  I even booted with a Helix CD just in case there was a rootkit on the system.  Nothing.  After a few minutes the Windows admins came over and asked me what I thought.  I replied I didn't see anything but there were reports of a 0-day attack against the Windows printer system that day which were indicative of what we were seeing.  However, I stressed, I didn't know and didn't think this was related.&lt;br /&gt;&lt;br /&gt;Of course, within minutes the Windows admins had me on a call where they were explaining how I thought we had been hacked using a Windows 0-day attack against the printers.  It took at least 45 minutes for me to sort through everything that was being said and to finally point out that I had not found any proof of any attack and that I didn't think this was the problem.  When the Windows admins finally went back to troubleshooting the problem, they found that a corrupt Windows printer driver had gotten pushed to these systems and thats what was causing the issue.&lt;br /&gt;&lt;br /&gt;I learned two things that day:&lt;br /&gt;&lt;br /&gt;1. Never say that you think something has been compromised (or even could be compromised) until you have some type of proof.  People love to over-react in a situation like that and that just provides fuel for the fire.&lt;br /&gt;&lt;br /&gt;2. Not everything is a security incident.  Just like my in-laws computer, the presence of malware may not be the reason for the overall problem.  A corrupt hard drive could just be a corrupt hard drive.  If you start reading compromises into everything you see, you may miss what is actually there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-623131935543588669?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/623131935543588669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=623131935543588669" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/623131935543588669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/623131935543588669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/080P7JnHf9s/ive-been-spending-this-weekend-fixing.html" title="Its Not Always A Security Issue" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/08/ive-been-spending-this-weekend-fixing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkANQXk8eSp7ImA9WxJaFkg.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-8599036154269531365</id><published>2009-08-07T09:47:00.003-04:00</published><updated>2009-08-07T10:19:50.771-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-07T10:19:50.771-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="virus" /><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="malware analysis" /><title>Automating Malware Analysis Part 2</title><content type="html">I've heard rumors that the &lt;a href="http://www.hakin9.org/prt/view/about-the-mag/issue/1052.html"&gt;latest issue of Hakin9&lt;/a&gt; is on stands now.  This issue contains the second part of my article on automating malware analysis and adds memory analysis and sandnet capabilities to the analysis script.&lt;br /&gt;&lt;br /&gt;In the script, memory analysis is performed by suspending the virtual machine (as opposed to shutting it down as the first script did).  When a VMWare VM is suspended, the memory for the machine is dumped into a file which can then be analyzed.  This file is analyzed using &lt;a href="https://www.volatilesystems.com/default/volatility/"&gt;the Volatility Framework&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt;Volatility is an amazing tool which can extract information from Windows XP SP2 &amp; SP3 memory images.  The analysis script in the article uses Volatility to extract the process list, network connections, list of loaded DLLs and list of loaded modules of the VM memory.  However, Volatility can do so much more that I highly recommend extended what is in the article.&lt;br /&gt;&lt;br /&gt;In addition to memory analysis, the article adds sandnet capabilities to the script.  In the original script, the VM was set up in host-only networking mode which prevented the malware from communicating to anything over the network.  This really limited the analyst in what they could see.  For example, if the malware wanted to download additional files from a web server, the analyst would never see it.&lt;br /&gt;&lt;br /&gt;To allow network connectivity, and still keep the network the analyst was on safe from infection, the script uses a tool set called &lt;a href="http://www.inetsim.org/"&gt;InetSim&lt;/a&gt; to create a fake Internet for the malware to interact with.  InetSim loads a number of localized servers (DNS, HTTP, etc) and logs any data sent to it.  Now, when malware attempts to connect to a web server it will be able to and the analyst will see what it is attempted to download.  &lt;a href="http://secshoggoth.blogspot.com/2009/02/inetsim-installation.html"&gt;I blogged about InetSim and how to install InetSim back in February.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope everyone enjoys the article.  Please send me any feedback on the article or enhancements to the script.  It does not appear that Hakin9 has posted the code listing for it yet, but as soon as they do I'll link to it from here.  Of course, feel free to contact me to get the code if you want.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-8599036154269531365?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/8599036154269531365/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=8599036154269531365" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8599036154269531365?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8599036154269531365?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/4iqMRo11NEQ/automating-malware-analysis-part-2.html" title="Automating Malware Analysis Part 2" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/08/automating-malware-analysis-part-2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQFRng5fyp7ImA9WxJaFE0.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-6575577942531831534</id><published>2009-08-04T12:02:00.005-04:00</published><updated>2009-08-04T13:51:57.627-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-04T13:51:57.627-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="conference" /><title>Black Hat Recap</title><content type="html">Wow...its been a few months since I've last posted.  Sorry about that!  Things have been nuts IRL which has kept me away from posting, but if you actually read my blog you'll be happy to know I have some things lined up.&lt;br /&gt;&lt;br /&gt;Last week I had the opportunity to attend Black Hat USA in Las Vegas.  While I won't go over every single talk I attended, the highlights are below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Advanced Malware Deobfuscation&lt;/span&gt; - This was actually a training course written by Scott Lambert and Jason Geffner.  The course is essentially about the different techniques used to unpack malware, an area I needed some training on.  If you know how to RE and are comfortable in a debugger, I highly recommend this course.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Win at Reversing&lt;/span&gt; - This talk was given by Nick Harbour from Mandiant on a new tool called API Thief. When performing behavioral analysis of a malware sample, the analyst typically wants to see what calls the malware is making and uses a program like Process Monitor to do so. The problem with this only system calls are grabbed and misses some potentially important API calls. Nick's tool uses inline hooking to record API calls instead of system calls. This allows the analyst to get more information and potentially do some tricks to unpack the software. I'm going to be checking out the tool more to see how I can utilize it. Currently it can be downloaded at &lt;a href="http://rnicrosoft.net"&gt;http://rnicrosoft.net&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reverse Engineering by Crayon&lt;/span&gt; - The next talk was on performing hypervisor based malware analysis and visualization. Essentially, the presenters used a software called Ether which integrates with a Xen VM in order to perform malware analysis. To be honest, I had not looked into using Xen for sandnets, but after this presentation I think it has alot of promise and will be doing some more research into it. All of the slides and notes are posted on &lt;a href="http://offensivecomputing.net"&gt;http://offensivecomputing.net&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Fast &amp; Furious Reverse Engineering with TitanEngine&lt;/span&gt; - This was the last talk of the con I attended and it really didn't get the attention it deserved. TitanEngine is an open-source SDK and framework the authors are releasing which is used to perform and automate a large number of tasks needed when unpacking malware. The framework is very impressive in what it can do and how mature it is for something that is just being released. The presenters gave a number of live demos of programs written with the framework being used to unpack programs. The last demo they gave was done using TheMida, a packer which is notoriously difficult to unpack. They packed a sample program during the presentation turning on all capabilities of the packer and then unpacked it in a few seconds with a program they made with TitanEngine. This is definitely a program I will be looking into. &lt;a href="http://titan.reversinglabs.com"&gt;http://titan.reversinglabs.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I had a great time at Black Hat and met alot of people.  Unfortunately, I wasn't able to stay for Defcon but maybe another year.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-6575577942531831534?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/6575577942531831534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=6575577942531831534" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6575577942531831534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6575577942531831534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/Jgsr_DYjrG8/black-hat-recap.html" title="Black Hat Recap" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/08/black-hat-recap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUBSH88eip7ImA9WxJRGUw.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-6594185715836831600</id><published>2009-05-21T10:36:00.003-04:00</published><updated>2009-05-21T10:47:39.172-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-21T10:47:39.172-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PDF" /><category scheme="http://www.blogger.com/atom/ns#" term="snort" /><category scheme="http://www.blogger.com/atom/ns#" term="presentation" /><title>Detecting Malicious PDFs</title><content type="html">Last night at the NE Ohio Information Security Forum I gave a presentation on Detecting Malicious PDFs.  I'm still not sure if I'm going to release the presentation, but I am going to release a Snort signature that I've found useful for detecting evil PDFs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;alert tcp $EXTERNAL_NET $HTTP_PORTS -&gt; $HOME_NET any (msg:"Potential Malicious PDF (OpenAction JavaScript)"; flow:from_server,established; content:"%PDF-"; content:"&amp;lt;&amp;lt;/OpenAction &amp;lt;&amp;lt;/JS"; within:128; nocase; classtype:trojan-activity;)&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;This signature looks for the PDF header (indicating we're dealing with a PDF) then an &lt;span style="font-style: italic;"&gt;/OpenAction&lt;/span&gt; followed by /JS.  This indicates that JavaScript will be executed as soon as the document is open.&lt;br /&gt;&lt;br /&gt;Yes, I realize this signature can be easily bypassed with &lt;a href="http://blog.didierstevens.com/2008/04/29/pdf-let-me-count-the-ways/"&gt;PDF obfuscation&lt;/a&gt;.  However, I've found that attackers are not yet using this very much.  Let me know if this is useful to you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-6594185715836831600?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/6594185715836831600/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=6594185715836831600" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6594185715836831600?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6594185715836831600?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/fJM_MrU03x8/detecting-malicious-pdfs.html" title="Detecting Malicious PDFs" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/05/detecting-malicious-pdfs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUEQHo7fyp7ImA9WxJSF00.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-8165005265940871140</id><published>2009-05-07T09:13:00.004-04:00</published><updated>2009-05-07T09:50:01.407-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-07T09:50:01.407-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="virus" /><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="malware analysis" /><title>Automating Malware Analysis article</title><content type="html">In the latest &lt;a href="http://hakin9.org/prt/view/about-the-mag/issue/1023.html"&gt;Hakin9 issue (3/2009)&lt;/a&gt;, I have an article on automating malware analysis.  The article discusses how one can set up their own malware analysis automation system using VMWare, some analysis tools and two scripts.  The article uses a Linux system as the base system and a Windows XP Pro as the guest/analysis OS, but I don't see why one couldn't use Cygwin on Windows for a base system with a few tweaks.&lt;br /&gt;&lt;br /&gt;The scripts I created for the article are meant to be used as a base for your own automated analysis system - they are meant to be expanded upon.  I encourage others to add other tools and capabilities to the scripts and share them here on the blog. The scripts used are &lt;a href="http://media.software.com.pl/hakin9/en/Listingi/03_2009/Automating_Malware_Analysis.rtf"&gt;available on Hakin9's site&lt;/a&gt;.  However, if anyone wants the actual files let me know and I'll send them out.&lt;br /&gt;&lt;br /&gt;I should point out that the system and scripts in this article assume you are in VMWare's host-only network mode.  This is to prevent malware from accidentally infecting other systems on your network, the Internet, etc.  However, since the system is set up host-only mode your malware will not be able to communicate with any hosts.  The only network traffic you will see are DNS requests and probes to systems that go unanswered.&lt;br /&gt;&lt;br /&gt;I encourage others to implement this into their automation system using software such as Truman, fakedns, or &lt;a href="http://secshoggoth.blogspot.com/2009/02/inetsim-installation.html"&gt;InetSim&lt;/a&gt; to create a virtual network.  Don't want to take the time?  Then you'll have to wait for the next issue of Hakin9 where I have part 2 to this article and show how to set this up (along with some other cool things).&lt;br /&gt;&lt;br /&gt;I'd love to hear any feedback on the scripts, tools, or the article...including anything you use to expand upon it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-8165005265940871140?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/8165005265940871140/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=8165005265940871140" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8165005265940871140?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8165005265940871140?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/MsZFFwbRa-A/automating-malware-analysis-article.html" title="Automating Malware Analysis article" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/05/automating-malware-analysis-article.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMEQnc-eCp7ImA9WxJTFUQ.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-5254606969902966117</id><published>2009-04-24T13:57:00.002-04:00</published><updated>2009-04-24T14:06:43.950-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-24T14:06:43.950-04:00</app:edited><title>The more things change, the more they stay the same</title><content type="html">A few weeks ago, the library at my daughter's school had a sale to get rid of some of their old books.  That day, my daughter came home with a computer book published in 1984 entitled &lt;span style="font-weight: bold;"&gt;Computer Kids&lt;/span&gt;.  The book is essentially interviews with children of various ages who use computers in school and at home.  Its a very interesting read as it shows how computers were thought of back then.&lt;br /&gt;&lt;br /&gt;One chapter in particular caught my eye because it was about computer security.  The chapter focuses on a boy, who at the time was a senior in high school.  In the chapter, the boy talks about copying games with his &lt;a href="http://en.wikipedia.org/wiki/VIC-20"&gt;Vic20&lt;/a&gt; and wardialing into other computers.  At the end of the chapter, the author asks him what advice he would give to companies:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;If someone were to ask me what else companies can do to protect their computer systems, I'd tell them to use passwords that are as long as possible.  Most passwords are made up of eight-digit numbers.  A ten-, twelve-, or even a thirty-digit number would be better.  More secure.  And companies shouldn't use individual words for their passwords.  It's better to use a combination of words that are unlikely together.&lt;br /&gt;&lt;br /&gt;Companies can also change passwords often, or they require the approval of one of more persons to gain access to the computer.&lt;/blockquote&gt;&lt;br /&gt;Interesting how advice 25 years ago is still valid today.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-5254606969902966117?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/5254606969902966117/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=5254606969902966117" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/5254606969902966117?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/5254606969902966117?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/p60jIQY-UBQ/more-things-change-more-they-stay-same.html" title="The more things change, the more they stay the same" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/04/more-things-change-more-they-stay-same.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEQARn8-fyp7ImA9WxVbEUU.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-1603270114617268596</id><published>2009-03-27T14:54:00.003-04:00</published><updated>2009-03-27T15:32:27.157-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-27T15:32:27.157-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="forensics" /><category scheme="http://www.blogger.com/atom/ns#" term="hacks" /><title>PHP Anti-analysis Technique</title><content type="html">I was looking through a PHP web attack toolkit yesterday and found one of the scripts was obfuscated in an attempt to prevent others from figuring out what the code does.  In short, the obfuscation worked by decoded a long base64 encoded string, applying some modifications to each letter  based on where it was, and then executing the final output (thru an eval command).&lt;br /&gt;&lt;br /&gt;No problem, I thought.  There are three options to decode this:&lt;br /&gt;&lt;br /&gt;1. Figure out what the code is doing and write a translation program.  &lt;span style="font-style: italic;"&gt;Nah, too long.&lt;/span&gt;&lt;br /&gt;2. Modify the source for PHP itself to print any eval statements to a file.  &lt;span style="font-style: italic;"&gt;Hmmmm...maybe, but not now.&lt;/span&gt;&lt;br /&gt;3. Add a print statement to the obfuscated script to print out the unobfuscated code instead of eval'ing it.  &lt;span style="font-style: italic;"&gt;Yep...easy.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So I changed the eval statement to a print and ran the PHP code.  Nothing.&lt;br /&gt;&lt;br /&gt;After ensuring my PHP wasn't borked I decided something was going on and I needed to look at the code.  After a few minutes, I found the following:&lt;br /&gt;&lt;blockquote style="font-family: arial;"&gt;$file = __FILE__;&lt;br /&gt;$file = file_get_contents($file);&lt;br /&gt;$var8 = 0;&lt;br /&gt;preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"), $file, $var8);&lt;br /&gt;&lt;br /&gt;for (;$interator_1&lt;$enc_str_len;)    {&lt;br /&gt;     if (count($var8)) exit;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;Note that the for loop is the loop to decode each character of the PHP code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a nice little anti-analysis function.  First, it grabs the contents of itself in the first two lines.  Then, it initializes $var8 to 0.  Next, it looks for a regular expression in the contents of the current file, setting $var8 to the number of occurences found.  The regular expression is a base64 encoded string.  What does it decode to?&lt;br /&gt;&lt;blockquote style="font-family: arial;"&gt;/(print|sprint|echo)/&lt;br /&gt;&lt;/blockquote&gt;So, its looking for any occurence of &lt;span style="font-style: italic;"&gt;print&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;sprint&lt;/span&gt; or &lt;span style="font-style: italic;"&gt;echo&lt;/span&gt; within the file.  Then, in the decoding loop, if any occurences ($var8 &gt; 0) are present the program exits.  Simple technique to make analysis more difficult.&lt;br /&gt;&lt;br /&gt;Of course, its pretty easy to bypass as well. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-1603270114617268596?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/1603270114617268596/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=1603270114617268596" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1603270114617268596?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/1603270114617268596?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/Uh446fo0M8I/php-anti-analysis-technique.html" title="PHP Anti-analysis Technique" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/03/php-anti-analysis-technique.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EFQnsyfCp7ImA9WxVVFkg.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-6336527887627733229</id><published>2009-03-09T21:48:00.003-04:00</published><updated>2009-03-09T22:20:13.594-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-09T22:20:13.594-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL injection" /><category scheme="http://www.blogger.com/atom/ns#" term="attack" /><title>Another Odd SQL Injection Attack</title><content type="html">&lt;a href="http://secshoggoth.blogspot.com/2009/03/odd-sql-injection-attack.html"&gt;In my last post&lt;/a&gt;, I talked about a large SQL injection attacked launched against a site I help run.  Well, last night it happened again.&lt;br /&gt;&lt;br /&gt;On 3/8/09 from 10:56 GMT to 11:40 GMT, the website I help run received over 3100 SQL injection attacks from close to 2 dozen IP addresses.  The query received this time was:&lt;br /&gt;&lt;br /&gt;&lt;pre wrap=""&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;/modules.php?name=-1+AND+2=2+UNION+ALL+SELECT+0x3065376332613738353864303833656636636535323337343330636466343033,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d312d7465643a3a,0x3a3a7865512d322d7465643a3a,0x3a3a7865512d332d7465643a3a,0x3a3a7865512d342d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d352d7465643a3a,0x3a3a7865512d362d7465643a3a,0x3a3a7865512d372d7465643a3a,0x3a3a7865512d382d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d392d7465643a3a,0x3a3a7865512d31302d7465643a3a,0x3a3a7865512d31312d7465643a3a,0x3a3a7865512d31322d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d31332d7465643a3a,0x3a3a7865512d31342d7465643a3a,0x3a3a7865512d31352d7465643a3a,0x3a3a7865512d31362d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d31372d7465643a3a,0x3a3a7865512d31382d7465643a3a,0x3a3a7865512d31392d7465643a3a,0x3a3a7865512d32302d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d32312d7465643a3a,0x3a3a7865512d32322d7465643a3a,0x3a3a7865512d32332d7465643a3a,0x3a3a7865512d32342d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d32352d7465643a3a,0x3a3a7865512d32362d7465643a3a,0x3a3a7865512d32372d7465643a3a,0x3a3a7865512d32382d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d32392d7465643a3a,0x3a3a7865512d33302d7465643a3a,0x3a3a7865512d33312d7465643a3a,0x3a3a7865512d33322d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d33332d7465643a3a,0x3a3a7865512d33342d7465643a3a,0x3a3a7865512d33352d7465643a3a,0x3a3a7865512d33362d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d33372d7465643a3a,0x3a3a7865512d33382d7465643a3a,0x3a3a7865512d33392d7465643a3a,0x3a3a7865512d34302d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d34312d7465643a3a,0x3a3a7865512d34322d7465643a3a,0x3a3a7865512d34332d7465643a3a,0x3a3a7865512d34342d7465643a3a,&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:100%;"&gt;0x3a3a7865512d34352d7465643a3a,0x3a3a7865512d34362d7465643a3a,0x3a3a7865512d34372d7465643a3a--&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:georgia;"&gt;The User-Agent this time was &lt;span style="font-style: italic;"&gt;Mozilla/5.0&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are a couple interesting things to note on this attack.  First is the use of the double-dashes at the end of the SQL injection.  Double-dashes are used in MySQL and SQL Server queries to comment out and ignore the rest of the line.&lt;br /&gt;&lt;br /&gt;Next, if we assume that the hex values decode into the attack then the database being attacked must decode them somehow.  Since the SQL does not use a CAST operator, which SQL Server requires to convert hex into characters, and only has the hex values, then we can infer the database being attacked is MySQL.  (Note that I'm basing some of this on my knowledge and previous use of SQL injection attacks from my job - I could very well be wrong on this.)&lt;br /&gt;&lt;br /&gt;The hex encoded values are interesting.  If we decode them from hex into ASCII characters, we get the following query:&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;/modules.php?name=-1+AND+2=2+UNION+ALL+SELECT+0e7c2a7858d083ef6ce5237430cdf403,&lt;br /&gt;::xeQ-1-ted::,::xeQ-2-ted::,::xeQ-3-ted::,::xeQ-4-ted::,::xeQ-5-ted::,::xeQ-6-ted::,&lt;br /&gt;::xeQ-7-ted::,::xeQ-8-ted::,::xeQ-9-ted::,::xeQ-10-ted::,::xeQ-11-ted::,::xeQ-12-ted::,&lt;br /&gt;::xeQ-13-ted::,::xeQ-14-ted::,::xeQ-15-ted::,::xeQ-16-ted::,::xeQ-17-ted::,::xeQ-18-ted::,::xeQ-19-ted::,::xeQ-20-ted::,::xeQ-21-ted::,&lt;br /&gt;::xeQ-22-ted::,::xeQ-23-ted::,::xeQ-24-ted::,::xeQ-25-ted::,::xeQ-26-ted::,::xeQ-27-ted::,::xeQ-28-ted::,&lt;br /&gt;::xeQ-29-ted::,::xeQ-30-ted::,::xeQ-31-ted::,::xeQ-32-ted::,::xeQ-33-ted::,::xeQ-34-ted::,::xeQ-35-ted::,&lt;br /&gt;::xeQ-36-ted::,::xeQ-37-ted::,::xeQ-38-ted::,::xeQ-39-ted::,::xeQ-40-ted::,::xeQ-41-ted::,::xeQ-42-ted::,&lt;br /&gt;::xeQ-43-ted::,::xeQ-44-ted::,::xeQ-45-ted::,::xeQ-46-ted::,::xeQ-47-ted::--&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I'll admit that this has me stumped.  Due to the pattern, the hex appears to be decoded correctly.  However, I cannot make heads or tails of what is being attempted here.  Interestingly, &lt;a href="http://www.google.com/search?hl=en&amp;amp;hs=Ufr&amp;amp;q=%22%3A%3AxeQ-1-ted%3A%3A%22&amp;amp;btnG=Search"&gt;googling for "::xeQ-1-ted::"&lt;/a&gt; brings up a number of entries which look like an attack similiar to this one may have succeeded on other sites.&lt;br /&gt;&lt;br /&gt;So, anyone have any ideas for this one?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-6336527887627733229?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/6336527887627733229/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=6336527887627733229" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6336527887627733229?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6336527887627733229?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/JHvX4JpVB84/another-odd-sql-injection-attack.html" title="Another Odd SQL Injection Attack" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/03/another-odd-sql-injection-attack.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EDQ3k_cCp7ImA9WxVVFkk.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-4535907672626801045</id><published>2009-03-03T21:09:00.009-05:00</published><updated>2009-03-09T21:47:52.748-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-09T21:47:52.748-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL injection" /><category scheme="http://www.blogger.com/atom/ns#" term="hacks" /><category scheme="http://www.blogger.com/atom/ns#" term="attack" /><title>Odd SQL Injection Attack</title><content type="html">&lt;span style="font-style: italic;"&gt;Updated 3/9/09.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Last night, from 21:21 EST to 21:41 EST a website I help run received over 1300 SQL injection attempts from less than a dozen IP addresses.  This is a pretty popular site so its not uncommon for us to get hit with injection attacks, but its rare for us to get this hard.&lt;br /&gt;&lt;br /&gt;Normally I would brush it off as an unsuccessful botnet attack, but the SQL injection is bugging me as I can't figure out what the purpose is.  The query we recieved was as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;/modules.php?name=news&amp;amp;new_topic=9\' and 1=2 union select&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),&lt;br /&gt;CONCAT(0x27,0x7c,0x5f,0x7c) and \'1\'=\'1&lt;/pre&gt;The user-agent was "&lt;span style="font-style: italic;"&gt;NV32ts&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;This is an attack on PostNuke, which the site does run.  However, the number of CONCAT's are what I'm stumped on (as well as some others I've asked).&lt;br /&gt;&lt;br /&gt;The CONCAT(0x27,0x7c,0x5f,0x7c) statement decodes to:&lt;br /&gt;&lt;blockquote&gt;'|_|&lt;br /&gt;&lt;/blockquote&gt;When you combine them all together, you get the following statement:&lt;br /&gt;&lt;pre&gt;/modules.php?name=news&amp;amp;new_topic=9\' and 1=2 union select&lt;br /&gt;'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,&lt;br /&gt;'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,&lt;br /&gt;'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,'|_|,&lt;br /&gt;'|_| and \'1\'=\'1&lt;/pre&gt;The underscore in MySQL can be used as a single-character wildcard, which could further decode the injection to:&lt;br /&gt;&lt;pre&gt;/modules.php?name=news&amp;amp;new_topic=9\' and 1=2 union select&lt;br /&gt;'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,&lt;br /&gt;'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,'||,&lt;br /&gt;'||,'||,'||,'||,'||,'||,'|| and \'1\'=\'1&lt;br /&gt;&lt;/pre&gt;In reading that, its potentially a bunch of logical OR statements (the double pipes) with some single quotes.  But to me it still looks like it will generate at error.&lt;br /&gt;&lt;br /&gt;I've googled the CONCAT statement and the user-agent and there are a bunch of hits, but nothing which gives me any information.  In fact, it looks like there have been a number of attacks using this string.  But, that doesn't give me the purpose of the injection string above.  This is what I (and some others) have come up with:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;This was meant to generate a SQL error to see if a site is vulnerable.  If thats the case, why so many hits in such a short period of time?&lt;/li&gt;&lt;li&gt;The attacker was trying to evade IDS/IPS/protections, but made a mistake.&lt;/li&gt;&lt;li&gt;The attacker just doesn't know what they are doing at all.&lt;/li&gt;&lt;/ol&gt;I'm open to any ideas.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;UPDATE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I received alot of responses on my previous SQL Injection.  Thanks to everyone who did.  For the most part, most came to the same conclusion as I did that the injection was either to generate an error or it was a mistake on the attacker's part.&lt;br /&gt;&lt;br /&gt;As for the user agent, &lt;span style="font-style: italic;"&gt;NV32ts&lt;/span&gt;, I've confirmed that it is a known signature of a botnet.  I am currently trying to dig up any samples on it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-4535907672626801045?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/4535907672626801045/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=4535907672626801045" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4535907672626801045?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4535907672626801045?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/bL5V_QWPXH4/odd-sql-injection-attack.html" title="Odd SQL Injection Attack" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/03/odd-sql-injection-attack.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MMSHk_cCp7ImA9WxVXE0o.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-2629156034368311554</id><published>2009-02-11T09:22:00.013-05:00</published><updated>2009-02-11T14:11:29.748-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-11T14:11:29.748-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="malware analysis" /><title>InetSim Installation</title><content type="html">For a &lt;span style="font-family: georgia;"&gt;project&lt;/span&gt; I'm working on&lt;a href="http://www.blogger.com/post-edit.g?blogID=2672754150485551359&amp;amp;postID=2629156034368311554#cartoon"&gt;*&lt;/a&gt;, I've been looking at network simulation software to use in malware analysis.  The most common one out there is &lt;a href="http://www.secureworks.com/research/tools/truman.html"&gt;Truman&lt;/a&gt;, written by Joe Stewart.  However, Truman has some shortcomings - the biggest being it doesn't have an HTTP server and it hasn't been updated since it was released.  So, I wanted to try a different one and that let me to &lt;a href="http://www.inetsim.org/index.html"&gt;InetSim&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;InetSim has a number of software packages that need to be installed before it works.  For my benefit, and I guess others as well, I'm documenting the process I took to install it on my Gentoo Linux system.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;InetSim has the capability to do connection redirection, but some options have to be compiled into the kernel first.  Specifically, the Netfilter NQUEUE over NFNETLINK interface (CONFIG_NETFILTER_NETLINK_QUEUE) and IP Userspace queueing via NETLINK (CONFIG_IP_NF_QUEUE) need to be compiled in.  I compiled them directly into the kernel, but they could be modules as well.&lt;br /&gt;&lt;br /&gt;Obviously, after re-compiling and installing your kernel (if needed), you should make sure that iptables is installed.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;A number of Perl modules need to be installed.  Fortunately, most of these are in the Portage repository and can just be emerged:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# emerge -av perl-Getopt-Long perl-libnet perl-Digest-SHA perl-digest-base perl-Digest-MD5 MIME-Base64 Net-DNS net-server&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;There were two Perl libraries which were not in Portage that needed to be installed from source.  The first was IPC::Sharable which is located in &lt;a href="http://search.cpan.org/dist/IPC-Shareable/"&gt;CPAN here.&lt;/a&gt;  Once downloaded, installation was easy:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# tar zxvf IPC-Shareable-0.60.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# cd IPC-Shareable-0.60&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# perl Makefile.PL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# make test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# make install&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: georgia;"&gt;The next required Perl library, Perlipq, took a little longer.  This is a library used to interface with the packet queueing on the system for redirection.  Initially, it could not find the libipq.h file in the correct location but a manual edit of the Makefile (shown below) fixed that.  Perlipq is &lt;/span&gt;&lt;a style="font-family: georgia;" href="http://search.cpan.org/%7Ejmorris/perlipq/"&gt;downloaded from here&lt;/a&gt;&lt;span style="font-family: georgia;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# tar zxvf perlipq-1.25.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# cd perlipq-1.25&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# perl Makefile.PL&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;At this point, the Makefile.PL prompts you for the location of the iptables development components.  Specifically, its looking for libipq.h.  It doesn't matter what we enter here as the Makefile will not find it in the correct place.  Enter in some text and let the script finish.&lt;br /&gt;&lt;br /&gt;Once the script is finished, edit the Makefile.  On line 145 is the following include line:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;INC = -I&lt;the&gt;&lt;/the&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;This is the directory which will find libipq.h.  Change it to the following:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;INC = -I/usr/include/libipq&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;/usr/include/libipq is where libipq.h should be located.  If you are unsure, run 'locate libipq.h' to see where its at.  After saving the Makefile, installation can continue.&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# make install&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Optional: If you want to make sure you have all of the necessary Perl modules loaded, run the following Perl script:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;use Getopt::Long;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use Net::Server;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use Net::DNS;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use IO::Socket;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use IO::Select;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use IPC::Shareable;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; use Digest::SHA1;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;If there are no failures, you're good to go.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;At this point, all of the pre-requisites should be installed and InetSim installation can proceed.  The latest version of InetSim at the time of this writing is 1.1 and is &lt;a href="http://www.inetsim.org/downloads/inetsim-1.1.tar.gz"&gt;located here&lt;/a&gt;.  Download it an untar it into a central location - I chose /usr/local.&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# tar zxvf inetsim-1.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# mv inetsim-1.1 inetsim&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;# cd inetsim&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;Note: I renamed the default directory for my own benefit, this is not necessary.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;InetSim uses the nobody user to run its servers.  Nobody should be installed by default - but you better make sure.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;A group named inetsim is also required by InetSim to run.  This should be created as follows:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# groupadd inetsim&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: georgia;"&gt;InetSim comes with a setup.sh script which modifies permissions of all the files as needed.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# sh setup.sh&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family: georgia;"&gt;If you plan on running InetSim from a script, chances are you will need to modify a small piece of the inetsim program.  On line 12 of the inetsim script is the &lt;/span&gt;&lt;span style="font-style: italic; font-family: georgia;"&gt;use lib&lt;/span&gt;&lt;span style="font-family: georgia;"&gt; Perl code which tells the script where to find the InetSim modules.  In its original form, it is a relative path to the lib directory.  It should be changed to an absolute path similar to the following:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family: arial;"&gt;use lib "/usr/local/inetsim/lib";&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;At this point, InetSim should be installed and ready to run.  The default configuation file is located in conf/inetsim.conf and I highly recommend reading and modifying it to fit your environment.  However, you should be able to use the default configuration file to test out your installation.&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:arial;"&gt;# /usr/local/inetsim/inetsim --session test&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;A number of messages of servers starting will stream by.  If you don't see any errors, you are good to go!&lt;br /&gt;&lt;br /&gt;&lt;a name="cartoon"&gt;*&lt;/a&gt; &lt;a href="http://xkcd.com/350/"&gt;My new project - thanks ax0n!&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://imgs.xkcd.com/comics/network.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-2629156034368311554?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/2629156034368311554/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=2629156034368311554" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2629156034368311554?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2629156034368311554?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/zXFgTXVNbzk/inetsim-installation.html" title="InetSim Installation" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/02/inetsim-installation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EDQ3wzcSp7ImA9WxVQGEs.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-4724309980151084754</id><published>2009-02-05T14:54:00.004-05:00</published><updated>2009-02-05T15:27:52.289-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-05T15:27:52.289-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><title>Strings and update</title><content type="html">Its been a while since I posted anything so I wanted to get something up here.&lt;br /&gt;&lt;br /&gt;First, in my last post I mentioned how I use the &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; utility when analyzing binaries.  The utility will allow you to view embedded strings within a binary.  By default, it only shows ASCII strings.  The problem with this is that in Windows binaries, there are usually embedded strings encoded in UNICODE, and by default, &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; will not show them.  To get around this, I was using SysInternal's strings utility with wine on my Linux system.&lt;br /&gt;&lt;br /&gt;However, in a comment craigb stated that you can change the encoding &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; looks for with the &lt;span style="font-weight: bold;"&gt;-e&lt;/span&gt; option.  Here is a snippet from the strings man page:&lt;br /&gt;&lt;blockquote style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;-e encoding&lt;br /&gt;       --encoding=encoding&lt;br /&gt;           Select the character encoding of the strings that are to be  found.&lt;br /&gt;           Possible  values for encoding are: s = single-7-bit-byte characters&lt;br /&gt;           (ASCII, ISO 8859, etc., default), S = single-8-bit-byte characters,&lt;br /&gt;           b  =  16-bit  bigendian, l = 16-bit littleendian, B = 32-bit bigen-&lt;br /&gt;           dian, L = 32-bit littleendian. Useful for  finding  wide  character&lt;br /&gt;           strings.&lt;/span&gt;&lt;/blockquote&gt;By running &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; using different encodings both ASCII and UNICODE strings in a Windows binary can be found.  To do so, I whipped up a little Bash script which I now use whenever I want to pull strings from a binary:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;(strings -a -t x $1; strings -a -e l -t x $1)  | sort &lt;/span&gt;&lt;/blockquote&gt;The script, which I named &lt;span style="font-style: italic;"&gt;mystrings&lt;/span&gt;, takes the file to scan as a command line option.  It then runs &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; against it two times - the first time looking for ASCII strings and the second looking for UNICODE (16-bit little endian actually) strings.  The &lt;span style="font-weight: bold;"&gt;-t x&lt;/span&gt; options prints the hex offset of the string within the file.  After the &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; commands run, they are run through the &lt;span style="font-style: italic;"&gt;sort&lt;/span&gt; program and displayed.&lt;br /&gt;&lt;br /&gt;My concern with this was the Linux &lt;span style="font-style: italic;"&gt;strings&lt;/span&gt; would miss something that the SysInternal's strings would pick up.  So, I ran a test where both programs were run against the same file.  The output was the same!  Woohoo!&lt;br /&gt;&lt;br /&gt;In other news, I'd like to announce I got a new job starting at the beginning of the year (which is pretty much the reason I have not been posting).  Those who know me know where I went to, so I won't go into details here.  However, I've gotten into my groove and should be posting more soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-4724309980151084754?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/4724309980151084754/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=4724309980151084754" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4724309980151084754?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4724309980151084754?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/NHTXLfQb5Ks/strings-and-update.html" title="Strings and update" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2009/02/strings-and-update.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcESHY7cSp7ImA9WxRaEEQ.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-3955609817225113003</id><published>2008-12-12T09:22:00.003-05:00</published><updated>2008-12-12T10:00:09.809-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-12T10:00:09.809-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="virus" /><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="anti-virus" /><category scheme="http://www.blogger.com/atom/ns#" term="dumb criminals" /><title>Internal Laughs</title><content type="html">Most malware that I look at these days is packed, sometimes double-packed, in order to hide whats inside.  When they aren't packed, many times the strings inside the binary are encoded or encrypted so a strings program can't see what is going on.&lt;br /&gt;&lt;br /&gt;Sometimes, however, if you wish REALLY hard and REALLY believe, you come across a gem like the one I looked at last night.  I was notified of a piece of malware sitting on a server from one of my many sources I have.  After downloading it, one of the first things I did was run the &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx"&gt;Sysinternals strings&lt;/a&gt;* utility against it.  I found some interesting things:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;C:\Documents and Settings\James\Desktop\MSN Pass Stealer\Stub\Project1.vbp&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Hello AV Companies, Please Call Me&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Hello AV Companies, Please Call Me Win32.MSNPassSteal.VB Thank You!&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Its so nice to see things like this at times.  While I'm pretty sure James didn't write this particular piece of malware, he probably did modify the source (MSN password stealer source code is easy to find) and compiled it. &lt;br /&gt;&lt;br /&gt;James - if you are reading this let me give you some advice.  First, learn how to use your compiler and how to turn off the debugging features that are turned on by default.  Second, AV companies are not going to name your malware something you want.  &lt;a href="http://www.virustotal.com/analisis/fff03b8cab69779c9a5b5959c4930a2e"&gt;None of them did.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And finally, if you are going to use a user ID to post the results under, don't make it unique.  Our intrepid fellow put the website the stolen credentials would post to as well as the user ID to use.  While I'm not 100% sure it's James' ID (whh is why I didn't show it), it is very unique and can be traced back to a single user.&lt;br /&gt;&lt;br /&gt;Then again, James, don't follow my advice.  It'll be easier to catch you that way.  :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* Even though I do 99% of my static analysis on Linux, I prefer the Sysinternals strings program because it can grab unicode strings and to my knowledge the Linux strings cannot.  It works just great under wine.  If anyone knows of a Linux strings program that can grab unicode strings, let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-3955609817225113003?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/3955609817225113003/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=3955609817225113003" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/3955609817225113003?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/3955609817225113003?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/Fn-_8_JXb08/internal-laughs.html" title="Internal Laughs" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/12/internal-laughs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QCQng9fip7ImA9WxRUFUo.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-7814402389787704273</id><published>2008-11-24T14:55:00.006-05:00</published><updated>2008-11-24T19:02:43.666-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-24T19:02:43.666-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="training" /><title>Enhancing Your Skillz...</title><content type="html">I remember one of the questions I was asked in my first security job interview was "Why do you want to work in information security?"  My response: because it changes on a daily basis and you have to stay on your toes.  (This was also my response for "why don't you like security?")&lt;br /&gt;&lt;br /&gt;Since then, I have always been searching for ways in which I could increase the security skills I have.  Training courses, reading blogs/articles/books and networking are a great way to increase your security skills but I have always thought that there is more to security than knowing how to read a TCP packet, how a buffer overflow works or how to perform a SQL Injection attack.&lt;br /&gt;&lt;br /&gt;If you work in Information Security you also have to have great analytical skills.  You need to be able to "think outside the box", attack problems from a point of view or look at a log file and discern a pattern which someone else might not see.  IMO, you can't learn these skills from reading an article or taking a training course.&lt;br /&gt;&lt;br /&gt;However, I have found that playing games is an excellent way to increase your security analytical skills.  How?  A lot of games focus on strategy or pattern discernment and can help train your mind for these tasks.  The following are games that I've personally played and found helpful in these areas.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;Note: While I am a geek and love video games, I have specifically excluded these types of games from the following list.  There are a number of reasons, but mostly because when it comes down to it, most video games are about reflexes not strategy (there are, of course, exceptions).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.boardgamegeek.com/boardgame/1198"&gt;Set&lt;/a&gt; - Set is a card game where 12 cards are laid out on the table and you have to be the first person to find a set of three cards.  A set consists of three cards that are either all alike or all different in each attribute (quantity, shape, shading and color).  Sound easy?  Not really.  Set teaches your mind to attempt to focus on a number of different areas at once and discern a pattern.  Great addictive game.  &lt;a href="http://www.setgame.com/set/"&gt;Play it online too.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.boardgamegeek.com/boardgame/1923"&gt;MindTrap&lt;/a&gt; - I love logic puzzles.  To me, they are the ultimate in causing myself to "think outside the box" since most solutions aren't the obvious ones and require some thinking.  Mindtrap takes logic puzzles and puts them into game form.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.thinkgeek.com/books/nonfiction/7f69/"&gt;Puzzles for Hackers&lt;/a&gt; - Not a game per say, this book contains lots of puzzles designed for hackers and security professionals.  It features encryption puzzles, reverse engineering and logic puzzles.  I highly recommend it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.boardgamegeek.com/boardgame/10707"&gt;Hacker&lt;/a&gt; - OK, this probably isn't the best example for games in these categories...but I think this is a must have for all info sec professionals, &lt;a href="http://www.sjgames.com/SS/"&gt;given the history behind it&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Granted, these are only a &lt;span style="font-weight: bold;"&gt;small&lt;/span&gt; number of the games with potential to help us security folk.  My point to all of this is that you don't just need to read a book or take a class to train yourself for your job...there are alternatives out there.  And fun ones at that.&lt;br /&gt;&lt;br /&gt;Anyone have any good games they want to share?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-7814402389787704273?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/7814402389787704273/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=7814402389787704273" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7814402389787704273?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7814402389787704273?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/HS-BcFKVKhs/enhancing-your-skillz.html" title="Enhancing Your Skillz..." /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/11/enhancing-your-skillz.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YARX85eyp7ImA9WxRUEkw.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-6804451890325695635</id><published>2008-11-20T16:01:00.002-05:00</published><updated>2008-11-20T16:05:44.123-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-20T16:05:44.123-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="challenge" /><title>Malware Challenge Results</title><content type="html">After longer than I would have liked, the &lt;a href="http://www.malwarechallenge.info/results.html"&gt;malware challenge results are in and posted&lt;/a&gt;!&lt;br /&gt;&lt;br /&gt;There were alot of great submissions but unfortunately, we could only choose so many to receive prizes. In the end, we looked at the ones we felt gave the most information, presented it the best and would allow someone to learn from their paper.&lt;br /&gt;&lt;br /&gt;Some quick stats on the challenge, we had over 900 downloads of the malware sample.  Fortunately, we didn't have that many submissions.  Most of the hits on the site came from the US, followed by Romania and Russia.  Also, over 50% of the hits on the site were from Firefox!&lt;br /&gt;&lt;br /&gt;I'd like to send a thank you to all the sponsors who donated prizes.  Without them, we would not have been able to have such a great turnout.  We're already thinking about the 2009 Challenge!&lt;br /&gt;&lt;br /&gt;Any suggestions on how we could have done better?  Send them our way!   &lt;br /&gt;&lt;br /&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="on down" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;img src="img/blank.gif" alt="Link" class="gl_link" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-6804451890325695635?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/6804451890325695635/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=6804451890325695635" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6804451890325695635?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/6804451890325695635?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/4Yvt0fDoZpU/malware-challenge-results.html" title="Malware Challenge Results" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/11/malware-challenge-results.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIBQXg5eCp7ImA9WxRWGEg.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-212383350117314862</id><published>2008-11-04T21:29:00.002-05:00</published><updated>2008-11-04T21:35:50.620-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-04T21:35:50.620-05:00</app:edited><title>Quick Update</title><content type="html">Hello all - I haven't posted in a while and for good reason.  I've been busy with a very interesting job at work that I hope to be able to talk about some day.  Right now I can't (client privacy and such) but I can guarantee it will make an amazing story some day.&lt;br /&gt;&lt;br /&gt;It is because of this job that I was unable to make it to the NE Ohio Information Security Summit.  I apologize to everyone who thought I would be there and I have to commend and profusely thank &lt;a href="http://securityblahblah.blogspot.com/"&gt;Greg&lt;/a&gt; for taking over our presentations by himself and coming up with one at the last minute.  Greg is an amazing speaker and friend and I'm glad he had packed crowds in both sessions.&lt;br /&gt;&lt;br /&gt;As for the &lt;a href="http://www.malwarechallenge.info"&gt;malware challenge,&lt;/a&gt; we were supposed to announce the winners at the summit.  However, due to my being absent we decided to (wisely I think) postpone announcements until the next &lt;a href="http://www.neoinfosecforum.org"&gt;NE Ohio Information Security Forum&lt;/a&gt; meeting on November 19th.  I invite everyone to come out as we will be giving out prizes there and announcing the winners (and will announce them on the site shortly after).&lt;br /&gt;&lt;br /&gt;I will have some interesting news in the next couple weeks and am starting on a few projects I will be blogging about.  For those who have stuck with my blog, thanks.  I hope not to disappoint you.  :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-212383350117314862?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/212383350117314862/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=212383350117314862" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/212383350117314862?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/212383350117314862?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/gBN2steLb5I/quick-update.html" title="Quick Update" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/11/quick-update.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8GQX0-cCp7ImA9WxRXEEQ.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-7186887780892420145</id><published>2008-10-15T14:35:00.007-04:00</published><updated>2008-10-15T14:53:40.358-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-15T14:53:40.358-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><category scheme="http://www.blogger.com/atom/ns#" term="phish" /><title>Phishing with Malware</title><content type="html">I've been pretty busy lately with work and the &lt;a href="http://www.malwarechallenge.info"&gt;malware challenge&lt;/a&gt; (only 11 days left!) but I figured I'd post something which came across my inbox today.  Wachovia has been getting alot of phishing attempts against it which lead to a page trying to get you to install a security update, which is actually malware.  I guess the bad guys decided that Wachovia had enough and decided to turn their sites on Key Bank.&lt;br /&gt;&lt;br /&gt;I received the following email supposedly from Key Bank asking that I update my system now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4x76DeWu9xs/SPY5SvoqOkI/AAAAAAAAACo/CNj9O6V6_60/s1600-h/key5-1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_4x76DeWu9xs/SPY5SvoqOkI/AAAAAAAAACo/CNj9O6V6_60/s400/key5-1.png" alt="" id="BLOGGER_PHOTO_ID_5257452609189067330" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Clicking on the link took me to the following page, which is NOT located on Key Bank's website.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4x76DeWu9xs/SPY5mUYQYtI/AAAAAAAAACw/O0T0gkYFJbI/s1600-h/key1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_4x76DeWu9xs/SPY5mUYQYtI/AAAAAAAAACw/O0T0gkYFJbI/s400/key1.png" alt="" id="BLOGGER_PHOTO_ID_5257452945469891282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;If you wait long enough it will refresh itself to the executable, but by clicking on the link the page will attempt to download and run (with user acceptance) the malware and will open up another browser window to the actual Key Bank login page.  This page IS on Key Bank's website, &lt;span style="font-weight: bold;"&gt;but note that Key Bank is &lt;u&gt;NOT&lt;/u&gt; compromised&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4x76DeWu9xs/SPY7L6NePSI/AAAAAAAAADA/vhhh-vITiJc/s1600-h/key2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_4x76DeWu9xs/SPY7L6NePSI/AAAAAAAAADA/vhhh-vITiJc/s400/key2.png" alt="" id="BLOGGER_PHOTO_ID_5257454690791996706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What has happened is when the user installs the "update" the initial malware loaded downloads another one which installs itself as a service on the system.  This new service then watches for any credentials sent.  What happens when it gets one?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4x76DeWu9xs/SPY665cU7FI/AAAAAAAAAC4/ojZsRtCOzfI/s1600-h/key4-1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_4x76DeWu9xs/SPY665cU7FI/AAAAAAAAAC4/ojZsRtCOzfI/s400/key4-1.png" alt="" id="BLOGGER_PHOTO_ID_5257454398528089170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;This isn't a new method for doing things - its been around for a while.  However, this is the first time I've seen this specific attack (from this group) directed at Key Bank.  &lt;a href="http://blog.trendmicro.com/who-fears-german-bank-certificates/"&gt;Trend Micro has a posting about the same attack against a German bank.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-7186887780892420145?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/7186887780892420145/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=7186887780892420145" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7186887780892420145?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7186887780892420145?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/6xSgPfarYaI/phishing-with-malware.html" title="Phishing with Malware" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_4x76DeWu9xs/SPY5SvoqOkI/AAAAAAAAACo/CNj9O6V6_60/s72-c/key5-1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/10/phishing-with-malware.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8HQnw4eCp7ImA9WxRRGUg.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-8969976395947174748</id><published>2008-10-02T09:48:00.003-04:00</published><updated>2008-10-02T10:13:53.230-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-02T10:13:53.230-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="challenge" /><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><title>Malware Challenge Contest In Full Swing!</title><content type="html">The &lt;a href="http://www.malwarechallenge.info"&gt;malware challenge contest&lt;/a&gt; began yesterday and from what we can tell its very popular.  According to our logs, we had over 100 downloads of the malware for the challenge from over a dozen countries.&lt;br /&gt;&lt;br /&gt;For those who don't know yet, the malware challenge is a contest to analyze a piece of malware and find out what it does.  The contest runs from October 1 to October 26 and the results will be presented at the Ohio Information Security Summit.  &lt;a href="http://www.malwarechallenge.info/sponsors.html"&gt;Of course, we have lots of cool prizes to give away!&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We have made the contest so that if you are new to malware analysis you'll still have a great shot at winning prizes.  We're going to be looking more at the way people analyze the malware as opposed to if they get the right answers.  In other words, if you unsure about it still participate.  The worst that can happen is you learn something in the process and win a cool prize!&lt;br /&gt;&lt;br /&gt;Also, thanks to all who have been helping advertise it!  Without you no one would know about the contest.&lt;br /&gt;&lt;br /&gt;I look forward to seeing everyone's submission!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-8969976395947174748?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/8969976395947174748/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=8969976395947174748" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8969976395947174748?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/8969976395947174748?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/2FPig3GQE_g/malware-challenge-contest-in-full-swing.html" title="Malware Challenge Contest In Full Swing!" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/10/malware-challenge-contest-in-full-swing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIFQ388cCp7ImA9WxRRF00.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-2931207683008661597</id><published>2008-09-29T10:48:00.002-04:00</published><updated>2008-09-29T11:01:52.178-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-29T11:01:52.178-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="conference" /><category scheme="http://www.blogger.com/atom/ns#" term="presentation" /><title>OWASP NYC AppSec Recap</title><content type="html">The OWASP NYC AppSec conference was this past week and I was lucky enough to be one of the speakers there.  Overall, the conference was great and OWASP did a tremendous job doing everything they could to make the conference go as smoothly as possible.  The organizers should be commended for the job they did.&lt;br /&gt;&lt;br /&gt;In the opening keynote, the organizers stated that this was the largest web app security conference in the world and I could see why.  I believe there were over 800 people at the conference and every talk I went to was packed.  While I went to many talks, there are a few that really stood out.  They are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Malspam - Garth Bruen, &lt;a href="http://www.knujon.com/"&gt;knujon.com&lt;/a&gt;&lt;/span&gt; - Garth talked about what knujon has been able to accomplish over the last few months and its been quite impressive.  He has been gathering alot of data on illicit networks and has found a clear link between porn, drugs and malware on the Internet.  He gave one example of where an illegal pharma site was shut down and two days later it was serving up porn and malware.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Security Assessing Java RMI - Adam Boulton, Corsaire&lt;/span&gt; - This was an excellent talk on how to assess the Java Remote Method Invocation (RMI) APIs/tools/whatever from Sun.  Basically, RMI is a distributed computing API for Java and has been part of the core JDK since 1.1 (java.rmi package).  Its analogous to .NET, RPC or CORBA.    Adam went over some methods for attacking RMI apps and previewed a tool of his named "RMI Spy" which (I believe) he'll be releasing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Flash Parameter Injection - Ayal Yogev &amp;amp; Adi Sharabani, IBM&lt;/span&gt; - This talk was about how to inject your own data into flash applications, the result being XSS, XSRF, or anything you can think of to attack the client.  Basically, Flash applications have global variables which can be assigned as parameters when loading the flash movie in a web page.  If the global variables are not initialized properly (and they usually aren't) then attackers can load their own flash apps and own the client.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;APPSEC Red/Tiger Team Projects, Chris Nickerson&lt;/span&gt; - The next talk was probably one of the best I attended at the conference.  Chris Nickerson was one of the guys on the ill-fated Tiger Team show and is a really cool guy - I talked to him for some time at the OWASP party the night before.  He stated in his talk that pen testing applications does not show how a "real world attack" would happen.  By performing a red/tiger team approach to an application test, you are able to show the client how an attack would occur and how their app would be broken into.  In other words, if someone wants the data in an app they're not just going to bang on it from the Internet - they're going to go to the client site and try to get information from there through various methods.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course, those are brief descriptions of the talks.  The conference will be releasing all talks on video so I recommend watching the videos - they will be worth it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-2931207683008661597?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/2931207683008661597/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=2931207683008661597" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2931207683008661597?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/2931207683008661597?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/_TMjxt-RVWI/owasp-nyc-appsec-recap.html" title="OWASP NYC AppSec Recap" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/09/owasp-nyc-appsec-recap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAFRXw6eSp7ImA9WxRSF0k.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-4486034470281500652</id><published>2008-09-18T09:38:00.005-04:00</published><updated>2008-09-18T10:05:14.211-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-18T10:05:14.211-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="challenge" /><title>Malware Analysis Contest</title><content type="html">Last night at the &lt;a href="http://www.neoinfosecforum.org/"&gt;NE Ohio Information Security Forum&lt;/a&gt; and the &lt;a href="http://www.securityjustice.com/"&gt;Security Justice podcast&lt;/a&gt;, I made an announcement about a malware analysis contest that Greg and I are putting on.&lt;br /&gt;&lt;br /&gt;Starting from October 1, 2008 and ending October 26, 2008 we will be running a malware analysis challenge at &lt;a href="http://www.malwarechallenge.info/"&gt;http://www.malwarechallenge.info&lt;/a&gt;.  In the challenge participants will download a malware sample to analyze.  The site will have a list of questions for participants to answer and send in.  We will judge the answers and those scoring the highest will win prizes.&lt;br /&gt;&lt;br /&gt;We have some great prizes donated by some very cool companies.  To only name some, &lt;a href="http://www.hex-rays.com/"&gt;Hex-Rays&lt;/a&gt; is donating a copy of IDA Pro and &lt;a href="http://www.nostarch.com/"&gt;No Starch Press&lt;/a&gt; is donating a copy of Chris Eagle's IDA Pro book.  &lt;a href="http://www.pearsonhighered.com/"&gt;Addison-Wesley&lt;/a&gt; and &lt;a href="http://www.korelogic.com/"&gt;KoreLogic Security&lt;/a&gt; are also donating prizes (yet to be announced).&lt;br /&gt;&lt;br /&gt;I want to emphasize that you don't need to be a malware analysis expert in order to have a chance to win.  The challenge is about learning.  You don't need to get the answers 100% correct in order to win a prize.  The goal is to learn malware analysis skills, try out new tools and have some fun in the process.&lt;br /&gt;&lt;br /&gt;We're also looking for more companies to donate prizes.  If you think your company would like to donate something for the contest, please contact me.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.malwarechallenge.info/"&gt;Please spread the word about the challenge&lt;/a&gt;.  I'll be posting again once the challenge goes live to remind everyone!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-4486034470281500652?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/4486034470281500652/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=4486034470281500652" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4486034470281500652?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/4486034470281500652?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/rGup4IPEKE0/malware-challenge-contest.html" title="Malware Analysis Contest" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/09/malware-challenge-contest.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QEQno5fCp7ImA9WxRSFEU.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-7102234140847899152</id><published>2008-09-15T10:26:00.002-04:00</published><updated>2008-09-15T10:35:03.424-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-15T10:35:03.424-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="conference" /><category scheme="http://www.blogger.com/atom/ns#" term="presentation" /><title>Upcoming Appearances</title><content type="html">As some know, I will be speaking at the &lt;a href="http://www.owasp.org/index.php/OWASP_NYC_AppSec_2008_Conference"&gt;OWASP NYC AppSec&lt;/a&gt; conference next week on "Automated Web-based Malware Behavioral Analysis".  Unfortunately, I'll be presenting over lunch so I'm limiting it to about 20 minutes of talking so people can eat and not listen to me.  If anyone wants to get together wile at the conference, let me know.&lt;br /&gt;&lt;br /&gt;As always, the &lt;a href="http://www.neoinfosecforum.org"&gt;NE Ohio Information Security Forum&lt;/a&gt; is this Wednesday and I will be in attendance.  I encourage anyone to come out and join us.  We'll be having lots of great speakers as well as free food and drink.  Afterwards, we'll be going to &lt;a href="http://www.maviswinkles.com/"&gt;Mavis Winkles&lt;/a&gt; to record the next episode of the &lt;a href="http://securityjustice.com/"&gt;Security Justice podcast&lt;/a&gt;.  I'll also be making a special announcement at the forum and the podcast concerning something Greg and I are doing at this year's &lt;a href="http://www.informationsecuritysummit.org/"&gt;Ohio Information Security Summit&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Finally, I'd like to thank &lt;a href="http://twitter.com/mubix"&gt;mubix&lt;/a&gt; for having me as a &lt;a href="http://www.room362.com/archives/226-Runtime-Packers-hold-the-cheese.html"&gt;guest poster concerning packers on his blog&lt;/a&gt;.  Very cool.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-7102234140847899152?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/7102234140847899152/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=7102234140847899152" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7102234140847899152?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/7102234140847899152?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/yn1oXHRzINI/upcoming-appearances.html" title="Upcoming Appearances" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/09/upcoming-appearances.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcMSXc9eCp7ImA9WxRSEUk.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-5785766652997188497</id><published>2008-09-11T11:26:00.005-04:00</published><updated>2008-09-11T11:48:08.960-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-11T11:48:08.960-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="malware" /><title>Flux Agent Geographic Distribution</title><content type="html">I've been looking into a fast flux botnet for the past day which came in the form of some banking malspam.  If you don't know what fast flux networks are, check out the &lt;a href="http://project.honeynet.org/papers/ff/"&gt;Honeynet Project's Know Your Enemy&lt;/a&gt; paper on them - its one of the best resources out there.&lt;br /&gt;&lt;br /&gt;I set up a script to resolve the DNS name of the website which held the malware on it.  The DNS record expired every 1500 seconds (25 minutes) so my script would perform the lookup, wait 25 minutes. perform another lookup, rinse, repeat.  I did this for about 24 hours.  The purpose was to see where the flux agents for the botnet were residing.&lt;br /&gt;&lt;br /&gt;In the end, I had 88 unique IP addresses acting as flux agents residing in 21 different countries.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;img src="http://chart.apis.google.com/chart?cht=p&amp;amp;chs=500x250&amp;amp;chd=t:18,15,7,6,6,5,5,4,4,4,3,2&amp;amp;chl=RO%7CIL%7CKR%7CJP%7CGB%7CRU%7CES%7CUS%7CHU%7CDE%7CUA%7CFR&amp;amp;chco=ff8800&amp;amp;chtt=Flux+Agent+Geographic+Distribution%7cCountries+%3e+1" /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Interestingly, while the most were coming from Romania (18), the second largest was from Israel (15) and there were no .edu's in the mix.  Remember, these are the flux agents, not the members of the botnet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-5785766652997188497?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/5785766652997188497/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=5785766652997188497" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/5785766652997188497?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/5785766652997188497?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/WmsQlyCRxhw/flux-agent-geographic-distribution.html" title="Flux Agent Geographic Distribution" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/09/flux-agent-geographic-distribution.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cBQH04fip7ImA9WxRSEU0.&quot;"><id>tag:blogger.com,1999:blog-2672754150485551359.post-9154299201197413945</id><published>2008-09-10T22:08:00.007-04:00</published><updated>2008-09-10T22:44:11.336-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-10T22:44:11.336-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="spam" /><title>I love getting spam, redux</title><content type="html">&lt;a href="http://secshoggoth.blogspot.com/2008/05/i-love-getting-spam.html"&gt;Back in May&lt;/a&gt; I blogged about a site named &lt;a href="http://www.knujon.com"&gt;Knujon&lt;/a&gt;, run by Garth Bruen, which was attempting to fight the good fight against spam not by attempting to shut down the spammers themselves, but by attempting to shut down the domains for the sites spam is advertising.  His theory is sound, but how effective was it?  I signed up for the Knujon service, downloaded a Thunderbird extension to send the spam I received to Knujon and have been watching the reports.&lt;br /&gt;&lt;br /&gt;Before I go on, let me just say that with the email accounts that I use Thunderbird to check I probably receive close to 500-1000 spam a day.  Thunderbird does a fairly good job of recognizing them as junk and putting them in my Junk folder.  When I run my Knujon extension it attaches them to an email and sends it to Knujon to process.&lt;br /&gt;&lt;br /&gt;By logging into the site you receive status reports on the emails you have sent them.  From the statistics available, you can see how many domains they have received, how many are pending suspension and how many have been suspended.&lt;br /&gt;&lt;br /&gt;As of 9/9/08, Knujon has received 7,115 sites from me that were being advertised in spam.  So far, 291 domains are pending suspension and 270 domains have been completely removed.  Not bad for only 5 months of sending emails.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://chart.apis.google.com/chart?cht=p3&amp;amp;chd=t:4.09,3.79,92.12&amp;amp;chs=350x150&amp;amp;chl=Pending%7CSuspensions%7CNo%20Action&amp;amp;chtt=Your%20Progress"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://chart.apis.google.com/chart?cht=p3&amp;amp;chd=t:4.09,3.79,92.12&amp;amp;chs=350x150&amp;amp;chl=Pending%7CSuspensions%7CNo%20Action&amp;amp;chtt=Your%20Progress" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;For the amount of effort that I have had to put in to Knujon (almost none), I am very impressed with the results.  Garth Bruen is making alot of progress in his work - according to the site they have shut down 79,500 domains with another 33,671 pending. &lt;br /&gt;&lt;br /&gt;I highly encourage everyone to sign up on Knujon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2672754150485551359-9154299201197413945?l=secshoggoth.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://secshoggoth.blogspot.com/feeds/9154299201197413945/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=2672754150485551359&amp;postID=9154299201197413945" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/9154299201197413945?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2672754150485551359/posts/default/9154299201197413945?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheSecurityShoggoth/~3/KmlWsYcZ_oo/i-love-getting-spam-redux.html" title="I love getting spam, redux" /><author><name>Security Shoggoth</name><uri>http://www.blogger.com/profile/15411793726236555303</uri><email>securityshoggoth@gmail.com</email><gd:extendedProperty name="OpenSocialUserId" value="01799221013624566592" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://secshoggoth.blogspot.com/2008/09/i-love-getting-spam-redux.html</feedburner:origLink></entry></feed>
