<?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>ScottFromSecurity.com</title>
	<atom:link href="http://scottfromsecurity.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>https://scottfromsecurity.com/blog</link>
	<description>The ROI of Info Sec is the absence of chaos, or in other words Boring is Beautiful</description>
	<lastBuildDate>Wed, 16 May 2012 22:40:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Security I want around my online banking experience…</title>
		<link>http://scottfromsecurity.com/blog/2012/02/16/security-i-want-around-my-online-banking-experience/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=security-i-want-around-my-online-banking-experience</link>
		<comments>http://scottfromsecurity.com/blog/2012/02/16/security-i-want-around-my-online-banking-experience/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 04:00:23 +0000</pubDate>
		<dc:creator>amen940_poster</dc:creator>
				<category><![CDATA[Defense]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[SPAM]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=442</guid>
		<description><![CDATA[UPDATE 3/7/12:  So hitting the banks up on twitter went no where, they didn&#8217;t even approve my comments.  I have a good disscussion going on in the &#8220;Internet Banking&#8221; group on LinkedIn if you want to join.  Next step might be a reddit post or possible emailing some of the bank CSOs directly.  Wish … <a href="http://scottfromsecurity.com/blog/2012/02/16/security-i-want-around-my-online-banking-experience/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 3/7/12:  So hitting the banks up on twitter went no where, they didn&#8217;t even approve my comments.  I have a good disscussion going on in the &#8220;Internet Banking&#8221; group on LinkedIn if you want to join.  Next step might be a reddit post or possible emailing some of the bank CSOs directly.  Wish me luck.</strong></p>
<p>Online banking and bill pay are two of the conveniences of the information age.  I have memories of seeing my mom paying the monthly bills late at night filling out checks, opening and addressing envelopes, putting on stamps etc. She then of course had to manually balance her checkbook with a calculator.  I cringe at the thought of having to spend several hours a month in such a manner, with online banking and bill pay it usually takes me 30 mins to send out the money with little or no writing or mailing.  As with many conveniences, however it comes with a risk of potential abuse.  Individuals certainly aren’t the only ones being victimized, especially vulnerable are small to medium-sized business who have relatively a lot of money compared to the average Joe Schomo like me and unfortunately for them they are not covered by the FDIC or the bank’s policy.  Here’s a Bloomberg article from August last year that goes into several examples of theft and how the banks don’t always reimburse those companies like they do you when your CC is stolen. <a title="Phishing Article" href="http://www.bloomberg.com/news/2011-08-04/hackers-take-1-billion-a-year-from-company-accounts-banks-won-t-indemnify.html" target="_blank">Bloomberg article </a></p>
<p>So without further ado here is what I humbly ask from my bank, 3 fairly quick wins that should be implemented as soon as possible.  I’ll let you know if I hear anything back from them.   I plan on hitting some of the bigger ones up on Twitter and LinkedIn to see if any of that social media mumbo jumbo works for me and my little blog.</p>
<p><span id="more-442"></span><br />
1.	 <span style="text-decoration: underline">Never</span> include links in any email you send to a customer<br />
In my opinion it is enviable that banks will stop sending their customers emails full of links. And I mean <span style="color: #ff0000;text-decoration: underline">ALL LINKS</span>, including the ones in your logo, the pretty banner pictures of middle-class people enjoying their lives, the legalese footer that no one reads, and especially in the message you are sending to the customer. Do not even include your domain as a non-clickable link. Keep the HTML format though I think this adds defensive capabilities that you are currently not using but that&#8217;s for another blog post.  These extreme measures are needed because the average computer user is essentially helpless to see the danger as obvious it may be in hind-sight.  This is because they need to click on links on a day-to-day basis to interact with friends, co-workers, and websites, and indeed do so with no negative repercussions.  Then all of a sudden they get a call from someone like me who says you shouldn’t have clicked that one link in that one convincing looking email.  My point is training and retraining users to recognize the signs of a Phish or trying to explain SMTP headers to them just won’t work if banks continue to send them an email talking about the dangers of clicking on links by asking them to click on links!  Instead the bank should simply tell someone to go to their bank’s site.   Get all your separate departments that send email at their every whim and tell them to redesign all their templates they use and send to 3rd party emailers to use.  This is not a panacea to stop phishing but it will go a long way to condition customers to not to click on anything in emails representing your bank.  Limiting the current most common social engineering infection vectors as well as forcing current Phishers to change their tactics drastically.<br />
So Mr. bank executive you can be a leader with this policy, get all the positive press for not only protecting your customers but proving to shareholders you are trying to limit the increasing levels of fraud robbing value from “their” banks bottom line or you can be forced to do it as an also-ran follower when your competitor beats you to the punch.   After all each email is a permanent voicemail to your customer representing your brand, why would you continue to encourage risky behavior?</p>
<p>2.	Default to <span style="text-decoration: underline">Read Only</span> account for all online banking, and for budgeting services</p>
<p>This is another inevitable must-do, why do I have to use my administrator level credentials every time I log into my bank to do anything?  How can I take advantage of cool services like Mint.com when to use it I must give my full account permissions to anyone working at Intuit?   Admin credentials should only be needed for dangerous activities (i.e. potential for losing my money) for online banking such as transferring/withdrawing money, adding a bill payee, opening an account, etc. Once set up such dangerous activities are infrequently needed so I purpose you allow me to mark my current account read-only with all my desired “dangerous activities” requiring some sort of out-of-band authentication like SMS or Token verification, or if necessary (i.e. user can’t do SMS) separate pwd authentication.  Using an account with reduced permissions is a fundamental security principal and would greatly reduce the attack surface from compromised customer computers.  As it stands now you are making the decision for me, by not giving me the option to use an account with lesser privileges.</p>
<p>3.	Let me configure email/SMS alerts when someone successfully authenticates</p>
<p>Even with all the above prevention techniques above you should still give me the option for getting an alert  when someone auth’s successfully to either read-only or admin level access. Similar to the alerts I can configure now for large ATM or Check withdrawals.   The information should include IP/User-Agent/Geo-location combined with time/date.  Yes I’m well aware that information can be spoofed and/or misrepresented but it should be given to me none the less.  You could easily massage the source information to make it more user-friendly, I mean if Facebook can do it for 840+ million users you really have no excuse.<br />
So by your company’s own estimates you are losing millions a year because of this, I’d help you implement these for a million or so, sounds like an amazing deal to me. Pay the man.  <img src='https://scottfromsecurity.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>=======</p>
<p>PS. <strong>Disclaimer:</strong> I realize others may have put forth some or all of these ideas in the past, the following are just my thoughts and not meant to be some attempt to gain fame and fortune by plagiarizing others.  If these ideas have been submitted to the internets before please consider me in agreement with them, and put the flame thrower down.  Also some banks might even already employ one or more of these suggestions, all I know is the big national bank’s I’ve used don’t do any of these unfortunately.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2012/02/16/security-i-want-around-my-online-banking-experience/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Detecting the Bad from the Good&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=detecting-the-bad-from-the-good</link>
		<comments>http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 21:02:40 +0000</pubDate>
		<dc:creator>amen940_poster</dc:creator>
				<category><![CDATA[Defense]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=318</guid>
		<description><![CDATA[UPDATE 4/3/12: I worked with Joel Elser on Snort-sigs mailing list to develop the below signature. However there&#8217;s been some concern around system resources of Regexing every GET request to the internet.  I&#8217;m thinking I might have to adjust the rule to exempt .com and .net TLDs.  Less effective I … <a href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<div><strong>UPDATE 4/3/12: I worked with Joel Elser on Snort-sigs mailing list to develop the below signature. However there&#8217;s been some concern around system resources of Regexing every GET request to the internet.  I&#8217;m thinking I might have to adjust the rule to exempt .com and .net TLDs.  Less effective I know but at least it won&#8217;t kill the sensor. This technique is probably better for offline static analysis of logs then realtime IDS.  Damballa has two good papers on their work around detecting DGA (Domain generation algos) and how they haven&#8217;t gone away now that Conficker is out of the news.  Links</strong></div>
<div><a href="http://www.damballa.com/downloads/r_pubs/RN_DGAs-and-Cyber-Criminals-A-Case-Study.pdf">http://www.damballa.com/downloads/r_pubs/RN_DGAs-and-Cyber-Criminals-A-Case-Study.pdf</a><br />
<a href="http://www.damballa.com/downloads/r_pubs/WP_DGAs-in-the-Hands-of-Cyber-Criminals.pdf">http://www.damballa.com/downloads/r_pubs/WP_DGAs-in-the-Hands-of-Cyber-Criminals.pdf</a></div>
<div>alert tcp $HOME_NET any -&gt; $EXTERNAL_NET $HTTP_PORTS (msg:&#8221;WEB-MISC http header with 9 or more consonants&#8221;; flow:to_server,established; content:&#8221;GET&#8221;; http_method; content:&#8221;Host: &#8220;; http_header; pcre:&#8221;/^Host:\s[tnrshdlfcmgpwbvkxjyqz0-9]{9,}$/Hi&#8221;; metadata:service http; classtype:bad-unknown;)</div>
<div><strong>_________________________________________________________________________________</strong></div>
<div>In security monitoring it&#8217;s your job to use your creativity to design rules and dashboards so you can identify evidence of malicious activity.  In general there are two strategic ways to do this, detect the bad (blacklisting) or detect the good (whitelisting).  It doesn&#8217;t take a genius to realize that whitelisting is the more effective strategy overall, although its much harder to implement.  Even so blacklisting is still useful to use for increasing defense in depth.   Speaking about getting creative to detect the bad guys, a recent thought I had is looking for one of the tactics they use to avoid being taken offline.  Namely registering and using a large number of domains so that content filtering and whitehat organizations can&#8217;t keep up.  You could see this during the Conficker worm battles, where early versions were programmed to connect to 250 domains a day, and when the Conficker Cabal launched an effort to pre-register those names later worm versions came out in direct response with algorithms for 50,000 domains per day.</div>
<div>The flaw I see in the &#8220;I can register more domains, faster then you can&#8221; tactic is often the make up of those domains. By their nature they frequently are a collection of puesdo random letters not valid strung together words in your language, like a normal domain.</div>
<div>For Example: (consonants in a row in red)</div>
<div><span style="color: #ff0000;">jxnrxlwm</span>ulpefpjt.org<br />
<span style="color: #ff0000;">qqwfddgtgfb</span>afgnhnusmz.cx.cc<br />
fhgis7a<span style="color: #ff0000;">fg7s6d7fgs76<span style="color: #000000;"> </span></span>odf.ws<br />
khe<span style="color: #ff0000;">tttttttt</span>.coom.in</div>
<div><span id="more-318"></span></div>
<div>This makes them fairly easy to detect when browsing through your event stream.  However, it is obviously impossible to manually watch HTTP logs looking for these non-conforming domains all day. So it made sense to me to look for what doesn&#8217;t conform to the majority of good URLs.  Because if you are looking for the proverbial needle in a haystack, you need to apply a tatic to everything that will find what doesn&#8217;t follow the rules of being a needle. So you could start a fire to burn the haystack (needle and all) which would leave the needle relatively unharmed.  Or spread the haystack over a magnetic strip which only the needle would stick too.   An example of this with Infosec defense would be detecting host names in the HTTP header\Web Logs that do not conform to the rules of your language, which is American English in my world.  I&#8217;ve been considering recently how to do this and what made sense to me is &#8220;number of constants w/o a vowel between them&#8221;.</div>
<div>To do this you need the rules of your language which you can get through the study of phonotactics. Which is how to &#8220;deal with restrictions in a language on the permissible combinations of phonemes&#8221; <a title="Wikipedia for Phonotactics" href="http://en.wikipedia.org/wiki/Phonotactics" target="_blank">wiki here</a>.  In particular I&#8217;m looking for consonant clusters, which some languages don&#8217;t even allow. The rules of American English are very few words have more then 5 consonants in a row.  Now domains often string words and even numbers together like I do in scottfromsecurity.com. So to test and fine tune my theory, I created a .php script that will loop through a file of domains each on a newline and compare them against a Perl Compatible Regex meant to find a string of x number of constants and/or numbers in a row.  To do this, I collected 1.215 million domains from</div>
<div>1.  malwaredomainlist.com (proven malicious domains)</div>
<div>2.  aboutwebmaster.com (recently expired domains could be good or bad)</div>
<div>3.  quantcast.com (top 1 million websites on the web)</div>
<div>As you can see the file is made up mainly of &#8221;good domains&#8221; from Quantcast because this filter is meant to be a &#8220;if it hits you need to investigate&#8221; kinda technique, so false positive rates need to be near zero.  The table below shows an idea on the true positive/false positive ratio.  I recommend you play with the variables as YMMV.   My best experiences were to exclude the Y on 8 or less constants in a row.</div>
<div>Domains.txt contained<br />
1,215,000 total domain names</div>
<div>NOTE:  Y is sometimes a vowel in American English so how you handle it depends on your false positive (FP) tolerance.</div>
<table style="text-align: left; width: 100%;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td align="undefined" valign="undefined">With<span style="text-decoration: underline;"><strong>out</strong></span> &#8220;Y&#8221;as a vowel</td>
<td align="undefined" valign="undefined">With &#8220;Y&#8221; as a vowel</td>
</tr>
<tr>
<td align="undefined" valign="undefined">6 or more matches</p>
<div>12,827 matches total</div>
<div>some FPs: yourworld2009.com, thanks4thegift.com</div>
<div><a rel="attachment wp-att-357" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results6withouty/">results6withoutY</a></div>
</td>
<td align="undefined" valign="undefined">6 or more matches</p>
<div>23,653 matches totals</div>
<div>some FPs: simplycheaphotel.com,shortlyclosed.com</div>
<div><a rel="attachment wp-att-358" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results6withy/">results6withY</a></div>
</td>
</tr>
<tr>
<td align="undefined" valign="undefined">7 or more matches</p>
<div>3,979 matches total</div>
<div>some FPs: wintersports2010.com, irelandsdvdstore.com</div>
<div><a rel="attachment wp-att-387" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results7withouty/">results7withoutY</a></div>
</td>
<td align="undefined" valign="undefined">7 or more matches</p>
<div>7,128 matches total</div>
<div>some FPs: wildernessparksbystate.com, worldgymperu.com</div>
<div><a rel="attachment wp-att-359" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results7withy/">results7withY</a></div>
</td>
</tr>
<tr>
<td align="undefined" valign="undefined">8 or more matches</p>
<div>1,615 matches total</div>
<div>some FPs: superbowlxxxxvtickets.com</div>
<div><a rel="attachment wp-att-360" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results8withouty/">results8withoutY</a></div>
</td>
<td align="undefined" valign="undefined">8 or more matches</p>
<div>2,461 matches total</div>
<div>some FPs: holytemplechurch15088.com</div>
<div><a rel="attachment wp-att-361" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results8withy/">results8withY</a></div>
</td>
</tr>
<tr>
<td align="undefined" valign="undefined">9 or more matches</p>
<div>846 matches total</div>
<div>some FPs: bestlcdtvprice.info (could be &#8220;bad&#8221;, but legit english)</div>
<div><a rel="attachment wp-att-362" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results9withouty/">results9withoutY</a></div>
</td>
<td align="undefined" valign="undefined">9 or more matches</p>
<div>1,127 matches total</div>
<div>some FPs: dancinggypsyproductions.com, mymonthlycycles.com<br />
<a rel="attachment wp-att-363" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/results9withy/">results9withY</a></div>
</td>
</tr>
</tbody>
</table>
<div>Often in info sec after creating a control to mitigate risk, you immediately have to create exceptions for the real world.    In this case the exception would be around domains that use random letter strings in the host part of the domains because that is part of the HOST header in the HTTP protocol.  FPs I&#8217;ve found are mostly cloud providers such as</div>
<div>pwlmxczqq.google.com</div>
<div>slqkqzcjgh.amazonaws.com</div>
<div>So in closing, there will be false positives you can&#8217;t account for in an exception list and it will not detect all bad domains, but maybe it&#8217;s another tool in the box for the defenders. Could the bad guys re-write their domain registration scripts quickly to register domains with dictionary words strung together to beat the regex?  Yeap.  But a major goal in the defense of anything is forcing your adversary to change their tactics in the eternal game of cat and mouse; while raising the bar required to successfully defeat you specifically. To paraphrase an old joke, it doesn&#8217;t matter if you outrun the bear or the other guy; either way you survive.</div>
<div>I have the .php script and domains.txt linked below, if anyone is interested. Suggestions on my script welcome.</div>
<div><a href="http://scottfromsecurity.com/blog/wp-content/uploads/findbadURLs.php_.txt">findbadURLs.php</a></div>
<div><a rel="attachment wp-att-390" href="http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/domains/">Zipped_Domains.txt</a></div>
<div>PS.  the order of the letters in the regex look random but in fact are arranged by what several sites suggested is the most accepted letter frequency in the average English text. Don&#8217;t know if that will help the scripts efficiency but figured it couldn&#8217;t hurt.</div>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2012/01/16/detecting-the-bad-from-the-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The startup that didn&#8217;t start&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2012/01/01/the-startup-that-didnt-start/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-startup-that-didnt-start</link>
		<comments>http://scottfromsecurity.com/blog/2012/01/01/the-startup-that-didnt-start/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 03:04:43 +0000</pubDate>
		<dc:creator>amen940_poster</dc:creator>
				<category><![CDATA[Information Security]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=364</guid>
		<description><![CDATA[So I have requested Hostgator to rm -rf my VPS for a web application I created called https://mycloudwallet.com after about a year of building and trying to get it to catch on.  Basically I was attempting to be a middle man between consumers and vendors, adding value to both around transaction security … <a href="http://scottfromsecurity.com/blog/2012/01/01/the-startup-that-didnt-start/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>So I have requested Hostgator to rm -rf my VPS for a web application I created called <a href="https://mycloudwallet.com">https://mycloudwallet.com</a> after about a year of building and trying to get it to catch on.  Basically I was attempting to be a middle man between consumers and vendors, adding value to both around transaction security and accuracy.  By having users fill out one or more forms on my site with various types of information about them and then picking a text string (called WalletID) that they could give out to vendor&#8217;s who I would verify out of band.  This would allow the vendors to check against my site as needed for the updated info behind the WalletID.  So it&#8217;s an extra layer of sanity check before shipping a package to an address, sending a targeted email, or perhaps a pwd change request.  All checks could be verified externally (at my site) to whatever the vendor&#8217;s transaction technique was (at their website), in case it was being abused.</p>
<p><span id="more-364"></span></p>
<p>Anyway, I enjoyed creating the site and .html form front-ended .php script to pull the user&#8217;s info from MYSQL which amounted to a poor mans API for the vendors. Even though I think it&#8217;s a good idea that will come to be in someway or another, I learned that I&#8217;m apparently not entrepreneur material. I lost much motivation after the technical stuff was minimized and I couldn&#8217;t get any real interest from ycombinator, users or vendors.  Not to mention I also found very little incentive to eventually become an accountant, employer, tax expert, and other such work that comes with starting a company.  And the biggest reason of all is that I actually enjoy my day job, as opposed to longing to be my own boss apparently I&#8217;m better off running the rat race.  Live and Learn.</p>
<p>The site is still active as I type this watching Broncos and Patriots January 14th 2011 but should be down soon. Here&#8217;s a screen shot of the homepage for a little taste for the curious.</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/HomePageofMyCloudWallet.jpg"><img class="alignnone size-medium wp-image-366" title="HomePageofMyCloudWallet" src="https://scottfromsecurity.com/blog/wp-content/uploads/HomePageofMyCloudWallet-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://scottfromsecurity.com/blog/wp-content/uploads/Source-of-UserFAQ.htm">HTML Source of UserFAQ</a></p>
<p><a href="http://scottfromsecurity.com/blog/wp-content/uploads/Source-of-VendorFAQ.htm">HTML Source of VendorFAQ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2012/01/01/the-startup-that-didnt-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Detecting emails spoofing your domain using Outlook Rules&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2011/05/28/detecting-spoofed-emails-using-only-outlook-rules/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=detecting-spoofed-emails-using-only-outlook-rules</link>
		<comments>http://scottfromsecurity.com/blog/2011/05/28/detecting-spoofed-emails-using-only-outlook-rules/#comments</comments>
		<pubDate>Sun, 29 May 2011 00:01:58 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Defense]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[SPAM]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=208</guid>
		<description><![CDATA[The concern over targeted emails from sophisticated attackers is only increasing after the Aurora attacks, not to mention the latest Google vs. China row, and RSA&#8217;s compromise. One technique the attacker&#8217;s use to make their targeted email more legitimate is to fake or spoof the email&#8217;s from address using the … <a href="http://scottfromsecurity.com/blog/2011/05/28/detecting-spoofed-emails-using-only-outlook-rules/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Times New Roman; font-size: small;"> </span><span style="font-size: small;"><a href="https://scottfromsecurity.com/blog/wp-content/uploads/Cropped-Mail-message-red.jpg"></a>The concern over targeted emails from sophisticated attackers is only increasing after the Aurora attacks, not to mention the latest Google vs. China row, and RSA&#8217;s compromise. One technique the attacker&#8217;s use to make their targeted email more legitimate is to fake or spoof the email&#8217;s from address using the recipient&#8217;s own domain, so it is more likely to be opened. The constant message from security about the dangers of email can make opening a spoofed message cause much alarm for the average user, which of course is usually only evident after the message has been opened. Which is quickly followed by the usual questions, why am I getting this email Joe said he didn&#8217;t send it? It says I sent it! It&#8217;s not in my sent items, am I infected? Spoofing email addresses has a long history of being allowed by the SMTP protocol and many companies currently rely on that “feature” to deliver mail legitimately, think surveys, send this link to a friend, web page forms, mailing lists etc. So it’s not as simple as just blocking everything with an internal domain that comes from the Internet; because it’s not all bad. It’s also made more difficult in how SMTP works, where the MAIL FROM (aka. Smtp from, RFC2821, envelope from) is often is what is evaluated at the mail gateway/server level, but the user will just see the FROM (aka. RFC2822, message from). </span></p>
<p><span style="font-family: Times New Roman; font-size: small;"> <span id="more-208"></span></span></p>
<p><span style="font-size: small;"><em>What would help is a way for the average user to see the difference between an externally sent email from your internal domain(s) and an internally sent email from your internal domain(s) BEFORE opening it.</em> I’ve thought of a way to do this with Outlook Client rules and would like to share that here. So if your organization, especially small businesses and SOHOs are struggling with this, give it a shot and let me know how it goes. (The screenshot&#8217;s below are from Outlook 2007)</span></p>
<p><span style="font-family: Times New Roman; font-size: small;"> </span></p>
<p><span style="font-size: small;">The rule will essentially look for messages with your internal domain(s) in the message from, then look for a special line that your SMTP gateways put in the Received Headers, then if found the rule performs some action. Because if your internet facing mail servers relayed the message it had to come from outside your organization, and hence somebody musta spoofed ya&#8217;. I will explain below. </span></p>
<p><span style="font-family: Times New Roman; font-size: small;"> </span>A barebones rule, just to get the idea, will look like this…<span id="mce_marker"> (just replace @example.com with your own work&#8217;s email domain)</span></p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/simple-rule-screenshot.jpg"><img class="size-thumbnail wp-image-260 alignnone" title="simple rule screenshot" src="https://scottfromsecurity.com/blog/wp-content/uploads/simple-rule-screenshot-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Here’s what it does if not obvious…</p>
<ol>
<li>Search for @example.com in the sender’s FROM address (not MAIL FROM:)</li>
<li>And then look for Received: from mail1.example.com in the message headers<br />
(you can add other servers separated by an OR, yes the colon and spacing are important!)</li>
<li>Assign the message to the “Spoofed” category.  (I made this up, you could also delete, or move the message to a separate folder, marking the subject unfortunately does not appear to be an option with client rules)</li>
</ol>
<p>If you don’t know what “mailserver1.example.com” is at  your workplace, the best thing is to ask your IT mail admin, if that’s you and  you are still clueless (we&#8217;ve all been there) you can <strong>USUALLY</strong> get that information from the DNS MX  records your company publishes on the internet.   The site <a href="http://mxtoolbox.com">http://mxtoolbox.com</a> will allow you resolve those records.   Just enter your email domain where I have scottfromsecurity.com in  screenshot below.  The info under the column &#8220;hostname&#8221; will be what you want to put in your rule, there will most likely be more than one.</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/mxtoolbox_screenshot.jpg"><img class="size-thumbnail wp-image-217 alignnone" title="mxtoolbox_screenshot" src="https://scottfromsecurity.com/blog/wp-content/uploads/mxtoolbox_screenshot-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>If you want to categorize the suspiciously spoofed message like I did (because deleting or moving it can cause its own problems with lost mail and helpdesk calls) you’ll just need to create an Outlook Category, and choose a color (Red for example).  In Outlook main window click Actions…Categorize…All Categories…New…Add text that you want the user to see when they open the email.</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/Cropped-category_creation-RED.jpg"><img class="size-thumbnail wp-image-310 alignnone" title="Cropped category_creation RED" src="https://scottfromsecurity.com/blog/wp-content/uploads/Cropped-category_creation-RED-150x134.jpg" alt="" width="150" height="134" /></a></p>
<p>This will allow the message to be categorized and will show a colored bar when opened.  To make it obvious to the user <span style="text-decoration: underline;">BEFORE</span> the message is opened you’ll have to have them modify their current view.  The view will then color messages that are categorized with your new “Spoofed” category.  In Main Outlook and with your <span style="text-decoration: underline;">Inbox selected</span> window go to View…Current View…Customize Current View…then click Automatic Formatting… Add,  name the auto formatting rule and set font to desired color, by clicking Font button, as shown.  Then click Condition button&#8230;More Choices Tab..Categories&#8230;and check off the &#8220;Spoofed. Please be CAUTIOUS of Web LINKS contained in this email.&#8221; category.</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/Auto-formatting-of-View.jpg"><img class="size-thumbnail wp-image-263 alignnone" title="Auto formatting of View" src="https://scottfromsecurity.com/blog/wp-content/uploads/Auto-formatting-of-View-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Death by Screenshot continues with some pics on the end result of the above configuration.</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/cropped-mailbox-shot.jpg"><img class="size-thumbnail wp-image-300 alignnone" title="cropped mailbox shot" src="https://scottfromsecurity.com/blog/wp-content/uploads/cropped-mailbox-shot-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>And here is the opened message showing the red bar with your category message at the top, in case the user does open it. Hopefully discouraging them from clicking any links the email may contain before checking with IT.</p>
<p><img class="alignnone" title="Cropped Mail message red" src="https://scottfromsecurity.com/blog/wp-content/uploads/Cropped-Mail-message-red-150x150.jpg" alt="" width="150" height="150" /></p>
<p>For the IT professionals here&#8217;s more along the lines of what the a fully functional rule would look like with more than one internet facing MTA, gives it low importance, and has some notable email address exceptions (ie. the good spoofing).</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/Complicated-rule-screenshot.jpg"><img class="size-thumbnail wp-image-315 alignnone" title="Complicated rule screenshot" src="https://scottfromsecurity.com/blog/wp-content/uploads/Complicated-rule-screenshot-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Caveats:</p>
<ol>
<li>This probably won’t work if your external mail relays are also your internal mail relays, ie you don’t have MS Exchange or something to handle internally sent mail separately.  All mail will be shown as spoofed, unless you use separate interfaces and DNS names.</li>
<li>Far as I know GPO’s can not be used to push out Outlook client rules/configuration; you could potentially export the rule to a .rwz file and have users import it themselves. Tools&#8230;Rules and Alerts&#8230;Options(upper right)&#8230;Export or Import Rules button&#8230;navigate to .rwz file.   So deploying the config probably won’t be possible to do automatically, screen shots and a company wide email will most likely be required for the .rwz file import, category and view creation as well.</li>
<li>Also this is a Client only rule. As Outlook warns about when you go to save it.   That simply means if your Outlook client isn&#8217;t running the rule won’t take effect.  So on Monday you will need to launch Outlook and let it process your new email to see if it matches the rule.</li>
<li>It will be a window&#8217;s user profile specific setup, so might be something to add to the workstation build process or when desktop support delivers the box to the new user, after they log in for the first time.</li>
</ol>
<p>I&#8217;m still in the planning stages of rolling this out at my current contracting position, so as I learn the positive and negatives around this approach I&#8217;ll be sure to update this post.</p>
<p>I was also toying with the idea, of using different  actions such as “run a script” and “custom action” but they would further  complicate what’s now is pretty simple.  Also my current security monitoring analyst job does not get heavily into administration so can I  leave that up to the Exchange admins out there?  If anyone thinks up a better way to do this or anything cool (like marking the subject, so the category and view setup wouldn&#8217;t be needed) using a VB script or custom action with a .dll, feel free to leave a comment and share it with the 5 other people who read this blog.</p>
<p style="text-align: left;">___________________________________________________________________________<br />
PS:  Lastly if all of the  above is not appealing another blogger had a simpler approach involving tagging  everyone’s email signature with some consistent text string and then writing a  rule to filter on that.  This technique would identify the good (whitelist), where as mine identifies the bad(blacklist), why not try both and see which one works best for you? It also just occurred to me, with his approach, you might even want to make that text string white so it’s not overly obvious when the recipient sees  it.  Read about it here&#8230; <a href="http://www.countryipblocks.net/training/the-cheap-way-to-keep-spoofed-email-out-of-your-inbox/">http://www.countryipblocks.net/training/the-cheap-way-to-keep-spoofed-email-out-of-your-inbox/</a></p>
<p>Good luck in your SPAM fight.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2011/05/28/detecting-spoofed-emails-using-only-outlook-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cybersecurity challenge and update…</title>
		<link>http://scottfromsecurity.com/blog/2011/04/14/cybersecurity-challenge-and-update%e2%80%a6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cybersecurity-challenge-and-update%25e2%2580%25a6</link>
		<comments>http://scottfromsecurity.com/blog/2011/04/14/cybersecurity-challenge-and-update%e2%80%a6/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 23:56:07 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=199</guid>
		<description><![CDATA[&#160; So I saw an interesting link on the interwebs, it is a packet analysis challenge with promise of invitations to  summer 2011 USCC Cyber Camps training in various locations (Delaware for East Coast folks, I believe) for the winners.  I registered and hope to complete the challenge this weekend; … <a href="http://scottfromsecurity.com/blog/2011/04/14/cybersecurity-challenge-and-update%e2%80%a6/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>So I saw an interesting link on the interwebs, it is a packet analysis challenge with promise of invitations to  summer 2011 USCC Cyber Camps training in various locations (Delaware for East Coast folks, I believe) for the winners.  I registered and hope to complete the challenge this weekend; you have 24 hrs once you get the .pcap file to answer 30 questions about evidence of intrusion in the traffic.  You can read more about it here. <a href="https://quiz-uscc.cyberquests.org/">https://quiz-uscc.cyberquests.org</a> and <a href="http://www.uscyberchallenge.org/">http://www.uscyberchallenge.org </a> The contest is over May 1<sup>st</sup> 2011.</p>
<p>&nbsp;</p>
<p>UPDATE:  I did well enough to be invited to the Virginia camps in early August, with full tutition, room, and board paid.  An awesome opportunity that I&#8217;m looking forward to.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2011/04/14/cybersecurity-challenge-and-update%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Faux pas?</title>
		<link>http://scottfromsecurity.com/blog/2010/05/05/facebook-faux-pas/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=facebook-faux-pas</link>
		<comments>http://scottfromsecurity.com/blog/2010/05/05/facebook-faux-pas/#comments</comments>
		<pubDate>Wed, 05 May 2010 18:31:14 +0000</pubDate>
		<dc:creator>amen940_poster</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=191</guid>
		<description><![CDATA[So Facebook&#8217;s been in the news recently about their ever degrading privacy protections and coding screwups (EFF link and Tech Crunch link). I&#8217;m not a big fan of the service but it is a unique way to keep in touch with people you are far away from, as well as … <a href="http://scottfromsecurity.com/blog/2010/05/05/facebook-faux-pas/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>So Facebook&#8217;s been in the news recently about their ever degrading privacy protections and coding screwups (<a href="http://www.eff.org/deeplinks/2010/04/facebook-timeline">EFF link</a> and <a href="http://eu.techcrunch.com/2010/05/05/video-major-facebook-security-hole-lets-you-view-your-friends-live-chats/">Tech Crunch link</a>). I&#8217;m not a big fan of the service but it is a unique way to keep in touch with people you are far away from, as well as get updates on the &#8220;normal&#8221; part of their lives that don&#8217;t exactly warrant a phone call or email.  Anyway, I&#8217;ve already erased most all my personal info because I&#8217;m a paranoid.  I also check up on the privacy settings to see if I&#8217;m inadvertently leaking personal info because of my mistake or Facebook&#8217;s frequent policy changes.</p>
<p>I noticed an interesting feature yesterday that allows you to get an email when a computer that hasn&#8217;t been &#8220;authorized&#8221; authenticates to your account ( Click Account Button&#8230;Account Settings&#8230;Account Security). Facebook also allows you to see a log of the computers that have authenticated to your Facebook (security guys love logs) which is cool.  The log is weak on the technical side, no IP address, DNS hostname, or Useragent etc.  But it is an interesting feature that I believe banks should offer as well.</p>
<p><span id="more-191"></span></p>
<p>So I was about to Facebook post to recommend it to my friends when I realized I should Trust but Verify.   So I fired up RegShot, took a 1<sup>st</sup> shot registered my laptop for the first time, and took a 2<sup>nd</sup> shot.  No surprise there Facebook is using cookies at to keep the state of the registered computer.  I&#8217;m sure it&#8217;s a long fairly random string of characters that in no way have any login info in it.  Let me just open that file….  Oh Wait.  Is that my Facebook username which of course is also my primary email address in clear text? Now I&#8217;m no master web app designer but c&#8217;mon you are not supposed to put any part of the login in info in the cookie, <a href="https://www.owasp.org/images/2/.../OWASP_Code_Review_Guide-V1_1.pdf">OWASP agrees link</a> (pg34).  XSRF and XSS are proven ways to steal cookies so they should not be considered secure.  SPAMMers would obviously pay more for confirmed facebook email addresses vs. the average SMTP Directory harvest attack. I&#8217;m sure bot net herders already parse their clients for such info and sell it on the black market.</p>
<p>To dig deeper I fired up WebScarab and intercepted the server response that sets the cookie. In checking security settings on that and several other cookies the web server sets.  I saw Http Only, expiration date/time as well as Domain and Path restrictions which are good and help defend against cookie stealing; but why wouldn&#8217;t they hash the userID by using SHA1 on the login info with time in milliseconds or something as a salt?  I admit this isn&#8217;t a HUGE deal but when you are in the top 10 websites by traffic in the world and your only &#8220;product&#8221; is other people&#8217;s personal info you&#8217;d think they would be pretty conservative when it comes to exposing 50% of the info needed to login.  Facebook&#8217;s history of coding errors and in general their opinion that data should be open to everyone is really becoming concerning.</p>
<p>They talk about the cookie exposing your username in their Privacy policy so there seems to be little concern on their side about it, because it&#8217;s &#8220;never your password&#8221;. I don&#8217;t agree.</p>
<p><a href="http://www.facebook.com/policy.php">http://www.facebook.com/policy.php</a></p>
<p><strong>Cookie Information.</strong> We use &#8220;cookies&#8221; (small pieces of data we store for an extended period of time on your computer, mobile phone, or other device) to make Facebook easier to use, to make our advertising better, and to protect both you and Facebook. For example, we use them to store your login ID (but <span style="text-decoration: underline;">never your password</span>) to make it easier for you to login whenever you come back to Facebook….snip….</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2010/05/05/facebook-faux-pas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Countering the new threats&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2010/02/07/countering-the-new-threats/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=countering-the-new-threats</link>
		<comments>http://scottfromsecurity.com/blog/2010/02/07/countering-the-new-threats/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 23:06:25 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Defense]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=165</guid>
		<description><![CDATA[The SANS Incident handling steps are Preparation Identification Containment Eradication Recovery Lessons Learned I’m going to talk about Preparation and Identification today. See I enjoy the challenge of having a network and resources to protect.   Its funny to see how that translates into my non-work life, for example I always … <a href="http://scottfromsecurity.com/blog/2010/02/07/countering-the-new-threats/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>The SANS Incident handling steps are</p>
<ul>
<li>Preparation</li>
<li>Identification</li>
<li>Containment</li>
<li>Eradication</li>
<li>Recovery</li>
<li>Lessons Learned</li>
</ul>
<p>I’m going to talk about Preparation and Identification today. See I enjoy the challenge of having a network and resources to protect.   Its funny to see how that translates into my non-work life, for example I always like RTS type games and often take a defensive posture by default.  Called turtling in the gaming world it’s more than likely to get you a loss because most games I played seem to favor the noob friendly kamikaze aggressive style, or rushing. However, that just makes me enjoy defense even more, who wants to take the uneducated inexperienced easy way out?  In the real world all out no fear, attack is not a legitimate info sec strategy for obvious reasons.</p>
<p>First it’s well documented how the “bad guys” have changed over the last 2 decades from notoriety seeking weekend hackers, to “hey I can make money at this” full time hackers, to organized criminal gangs.  What I don’t hear enough about is the current migration from gangs to an underground criminal marketplace, and that is just plain frightening.  Organized crime is dangerous and hard to stamp out but it’s a threat that can be met with equal good guy organization and cooperation.  Like when it took Elliot Ness and the federal government to stamp out the mobs and corruption of the 30’s.   Complicated Bad can be fought with complicated Good, hard but doable.  But how do you fight a decentralized economy of goods/service providers with a specialized skillset, profiting off loose, dynamic, and temporary connections to others?  That is really hard to do. Now throw in more recent fully state sponsored agencies targeting small subsets of the internet (Advanced Persistent Threat [APT] attacks on Google) and you’ll see why Information Security is so much in the news these days.</p>
<p><span id="more-165"></span></p>
<p>So here are some of my humble thoughts on how to counter act the new threats.</p>
<p><strong>Preparation:</strong></p>
<ul>
<li><strong>Organization</strong>
<ul>
<li>Like having to streamline and color code you’re A/V cable connections, organization is a critical first step. To further the analogy just as your Stereo, TV, DVD, PS3 wires will still work in a rat’s nest, but troubleshooting/maintenance is a headache, and interference is more pronounced. Your network nodes need VLANS and subnets to be given out and arranged in such a way that traffic can be categorized for same reasons as stereo wires.  This does not actually provide security (i.e. reduce risk) but this preparation greatly enhances your ability in the identification and containment phases.</li>
</ul>
</li>
</ul>
<ul>
<li><strong>Network Segmentation</strong>
<ul>
<li>Once your LAN is organized (NOT an easy thing to retrofit, everything just works on VLAN 1 right? <img src='https://scottfromsecurity.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  you need to introduce the security (i.e. break things) by creating ACLs that actually limit traffic between groups that need to talk to each other.  This is where you get intimate knowledge of the network.  The thing that makes modern malware possible is the communication between it and its target, if every computer was an air gapped silo, you’d need sneaker net to infect them, then it comes down to Physical security which I consider out of scope of this discussion. So in my mind the Achilles heel of today’s threats is in their communication. After all w/o physical access, hacking can really be boiled down to this;
<ul>
<li> Black hat sends code to get data</li>
<li> Data is sent back to him</li>
</ul>
<p>That “sending” of code/data is were we have to strike for identification. With the current state of enterprise LANs you just can’t stop infections/targeted attacks 100% of the time.  While relatively old school blacklisting/reputation signature based techniques are needed (AV, IPS, URL and SPAM filters, DNSBL etc) I believe the future is in whitelisting inbound/outbound/internal traffic, in other words default deny.  The biggest advantage defenders have is that you can say almost w/o a doubt that the malicious code will come in and/or go out through your front door (inet connection). In other words you already know where the majority of attacks will come from, before you even start defending!</li>
</ul>
</li>
</ul>
<p><strong>Indentification:</strong></p>
<ul>
<li><strong>Network Visibility</strong></li>
</ul>
<p>Once you’ve limited your attack surface with whitelisting filtering/segmentation, you need to monitor what traffic you do allow, but you can’t secure what you can’t see.  Which is why Network intelligence, next generation firewalls, log consolidation and correlation are all buzz words these days, they allow you to see so you can secure.  Principal of least priviledge FW controls are like boxing in the dark.  You can only protect (block) so much, and hope the hits don&#8217;t hurt.  See bad guys have to use your LAN to transfer the data; sending code in and then sending ill gotten data back to themselves. Yes they have encryption, custom protocols, obfuscation, seemingly infinite bot provided IPs\URLs so they can be very good at camouflaging their traffic. This is why network visibility must include a record of your past, present, and future traffic.</p>
<p>Because, the one thing they can’t control is what happened BEFORE they got on your network.  So if you can log, are able to data mine, and then alert on what is out of the historic norm along with common attack vectors/unexpected traffic patterns you bypass the bad guy’s above disguising techniques and at the same time the things that make the usual signature based detection so hard.  You are looking at the behavior of traffic not diving into the data is contains.  This is also where organization comes in, if I want to be alerted when any desktop client talks to a SQL server, or directly to a Server’s iLo port (everyone’s using the jumpbox right?), internet server on port 25 (Spambot), 31337(backdoor), or why is the DMZ web server suddenly getting inbound traffic to port 21 (Warez) how can I set that if all IPs are in the same or random subnets?  Individual alerts for every source and destination IP?  Ouch, that doesn’t scale well.  You need something like</p>
<ul>
<li>Desktop subnet:any to Server subnet:&lt;choosen iLo port&gt; alert</li>
<li>Desktop subnet:any to !Rfc1918 subnet:25,31337  alert</li>
<li>Desktop subnet:any to SQL DB servers subnet:1433,1434 alert</li>
<li>!Your IPs:any to DMZ Server subnet:21</li>
</ul>
<p>In summary, the steps above will take a strong stomach from upper management, committed and knowledgeable info sec professionals, and a change to the default enterprise network access model of filtered inbound, but wide open outbound, and internal traffic. Clearly this level of security is not for all companies, as it will break things and cause many complaints from userland trying to goto non-work related destinations.  But I honestly believe such defensive models will become what is required to keep the critical data safe as the internet becomes ever more embedded in human society it will increasingly be used as a vector to get the data needed by the bad guys. The sophistication of attacks will only going to get worse from here…</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2010/02/07/countering-the-new-threats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blackhat SEO, The Next Generation&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2010/01/08/blackhat-seo-the-next-generation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blackhat-seo-the-next-generation</link>
		<comments>http://scottfromsecurity.com/blog/2010/01/08/blackhat-seo-the-next-generation/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:49:10 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=149</guid>
		<description><![CDATA[UPDATE March 2012: So I was rereading my own blog and wondered if I got this post right.  I googled and turns out it was probably a FAIL.  Although Van Morrison deny&#8217;s it he bought Gigi a house in Texas and visited her and the child regularly (although she recently passed … <a href="http://scottfromsecurity.com/blog/2010/01/08/blackhat-seo-the-next-generation/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>UPDATE March 2012: So I was rereading my own blog and wondered if I got this post right.  I googled and turns out it was probably a FAIL.  Although Van Morrison deny&#8217;s it he bought Gigi a house in Texas and visited her and the child regularly (although she recently passed away).  Guess I should have known writing about celebrity gossip, the truth will probably never really made public.</p>
<p>December 29th 2009  I noticed a story come across the wires about the singer Van Morrison and Gigi Lee having a baby. This was picked up by the Associated Press and many legitimate news outlets.  Turns out it was a carefully orchestrated plan to drive traffic for keywords already seeded on hacked websites that redirected to mostly known fake AV malware servers (more on that at bottom).  Not knowing this at the time I did a quick google search out of normal user interest and got these results&#8230;</p>
<p><a href="https://scottfromsecurity.com/blog/wp-content/uploads/cropped-image-of-Van-Morrison-search-results.jpg"><img class="alignnone size-thumbnail wp-image-152" title="Google results of Van Morrison search" src="https://scottfromsecurity.com/blog/wp-content/uploads/cropped-image-of-Van-Morrison-search-results-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Being the paranoid security guy I am, I immediately noticed the similarity in the URLs  and that they weren&#8217;t domain&#8217;s of news sites.  For example domain.com/xxx.php?=gigi%20&#8230; or domain.com/xxx.php?=van%20&#8230;  Hmmmm, those don&#8217;t look like legit results to me.  Welcome to the world of Blackhat SEO, I don&#8217;t presume to be the end all authority on this as <a href="http://ddanchev.blogspot.com" target="_blank">Dancho Danchev</a> and others <a href="http://www.sophos.com/blogs/sophoslabs/v/post/831" target="_blank">Sophos</a> have been tracking this for years. But this was a new twist, the bad guys were not grabbing the currently hot top search results (like when a celebrity dies) and competing with other pages to get their rank high, they INVENTED the keywords  and already had the seeded keywords in Google’s page rank before attacking Van Morisson&#8217;s website!  Gotta to respect the ingenuity, wish they were on the good guys side. Whatever Google is doing to counter the bad guys from gaming their page rank algorithm it isn&#8217;t working very well, although in this instance Google was working as intended.  If a malware author can poison a person&#8217;s view of the web (search engine results) then the average user doesn’t have much of a chance.  Turns out any one of the links redirected me to a known malware page. I followed them with Malzilla, here&#8217;s an example&#8230;</p>
<p>&#8230;. ALL LINKS CHANGED SLIGHTLY TO PROTECT INNOCENT&#8230;.</p>
<p>1. First the click to Google&#8217;s search results<br />
http [break] ://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=17&amp;ved=0CB8QFjAGOAo&amp;url=</p>
<p>http%3A%2F%2Fxxxxx-law.com%2Fmvf.php%3Ft%3Dgigi%2520lee&amp;ei=8K06S8yYFpS2swOKg_XBBA&amp;usg=AFQjLNG7qREztsl9Fo0TC6RUCWNaB5Vp_A&amp;sig2=48nUTmo26vz49MerFAydtg</p>
<p>2. Redirects to the search result</p>
<p>HTTP/1.1 302 Found<br />
Location: http [break]://xxxxxx-law.com/mvf.php?t=gigi%20lee<br />
Cache-Control: private<br />
Content-Type: text/html; charset=UTF-8<br />
Date: Wed, 30 Dec 2009 17:04:04 GMT</p>
<p>Which is a .php script that looks like it&#8217;s taking an input of &#8220;t=gigi lee&#8221;  (the %20 is an encoded space) So I tried it w/o correct input and with &#8220;wget&#8221; default user-agent and was cleverly 301 redirected to cnn.com homepage, I thought that was a nice touch by the bad guys.</p>
<p>3. Continuing with the correct link gets me too, (hmmm  random .pl domain not a good sign.  No offence intended to Poland)</p>
<p>HTTP headers:</p>
<p>HTTP/1.1 302<br />
Date: Wed, 30 Dec 2009 17:04:12 GMT<br />
Content-Type: text/html<br />
Server: Apache</p>
<p>Location: http [break]://vby1x4.xoeg .pl/in.php?t=cc&amp;d=29-12-2009_tr2&amp;h=xxxxxx-law.com&amp;p=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3D&#8230;. snip&#8230;.6vz49MerFAydtg</p>
<p>4. Then finally the below link which my endpoint HIPS stopped.  Just from the link you can tell it&#8217;s a fake AV Trojan and probably a couple exploits to go along with it (I didn&#8217;t go down the rabbit hole any farther).  Also I was impressed with Firefox <a href="https://addons.mozilla.org/en-US/firefox/addon/3456" target="_blank">WOT add-on (link)</a> as I kept having to disable it to follow the redirects with FireFox.  Definitely recommend it, along with no_script of course</p>
<p>HTTP/1.1 302 Found<br />
Date: Wed, 30 Dec 2009 19:08:52 GMT<br />
Server: Apache/2.0.55 (Unix) PHP/5.2.1<br />
X-Powered-By: PHP/5.2.1<br />
Location: http [break] ://createpc-pcscan-kokn .net/?uid=195&amp;pid=3&amp;ttl=e11476d0489</p>
<p>So I was intrigued by this .php file that they were able to upload to many websites like the example above which is a law firm in Boston Mass. I contacted several of them to tell of the infection and to ask if I could get a copy of that server side .php script, but none have done so.</p>
<p>So the whole thing was an elaborate scheme to get hits as it was most likely the same group of hackers that compromised the singer&#8217;s website and started the whole thing.  I was wondering how they knew to upload the files with the right keywords before the news broke and had figured they must have ongoing access to adjust the keywords or replace the .php depending on the current news story, which still could be true. The AP picking up the story must have had the bad guys celebrating for sure.</p>
<p>From BBC news site:</p>
<p>The Belfast-born 64-year-old said he had been the victim of an internet hacking attack that had placed &#8220;falsehoods&#8221; on his official website. BBC News was one of several outlets to report the hoax as fact.&#8221;The comments which appeared on my website did not come from me,&#8221; he [Van Morrison] said, in a statement issued to the media. The singer said he had asked his management team to carry out an immediate investigation, adding it was the second time his website had been hacked in the last three months.</p>
<p><a href="http://newsroom.mtv.com/2010/01/04/van-morrison-hoax/" target="_blank">Link to MTV</a> talking about it.  They missed the point though it wasn&#8217;t an innocent hoax, it was motovated by the second oldest story book&#8230;..Money.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2010/01/08/blackhat-seo-the-next-generation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is it Malware?</title>
		<link>http://scottfromsecurity.com/blog/2009/12/25/is-it-malware/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=is-it-malware</link>
		<comments>http://scottfromsecurity.com/blog/2009/12/25/is-it-malware/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 21:19:28 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=125</guid>
		<description><![CDATA[One lesson I remember learning during my teen years was the world is really shades of gray, not so much the black and white it seems when you’re younger.  The same principal applies to malware, what really is…bad?  If an AV scanner asks for payment before clears your spyware cookies … <a href="http://scottfromsecurity.com/blog/2009/12/25/is-it-malware/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>One lesson I remember learning during my teen years was the world is really shades of gray, not so much the black and white it seems when you’re younger.  The same principal applies to malware, what really is…bad?  If an AV scanner asks for payment before clears your spyware cookies and removes other fake AV installs is it malware?  What if separate 3<sup>rd</sup>party affiliates install it w/o your or manufacturer&#8217;s permissions, through an exploit, social engineering, or by forcing you to opt-out? What if they steal other companies detection DBs as in the iobit and malwarebytes saga? Apple installs file sharing software (Bonjour) w/o notification and with opt-out techniques (Google Toolbar, Quicktime) when installing iTunes. Does that make Apple a spyware purveyor?  Again, shades of gray.</p>
<p>So what is the user/IT tech to do? Well there’s no easy answer, and in my humble opinion you have to trust but verify with research.  Check already trusted forums/websites of whitehats and coworkers along with other trusted IT user’s opinions.  In short, do your homework before installing any software on your machine.</p>
<p>Along these lines an interesting thing happened while I was dealing with a small outbreak of Vundo.Trojan at work. Our AV vendor didn’t detect the sample yet so I recommended for the IT staff to install update and run malwarebytes in safemode. For various reasons one infected computer had no immediately available IT rep so it was left up to the user.  When getting to the download link he was tricked by a deceptive (my opinion) advertisement on download.com (Right hand “Bad Link” in screenshot below) to install a “shades of gray” program called CyberDefender instead of malwarebytes (a trusted whitehat community supported malware scanner).</p>
<div id="attachment_126" class="wp-caption alignnone" style="width: 160px"><a href="https://scottfromsecurity.com/blog/wp-content/uploads/bad-and-good-links-screen-shot-from-downloadcom.jpg"><img class="size-thumbnail wp-image-126" title="Deceptive Advertisment" src="https://scottfromsecurity.com/blog/wp-content/uploads/bad-and-good-links-screen-shot-from-downloadcom-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Tricky Tricky for the average user</p></div>
<div class="mceTemp">
<div class="mceTemp">This program has a history of being considered actual malware, but apparently was taken over by different management whose is supposedly trying to legitimatize it circa 2006.  I decided to check it out a bit and am suspicious enough to recommend NOT installing it.</div>
<p style="text-align: justify;">Some issues that make me dubious to install the software…</p>
<ul style="text-align: justify;">
<li> Inflates the severity of the findings (ie. Detected sysinternals processmonitor as a HIGH risk)</li>
<li> Opens a high tcp port and listens on it. (In 2 separate installs and 1 reboot on a clean VMware image I saw 1<sup>st</sup>cdas.exe listening on tcp/5710, 2<sup>nd</sup>cdas45.exe on tcp/5754, and 3<sup>rd</sup>on reboot saw tcp/5779 (from <span style="text-decoration: underline;">THE SAME</span> installer file))</li>
<li> Advertises with shady deceptive ads</li>
<li> Finds different threats with a program uninstall/reinstall and subsequent rescan with Cyberdefender</li>
<li> Offered me to buy the product for 250.00 after an add/remove programs uninstall (clearly a ripoff)</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2009/12/25/is-it-malware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheap Website Monitoring&#8230;</title>
		<link>http://scottfromsecurity.com/blog/2009/09/05/cheap-website-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cheap-website-monitoring</link>
		<comments>http://scottfromsecurity.com/blog/2009/09/05/cheap-website-monitoring/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 21:31:10 +0000</pubDate>
		<dc:creator>amen940</dc:creator>
				<category><![CDATA[Defense]]></category>
		<category><![CDATA[Information Security]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://scottfromsecurity.com/blog/?p=100</guid>
		<description><![CDATA[A big part of being a security analyst is figuring out why something you admin is blocking what a customer is trying to get to.  I actually like those problems because I look at them like a mini-puzzle. The key to these issues, and many others for that matter, is … <a href="http://scottfromsecurity.com/blog/2009/09/05/cheap-website-monitoring/"> Continue reading <span class="meta-nav">&#8594; </span></a>]]></description>
			<content:encoded><![CDATA[<p>A big part of being a security analyst is figuring out why something you admin is blocking what a customer is trying to get to.  I actually like those problems because I look at them like a mini-puzzle. The key to these issues, and many others for that matter, is being able to recreate the trouble with your own equipment.  I usually tell people, if it’s blocked for me too then I will be able to fix it.  The hard problems come when it’s an occasional issue, or only from one part of the network, etc.</p>
<p>Anyway, the latest scenario involved a city employee trying to get to a local high school’s website to get their layout.  The site was blocked with the category pornography, which seemed like a miscategorization.  After recreating the problem on my desktop I got a hunch, which leads me to the reason for this post.  I headed to google and searched “site:xxxxxx.edu nude”  and it came back with the results that would make any webmaster wince.  Pictured below (anonimized to protect the innocent)…</p>
<p><a href="http://scottfromsecurity.com/blog/wp-content/uploads/SMALL-scrubbed-screen-shot-from-google-website-review.2.JPG"><img class="alignnone size-medium wp-image-115" title="Screen shot of SEO injected keywords " src="https://scottfromsecurity.com/blog/wp-content/uploads/SMALL-scrubbed-screen-shot-from-google-website-review.2-300x117.jpg" alt="" width="300" height="117" /></a></p>
<p>So that was quickly solved by making the school’s webmaster aware of the injected HTML SEO poisoning keywords and asking our vendor to re-evaluate the site once cleaned.  But more to the point such Google searches are a really cheap way to do some manual monitoring for websites under your protection. I personally do searches like these every few weeks, on the off chance one day I will get something other then no webpages found.  Don&#8217;t forget to submit requests to clear the major search engine&#8217;s cache if you&#8217;re hit or these results will stick around for a while.</p>
<p>PS I&#8217;ll leave it up to the reader&#8217;s imagination on which keywords to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottfromsecurity.com/blog/2009/09/05/cheap-website-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

