<?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:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
    <title>SpiderLabs Anterior</title>
    
    <link rel="alternate" type="text/html" href="http://blog.spiderlabs.com/" />
    <id>tag:typepad.com,2003:weblog-86844722084091660</id>
    <updated>2013-05-20T11:16:55-05:00</updated>
    <subtitle>Official Blog of Trustwave's SpiderLabs - SpiderLabs is an elite team of ethical hackers, investigators and researchers at Trustwave advancing the security capabilities of leading businesses and organizations throughout the world.
</subtitle>
    <generator uri="http://www.typepad.com/">TypePad</generator>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SpiderlabsAnterior" /><feedburner:info uri="spiderlabsanterior" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/3.0/" /><logo>http://npercoco.typepad.com/spiderlabs-vsmall.jpg</logo><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/SpiderlabsAnterior" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FSpiderlabsAnterior" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><entry>
        <title>Machine Learning Update 1</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/CGymKGfEPTE/machine-learning-update-1.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/machine-learning-update-1.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b017eeb467045970d</id>
        <published>2013-05-20T11:16:55-05:00</published>
        <updated>2013-05-20T11:16:55-05:00</updated>
        <summary>An update on my Machine Learning project to classify, categorize, and otherwise group like pieces of malware together to better understand and analyze malicious code.</summary>
        <author>
            <name>Ryan Merritt</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Big Data" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Malware" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Security Research" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;It has been almost&#xD;
exactly a month since my &lt;a href="http://blog.spiderlabs.com/2013/04/me-myself-and-i-robot.html" target="_blank" title="Me Myself and I, Robot"&gt;last post&lt;/a&gt;&#xD;
regarding the new project I am working on, so I figure it is time for an&#xD;
update. First off, I was excited and encouraged with the responses I received via&#xD;
Twitter after my initial posting. One response in particular mentioned the&#xD;
related work that &lt;a href="https://twitter.com/silviocesare" target="_blank" title="Silvio Cesare Twitter"&gt;@silviocesare&lt;/a&gt; is&#xD;
doing with the &lt;a href="http://www.simseer.com/" target="_blank" title="SimSeer Project"&gt;SimSeer&lt;/a&gt; project as well as&#xD;
a book he co-authored “&lt;a href="http://www.softwaresimilarityandclassification.com/" target="_blank" title="Software Similarity and Classification Book"&gt;Software Similarity&#xD;
and Classification&lt;/a&gt;”. Both appear to be excellent resources and I plan to&#xD;
check them both out in more detail as time allows. &lt;/span&gt;&lt;/p&gt;&#xD;
&lt;span style="font-family: helvetica;"&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb467ac8970d-pi" style="float: right;"&gt;&lt;img alt="ML" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb467ac8970d" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb467ac8970d-800wi" style="margin: 0px 0px 5px 5px;" title="ML"&gt;&lt;/img&gt;&lt;/a&gt;It seems as if the stars&#xD;
were in alignment because just after I announced the project, a little birdy (&lt;a href="https://twitter.com/spookerlabs" target="_blank" title="Spookerlabs"&gt;@spookerlabs&lt;/a&gt;) let me know that a&#xD;
free &lt;a href="https://www.coursera.org/course/ml" target="_blank" title="Machine Learning Course"&gt;Machine Learning &lt;/a&gt;&lt;a href="https://www.coursera.org/course/ml" target="_blank" title="Machine Learning Course"&gt;course&lt;/a&gt;&#xD;
from &lt;a href="http://www.stanford.edu/" target="_blank" title="Stanford University"&gt;Stanford University&lt;/a&gt; was being&#xD;
presented through &lt;a href="https://www.coursera.org/" target="_blank" title="Coursera"&gt;Coursera&lt;/a&gt;&lt;a href="https://www.coursera.org/" target="_blank" title="Coursera"&gt;.&lt;/a&gt; Did I&#xD;
mention that it is free? I signed up for it and we are about four weeks through&#xD;
the 10-week course. I have to say that I am pretty impressed with how the&#xD;
course is laid out and presented. We wasted no time jumping right into the&#xD;
math, but that shouldn’t &lt;em&gt;really&lt;/em&gt; be of&#xD;
any surprise to anyone. The course mainly applies Linear Algebra, but&#xD;
an understanding of at least first year Calculus is a definite bonus. For example,&#xD;
here is a slide from the first week of the class covering the application of a &lt;a href="http://en.wikipedia.org/wiki/Linear_regression" target="_blank" title="Linear Regression"&gt;Linear Regression Model&lt;/a&gt; and the &lt;a href="http://en.wikipedia.org/wiki/Gradient_descent" target="_blank" title="Gradient Descent"&gt;Gradient Descent Algorithm&lt;/a&gt;, which would be used to help predict something like house pricing based on known square footage:&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023f0082970c-pi" style="display: inline;"&gt; &lt;/a&gt;&lt;/span&gt;&#xD;
&lt;img alt="Formula1" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b0191023f0082970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023f0082970c-800wi" title="Formula1"&gt;&lt;/img&gt;&lt;br&gt;&#xD;
&#xD;
&lt;span style="font-family: helvetica;"&gt;Admittedly it has been a&#xD;
while since I’ve applied math concepts like this, in my head I was secretly hoping&#xD;
for something more along the lines of this:&#xD;
&lt;/span&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c4903a7970b-pi" style="display: inline;"&gt;&lt;img alt="Mathjoke" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c4903a7970b" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c4903a7970b-800wi" title="Mathjoke"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br&gt;&#xD;
&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;All joking aside though,&#xD;
if you are a self-paced learner this is a great resource that is being made&#xD;
available for &lt;span style="text-decoration: underline;"&gt;free&lt;/span&gt;. It is most definitely worth checking out what they&#xD;
have to offer.&#xD;
&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;The course uses the&#xD;
software package &lt;a href="http://www.gnu.org/software/octave/"&gt;Octave&lt;/a&gt;&#xD;
(similar to Matlab) to program solutions to exercises. The Octave language&#xD;
gives you command line input and some pretty impressive graphics manipulation&#xD;
capabilities to model your data with. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;span style="font-family: helvetica;"&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb467466970d-pi" style="display: inline;"&gt;&lt;/a&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb467c9a970d-pi" style="float: right;"&gt;&lt;img alt="Machinelearninghackers" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb467c9a970d" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb467c9a970d-120wi" style="margin: 0px 0px 5px 5px;" title="Machinelearninghackers"&gt;&lt;/img&gt;&lt;/a&gt;Additionally I picked up&#xD;
the book “&lt;a href="http://www.amazon.com/Machine-Learning-Hackers-Drew-Conway/dp/1449303714" target="_blank" title="Machine Learning for Hackers"&gt;Machine Learning for Hackers&lt;/a&gt;”. I haven’t gotten too deep into it yet,&#xD;
but the authors are using the language R to solve their problems. &lt;a href="http://www.r-project.org/"&gt;R&lt;/a&gt; is a free open-sourced tool similar to &lt;a href="http://stat.bell-labs.com/S/"&gt;S&lt;/a&gt;. I am looking forward to comparing what&#xD;
I learn in the online course with what I am able to extract from the book. I&#xD;
think it is typically a good idea to not get all of your knowledge from a single&#xD;
source.&#xD;
&lt;/span&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;In general these tools/languages such as R and Octave would likely be used to rapidly prototype your machine learning theories against your data sets. They are great for visualizing and manipulating your data sets, and quickly testing your hypotheses. However, once you are satisfied with the output of your learning algorithm, you will likely want to implement the solution with a more efficient language such as C or Java to use in your production environments. I don't know at this point where to draw that particular line in the sand, but it is something to keep in mind as you work towards your goals.&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: helvetica;"&gt;I am trying to balance&#xD;
this bootstrapping type of learning along with my normal daily duties here at work, and there have&#xD;
already been times when I’ve had to put this stuff down while dealing with the&#xD;
influx of “real work”, but I’m quite excited about the things I’m picking up&#xD;
already, and I’m itching to get my hands dirty. My hope is that by the end of&#xD;
the course I will know enough to be dangerous and I can start publishing some&#xD;
of my initial results right here. Stay tuned...&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=CGymKGfEPTE:Y8JGfQ4jApw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=CGymKGfEPTE:Y8JGfQ4jApw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=CGymKGfEPTE:Y8JGfQ4jApw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=CGymKGfEPTE:Y8JGfQ4jApw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/CGymKGfEPTE" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/machine-learning-update-1.html</feedburner:origLink></entry>
    <entry>
        <title>SpiderLabs Radio May 17, 2013 w/ Space Rogue</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/ZovK1fJ2XtA/spiderlabs-radio-may-17-2013-w-space-rogue.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/spiderlabs-radio-may-17-2013-w-space-rogue.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b0191023a0d3a970c</id>
        <published>2013-05-17T16:14:27-05:00</published>
        <updated>2013-05-17T16:14:27-05:00</updated>
        <summary>This weeks episode of SpiderLabs Radio hosted by Space Rogue is brought to you by Trustwave's Threat Intelligence Service and covers Topiray, Viral, TFlow, Kayla go to jail, DHS selling 0-days, OSX Malware, SkyNews, Colin was here, OpPetrol, Onity locks still getting owned, java renumbering, Taiwan and Philippines equals Cyberwar!, General Keith at Blackhat and a lot more! Listen to SpiderLabs radio in iTunes. Or you can download the MP3 file directly here. Or listen right from your browser with this embedded player.</summary>
        <author>
            <name>Space Rogue</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="SpiderLabs Radio" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;This weeks episode of SpiderLabs Radio hosted by Space Rogue is brought to you by&amp;nbsp;&lt;a href="https://www.trustwave.com/spiderlabs/threat-intelligence/#overview"&gt;Trustwave's Threat Intelligence Service&lt;/a&gt;&amp;nbsp;and covers Topiray, Viral, TFlow, Kayla go to jail, DHS selling 0-days, OSX Malware, SkyNews, Colin was here, OpPetrol, Onity locks still getting owned, java renumbering, Taiwan and Philippines equals Cyberwar!, General Keith at Blackhat&amp;nbsp;and a lot more!
