<?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>K-Squared Ramblings &#187; SPF</title>
	<atom:link href="http://www.hyperborea.org/journal/tag/spf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperborea.org/journal</link>
	<description>Sci-fi, comics, humor, photos...it&#039;s all fair game.</description>
	<lastBuildDate>Sat, 21 Nov 2009 07:49:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='www.hyperborea.org' port='80' path='/journal/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>The Spammers, The!</title>
		<link>http://www.hyperborea.org/journal/archives/2007/12/13/the-spammers-the/</link>
		<comments>http://www.hyperborea.org/journal/archives/2007/12/13/the-spammers-the/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 07:55:23 +0000</pubDate>
		<dc:creator>Kelson</dc:creator>
				<category><![CDATA[Spam]]></category>
		<category><![CDATA[AlternativeBrowserAlliance]]></category>
		<category><![CDATA[backscatter]]></category>
		<category><![CDATA[forged]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/12/13/the-spammers-the/</guid>
		<description><![CDATA[I recently noticed that the mail server was experiencing 4 times the typical number of SMTP connections.  It didn&#8217;t seem to be under any stress, though, not as far as server load went.  So I watched the log file trail, and saw a bunch of messages coming in to nonexistent users with the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently noticed that the mail server was experiencing <strong>4 times the typical number of SMTP connections</strong>.  It didn&#8217;t seem to be under any stress, though, not as far as server load went.  So I watched the log file trail, and saw a bunch of messages coming in to nonexistent users with the pattern, FirstnameLastname@alternativebrowseralliance.com.</p>
<p>My first thought was that someone was running a dictionary attack against the domain, trying many different addresses to see which might be valid.  Then I noticed that they seemed to be coming from &lt;&gt; &#8212; in other words, they were bounce notices.</p>
<p>Great.  A <a href="http://en.wikipedia.org/wiki/Joe_job">Joe Job</a>.</p>
<p>I enabled a catch-all temporarily.  <strong>That <em>did</em> cause the server to slow down</strong>, as it was now actually <em>processing</em> the quadruple load instead of kicking back 3/4 of it with a &#8220;User unknown&#8221; error.  (I hadn&#8217;t thought to disable spam scanning on the domain first.)  In the <strong>30 seconds</strong> before I turned it off again, it picked up 25 non-delivery notices.  And those are just the ones that got past the spam filter.</p>
<p>As it turned out, they were just random junk.  Some spammer had picked the domain and was using it to forge random From: addresses, and we were getting the bounces.  In the old days they made up the whole address, but it&#8217;s easy to check whether a domain exists.  So now they pick some real domain and make up a fake address.  That&#8217;s harder to detect unless the domain in question uses some sort of verification system like <a href="http://www.openspf.org/">SPF</a> or <a href="http://dkim.org/">DKIM</a>.</p>
<p>So it wasn&#8217;t a Joe Job: no one was trying to besmirch the site&#8217;s reputation.  It still meant extra traffic to the mail server, though.</p>
<p>This problem is called <strong>backscatter</strong>, and it exists for two reasons:</p>
<ol>
<li>The sender address on an email message is easy to forge, like writing a fake address on an envelope.</li>
<li>Many mail systems will accept a message first, <em>then</em> process it.  If it then decides to reject it, it can&#8217;t respond to the <em>actual</em> sender, only to the one listed in the message&#8212;and in the case of spam, it&#8217;s usually forged (see #1).</li>
</ol>
<p>I don&#8217;t send any mail using the domain.  The only reason it even has mail pointed anywhere is so that I can receive mail sent to the webmaster for the <a href="http://www.alternativebrowseralliance.com/">Alternative Browser Alliance</a>.  I suppose I could set up a <tt>-all</tt> (no servers are authorized) SPF record, and hope some recipients decide not to send bounces.  But I&#8217;m not sure how much it would actually accomplish.</p>
<p>Anyway, the two lessons to take away from this are:</p>
<ul>
<li><strong>Reject messages to bad recipients</strong> in the initial SMTP transaction.  It&#8217;ll protect your server from backscatter (and dictionary attacks), because you won&#8217;t have to queue and process all the extra junk.</li>
<li><strong>Don&#8217;t generate bounce messages</strong> after the fact based on something as easily forged as the supposed sender.  Otherwise, you&#8217;ll be <strong>contributing</strong> to backscatter.</li>
</ul>
<hr /><small>Copyright &copy; 2009 Kelson Vibber and/or Katherine Foreman.<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. Permission granted to Planet Antispam and LiveJournal syndication feed ksquaredramblin.  If this content is not in your news reader or one of the sites listed above, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint: bc1c453a98ff79bab5c4fca2d890469d (38.107.191.90) )</small> <a href="http://www.hudson-family.co.uk/extremecorticate.php?source=673"></a>]]></content:encoded>
			<wfw:commentRss>http://www.hyperborea.org/journal/archives/2007/12/13/the-spammers-the/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blocking spam by source</title>
		<link>http://www.hyperborea.org/journal/archives/2005/01/25/blocking-spam-by-source/</link>
		<comments>http://www.hyperborea.org/journal/archives/2005/01/25/blocking-spam-by-source/#comments</comments>
		<pubDate>Wed, 26 Jan 2005 06:39:51 +0000</pubDate>
		<dc:creator>Kelson</dc:creator>
				<category><![CDATA[Spam]]></category>
		<category><![CDATA[domainkeys]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2005/01/25/blocking-spam-by-source/</guid>
		<description><![CDATA[A brief history:

Spammers send mail directly to victims.
Server admins block by source, victims complain and try to get spammers kicked off their networks.
Spammers relay through third-party servers to disguise their origin.
Server admins shut close relays, and block mail from open relays.
Spammers relay through trojaned zombies straight to victims.
Network admins block outgoing mail traffic except through [...]]]></description>
			<content:encoded><![CDATA[<p>A brief history:</p>
<ol>
<li>Spammers send mail directly to victims.</li>
<li>Server admins block by source, victims complain and try to get spammers kicked off their networks.</li>
<li>Spammers relay through third-party servers to disguise their origin.</li>
<li>Server admins shut close relays, and block mail from open relays.</li>
<li>Spammers relay through trojaned zombies straight to victims.</li>
<li>Network admins block outgoing mail traffic except through their servers.</li>
<li>Spammers relay through zombies&#8217; ISPs&#8217; mail servers.</li>
<li>????</li>
</ol>
<p>We&#8217;re in the early stages of step 6, with broadband ISPs starting to block outgoing direct-to-MX mail traffic.  The obvious response by spammers is, of course, <span id="more-687"></span> to get their virus-writing partners to add code that extracts settings from the infected system&#8217;s mail program, and send through the ISP just like the actual user would.</p>
<p>At this point the problem changes.  To use a car metaphor, first spammers drove their own cars, then they stole trucks, and now they&#8217;re stealing your car while you&#8217;re at work and driving it off-road.  Soon they&#8217;ll be stealing your car, but keeping to city streets and using a fake drivers&#8217; license with your name on it.  So blocking by source and authentication won&#8217;t be enough.</p>
<p>The next step will probably be dynamic blocks on <em>outgoing</em> mail based on some sort of traffic analysis.  This would be things like temporarily blocking mail from client IPs that send out viruses, and notifying the customer.  Perhaps using statistical analysis like credit card fraud protection.  (Hmm, this customer normally sends 10-15 emails a day, but seems to have sent 1000 in the past hour.)</p>
<p>We may be reaching the limits of blocking by source&#8212;or at least blocking by immediate source.  If some sort of sender verification (<a href="http://www.openspf.org/">SPF</a> or <a href="http://domainkeys.sourceforge.net/">DomainKeys</a>) really takes off, it may be possible to extend it further.</p>
<hr /><small>Copyright &copy; 2009 Kelson Vibber and/or Katherine Foreman.<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. Permission granted to Planet Antispam and LiveJournal syndication feed ksquaredramblin.  If this content is not in your news reader or one of the sites listed above, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint: bc1c453a98ff79bab5c4fca2d890469d (38.107.191.90) )</small> <a href="http://www.hudson-family.co.uk/extremecorticate.php?source=673"></a>]]></content:encoded>
			<wfw:commentRss>http://www.hyperborea.org/journal/archives/2005/01/25/blocking-spam-by-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
