<?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>Anti spam and general email security in a business environment &#187; Directory Harvesting</title>
	<atom:link href="http://www.allspammedup.com/tag/directory-harvesting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allspammedup.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 15:00:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Using SMTP tarpits to slow down directory harvest attacks</title>
		<link>http://www.allspammedup.com/2010/10/using-smtp-tarpits-to-slow-down-directory-harvest-attacks/</link>
		<comments>http://www.allspammedup.com/2010/10/using-smtp-tarpits-to-slow-down-directory-harvest-attacks/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 01:45:39 +0000</pubDate>
		<dc:creator>Ed Fisher</dc:creator>
				<category><![CDATA[anti spam]]></category>
		<category><![CDATA[Directory Harvesting]]></category>
		<category><![CDATA[Exchange Server]]></category>

		<guid isPermaLink="false">http://www.allspammedup.com/?p=3135</guid>
		<description><![CDATA[Directory harvest attacks are one of the many threats email administrators must deal with. SMTP tarpitting is an effective defence. This post goes over the mechanics of the attack, and the details of the defence.<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2010/10/using-smtp-tarpits-to-slow-down-directory-harvest-attacks/">Using SMTP tarpits to slow down directory harvest attacks</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.allspammedup.com/wp-content/uploads/2010/10/TheTarPit.png"><img class="alignleft size-thumbnail wp-image-3134" style="margin: 10px; border: 0px;" src="http://www.allspammedup.com/wp-content/uploads/2010/10/TheTarPit-150x150.png" alt="" width="150" height="150" /></a><a href="http://retrohack.com/how-to-prevent-directory-harvest-attacks/" target="_blank">Directory harvest attacks</a> are just one of the many methods that spammers use to create lists of valid email addresses. As an email administrator, you want to understand both what they are, and how to effectively defend against them. Here is how these attacks work. The spammer creates a list of possible email addresses by combining common email aliases and names with the authoritative domain(s) hosted by the server. The script then attempts to &#8220;deliver&#8221; mail to the addresses on this list using the RCPT TO: command, and using the responsed from the mail server to determine which are good and which are not. Valid addresses are added to a final list for sending spam that can be shared or even sold to other spammers, while invalid ones are dropped.</p>
<p>This works because SMTP servers respond to messages addressed to recipients differently. When a sender issues the RCPT TO: command to an MTA for a local addressee, valid addresses generate a “250 2.1.5 Recipient OK”, while invalid addresses generate a “550 5.1.1 User unknown.” The spammer does not actually have to send a message, as a valid email could have multiple recipients. They can run through dozens or even hundreds of addresses, as the MTA will respond until its maximum number of recipients is reached. For many systems, a maximum must be configured&#8230; there is no default. </p>
<p><span id="more-3135"></span>What does this look like on your system? The most common symptom of a directory harvest attack is when your MTA generates a large number of 550 5.1.1 messages in response to the same MAIL FROM: command. Of course, if you are looking at your logs, the attack has already happened. An effective defense needs to be in place in advance. One of the best ways to defend against directory harvest attacks is to implement SMTP tarpitting.</p>
<p>Named for the naturally occurring lakes of asphalt (bitumen) where prehistoric animals became trapped in the sticky tar, network tarpits are systems configured to trap misbehaving connections. They do this by slowing down responses to a crawl, effectively extending the duration of a conversation on the network from milliseconds to seconds&#8230; an eternity in computer time. SMTP Tarpitting is when the MTA recognises that an attack is underway, and responds to further RCPT TO: commands more slowly than normal. Response times for SMTP messages normally take place in fractions of a second, but when the tarpit is active, they can increase to several seconds or even minutes. This behaviour still complies with <a target="_blank" href="http://www.faqs.org/rfcs/rfc821.html" target="_blank">RFC 821</a>, but greatly increases the amount of time it takes for a directory harvest attack to complete. At best, this can cause an attack to fail from time outs, and at worst, cause them some of the same aggravation they cause you. </p>
<p>Exchange 2007 and 2010 both support SMTP tarpitting by default, and Exchange 2003 SP1 can be configured to do this as well. Other systems, or Exchange admins who want an extra layer of protection on the edge, can add other packages or implement a product like <a target="_blank" href="http://www.gfi.com/mes" target="_blank">GFI Mail Essentials </a>to enhance the security of their mail systems with protections including SMTP tarpitting. You can also look at hosted solutions like <a target="_blank" href="http://www.gfi.com/hosted-email-security" target="_blank">GFI’s Max MailProtection</a>  to defend against these attacks.</p>
<p>Consult your mail server’s documentation for tar pitting, or look at adding an edge device or a hosted service. When using a tarpit, keep in mind that while you want to slow down a directory harvest attack, you don’t want to slow down the rest of your legitimate inbound email. Make small adjustments in the tarpitting interval until you find your sweet spot, constantly monitoring to ensure your inbound mail does not suffer unnecessary delays.</p>
<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2010/10/using-smtp-tarpits-to-slow-down-directory-harvest-attacks/">Using SMTP tarpits to slow down directory harvest attacks</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.allspammedup.com/2010/10/using-smtp-tarpits-to-slow-down-directory-harvest-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is why you get spam emails</title>
		<link>http://www.allspammedup.com/2009/04/this-is-why-you-get-spam-emails/</link>
		<comments>http://www.allspammedup.com/2009/04/this-is-why-you-get-spam-emails/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 11:44:51 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[anti spam]]></category>
		<category><![CDATA[Fighting spam]]></category>
		<category><![CDATA[phishing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Connection Filtering]]></category>
		<category><![CDATA[Directory Harvesting]]></category>
		<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.allspammedup.com/?p=735</guid>
		<description><![CDATA[Have you ever wondered how spammers manage to find your email address and start sending you junk and scam emails?  In this post I&#8217;ll describe three ways in which spammers are able to get their hands on lists of valid &#8230;<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2009/04/this-is-why-you-get-spam-emails/">This is why you get spam emails</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-737" title="This is why you get spam emails" src="http://www.allspammedup.com/wp-content/uploads/2009/04/139263_1981.jpg" alt="139263_1981" width="200" height="200" />Have you ever wondered how spammers manage to find your email address and start sending you junk and scam emails?  In this post I&#8217;ll describe three ways in which spammers are able to get their hands on lists of valid email addresses to target with their spam.</p>
<h2>Directory Harvesting</h2>
<p>Directory harvesting is a technique spammers use to trick an email server into telling them which email addresses exist in an organisation and which do not.  The spammer bombards the email server with thousands of combinations of common names.  Any test emails that are accepted mean the spammer can be confident that particular email address exists at that domain and can be a target for future spam.  Sometimes the directory harvesting is performed by other parties who then sell the lists of valid email address to spammers.<span id="more-735"></span>Although email server products such as Microsoft Exchange Server 2007 include some inbuilt <a href="http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/">directory harvesting protection</a> measures, these usually rely on slowing the attack down (known as tar-pitting).  The best way for an organisation to protect itself from this attack is to implement a quality anti-spam system that includes directory harvesting detection and prevents the attack by cutting off further connections from the attacker.</p>
<h2>Address Recycling</h2>
<p>Some people find that they begin receiving spam as soon as they are given a new email address.  Although the person did not take any action that would attract spam they nonetheless begin receiving junk emails addressed directly to them.</p>
<p>Often this will occur in organisations, or any email provider for that matter, that recycles email addresses.  Not only does this practice expose the new user to whatever spam the previous person managed to attract, but it also carries other security risks as <a target="_blank" href="http://www.theemailadmin.com/2009/03/be-careful-of-your-unused-hotmail-addresses/">recently discovered by Livejournal users</a>.</p>
<p>Once an email address is in the hands of spammers there is no way to get it back from them.  The only way to prevent spam from being received once an email address has been exposed is with an anti-spam solution that applies a range of preventative measures such as <a href="http://www.allspammedup.com/2008/12/using-ip-block-list-providers-and-the-connection-filter-agent-in-exchange-2007/">connection filtering</a>, <a href="http://www.allspammedup.com/2008/12/how-to-protect-exchange-server-2007-with-content-filtering/">content filtering</a>, <a href="http://www.allspammedup.com/2009/01/bayesian-spam-filtering-with-exchange-server-2007/">Bayesian detection</a>, and <a href="http://www.allspammedup.com/2009/01/managing-whitelists-and-blocklists-for-exchange-server-environments/">black listing</a>.</p>
<h2>Free Online Giveaways</h2>
<p>Sometimes regardless of the amount of caution a person normally applies when surfing the web, the lure of a freebie causes them to drop all defences and give away their email address to a website online.  After all, who wouldn&#8217;t want a free 15 day supply of the latest miracle weight loss pill?</p>
<p>Sadly these websites are often run by shady affiliate marketers who immediately begin spamming the newly acquired email address with dozens of offers for other scams.  Often times they will sell the email address onto other spammers who will do the same.  Giving away your email address can result in a torrent of spam email thanks to these dodgy operators.</p>
<p>In these cases prevention is the best cure for an organisation trying to reduce their spam volumes.  <a href="http://www.allspammedup.com/2009/01/the-last-line-of-defense-against-spam/">Educating end users</a> on the risks of giving out your email address to unknown parties can help reduce the number of addresses exposed to spammers in this fashion.</p>
<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2009/04/this-is-why-you-get-spam-emails/">This is why you get spam emails</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.allspammedup.com/2009/04/this-is-why-you-get-spam-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting Exchange Server 2007 from Directory Harvesting Attacks</title>
		<link>http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/</link>
		<comments>http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 14:48:45 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[anti spam]]></category>
		<category><![CDATA[Directory Harvesting]]></category>

		<guid isPermaLink="false">http://www.allspammedup.com/?p=220</guid>
		<description><![CDATA[Directory Harvesting is a term used to describe a technique used by spammers to discover valid email addresses, usually targeting corporate networks. Spammers try to use this technique to trick an email system into telling them which email addresses are &#8230;<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/">Protecting Exchange Server 2007 from Directory Harvesting Attacks</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Directory Harvesting is a term used to describe a technique used by spammers to discover valid email addresses, usually targeting corporate networks. Spammers try to use this technique to trick an email system into telling them which email addresses are valid and which are not, which allows them to increase their database of valid email addresses to send spam emails to.</p>
<p style="center;"> <img class="size-medium wp-image-231" style="vertical-align: middle;" title="Protecting Exchange Server from Directory Harvesting Attacks" src="http://www.allspammedup.com/wp-content/uploads/2008/12/harvest-400x100.jpg" alt="Protecting Exchange Server from Directory Harvesting Attacks" width="400" height="100" /></p>
<p><span id="more-220"></span></p>
<p>A Directory Harvesting Attack normally consists of a basic dictionary attack combining common names and initials together into standard corporate email addresses and then sending a test message to each email address that is generated. For example, the spammer may send a message to john.smith@contoso.com, johns@contoso.com, and jsmith@contoso.com.</p>
<p style="center;"><img class="size-full wp-image-230" style="vertical-align: middle;" src="http://www.allspammedup.com/wp-content/uploads/2008/12/dha.png" alt="Directory Harvesting results in spammers finding valid email addresses" width="574" height="248" /></p>
<p>The attack relies on invalid email addresses being rejected by the email system either during the SMTP conversation or afterwards via a Delivery Status Notification (DSN). When the spammer receives a rejection the email address is considered invalid and is discarded. When no rejection or DSN is received the email address is considered &#8220;live&#8221; and is added to a database to later be targeted with spam emails either by the same person or another spammer that they sell the database to.</p>
<p>Email address databases are valuable information for spammers so directory harvesters can make a living by performing these attacks and selling the resulting information.</p>
<p>Aside from the exposure of your corporate email addresses to spammers a Directory Harvest Attack can also cause a performance problem for your internet-facing email servers as the process hundreds of thousands (or even millions) of SMTP connection attempts as the attacker works through every combination in their name dictionary.</p>
<h2>How is Exchange Server 2007 vulnerable to Directory Harvesting Attacks?</h2>
<p>In many Exchange Server 2007 environments incoming email is received directly by an internet-facing Hub Transport server. By default the transport server will use recipient lookups to notify the connecting host whether an email address is valid or not. When an inbound email is addressed to a recipient that does not exist a &#8220;550 5.1.1 User unknown&#8221; SMTP response is sent to the connecting host. When an email is addressed to a valid recipient a &#8220;250 2.1.5 Recipient OK&#8221; SMTP response is sent.</p>
<p>This behaviour complies with the RFCs for SMTP communication, and is important for many email users (if someone sent you an important email but misspelled your email address, you want your email server to notify them of the mistake so they can resend the message).</p>
<p>Though it is useful and important to provide this recipient lookup feedback to sending email servers this is also exactly the behaviour that enables a Directory Harvest Attack to occur.</p>
<p>There are two strategies that can be employed to protect an Exchange server from Directory Harvesting Attacks. The first makes use of an Exchange security feature known as &#8220;tarpitting&#8221;.</p>
<h2>Protecting Exchange Server 2007 with Tarpitting</h2>
<p>Tarpitting is a feature of Edge Transport and Hub Transport servers that inserts an artificial delay in the SMTP session before any &#8220;550 5.1.1 User unknown&#8221; response is sent. This increases the cost and difficulty to the spammer of a Directory Harvesting Attack, by slowing down the rate at which they are able to discover valid and invalid email addresses. This strategy reduces the effectiveness of Directory Harvesting Attacks while still retaining RFC compliance by sending the appropriate responses to incorrectly addressed email messages.</p>
<p>In order for tarpitting to be applied to suspected attacks the Recipient Filter Agent must be active. The Recipient Filter Agent is enabled by default on Edge Transport servers but must be installed by an administrator on Hub Transport servers. Here we see a Hub Transport server with the default transport agents enabled.</p>
<p style="center;"><img class="alignnone size-full wp-image-228" src="http://www.allspammedup.com/wp-content/uploads/2008/12/htdefaulttransagents.png" alt="Hub Transport Server" width="500" height="82" /></p>
<p>To make the Recipient Filter Agent available the administrator installs the Exchange anti-spam components using the &#8220;install-AntiSpamAgents.ps1&#8243; script that is included with Exchange Server 2007.</p>
<p style="center;"><img class="alignnone size-full wp-image-229" src="http://www.allspammedup.com/wp-content/uploads/2008/12/htinstallantispamagents.png" alt="Install-AntiSpamAgents.ps1 script " width="500" height="109" /></p>
<p>Once the Microsoft Exchange Transport service is restarted the Recipient Filter Agent is now installed and enabled on the Hub Transport server.</p>
<p style="center;"><img class="alignnone size-full wp-image-226" src="http://www.allspammedup.com/wp-content/uploads/2008/12/htantispamtransagents.png" alt="The Recipient Filter Agent is installed" width="500" height="136" /></p>
<p>When the Recipient Filter Agent is enabled it uses the TarpitInterval configured on the Receive Connector to determine how long to insert a delay for any &#8220;550 5.1.1 User unknown&#8221; responses to suspected attackers. The default delay is 5 seconds but this can be increased by the administrator.</p>
<p>Although tarpitting increases the cost and difficulty of a Directory Harvesting Attack it is not always going to be effective. If the spammer is patient enough they can put up with the tarpitting delays and still achieve the desired outcome. However tarpitting is a low cost option because it can be implemented on existing Exchange Server 2007 servers with no additional outlay on server hardware or software.</p>
<h2>Protecting Exchange Server 2007 with third party products</h2>
<p>Often a more effective strategy is to implement a third party email security solution that includes more advanced DHA protection. When a harvest attempt is detected by the security product the sending host is disconnected and then blocked by the server so that it cannot reconnect and continue the attack.</p>
<p>This is more effective than simply slowing down the attack however this strategy will usually involve additional costs of servers and software. This cost is usually justifiable though when you also consider the additional protection that the third party product can provide you from email viruses, spam, and phishing attempts. In the best commercial email security products the configurability and protection are both much greater than what can be provided with the built in features of Exchange Server 2007.</p>
<h2>Always consider Directory Harvesting Attacks when protecting your Exchange servers</h2>
<p>Directory Harvesting Attacks should not be ignored when assessing the threat landscape for your Exchange server environment. By implementing either the built-in Exchange protection for DHAs or a third party commercial email security product you can reduce both the load on your email servers and the risk of exposure of your corporate email addresses to spammers.</p>
<p>Liked this post? Get more <a href="http://www.allspammedup.com">anti-spam</a> related news from AllSpammedUp.com!<br/><br/><a href="http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/">Protecting Exchange Server 2007 from Directory Harvesting Attacks</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.allspammedup.com/2008/12/protecting-exchange-server-2007-from-directory-harvesting-attacks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