&lt;div&gt;
&lt;p&gt;Listen to SpiderLabs radio in&amp;nbsp;&lt;a href="https://itunes.apple.com/us/podcast/spiderlabs-radio/id300567984"&gt;iTunes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Or you can download the MP3 file directly&amp;nbsp;&lt;a href="http://traffic.libsyn.com/spiderlabsradio/2013.05.17.mp3"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or listen right from your browser with this embedded player.&lt;/p&gt;
&lt;/div&gt;
&lt;iframe style="border: none" src="http://html5-player.libsyn.com/embed/episode/id/2325773/height/360/width/640/theme/legacy/direction/no/autoplay/no/autonext/no/thumbnail/yes/preload/no/no_addthis/no/" height="360" width="640" scrolling="no"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ZovK1fJ2XtA:2ASIWrYh9hg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ZovK1fJ2XtA:2ASIWrYh9hg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ZovK1fJ2XtA:2ASIWrYh9hg:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ZovK1fJ2XtA:2ASIWrYh9hg:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/ZovK1fJ2XtA" height="1" width="1"/&gt;</content>


        <link rel="enclosure" type="audio/mpeg" href="http://traffic.libsyn.com/spiderlabsradio/2013.05.17.mp3" />

    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/spiderlabs-radio-may-17-2013-w-space-rogue.html</feedburner:origLink></entry>
    <entry>
        <title>Alina: Following The Shadow Part 1</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/c3OJFIuNdy4/alina-following-the-shadow-part-1.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/alina-following-the-shadow-part-1.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b0191023d6b01970c</id>
        <published>2013-05-17T13:01:23-05:00</published>
        <updated>2013-05-17T13:02:32-05:00</updated>
        <summary>Last I spoke with you, I went into the details of a family of Point of Sale (POS) malware, named 'Alina'. At the time, I chose to talk about version 4.0, mainly because I felt it gave a good representation of the entire family itself. In the course of my research, I've been able to acquire 12 distinct versions. As you may recall from the last blog post, Alina is versioned in the User-Agent field for all HTTP-based communication. For example, the User-Agent last time around was "Alina v4.0". Knowing this, I plan on talking about the evolution of this...</summary>
        <author>
            <name>Josh Grunzweig</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Malware" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;Last I spoke with you, I went into the details of a family of Point of Sale (POS) malware, named '&lt;a href="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html" target="_blank" title="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html"&gt;Alina&lt;/a&gt;'. At the time, I chose to talk about version 4.0, mainly because I felt it gave a good representation of the entire family itself. In the course of my research, I've been able to acquire 12 distinct versions. As you may recall from the last blog post, Alina is versioned in the User-Agent field for all HTTP-based communication. For example, the User-Agent last time around was "Alina v4.0". Knowing this, I plan on talking about the evolution of this malware today, going from version 0.1 up to 5.5. Just for reference, I have the following versions at this time:&lt;/p&gt;&#xD;
&lt;p style="text-align: center;"&gt;0.1, 1.0, 2.0, 2.1, 3.1, 3.2, 3.3, 3.4, 3.5, 4.0, 5.2, 5.3, 5.5&lt;/p&gt;&#xD;
&lt;p&gt;I'm going to break up this post into a few different sections, and talk about how the malware family has evolved over time with respect to various categories. As I started writing this, it became apparent that it wouldn’t fit into one blog post. As such, I’ve split it up into different parts. For this blog post I’m going to focus on the creation timeline, exfiltration, and C&amp;amp;C.&#xD;
&lt;/p&gt;&#xD;
&#xD;
&lt;h2&gt;Creation Timeline&lt;/h2&gt;&#xD;
&lt;p&gt;Anyone familiar with the PE file format knows that there is a time-stamp field in the File Header that typically stores the time the file was compiled (I briefly mention it in a previous blog post, “&lt;a href="http://blog.spiderlabs.com/2013/04/basic-packers-easy-as-pie.html" target="_blank" title="http://blog.spiderlabs.com/2013/04/basic-packers-easy-as-pie.html"&gt;Basic Packers: Easy As Pie&lt;/a&gt;” ). Attackers have the ability to 'stomp' this field of course, but there is no indication that any of the Alina samples were time stomped. Using this information, along with the version information provided in the User-Agent field, we attempt to provide a timeline of just when these versions first appeared.&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c47691c970b-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_Graph_Time_New" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c47691c970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c47691c970b-800wi" title="Alina_Graph_Time_New"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&#xD;
I realize you may be noticing a few discrepancies with this timeline. The most obvious is likely the fact that version 1.0 appears to be older than 0.1, or the fact that 3.1 is older than 3.2. It's not an exact science I'm afraid, as we don't know exactly what the author was doing at the time. It's possible that he or she decided to simply recompile an older version and use it during a compromise, or perhaps some other events took place that would cause these oddities. It is also curious to note that both version 3.1 and version 0.1 were compiled with the 'debug' flag enabled. These are the only two versions in my possession that are compiled using this flag, which further adds to the mystery surrounding these particular versions. At any rate, it provides us a decent look at a general timeline of when this malware was created. &lt;br&gt;&lt;br&gt;Unfortunately, version 5.5 utilized a UPX Protector layer, which destroyed the timestamp information in the PE header, which I'll discuss further in part 2. Based on the other information we have, however, it's likely fair to assume it was compiled sometime in March 2013, or early April of that same year.&#xD;
&lt;h2&gt;Exfiltration&lt;/h2&gt;&#xD;
&lt;p&gt;I talked about the exfiltration of version 4.0 in-depth during my last blog post, which you can find &lt;a href="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html" target="_blank" title="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html"&gt;here&lt;/a&gt;. Let's take a step back, however, and look at how the author originally exfiltrated data and evolved his or her technique's over time.&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c47b147970b-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_Graph_Exfiltration_New" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c47b147970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c47b147970b-800wi" title="Alina_Graph_Exfiltration_New"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h3&gt;v0.1/v1.0&lt;/h3&gt;&#xD;
&lt;p&gt;Version 0.1 and 1.0 had a very simplistic technique for data exfiltration. Simply put, everything was sent in the clear with no obfuscation/encryption whatsoever. We can see an example of this below:&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c476e32970b-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_0.1_exfiltration" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c476e32970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c476e32970b-800wi" title="Alina_0.1_exfiltration"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;As you can see, there is simply one POST parameter of 'alina' that contains the clear-text track data. The only difference regarding exfiltration between version 0.1 and 1.0 appears to be the addition of the 'hwid' POST parameter in 1.0, which contains the volume serial number of the victim device. This is likely used as a unique identifier that allows the attacker to easily differentiate between victims.&lt;/p&gt;&#xD;
&lt;h3&gt;v2.0&lt;/h3&gt;&#xD;
&lt;p&gt;We see a significant leap in the evolution of Alina's exfiltration in version 2.0 of the malware. Namely, the author has decided to change the POST parameter names to something more discrete. Specifically, the previously named 'alina' parameter has been changed to 'a', the 'hwid' parameter has been renamed to 'b', and a new POST parameter of 'c' has been included, which contains the victim's hostname. We also begin seeing the first signs of encryption, as the track data has been XORed with a key of 0xAB, and then converted to hex. We see this technique of XORing the data and converting it to hex throughout future versions of Alina.&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb44f64e970d-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_2.0_exfiltration" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb44f64e970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb44f64e970d-800wi" title="Alina_2.0_exfiltration"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;(Decrypted 'a' parameter using Ruby)&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb452ff1970d-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Screen shot 2013-05-17 at 11.14.02 AM" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb452ff1970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb452ff1970d-800wi" title="Screen shot 2013-05-17 at 11.14.02 AM"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;&#xD;
&lt;h3&gt;v2.1&lt;/h3&gt;&#xD;
&lt;p&gt;Version 2.1 of Alina makes another leap in the evolution of this malware's exfiltration capabilities. It is at this time that we begin to see actual commands being implemented (discussed further in the C&amp;amp;C section). The 'b' and 'c' parameters have remained untouched, however, track data is no longer contained within the 'a' parameter. Instead, it is contained within the POST parameter 'cdata'. The same encryption routine is used to obfuscate this track data. We also see the addition of the ‘v’ parameter, which contains the version of Alina that is running.&lt;br&gt;&lt;br&gt;The constant changing of POST parameters suggests that the author was either attempting to evade detections of network-based security solutions, or, perhaps more likely, simply was indecisive and was attempting to decide on the best way of sending this data to the server he or she controlled. &lt;br&gt;&lt;br&gt;It was during this version that we also begin to see log messages being exfiltrated by the malware. Specifically, the 'ldata' parameter was used to send out logs periodically when certain events transpired. This log data was encrypted using the same XOR/hex technique used for track data. The malware also implemented a log level parameter in this version, which specified what logs to exfiltrate. We see this logging characteristic throughout a number of future versions of Alina. &lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d8888970c-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_2.1_exfiltration" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b0191023d8888970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d8888970c-800wi" title="Alina_2.1_exfiltration"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb44f83e970d-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_2.1_exilftration2" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb44f83e970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb44f83e970d-800wi" title="Alina_2.1_exilftration2"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h3&gt;v3.1&lt;/h3&gt;&#xD;
&lt;p&gt;Version 3.1 did not vary greatly with regard to data exfiltration. The only apparent difference with POST requests is the addition of the “p” parameter, which contains the path of the Alina malware on the victim machine. &lt;br&gt;&lt;br&gt;Additionally, it is in this version that we begin seeing a requirement for a 666 status code from the remote server. As mentioned in the last blog post, seeing a 666 status code is extremely unusual, and should raise an eyebrow or two for anyone monitoring network traffic. The requirement for this status code is an unusual decision for the malware authors to implement.&lt;br&gt;&lt;br&gt;One other interesting addition in this version is the support for multiple exfiltration URLs. In total, three distinct URLs were utilized in the sample analyzed. In the event that a URL did not respond with the correct status code, or was unreachable, Alina simply attempted to try the next URL in the list. &lt;/p&gt;&#xD;
&lt;h3&gt;v3.2&lt;/h3&gt;&#xD;
&lt;p&gt;The main difference we see at this point is the fact that version 3.2 does not look for the ‘666’ HTTP status code, as well as the removal of the log exfiltration request. This is an anomaly, as we see these features reintroduced in versions 3.3 and above. This further adds to the evidence that version 3.2 was in fact created before version 3.1, as it doesn’t make a lot of sense to remove this feature and then reintroduce it.&lt;/p&gt;&#xD;
&lt;h3&gt;v3.3/v3.4/v3.5/v4.0&lt;/h3&gt;&#xD;
&lt;p&gt;From an exfiltration point of view, this version acts the same as version 3.1. One minor change we discover in version 3.4-4.0 is the removal of a minor piece of information in outbound log requests. Specifically, the output of the call to the Windows API call GetLastError is removed.&lt;br&gt;&lt;br&gt;At this stage the author appears to be quite content with the exfiltration of his or her malware, as we see minimal changes to the overall structure it employs. You can see an example ‘download’ request of both versions below, illustrating the current POST parameter structure for these versions:&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c479e09970b-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Aline_3.4_3.5_exfiltration" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c479e09970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c479e09970b-800wi" title="Aline_3.4_3.5_exfiltration"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h3&gt;v5.2/v5.3/v5.5&lt;/h3&gt;&#xD;
&lt;p&gt;It’s clear that a lot of change occurred between versions 4.0 and 5.2. Referring to our timeline, we see that about a month of time elapsed between these versions. This is abundantly clear with regard to exfiltration, as the author(s) have completely removed their previous structure and replaced it with a custom one. HTTP POST requests are still the transportation mechanism to exfiltrate data; however, the data inside this POST request is completely different. You can see this below. I display the raw hex of the request to illustrate that non-ASCII data is being sent across the wire:&lt;/p&gt;&#xD;
&lt;p style="text-align: center;"&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d9b96970c-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Aline_5.2_exfiltration" class="asset  asset-image at-xid-6a0133f264aa62970b0191023d9b96970c" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d9b96970c-500wi" title="Aline_5.2_exfiltration"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="text-align: left;"&gt;After analysis of the binary, I was able to determine the encryption in use and map out the layout of the data being sent. Like previous versions, a simply XOR scheme is utilized to obfuscate this data. The first 76 bytes of data are simply XORed against the key of 0xAA. This provides us with the following (using the above request as an example):&lt;/p&gt;&#xD;
&lt;p style="text-align: left;"&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d9cb0970c-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Aline_5.2_xor" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b0191023d9cb0970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023d9cb0970c-800wi" title="Aline_5.2_xor"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Any data past 76 bytes utilizes a different XOR scheme for&#xD;
obfuscation. Specifically, the decoded data at byte offsets 18 through 35 are&#xD;
used as the XOR key. The screenshot below shows us the data starting at offset&#xD;
76:&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb450b9c970d-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_5.2_xor2" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb450b9c970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb450b9c970d-800wi" title="Alina_5.2_xor2"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Now that we’ve been able to decode the data, let’s talk&#xD;
about how it’s structure. Specifically, let’s discuss how the data between byte&#xD;
offsets 0 through 75 is structured. I haven’t been able to identify everything,&#xD;
but there should be enough to provide you with a good grasp of the data that&#xD;
this blob contains.&lt;/p&gt;&#xD;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 0-1   : Static Value&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 2-16  : Alina Version / User-Agent (“Alina v5.2”)&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 17-24 : Victim Volume Serial Number (Example: “bc0b5931”)&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 25-26 : 2 Random Bytes&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 27-35 : Command (“update”, “cards”, etc.)&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 36-67 : Victim Hostname&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 68-71 : Unknown – Likely Random 4 Bytes&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;Bytes 72-75 : Unknown – Likely Random 4 Bytes&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;One other interesting thing to note regarding version 5.x. When we begin to see log requests being sent across the wire and decoded, we notice some very unusual/interesting strings being used, as shown below:&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023da077970c-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_5.x_logs" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b0191023da077970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023da077970c-800wi" title="Alina_5.x_logs"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;It’s unclear what these strings, such as ‘[:112 &amp;lt;2&amp;gt;] {[!16!]}{[!46!]}’ mean, however, if I had to speculate I’d guess they were parsed by the server and used to indicate what data was sent. In the above example, it’s possible that the ‘{[!16!]}’ may represent process name, while ‘{[!46!]}’ represents its PID. This is purely guesswork, as I have not been able to obtain access to any Alina C&amp;amp;C servers.&lt;/p&gt;&#xD;
&lt;h2&gt;Command and Control (C&amp;amp;C)&lt;/h2&gt;&#xD;
&lt;h3&gt;v2.1-v4.0&lt;/h3&gt;&#xD;
&lt;p&gt;Command and control in Alina was not introduced until version 2.1. Up to this time, we simply see the author decide to automatically upload any discovered data to a single host. However, when version 2.1 was released, we notice the author’s decision to add an option to update the malware running on the infected host. This update request allows the author to perform two tasks—Update the malware or update the time interval between update requests. It uses the same technique discussed in my previous blog post where I detailed version 4.0. In fact, this technique is seen in every version between 2.1 and 4.0. As a recap, the author sends a request with an ‘update’ or ‘download’ request, like the one shown below:&lt;br&gt;&lt;br&gt;(The response seen below was created using a mock server I created in Ruby. It is not the actual attacker’s response).&lt;/p&gt;&#xD;
&lt;p style="text-align: center;"&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023da37b970c-popup" onclick="window.open( this.href, '_blank', 'width=640,height=480,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' ); return false" style="display: inline;"&gt;&lt;img alt="Alina_c_c_1" class="asset  asset-image at-xid-6a0133f264aa62970b0191023da37b970c" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b0191023da37b970c-500wi" title="Alina_c_c_1"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="text-align: left;"&gt;The attacker, seeing this request, then has the option of responding with the following command:&lt;/p&gt;&#xD;
&lt;p style="text-align: left; padding-left: 30px;"&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;ie:&amp;lt;update_interval&amp;gt;:&amp;lt;update_exe_location&amp;gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="text-align: left;"&gt;&lt;br&gt;If the ‘update_exe_location’ parameter is specified, the malware will attempt to download this file, copies it to a random name in the %TEMP% directory, and executes with an argument instructing the malware to delete the original and replace it with the new one. &lt;br&gt;&lt;br&gt;By allowing the author to update the malware, it also gives him or her the option of updating the exfiltration URLs, which are hardcoded inside of the binary itself. This update function can in theory also be used as a download/execute component, which can be used to install other malware onto the system. &lt;/p&gt;&#xD;
&lt;h3 style="text-align: left;"&gt;v5.x&lt;/h3&gt;&#xD;
&lt;p&gt;As we noticed with the exfiltration in version 5.x, we see a complete revamp of the network traffic. This is equally true with regard to Alina’s C&amp;amp;C. As you may recall from the Exfiltration section, Alina uses byte offsets 18 through 35 as a XOR key. You may also recall that Alina uses offsets 27 through 35 as a command. The following commands have been identified:card&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;cards&lt;/li&gt;&#xD;
&lt;li&gt;update&lt;/li&gt;&#xD;
&lt;li&gt;diag&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;Additionally, the following server responses have been identified, along with their description:&lt;br&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;updateinterval=&amp;lt;integer&amp;gt;: Change interval between update requests&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;cardinterval=&amp;lt;integer&amp;gt;  : Change interval between card exfiltration&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;log=1                   : Enable logging (not verified)&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;log=0                   : Disable logging (not verified)&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;update=&amp;lt;url&amp;gt;|           : Update malware&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;dlex=&amp;lt;url&amp;gt;|             : Download/Execute file&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: andale mono,times; font-size: 10pt;"&gt;chk=?                   : Unknown&lt;/span&gt;&lt;br&gt;&lt;br&gt;It’s interesting to see the addition of an actual download/execute operation in version 5.x, as I speculated earlier about how the update command could be used for that same thing. All of the commands above are sent across the wire after being XORed with the XOR key used in the original request, which again helps to deter simple inspection of the traffic. &lt;/p&gt;&#xD;
&lt;h2&gt;Conclusion&lt;/h2&gt;&#xD;
&lt;p&gt;I realize I’ve only touched the surface with Alina, as I still haven’t even talked about its installation process, techniques for grabbing track data, packers/crypters in use, etc, but I promise I’ll do my best to address those details in part 2 of this blog post. Over the course of 3-4 months, we’ve been able to see the Alina authors continually update and improve upon their malware. It is likely we will continue to see this trend continue in the future, making it increasingly difficult to analyze over the wire or on disk. I’ve included the exfiltration URLs for all of the samples I was able to obtain in the wild (not in active cases), and also included the hashes for all of the samples in the appendix. Thanks for reading!&lt;/p&gt;&#xD;
&lt;h3&gt;Appendix&lt;/h3&gt;&#xD;
&lt;h4&gt;Exfiltration URLs&lt;/h4&gt;&#xD;
&lt;p&gt;&#xD;
hxxp://84.22.106.87/asdwer/1.php&lt;br&gt;hxxp://204.188.242.201/ocz2/up.php&lt;br&gt;hxxp://204.188.242.201/dada123/up.php&lt;br&gt;hxxp://204.188.242.201/brand_new/up.php&lt;br&gt;hxxp://204.188.242.201/sucky/upload.php&lt;br&gt;hxxp://204.188.242.201/forum/login.php&lt;br&gt;hxxp://193.169.87.147/e107/login.php&lt;br&gt;hxxp://208.98.63.228/wp-admin/abc.php&lt;br&gt;hxxp://208.98.63.226/goose/push.php&lt;br&gt;hxxp://fastbussineslife.net/path/up.php&lt;br&gt;hxxp://host3.com/path/up.php&lt;br&gt;hxxp://jikobins.com/forum/login.php&lt;br&gt;hxxp://zwaonoiy.com/wordpress/sam.php&lt;br&gt;hxxp://jikobins.com/sucky/upload.php&lt;br&gt;hxxp://ioconzus.com/sucky/upload.php&lt;/p&gt;&#xD;
&lt;h4&gt;Hashes (MD5 Format)&lt;/h4&gt;&#xD;
&lt;p&gt;1efeb85c8ec2c07dc0517ccca7e8d743&lt;br&gt;37493eb319d126d0ab8f5a55da85563d&lt;br&gt;c9e5752eea81f7d3521b1d2232afd3b8&lt;br&gt;a418410fa8b2617f3109dc289fa151c5&lt;br&gt;71fbca87e863db0aca080b4f87cc36f2&lt;br&gt;d31eb6e7f39dde0c2015dc2804c84a85&lt;br&gt;5d333312e3dd0fb7b5823696e99000e9&lt;br&gt;2139e613dc20df19daa6d90a0ff05591&lt;br&gt;0de9765c9c40c2c2f372bf92e0ce7b68&lt;br&gt;7cf5a421c3403441d84a0e34f81c3f0c&lt;br&gt;1efeb85c8ec2c07dc0517ccca7e8d743&lt;br&gt;e7e13912af192abe2f6ec90f6d429c6c&lt;br&gt;6686eed5875f622f5ed21397acb41d86&lt;br&gt;a3ce818621074333723b07a5a5c22e5b&lt;br&gt;8cdb63b3bfe16c0517e96b316eda3514&lt;br&gt;99a307128daa407147d1c69d2824d703&lt;br&gt;0ec4fada5b72e60756bcecec62fd6901&lt;br&gt;7bef391ddb8f0058823b7aaa96b1ba43&lt;br&gt;04474d2723d328ce28029c050ec6c0bb&lt;br&gt;108785e2f5de11df0da4138b8dd819df&lt;/p&gt;&#xD;
&lt;fieldset class="zemanta-related"&gt;&lt;legend class="zemanta-related-title"&gt;Related articles&lt;/legend&gt;&#xD;
&lt;div class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;"&gt;&#xD;
&lt;div class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"&gt;&lt;a href="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html" style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" target="_blank"&gt;&lt;img alt="" src="http://i.zemanta.com/167082107_80_80.jpg" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;"&gt;&lt;/img&gt;&lt;/a&gt;&lt;a href="http://blog.spiderlabs.com/2013/05/alina-shedding-some-light-on-this-malware-family.html" style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" target="_blank"&gt;Alina: Casting a Shadow on POS&lt;/a&gt;&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;/fieldset&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=c3OJFIuNdy4:Qi-ZOywGLoQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=c3OJFIuNdy4:Qi-ZOywGLoQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=c3OJFIuNdy4:Qi-ZOywGLoQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=c3OJFIuNdy4:Qi-ZOywGLoQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/c3OJFIuNdy4" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/alina-following-the-shadow-part-1.html</feedburner:origLink></entry>
    <entry>
        <title>TrustKeeper Scan Engine Update - May 15, 2013</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/U1JeBTxW4AI/trustkeeper-scan-engine-update-may-15-2013.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/trustkeeper-scan-engine-update-may-15-2013.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b0191022b854b970c</id>
        <published>2013-05-15T16:30:14-05:00</published>
        <updated>2013-05-15T16:30:14-05:00</updated>
        <summary>The latest update to the TrustKeeper Scan Engine is now available. It adds coverage for more than two dozen vulnerabilities, including several recent Ruby on Rails vulnerabilities. It also greatly expands our vulnerability coverage for Moodle CMS, with 20 new vulnerability tests. Additionally, with official support from Microsoft for Windows XP ending in less than a year, we have added an informational notice for detected Windows XP systems, reminding customers that support (and security fixes) will be ending soon. New Vulnerability Test Highlights Some of the more interesting vulnerability tests we added recently are as follows: Microsoft * Microsoft Windows...</summary>
        <author>
            <name>woodbusy</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="TrustKeeper Scan Engine" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p style="margin-top: 20pt;"&gt;The latest update to the TrustKeeper Scan Engine is now available.  It adds coverage for more than two dozen vulnerabilities, including several recent Ruby on Rails vulnerabilities. It also greatly expands our vulnerability coverage for Moodle CMS, with 20 new vulnerability tests.  Additionally, with official support from Microsoft for Windows XP ending in less than a year, we have added an informational notice for detected Windows XP systems, reminding customers that support (and security fixes) will be ending soon.&lt;/p&gt;&#xD;
&#xD;
&lt;p style="margin-top: 20pt;"&gt;&lt;span style="font-size: 15pt;"&gt;&lt;strong&gt;New Vulnerability Test Highlights&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Some of the more interesting vulnerability tests we added recently are as follows:&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Microsoft&lt;/strong&gt;&lt;br&gt;&#xD;
* Microsoft Windows XP End of Life&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Ruby on Rails&lt;/strong&gt;&lt;br&gt;&#xD;
* Ruby on Rails attr_protected Method Bypass in Active Record (&lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0276" target="_blank"&gt;CVE-2013-0276&lt;/a&gt;)&lt;br&gt;&#xD;
* Ruby on Rails limit Function SQL Injection Vulnerability (&lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-0448" target="_blank"&gt;CVE-2011-0448&lt;/a&gt;)&lt;br&gt;&#xD;
* Ruby on Rails Nested Attributes Remote Arbitrary Record Modification (&lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-3933" target="_blank"&gt;CVE-2010-3933&lt;/a&gt;)&lt;br&gt;&#xD;
* Ruby on Rails Serialized Attributes Denial of Service in Active Record (&lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0277" target="_blank"&gt;CVE-2013-0277&lt;/a&gt;)&lt;/p&gt;&#xD;
&lt;p&gt;All Trustwave customers using the TrustKeeper Scan Engine receive the updates automatically as soon as an update is available. No action is required.&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=U1JeBTxW4AI:bop6PC-ITg0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=U1JeBTxW4AI:bop6PC-ITg0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=U1JeBTxW4AI:bop6PC-ITg0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=U1JeBTxW4AI:bop6PC-ITg0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/U1JeBTxW4AI" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/trustkeeper-scan-engine-update-may-15-2013.html</feedburner:origLink></entry>
    <entry>
        <title>The White "X"</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/qzfpq5LiWbI/the-white-x.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/the-white-x.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b017eeb2ab5c4970d</id>
        <published>2013-05-15T08:05:58-05:00</published>
        <updated>2013-05-15T08:06:37-05:00</updated>
        <summary>Over the many years I’ve spent training various local, state, federal and law enforcement organizations on forensics methodologies, one story always sticks out in my mind as I prepare for courses. As I get organized for the upcoming Computer Forensics &amp; Incident Response for Investigators course on July 27th – 30that BlackHat USA in Las Vegas or hear about another breach in the news, I’m reminded of the following story once again. A certain engineer retired from his job of 37 years at a very productive factory of a very well-known company. Prior to his departure, he trained three young...</summary>
        <author>
            <name>Chris Pogue</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Conferences" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="DFIR" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Incident Response" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Training" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;Over the many years I’ve spent training various local, state,&#xD;
federal and law enforcement organizations on forensics methodologies, one story&#xD;
always sticks out in my  mind as I&#xD;
prepare for courses. As I get organized for the upcoming &lt;a href="https://www.blackhat.com/us-13/training/computer-forensics-and-incident-response-for-investigators.html"&gt;Computer&#xD;
Forensics &amp;amp; Incident Response for Investigators&lt;/a&gt; course on July 27&lt;sup&gt;th&lt;/sup&gt;&#xD;
– 30&lt;sup&gt;th&lt;/sup&gt;at &lt;a href="https://www.blackhat.com/us-13/"&gt;BlackHat USA&lt;/a&gt;&#xD;
in Las Vegas or &lt;a href="http://blog.spiderlabs.com/spiderlabs-radio/"&gt;hear&#xD;
about another breach in the news&lt;/a&gt;, I’m reminded of the following story once again.&lt;/p&gt;&#xD;
&lt;p&gt;A certain engineer retired from his job of 37 years at a&#xD;
very productive factory of a very well-known company.  Prior to his departure, he trained three&#xD;
young college graduates with engineering degrees on the ins-and-outs of the&#xD;
factory.  Because the retiring engineer&#xD;
did not have a college degree his replacements quickly discounted his&#xD;
admonitions as the ramblings of an "old man".&#xD;
&lt;/p&gt;&#xD;
&#xD;
&lt;p&gt;About one week later, the retired engineer's phone rings and&#xD;
at the other end is the plant manager.  A&#xD;
problem with a machine on the production floor had ground the factory to a&#xD;
halt.  For several days prior the three&#xD;
young replacements had tried to resolve the issue but didn’t make any progress.  The plant manager pleaded with the engineer to&#xD;
come back as a consultant and help identify and correct the problem.  The engineer gladly agreed.&lt;/p&gt;&#xD;
&lt;p&gt;An hour after that phone call, the old engineer arrived at&#xD;
the factory with nothing but a piece of chalk in his hand. Staff quickly&#xD;
escorted him to the production floor. &#xD;
His young replacements glared at him, certain that he would not be able&#xD;
to help and  involving him was an obvious&#xD;
waste of time.&lt;/p&gt;&#xD;
&lt;p&gt;The engineer puts on the safety glasses that  hung around his neck for almost 20 years and walked&#xD;
around inspecting equipment.  He tapped&#xD;
on a machine here and there, examined a few gauges and finally focuses on one&#xD;
piece of machinery in particular.  He&#xD;
turns his head to the right to get a close look and  then to the left.  He pulls up his safety glasses, squints as if&#xD;
to focus on something very small and  quickly sets the glasses back on his nose.  He then takes the chalk and marks a piece&#xD;
of equipment with a white "X.” &lt;/p&gt;&#xD;
&lt;p&gt;"Replace this" he said, "and you will be back&#xD;
up and running."&lt;/p&gt;&#xD;
&lt;p&gt;Immediately his young replacements protested, indicating&#xD;
incredulously that they had already checked that piece and determined it was&#xD;
definitely not the problem.  They had&#xD;
used the latest diagnostic tools to perform system checks on that part and the&#xD;
tools said the device was functioning properly. &#xD;
The plant manager, looked at them and affirmed the old engineer's diagnosis—the&#xD;
component marked with the "X" had to be replaced.  &lt;/p&gt;&#xD;
&lt;p&gt;After a few hours the part is replaced, and the system is&#xD;
powered back up.  The factory springs&#xD;
back to life and production is back to normal! &#xD;
Crisis averted.&lt;/p&gt;&#xD;
&lt;p&gt;A few days later the old engineer's phone rang. And again it&#xD;
was the plant manager  this time flabbergasted&#xD;
at the bill he received for $50,000 with a single line item of,&#xD;
"consulting fees.”  The manager states&#xD;
that the invoice is unacceptable and that for that kind of money, he needs a line-by-line&#xD;
breakdown of what cost so much money for less than four hours of work!&lt;/p&gt;&#xD;
&lt;p&gt;The old engineer agrees to the manager’s wishes, and sends&#xD;
him the following invoice.&lt;/p&gt;&#xD;
&lt;p&gt;1.            $1—box of&#xD;
chalk&lt;/p&gt;&#xD;
&lt;p&gt;2.            $49,999—knowing&#xD;
where to put the "X"&lt;/p&gt;&#xD;
&lt;p&gt;For some unknown reason, many forensic investigators think&#xD;
tools solve cases.  During my tenure in&#xD;
this field, I have frequently heard statements like, "I wish I had a tool&#xD;
that did this!", or "If only there was a tool that did that!".&#xD;
Likewise, there is a fever pitch whenever a new forensic tool is released; a&#xD;
sense of wonderment and the ever lingering question, "Will this be THE&#xD;
tool to change everything?".&lt;/p&gt;&#xD;
&lt;p&gt;Since 2009, many of us in the forensic community have spoken,&#xD;
blogged, tweeted and presented at conferences about shifting focus away from&#xD;
tools and onto methodology.  We have&#xD;
gained some traction, but we still encounter heavy opposition from many&#xD;
practitioners who want to hold on to the "old ways" and their heavy&#xD;
reliance on tools.  This would be fine if&#xD;
we were dealing with 20-year-old technology in strictly post mortem cases, and only&#xD;
being asked to perform simple tasks such as finding CP or comparing file time stamps.  I cannot speak for what your cases look like,&#xD;
but ours at Trustwave...yeah...they’re a bit more complicated.&lt;/p&gt;&#xD;
&lt;p&gt;We go after answers, not data.  We use a sound, repeatable, consistent methodology&#xD;
that has been proven in more than 1,500 cases (450 last year alone).  It has withstood the scrutiny of both&#xD;
criminal and civil litigation and has helped Law Enforcement at all levels put&#xD;
bad guys in jail. It just flat-out works.&lt;/p&gt;&#xD;
&lt;p&gt;As technology marches ever forward, computer forensics and incident response gets more complicated, not less.  Operating systems change, networks expand and&#xD;
data storage increases exponentially. &#xD;
Add mobile devices and cloud computing to the mix and there are suddenly&#xD;
so many places for trace evidence to reside that the old, "shotgun"&#xD;
style of forensics is no longer plausible. &#xD;
There has to be a shift in thinking, or responders and investigators&#xD;
will quickly become as obsolete as 3.5-inch floppy disks.&lt;/p&gt;&#xD;
&lt;p&gt;So what's the answer? &#xD;
In the vignette described above, the old engineer used his knowledge of and&#xD;
experience with how the machinery worked to place the white "X" on&#xD;
the correct system.  He didn't rely on a&#xD;
tool to make that decision for him.  Instead&#xD;
he used the most effective tool he had in his toolbox—his mind!  His years of experience and expert eyes allowed him to know what "normal" looked like and fueled his&#xD;
remarkable ability to spot the abnormality no matter how seemingly&#xD;
insignificant to anyone else.&lt;/p&gt;&#xD;
&lt;p&gt;By leveraging our existing knowledge of how crimes are&#xD;
committed and why criminals commit them with our understanding of computing&#xD;
fundamentals, we can formulate a clear and concise path upon which to base&#xD;
investigations.  This knowledge, coupled&#xD;
with a proven and repeatable methodology, can take you from being an average&#xD;
investigator to being an exceptional one.&lt;/p&gt;&#xD;
&lt;p&gt;I hope you will join me and learn exactly that philosophy at&#xD;
the &lt;a href="https://www.blackhat.com/us-13/training/computer-forensics-and-incident-response-for-investigators.html"&gt;Computer&#xD;
Forensics &amp;amp; Incident Response for Investigators&lt;/a&gt; course in Las Vegas, NV&#xD;
during the &lt;a href="https://www.blackhat.com/us-13/"&gt;BlackHat USA&lt;/a&gt; Training&#xD;
sessions. You’ll engage in hands on labs and instructor-led demos in a “real&#xD;
world” environment.  There are a lot of&#xD;
bad guys out there, and as with the story about the “White X” experience in the&#xD;
“real world” is often the best place to understand their modus operandi.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="https://www.blackhat.com/us-13/training/computer-forensics-and-incident-response-for-investigators.html"&gt;Click&#xD;
here&lt;/a&gt; for more details and to sign up today. &lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=qzfpq5LiWbI:p5UqtvQCVCI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=qzfpq5LiWbI:p5UqtvQCVCI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=qzfpq5LiWbI:p5UqtvQCVCI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=qzfpq5LiWbI:p5UqtvQCVCI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/qzfpq5LiWbI" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/the-white-x.html</feedburner:origLink></entry>
    <entry>
        <title>Analysis of Malicious Document Files Spammed by Cutwail</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/OTTthtGsw-g/malicious-document-files-spammed-by-cutwail-to-propagate-zeus-trojan.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/malicious-document-files-spammed-by-cutwail-to-propagate-zeus-trojan.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b01901c2398a0970b</id>
        <published>2013-05-15T08:04:05-05:00</published>
        <updated>2013-05-13T21:30:09-05:00</updated>
        <summary>In our Global Security Report, we highlighted a zero day vulnerability in the Windows Common Controls affecting Microsoft Office (CVE-2012-0158). This was reportedly being used for targeted attacked against NGOs and human rights activist. Over the past week, the Cutwail botnet has been sending out spam containing malicious documents of the aforementioned vulnerability, CVE-2012-0158. The use of a loaded RTF attachment is a departure from normal for Cutwail, usually it distributes executable attachments or links to exploit kits. The spam claims to be from Citibank or Bank of America. The spam may use the “Merchant Statement” as a subject line...</summary>
        <author>
            <name>Rodel Mendrez</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Global Security Report" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Malware" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Phishing" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Spam" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;In our &lt;a href="http://www.trustwave.com/2013gsr" target="_self" title="Trustwave Global Security Report"&gt;Global Security Report&lt;/a&gt;, we highlighted a zero day vulnerability in the Windows Common Controls affecting Microsoft Office (CVE-2012-0158). This was reportedly&#xD;
being used for &lt;a href="http://contagiodump.blogspot.com.es/2012/04/cve2012-0158-south-china-sea-insider.html"&gt;targeted&#xD;
attacked&lt;/a&gt; against NGOs and human rights activist.&lt;/p&gt;&#xD;
&lt;p&gt;Over the past week, the Cutwail botnet has been sending out spam containing&#xD;
malicious documents of the aforementioned vulnerability, &lt;a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0158"&gt;CVE-2012-0158.&lt;/a&gt;  The use of a loaded&#xD;
RTF attachment  is a departure from&#xD;
normal for Cutwail, usually it distributes executable attachments or links to&#xD;
exploit kits.&lt;/p&gt;&#xD;
&lt;p&gt;The spam claims to be from Citibank or  Bank of America. The spam may use the&#xD;
“Merchant Statement” as a subject line and has an accompanying .DOC file attached.&lt;/p&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b017eeb20b9f0970d photo-full " id="photo-xid-6a0133f264aa62970b017eeb20b9f0970d" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb20b9f0970d-pi"&gt;&lt;img alt="Spam Campaign" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb20b9f0970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb20b9f0970d-800wi" title="Spam Campaign"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b017eeb20b9f0970d" id="caption-xid-6a0133f264aa62970b017eeb20b9f0970d"&gt;Spam Campaign Samples&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&#xD;
The .DOC attachment is actually an RTF file format which was&#xD;
crafted to exploit an error in the ActiveX controls found in MSCOMCTL.OCX (Windows&#xD;
Common Controls). The vulnerability is also known as &lt;a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0158"&gt;"MSCOMCTL.OCX RCE Vulnerability".&lt;/a&gt;&lt;br&gt;&lt;br&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b01901c235223970b photo-full " id="photo-xid-6a0133f264aa62970b01901c235223970b" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235223970b-pi"&gt;&lt;img alt="RTF File Header" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c235223970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235223970b-800wi" title="RTF File Header"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b01901c235223970b" id="caption-xid-6a0133f264aa62970b01901c235223970b"&gt;The Malicious RTF File Header&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;This exploit affects older versions of Microsoft Office such&#xD;
as Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1 etc. This issue was&#xD;
patched a year ago and was included in the Microsoft Security Bulletin &lt;a href="http://technet.microsoft.com/en-us/security/bulletin/ms12-027"&gt;MS12-027&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;The Shellcode and the&#xD;
Payload&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;To verify if the RTF file was indeed malicious, we initially&#xD;
scanned the file using a tool from &lt;a href="http://www.reconstructer.org/code.html"&gt;OfficeMalScanner suite&lt;/a&gt;,&#xD;
RTFScan.exe. This provided an overview of the malicious RTF file. The tool also&#xD;
dumped the embedded suspicious OLE document found in the RTF file.  RTFScanner found a  seemingly malicious object inside the file; and&#xD;
 VirusTotal’s high &lt;a href="https://www.virustotal.com/en-gb/file/807a355c641eb6e1de81757c31d711df1cd01f5858814091d8655ca1e6bdd538/analysis/"&gt;detection&#xD;
rate&lt;/a&gt; gave us high confidence that we were indeed  dealing with a malicious RTF document.&lt;/p&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b01901c23549b970b photo-full " id="photo-xid-6a0133f264aa62970b01901c23549b970b" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c23549b970b-pi"&gt;&lt;img alt="RTF Scanner Result" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c23549b970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c23549b970b-800wi" title="RTF Scanner Result"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b01901c23549b970b" id="caption-xid-6a0133f264aa62970b01901c23549b970b"&gt;RTFScan Result&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;br&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b01901c2356c7970b photo-full " id="photo-xid-6a0133f264aa62970b01901c2356c7970b" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c2356c7970b-pi"&gt;&lt;img alt="DocFHeader" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c2356c7970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c2356c7970b-800wi" title="DocFHeader"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b01901c2356c7970b" id="caption-xid-6a0133f264aa62970b01901c2356c7970b"&gt;The suspicious embedded OLE object that RTFScan detected.&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;One of the objectives of this analysis is to find the&#xD;
shellcode that will be executed when the exploit is triggered. Luckily, the&#xD;
shellcode string can be easily spotted within the malicious RTF document,&#xD;
characterized by the string “E9” (an opcode for relative JMP) and a series of&#xD;
90s (NOP instructions). So by dumping the shellcode strings and converting to&#xD;
binary, we can disassemble and analyze it easily.&lt;/p&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b017eeb20c5b5970d photo-full " id="photo-xid-6a0133f264aa62970b017eeb20c5b5970d" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb20c5b5970d-pi"&gt;&lt;img alt="Shellcode3" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb20c5b5970d image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb20c5b5970d-800wi" title="Shellcode3"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b017eeb20c5b5970d" id="caption-xid-6a0133f264aa62970b017eeb20c5b5970d"&gt;The disassembled shellcode&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;br&gt;&#xD;
&lt;p&gt;The dissassembled shellcode shows the initial scanning of the Process Environment&#xD;
Block (PEB) to resolve the Kernel32.dll address space and after that is the manual retrieval of Imported  API (Application Program Interface) through hashing.  This common shellcode technique is used to resolve the addresses of API functions it needs to execute when running in a Windows system. &lt;/p&gt;&#xD;
&lt;p&gt;Here's the list of hashes and its corresponding APIs that the shellcode use:&lt;/p&gt;&#xD;
&lt;pre&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0xBBAFDF85 GetProcAddress&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0xAC0A138E GetFileSize&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x9424D45A GlobalAlloc&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0xDBACBE43 SetFilePointer&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x130F36B2 ReadFile&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x94E43293 CreateFileA&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x837DE239 GetTempPathA&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x741F8DC4 WriteFile&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0xFF0D6657 CloseHandle&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x01A22F51 WinExec&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0xB4FFAFED GetModuleFileNameA&lt;/span&gt;&lt;br&gt;&lt;span style="font-family: 'courier new', courier;"&gt;0x4FD18963 ExitProcess&lt;/span&gt;&lt;/pre&gt;&#xD;
&lt;p&gt;Given that list of APIs, it gives an idea of what the shellcode is going to do.&lt;/p&gt;&#xD;
&lt;p&gt;With further investigation, we saw the shellcode decrypt a Trojan executable file embedded in the malicious RTF document using a simple XOR operation. The file  will then be dropped and installed in the user&#xD;
%TEMP% directory with the filename PAW.EXE. &lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235b4b970b-pi" style="display: inline;"&gt;&lt;img alt="Shellcode" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c235b4b970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235b4b970b-800wi" title="Shellcode"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;The Trojan is encrypted and embedded in RTF document XORed&#xD;
using the key 0x3F.&lt;/p&gt;&#xD;
&lt;div class="photo-wrap photo-xid-6a0133f264aa62970b01901c235c40970b photo-full " id="photo-xid-6a0133f264aa62970b01901c235c40970b" style="display: inline-block;"&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235c40970b-pi"&gt;&lt;img alt="Payload" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01901c235c40970b image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01901c235c40970b-800wi" title="Payload"&gt;&lt;/img&gt;&lt;/a&gt;&#xD;
&lt;div class="photo-caption caption-xid-6a0133f264aa62970b01901c235c40970b" id="caption-xid-6a0133f264aa62970b01901c235c40970b"&gt;The payload is embedded and XOR encrypted in the RTF document&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;Additionally, the code also drops another Word document file&#xD;
in the Temp directory with the filename VC.DOC. The dropped decoy document file&#xD;
is non-malicious and opened after the shellcode has installed the Trojan.&lt;/p&gt;&#xD;
&lt;p&gt;The installed Trojan is no other than the &lt;a href="https://www.virustotal.com/en-gb/file/31817141c4e7eeec12c576154a9505c7367db88c1369604a0c96b9ad2712c78d/analysis/1368420874/"&gt;Zeus&#xD;
Trojan&lt;/a&gt;. An analysis of this well-known Trojan can be further read in our&#xD;
previous &lt;a href="http://blog.spiderlabs.com/2012/05/catch-me-if-you-can-trojan-banker-zeus-strikes-again-part-1-of-5.html"&gt;blog&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;To sum up, once an unsuspecting victim is lured to open the&#xD;
malicious RTF document, the exploit will trigger the vulnerability in Microsoft&#xD;
Word, causing it to run the embedded shell code. The shell code eventually&#xD;
drops and installs its payload.&lt;/p&gt;&#xD;
&lt;p&gt;It is worth noting though, that even after a year the patch&#xD;
for this Microsoft Office vulnerability was released, cyber-criminals continue&#xD;
to use this exploit. It is always a good advice to keep all your  software up to date and avoid opening&#xD;
unsolicited email. &lt;/p&gt;&#xD;
&lt;p&gt;Trustwave &lt;a href="https://www.trustwave.com/email-security/secure-email-gateway/" target="_self"&gt;MailMarshal&lt;/a&gt; and &lt;a href="https://www.trustwave.com/secureEmail.php" target="_self"&gt;Mailmax&lt;/a&gt; customer are protected from this threat.&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=OTTthtGsw-g:5ynAs0y7Kps:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=OTTthtGsw-g:5ynAs0y7Kps:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=OTTthtGsw-g:5ynAs0y7Kps:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=OTTthtGsw-g:5ynAs0y7Kps:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/OTTthtGsw-g" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/malicious-document-files-spammed-by-cutwail-to-propagate-zeus-trojan.html</feedburner:origLink></entry>
    <entry>
        <title>TWSL2013-002: Multiple XSS Vulnerabilities in The Bug Genie</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/SkXEcGaK-aI/twsl2013-002-multiple-xss-vulnerabilities-in-the-bug-genie.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/twsl2013-002-multiple-xss-vulnerabilities-in-the-bug-genie.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b01901c2cf977970b</id>
        <published>2013-05-14T15:38:13-05:00</published>
        <updated>2013-05-14T15:38:30-05:00</updated>
        <summary>Trustwave SpiderLabs has published a new security advisory for multiple Cross-Site Scripting (XSS) vulnerabilities in The Bug Genie, an open source issue tracking and project management PHP application. The findings include both reflective and persistent XSS vulnerabilities in input parameters that can be exploited via authenticated POST requests. The Bug Genie team was contacted earlier this year regarding the security issues, and made an attempt to address them in their 3.2.5 release. Due to incomplete fixes in the 3.2.5 version, affected users are advised to upgrade to the latest stable 3.2.6 release. Our initial security advisory was published for affected...</summary>
        <author>
            <name>James Espinosa</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Advisories" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Application Security" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;Trustwave SpiderLabs has published a new&#xD;
security advisory for multiple Cross-Site Scripting (XSS) vulnerabilities in&#xD;
The Bug Genie, an open source issue tracking and project management PHP&#xD;
application. The findings include both reflective and persistent XSS&#xD;
vulnerabilities in input parameters that can be exploited via authenticated&#xD;
POST requests. The Bug Genie team was contacted earlier this year regarding the&#xD;
security issues, and made an attempt to address them in their 3.2.5 release.&#xD;
Due to incomplete fixes in the 3.2.5 version, affected users are advised to&#xD;
upgrade to the latest stable 3.2.6 release.&#xD;
&lt;/p&gt;&#xD;
&#xD;
&lt;p&gt;Our initial security advisory was published&#xD;
for affected versions 3.2.4 and prior. However, a couple of weeks after the&#xD;
fixes were released in version 3.2.5, I revisited the application in order to&#xD;
confirm the fixes. I found that only two out of the five findings were&#xD;
correctly addressed. As a result, the remaining three findings in the 3.2.5&#xD;
version were still vulnerable to XSS. Multiple attempts to contact The Bug&#xD;
Genie team regarding the following incomplete fixes were made: &lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Persistent XSS via&#xD;
POST request on 'description' parameter in issue reporting&lt;/li&gt;&#xD;
&lt;li&gt;Persistent XSS via&#xD;
POST request in file attachments&lt;/li&gt;&#xD;
&lt;li&gt;Reflective XSS via&#xD;
POST request on 'openid_identifier' parameter in login during preauth&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;Both the ‘description’ and ‘openid_identifier’&#xD;
parameters fail to sanitize user input properly. Although the 3.2.5 version of&#xD;
The Bug Genie applied a fix in different locations for both vulnerabilities,&#xD;
they failed to eliminate the issue entirely in other parts of the web&#xD;
application.&lt;/p&gt;&#xD;
&lt;p&gt;For example, the &lt;a href="https://github.com/thebuggenie/thebuggenie/commit/e7a2574dfd04c74b21cab934e7eaa0bc368abda9" target="_self"&gt;patch&lt;/a&gt; that was applied to fix the&#xD;
‘openid_identifier’ issue sanitizes the error message &lt;strong&gt;“Could not validate&#xD;
against the OpenID provider: &lt;/strong&gt;&lt;span style="color: #ff0000;"&gt;%message%&lt;/span&gt;&lt;strong&gt;.“&lt;/strong&gt; However, I found that the XSS&#xD;
vulnerability exists in a different location where the 'openid_identifier' parameter's&#xD;
value can be set to arbitrary JavaScript and cause the application to&#xD;
throw the error exception &lt;strong&gt;“Could not connect to &lt;/strong&gt;&lt;span style="color: #ff0000;"&gt;$url&lt;/span&gt;,&lt;strong&gt;” &lt;/strong&gt;where $url is not&#xD;
sanitized. As such, the output would be &lt;strong&gt;“Could not connect to http://&lt;/strong&gt;&lt;span style="color: #ff0000;"&gt;&amp;lt;script&amp;gt;prompt(1)&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;strong&gt;”&lt;/strong&gt;, resulting in XSS.&lt;/p&gt;&#xD;
&lt;p&gt;Therefore, I developed two patches that&#xD;
addressed both issues. As of this post, the supplied patches that I submitted&#xD;
to The Bug Genie team to help address the incomplete fixes for both&#xD;
vulnerabilities have been merged into their codebase. Affected users who&#xD;
previously upgraded to version 3.2.5 should now upgrade to the latest 3.2.6&#xD;
release, which contains both of my fixes.&lt;/p&gt;&#xD;
&lt;p&gt;Here are the changes that I provided:&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="http://npercoco.typepad.com/files/fix_openid_xss.patch" target="_self"&gt;&lt;strong&gt;Download&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; Fix&#xD;
openid_identifier XSS Vulnerability&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01910222ce44970c-pi" style="display: inline;"&gt;&lt;img alt="Openid_xss" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01910222ce44970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01910222ce44970c-800wi" title="Openid_xss"&gt;&lt;/img&gt;&lt;br&gt;&lt;/a&gt;&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01910222ce44970c-pi" style="display: inline;"&gt;&lt;/a&gt;&lt;a href="http://npercoco.typepad.com/files/fix_timeline_xss.patch" target="_self"&gt;&lt;strong&gt;Download&lt;/strong&gt;&lt;/a&gt;&lt;strong style="color: #000000;"&gt;:&lt;/strong&gt;&lt;span style="color: #000000;"&gt; Fix timeline&#xD;
Issues XSS Vulnerability&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b01910222cecd970c-pi" style="display: inline;"&gt;&lt;img alt="Timeline_xss" border="0" class="asset  asset-image at-xid-6a0133f264aa62970b01910222cecd970c image-full" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b01910222cecd970c-800wi" title="Timeline_xss"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;As a final note, the persistent XSS&#xD;
vulnerability that exists in the way that the application renders its content&#xD;
remains unfixed in the latest 3.2.6 version as well. However, the file uploading functionality in The Bug Genie is&#xD;
disabled by default.&lt;/p&gt;&#xD;
&lt;p&gt;Additionally, cross-site scripting&#xD;
vulnerabilities, such as those reported in The Bug Genie, can be mitigated by&#xD;
using a web application firewall (WAF), such as &lt;a href="http://www.modsecurity.org/" target="_blank"&gt;ModSecurity&lt;/a&gt;&#xD;
and &lt;a href="https://www.trustwave.com/web-application-firewall/"&gt;WebDefend&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;For additional details regarding this security&#xD;
advisory, please visit: &lt;a href="https://www.trustwave.com/spiderlabs/advisories/TWSL2013-002.txt" target="_blank"&gt;Security Advisory&#xD;
TWSL2013-002&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=SkXEcGaK-aI:B45gk81Z0pM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=SkXEcGaK-aI:B45gk81Z0pM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=SkXEcGaK-aI:B45gk81Z0pM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=SkXEcGaK-aI:B45gk81Z0pM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/SkXEcGaK-aI" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/twsl2013-002-multiple-xss-vulnerabilities-in-the-bug-genie.html</feedburner:origLink></entry>
    <entry>
        <title>Microsoft Patch Tuesday, May 2013</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/XsSniSPihWw/microsoft-patch-tuesday-may-2013.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/microsoft-patch-tuesday-may-2013.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b01901c25fa8a970b</id>
        <published>2013-05-14T12:54:23-05:00</published>
        <updated>2013-05-14T12:54:23-05:00</updated>
        <summary>I keep hoping for an easy relaxing Patch Tuesday of say, only two or three bulletins but so far this year things haven’t been so easy. So far this year we have Patch Tuesdays of seven, ten and seven bulletins, respectfully, and this month we have ten. (hmm, is there a pattern there?) Not only that we have a zero-day vulnerability in Internet Explorer to deal with. I long for months like September 2012 when there were but two bulletins but I should feel lucky that its not December 2010 or April 2011 when we had no less than seventeen...</summary>
        <author>
            <name>Space Rogue</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="MAPP" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;I keep hoping for an easy relaxing Patch Tuesday of say,&#xD;
only two or three bulletins but so far this year things haven’t been so easy.&#xD;
So far this year we have Patch Tuesdays of seven, ten and seven bulletins,&#xD;
respectfully, and this month we have ten. &#xD;
(hmm, is there a pattern there?) Not only that we have a zero-day&#xD;
vulnerability in Internet Explorer to deal with. I long for months like&#xD;
September 2012 when there were but two bulletins but I should feel lucky that&#xD;
its not December 2010 or April 2011 when we had no less than seventeen&#xD;
bulletins. I’ll take the ten and be happy. &lt;/p&gt;&#xD;
&lt;p&gt;This month there are only two critical patches, both&#xD;
covering remote code execution, both in Internet Explorer. The rest are all&#xD;
rated as Important and can be found in Windows, Lync, Publisher and Word.&#xD;
Bulletin Nine is in Windows Essentials, which is a product we haven’t seen much&#xD;
of here on Patch Tuesday. &lt;/p&gt;&#xD;
&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-037 (KB2829530)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff0000; font-family: arial, helvetica, sans-serif;"&gt;CRITICAL&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Remote Code Execution in Internet Explorer&lt;/em&gt; &lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-0811 CVE-2013-1297 CVE-2013-1306 CVE-2013-1307&#xD;
CVE-2013-1308 &lt;br&gt;&lt;/span&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1309 CVE-2013-1310 CVE-2013-1311 CVE-2013-1312 CVE-2013-1313&lt;br&gt;&lt;/span&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-2551&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Yup, that’s eleven CVE’s fixed&#xD;
in one bulletin. Nine of those are use-after-free vulnerabilities, which seem&#xD;
to be getting more and more popular lately. &#xD;
A use-after-free vulnerability happens when a program references memory&#xD;
that it has already freed up, this can unexpected behavior and in these cases&#xD;
results in a security issue.  The tenth&#xD;
is an information disclosure issue in the JSON array. JSON allows web apps to&#xD;
access data on database servers and is often used in place of XML.  It is likely that many of these were&#xD;
discovered or at least became known during the PWN2OWN competition at the&#xD;
CanSecWest conference earlier this year. Of the ten CVEs Microsoft thinks that&#xD;
three of them should expect exploit to be written fairly quickly.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-038 (KB2847204)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff0000; font-family: arial, helvetica, sans-serif;"&gt;CRITICAL&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Remote Code Execution in Internet Explorer&lt;/em&gt; &lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1347&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;This is the zero-day that you have heard so much about. It&#xD;
only impacts Internet Explorer 8 and it is already being actively exploited.&#xD;
This is another use-after-free vulnerability that results in Remote Code&#xD;
Execution.  Microsoft previously released&#xD;
a Fix It for this issue, however even if you have already applied the Fix It&#xD;
you should install this patch.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-039 (KB2829254)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Denial of Service in HTTP.sys&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1305&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;HTTP.sys is a kernel mode driver that handles HTTP Internet&#xD;
traffic allowing multiple applications to pass traffic over the same port.  However if an attacker sends a specially&#xD;
crafted HTTP packet to a Windows 2012 Server they could trigger an infinite&#xD;
loop in the HTTP protocol stack and cause a denial of service.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-040 (KB2836440)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Authentication Bypass in .NET Framework&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1336 CVE-2013-1337&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;This bulletin patches two CVE’s, the first is a spoofing&#xD;
vulnerability in the .NET framework. If a .NET application receives a specially&#xD;
crafted XML file an attacker could modify the contents of an XML file without&#xD;
invalidating the file's signature. The second deals with how .NET creates&#xD;
policy requirements for authentication when setting up endpoint authentication,&#xD;
which could allow a successful attack to copy information. &lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong style="font-family: arial, helvetica, sans-serif;"&gt;MS13-041 (KB2834695)&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Remote Code Execution Lync&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1302&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Lync, no, not Link, our intrepid hero&#xD;
from Legend of Zelda but Lync, Microsoft’s instant messaging platform formally&#xD;
known as Microsoft Office Communicator contains a vulnerability that could&#xD;
allow an attacker to gain the same user rights as the logged-on user which&#xD;
would include remote code execution.  Of&#xD;
course attacker would have to convince a user to view or share a specially&#xD;
crafted file, disguised as a presentation. However considering how willingly&#xD;
most people blindly click on random links this probably wouldn’t be too hard to&#xD;
do.  Thankfully developing the exploit&#xD;
code to take advantage of this flaw appears, to Microsoft at least, to be&#xD;
somewhat difficult.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-042 (KB2830397)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Remote Code Execution in Microsoft&#xD;
Publisher&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1316&#xD;
CVE-2013-1317 CVE-2013-1318 CVE-2013-1319 CVE-2013-1320&lt;br&gt;&lt;/span&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1321&#xD;
CVE-2013-1322 CVE-2013-1323 CVE-2013-1327 CVE-2013-1328&lt;br&gt;&lt;/span&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1329&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;This is the second bulletin this month with eleven CVEs.  Some of these are Buffer Overflows; others&#xD;
deal with Signed Integers, Pointer Handling, or Negative value Allocations.&#xD;
They all require a specially crafted Publisher file.  You may be offered this update even if you&#xD;
don’t have Publisher installed as the parts that are affected are also&#xD;
installed with any part of the Microsoft office Suite.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-043 (KB2830399)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Remote Code Execution in Microsoft Word&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1335&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;One interesting thing to note here is that only Microsoft&#xD;
Word 2003 SP3 and Microsoft Word Viewer are listed as being impacted. The issue&#xD;
revolves around the way that Word parses content of some files.  If you have configured Outlook to use&#xD;
Microsoft Word 2003 SP3 as an email reader you should pay close attention to&#xD;
this one. Using Word to read email in Outlook is not the default so you&#xD;
probably know if changed your system to do this. If you did then an attacker&#xD;
could send you a specially crafted RTF email message to exploit this&#xD;
vulnerability. Just like you shouldn’t take candy from a stranger in this case&#xD;
don’t open Word files from unknown sources.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-044 (KB2834692)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Information Disclosure in Visio&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1301&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Unlike MS13-043 that only impacted one version MS13-044&#xD;
impacts Visio 2003, 2007 and 2010. Again a specially crafted Visio file could&#xD;
allow an attacker to gain information about a system, information that could be&#xD;
used in a different attack. Like MS13-042 you may be offered this update even&#xD;
if you don’t have Visio installed as the affected components are also installed&#xD;
with the Microsoft Office Suite. The issue here is with LibXML2 which is not only used by Visio but a host of other products including Trustwave's own open source ModSecurity. We wrote about this vulnerabilty back in &lt;a href="http://blog.spiderlabs.com/2013/04/xml-external-entity-xxe-execution-disabled-in-modsecurity-v273.html" target="_self" title="April"&gt;April&lt;/a&gt;. If your product also uses LibXML2 you might want to check that you are not vulnerable to this issue as well.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-045 (KB2813707)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Information Disclosure in Windows&#xD;
Essentials&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-0096&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Don’t get confused between Windows Essentials and Windows&#xD;
Security Essentials. Windows Essentials contains free software shipped with&#xD;
Windows like Photo Gallery, Movie Maker, Mail and others. One of those others&#xD;
is Writer, which if opened via a specially crafted URL, could allow an attacker&#xD;
to override Windows Writer proxy settings and overwrite files accessible to the&#xD;
user on that system. Also note that if you have the older Windows Essentials 2011&#xD;
you will need to upgrade to Windows Essentials 2012 before you can apply this&#xD;
update. If for some reason you can’t upgrade to 2012 you will want to disable&#xD;
the Windows Writer handler, search for Microsoft KB article &lt;a href="http://support.microsoft.com/kb/2813707"&gt;2813707&lt;/a&gt; for the automated&#xD;
Fix It solution to disable this handler.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;strong&gt;MS13-046 (KB2840221)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #ff7f00; font-family: arial, helvetica, sans-serif;"&gt;IMPORTANT&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;em&gt;Elevation of Privilege in Kernel-Mode&#xD;
Drivers&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;CVE-2013-1332 CVE-2013-1333 CVE-2013-1334&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;To exploit this one an attacker must already be able to log&#xD;
into the system, then they need a specially crafted application that would&#xD;
result in increased privileges for the user.  The issue lies in the Microsoft DirectX&#xD;
graphics kernel subsystem (dxgkrnl.sys), which improperly handles objects in&#xD;
memory. Note that you may be offered more than one update to fix this; you will&#xD;
need to install all of the updates to protect yourself from these&#xD;
vulnerabilities.&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=XsSniSPihWw:mscWpPhTp8I:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=XsSniSPihWw:mscWpPhTp8I:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=XsSniSPihWw:mscWpPhTp8I:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=XsSniSPihWw:mscWpPhTp8I:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/XsSniSPihWw" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/microsoft-patch-tuesday-may-2013.html</feedburner:origLink></entry>
    <entry>
        <title>Securing Continuous Integration Services</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/ec9rpGQVMSM/securing-continuous-integration-services.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/securing-continuous-integration-services.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b017eeb0652ee970d</id>
        <published>2013-05-13T10:20:08-05:00</published>
        <updated>2013-05-13T08:49:38-05:00</updated>
        <summary>Summary Over the last couple weeks, I’ve had the distinct privilege to share some of my research surrounding continuous integration security. The presentation was dubbed “Attacking Cloud Services w/ Source Code” and was presented at both SOURCE Boston 2013 and THOTCON 0x4, where I discussed a bunch of fun things like: Why I love Continuous Integration (CI) Services (especially hosted solutions) My perspectives as an open-source developer (some happy, some sad) What things could be possible if malicious code was fed to CI services A project I’m working on, called RottenApple, to help make things better In this blog post...</summary>
        <author>
            <name>claudijd</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Cloud" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Open Source" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Tools" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;&lt;strong&gt;Summary&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Over the last couple weeks, I’ve had the distinct privilege&#xD;
to share some of my research surrounding continuous integration security.  The presentation was dubbed “&lt;a href="https://speakerdeck.com/claudijd/attacking-cloud-services-with-source-code" target="_blank"&gt;Attacking Cloud&#xD;
Services w/ Source Code&lt;/a&gt;” and was presented at both &lt;a href="http://www.sourceconference.com/boston/speakers_2013.html#claudius" target="_self"&gt;SOURCE Boston 2013&lt;/a&gt; and&#xD;
&lt;a href="http://thotcon.org/" target="_self"&gt;THOTCON 0x4&lt;/a&gt;, where I discussed a bunch of fun things like:&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Why I love Continuous Integration (CI) Services&#xD;
(especially hosted solutions)&lt;/li&gt;&#xD;
&lt;li&gt;My perspectives as an open-source developer&#xD;
(some happy,&#xD;
some sad)&lt;/li&gt;&#xD;
&lt;li&gt;What things could be possible if malicious code&#xD;
was fed to CI services&lt;/li&gt;&#xD;
&lt;li&gt;A project I’m working on, called RottenApple, to&#xD;
help make things better&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;In this blog post I hope to capture some of the meat of the&#xD;
presentation for those who could not attend and use this opportunity to announce the first public release of&#xD;
RottenApple.&lt;/p&gt;&#xD;
&#xD;
&lt;p&gt;&lt;strong&gt;Basic Terminology&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;I guess the first big question (maybe for some) is what is&#xD;
continuous integration?&lt;/p&gt;&#xD;
&lt;p&gt;Continuous integration (to me) is a system or process that monitors source code repositories for changes.  If a change is detected (aka: a developer commits new code) the project is checked out built and tested to ensure that the software project still works.&lt;/p&gt;&#xD;
&lt;p&gt;Unit-tests (or "specs") are often used by continuous integration services to verify that everything still works in a software project. If something breaks, a unit-test will ideally fail and the continuous integration system will bubble that failure back up to a developer so that the problem can be addressed as soon as possible while the changes are fresh.&lt;/p&gt;&#xD;
&lt;p&gt;So, in short, developers use continuous integration to&#xD;
regularly checkout, build and run unit-tests on software projects for quality&#xD;
control.  Continuous integration is the&#xD;
entity performing the inspection and Unit-tests are what validate that each and&#xD;
every piece of software project works as expected.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Why I love Continuous&#xD;
Integration&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Let me start by saying I haven’t always loved continuous&#xD;
integration.  In fact, at one point it&#xD;
was sort of a PITA.  When initially&#xD;
joining a group of Spiders that did a lot of development, I used to cringe&#xD;
at the idea of making a change that would cause the build to fail.  In the famous words of one of my co-workers,&#xD;
“this makes you a bad person”.&lt;/p&gt;&#xD;
&lt;p&gt;Anyways, beyond work stuff and fast-forwarding a bit, I was doing&#xD;
a little bit of open-source development stuff for fun and once I grew to appreciate&#xD;
the value of having continuous integration for my projects at work, I really&#xD;
wanted to apply the same techniques to introduce more quality control in my&#xD;
open-source “hobby” projects.&lt;/p&gt;&#xD;
&lt;p&gt;One of the challenging parts of doing development for fun is&#xD;
that you usually don’t have the same resources as you would if you were&#xD;
developing a commercial project.  This&#xD;
means you usually have a budget of $0 and you’re usually finding time to commit&#xD;
code between lunch breaks, while on the train or while pretending to watch TV.  Even though I knew continuous integration would be good for my projects, I didn't have the drive or the additional time to invest on it because it would mean less time writing code (what I really want to be doing).&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Travis-CI to the Rescue&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Thankfully, after a little while, someone introduced me to a service by the name of Travis-CI.  Travis-CI is a hosted&#xD;
continuous integration service for the open-source community.  It’s really easy to set up, mimics some of&#xD;
the stuff I have for my work projects and it’s &lt;strong&gt;FREE&lt;/strong&gt;.  Now, there are other providers like this out&#xD;
there, but I have the most experience with Travis-CI, so I reference Travis&#xD;
primarily throughout.&lt;/p&gt;&#xD;
&lt;p&gt;In addition to being easy to setup and free, Travis-CI allows me to test my Ruby projects using a variety of different versions including 2.0, 1.9.3, jruby, rbx, ree, etc.  It also allows me to have a full build history for each change made to the project and the icing on the cake for me was that it would also build any submitted pull request and let me know if the proposed changes would break the project or not before I merge them into master.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;A Healthy Dose of&#xD;
Inspiration&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Around the same time that I was discovering all this fancy&#xD;
hosted-CI goodness like it was Christmas morning, I was also trolling the Aloha&#xD;
Ruby Conference videos and came across a video of a presentation called&#xD;
“Hacking with Gems” by Ben Smith.  The&#xD;
basic gist behind Ben’s talk was describing some of evil things you could do&#xD;
inside a Ruby gem and what sorts of things he tried to social engineer people,&#xD;
both actively and passively, to install his not so savory gems.&lt;/p&gt;&#xD;
&lt;p&gt;One of the most interesting components of Ben’s presentation&#xD;
was that he had a number of business cards made that simply stated “gem install&#xD;
aloha-ruby-conf” and placed them all around the conference.  It’s important to note that in this was a&#xD;
developer conference and it’s more than common place for people to install gems&#xD;
to try them out without really taking a close look at everything the gem does&#xD;
under the hood.  During the presentation,&#xD;
after describing all the evil things that someone could do with a simple gem&#xD;
install process, Ben provided a list of developer names that had installed his&#xD;
benign gem just to drive the point home.&lt;/p&gt;&#xD;
&lt;p&gt;Ben’s talk really got me thinking and eventually I came to&#xD;
wonder whether all these things (or similar techniques) were possible without&#xD;
having to rely on tricking a user or highly obfuscate my code.  This thought process led me back to&#xD;
continuous integration services.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Attacking Continuous&#xD;
Integration Services&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;When utilizing continuous integration services to build Ruby&#xD;
projects, it commonly boils down to executing a rake task either explicitly via&#xD;
“rake spec” or simply through running “rake” and having the default behavior to&#xD;
run the unit tests for a given project. &#xD;
However, one of the things I noticed here was that my unit-tests themselves,&#xD;
even though I’m using rspec, which has some specific syntax for defining&#xD;
unit-test stuff, are just plain old ruby. &#xD;
This got me to the idea, “what if I just added malicious code to my&#xD;
specs?”.   The system would most&#xD;
certainly execute my code and I’d get malicious code running on the CI.&lt;/p&gt;&#xD;
&lt;p&gt; The first thing I&#xD;
decided to do before I got too far down the rabbit hole was to build my own CI&#xD;
server for testing purposes.  I did this&#xD;
because I really enjoy having a GitHub account and I do (as I mentioned above)&#xD;
love having a free continuous integration service building all my projects and I didn’t want to spoil that.  I&#xD;
didn’t want to piss anyone off and I didn’t want to feel bad when I did things&#xD;
that would be considered unethically hacking another organization.  I ended up building my own CI setup with&#xD;
Jenkins-CI, which is a widely popular open-source CI server used by a large&#xD;
number of organizations for building commercial software.&lt;/p&gt;&#xD;
&lt;p&gt;The setup was very basic where by I would push code&#xD;
to a private GitHub repository and my CI server would poll that project for any&#xD;
changes.  When I push malicious code up&#xD;
to my private GitHub repository, it would trigger a build on my CI server and&#xD;
then I would get that malicious code to execute on the CI.  It’s an extremely simple setup (in dev&#xD;
circles), but the nature of the situation means that the development of&#xD;
“exploits” for these environments, if you even want to call them that, is very&#xD;
easy.&lt;/p&gt;&#xD;
&lt;p&gt;Here are a couple example offensive-biased things that I talked about in the presentation:&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Breaking out of the build root (accessing&#xD;
neighboring project source code)&lt;/li&gt;&#xD;
&lt;li&gt;Performing a port scan of the CI’s locally&#xD;
attached network (potential for pivoting behind the firewall)&lt;/li&gt;&#xD;
&lt;li&gt;Authenticating back to GitHub using R-RW keys&#xD;
(potentially trojan the project)&lt;/li&gt;&#xD;
&lt;li&gt;Popping a Reverse Shell (getting command-line&#xD;
access to the CI)&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;Although, throughout this description of all the offensive&#xD;
things you can do with Ruby projects (all of my examples) there is nothing to&#xD;
say that you couldn’t do these same techniques with building/testing any other&#xD;
language such as PHP, Python, Java, etc. &#xD;
With such a fundamental level of trust here, the options are only&#xD;
limited by the trust-levels given to the CI to perform its activities.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Introducing&#xD;
RottenApple&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;&#xD;
&lt;a class="asset-img-link" href="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb068b60970d-pi" style="display: inline;"&gt;&lt;img alt="Rotten_apple" class="asset  asset-image at-xid-6a0133f264aa62970b017eeb068b60970d" src="http://npercoco.typepad.com/.a/6a0133f264aa62970b017eeb068b60970d-120wi" title="Rotten_apple"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;After realizing that the nuances of CI security weren't going to be&#xD;
easily resolved for the masses (both hosted and self-hosted continuous&#xD;
integration services), I decided to start a project on GitHub called&#xD;
RottenApple with the hopes of at least moving us it into a better direction.  The main idea behind RottenApple is that you build&#xD;
the project on your continuous integration environment and it will test it and&#xD;
let you know where there are weaknesses. &#xD;
Ironically enough, I’ve chosen to stick with a Unit-test concept where&#xD;
the roles are a bit reversed in that the unit-tests are actually testing the CI&#xD;
(not the code as they traditionally would).&lt;/p&gt;&#xD;
&lt;p&gt;After thinking long and hard about this tool, I decided to&#xD;
make it a bit more multi-purpose and implemented two separate, but related name-spaces in the&#xD;
RottenApple project; (1) RottenApple::Audit – for safely auditing a target CI&#xD;
environment and (2) RottenApple::Attack – for actively attacking a target CI&#xD;
environment.  I’m hoping that by having&#xD;
these two polar opposites that this project will help meet the needs of&#xD;
Developers, System Administrators, CI Providers (both hosted and internal&#xD;
installments) as well as Security Practitioners.&lt;/p&gt;&#xD;
&lt;p&gt;Below includes the current feature set of the project by name-space designation:&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;RottenApple::Audit&lt;/strong&gt; has the following checks:&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Is the root user is being to build projects?&lt;/li&gt;&#xD;
&lt;li&gt;Can malicious code steal your RubyGems API key?&lt;/li&gt;&#xD;
&lt;li&gt;Could malicious code pivot to private networks?&lt;/li&gt;&#xD;
&lt;li&gt;Can malicous code authenticate using your GitHub creds?&lt;/li&gt;&#xD;
&lt;li&gt;Could malicious code receive instructions from a remote party or exfiltrate data from your CI?&lt;/li&gt;&#xD;
&lt;li&gt;Can malicious code access other projects being built on the same server?&lt;/li&gt;&#xD;
&lt;li&gt;Can malicious code steal SSH private keys?&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;&lt;strong&gt;RottenApple::Attack&lt;/strong&gt; has the following features:&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Steal the RubyGems API key&lt;/li&gt;&#xD;
&lt;li&gt;Flush IP Tables (aka: drop firewall rules)&lt;/li&gt;&#xD;
&lt;li&gt;Install Software to aid in the attack process&lt;/li&gt;&#xD;
&lt;li&gt;Make an unauthorized commit to master&lt;/li&gt;&#xD;
&lt;li&gt;Perform an NMAP scan of a desired set to targets&lt;/li&gt;&#xD;
&lt;li&gt;Throw/Shovel a reverse shell to get command-line access to the CI/CD&lt;/li&gt;&#xD;
&lt;li&gt;Steal SSH private keys&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;I just recently published the source code for this project on GitHub, which can be found  &lt;a href="https://github.com/claudijd/rotten_apple" target="_blank"&gt;here&lt;/a&gt;.  I hope that people check it out and find it&#xD;
useful.  Hopefully, with some good feedback and maybe a little help from the community I’ll&#xD;
be able to extend it to do more interesting things over time.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Parting Thoughts&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Lastly, I just want to make myself as clear as possible that&#xD;
I don’t see the techniques that I’ve described above as “0-days”.  Continuous Integration services are open by&#xD;
design for a number of reasons, including making sure that they don’t inhibit&#xD;
the ability for developers to quickly have their code tested and validated for&#xD;
regressions.  However, it’s important to&#xD;
note that trust relationships do exist on these systems and can be abused if&#xD;
not carefully assessed. &lt;/p&gt;&#xD;
&lt;p&gt;I think we should do more to test continuous integration&#xD;
services for weaknesses to ensure the trust we have imparted them with is not abused.  I’m hoping that you checkout&#xD;
the RottenApple project, find it useful and send me a pull request.&lt;/p&gt;&#xD;
&lt;p&gt;PS – &lt;a href="https://speakerdeck.com/claudijd/attacking-cloud-services-with-source-code" target="_self"&gt;Here&lt;/a&gt; is the deck from the presentation I referenced above. Also, the videos of the attack demos referenced in the presentation can be found &lt;a href="http://vimeo.com/65071592" target="_self"&gt;here&lt;/a&gt; and &lt;a href="https://vimeo.com/65071593" target="_self"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ec9rpGQVMSM:Qe-J8_5ud-c:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ec9rpGQVMSM:Qe-J8_5ud-c:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=ec9rpGQVMSM:Qe-J8_5ud-c:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=ec9rpGQVMSM:Qe-J8_5ud-c:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/ec9rpGQVMSM" height="1" width="1"/&gt;</content>



    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/securing-continuous-integration-services.html</feedburner:origLink></entry>
    <entry>
        <title>SpiderLabs Radio May 10, 2013 w/ Space Rogue</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SpiderlabsAnterior/~3/h_GXhqcLgv8/spiderlabs-radio-may-10-2013-w-space-rogue.html" />
        <link rel="replies" type="text/html" href="http://blog.spiderlabs.com/2013/05/spiderlabs-radio-may-10-2013-w-space-rogue.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0133f264aa62970b01901c08f473970b</id>
        <published>2013-05-10T15:59:19-05:00</published>
        <updated>2013-05-10T15:59:19-05:00</updated>
        <summary>This weeks episode of SpiderLabs Radio hosted by Space Rogue is brought to you by Trustwave's Threat Intelligence Service and covers IE 0-day hits Labour, Syrian Electronic Army hits E! Online and The Onion, Guccifer returns, $40 Million cyber heist, OpUSA becomes OpDud, BX1 extradited, name.com, John Dvorak. media sites hit, I'm a Slutty Moron, Evernote and China? and a lot more! Listen to SpiderLabs radio in iTunes. Or you can download the MP3 file directly here. Or listen right from your browser with this embedded player.</summary>
        <author>
            <name>Space Rogue</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="SpiderLabs Radio" />
        
        
<content type="html" xml:lang="en-US" xml:base="http://blog.spiderlabs.com/">&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;This weeks episode of SpiderLabs Radio hosted by Space Rogue is brought to you by &lt;a href="https://www.trustwave.com/spiderlabs/threat-intelligence/#overview"&gt;Trustwave's Threat Intelligence Service&lt;/a&gt; and covers IE 0-day hits Labour, Syrian Electronic Army hits E! Online and The Onion, Guccifer returns, $40 Million cyber heist, OpUSA becomes OpDud, BX1 extradited, name.com, John Dvorak. media sites hit, I'm a Slutty Moron, Evernote and China? and a lot more!&#xD;
&lt;div&gt;&#xD;
&lt;p&gt;Listen to SpiderLabs radio in &lt;a href="https://itunes.apple.com/us/podcast/spiderlabs-radio/id300567984"&gt;iTunes&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;Or you can download the MP3 file directly &lt;a href="http://traffic.libsyn.com/spiderlabsradio/2013.05.10.mp3"&gt;here.&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Or listen right from your browser with this embedded player.&lt;/p&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;iframe height="360" scrolling="no" src="http://html5-player.libsyn.com/embed/episode/id/2317807/height/360/width/640/theme/legacy/direction/no/autoplay/no/autonext/no/thumbnail/yes/preload/no/no_addthis/no/" style="border: none;" width="640"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=h_GXhqcLgv8:H3G3qduAgJw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=h_GXhqcLgv8:H3G3qduAgJw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?a=h_GXhqcLgv8:H3G3qduAgJw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SpiderlabsAnterior?i=h_GXhqcLgv8:H3G3qduAgJw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SpiderlabsAnterior/~4/h_GXhqcLgv8" height="1" width="1"/&gt;</content>


        <link rel="enclosure" type="audio/mpeg" href="http://traffic.libsyn.com/spiderlabsradio/2013.05.10.mp3" />

    <feedburner:origLink>http://blog.spiderlabs.com/2013/05/spiderlabs-radio-may-10-2013-w-space-rogue.html</feedburner:origLink></entry>
 
</feed><!-- ph=1 -->
