Expired domain led to SpamCannibal's blacklist eating the whole world

Posted by   Martijn Grooten on   May 31, 2018

The first line of defence in many a spam filter is to query one or more DNS blacklists to see if the sender's IP address (and sometimes their domain) is listed as a known spammer.

As the name suggests, a DNS blacklist is queried over DNS: to do a lookup for the IP address 1.2.3.4 on the hypothetical 'example.com' blacklist, a spam filter would query the domain 4.3.2.1.example.com. Typically, a listing would result in a response like 127.0.0.*, where the final octet provides more details about the kind of listing, but in practice any non-empty response will be interpreted as a listing.

If the IP address isn't listed, the blacklist responds to say it can't find the domain; in DNS speak, it returns 'NXDOMAIN'.

Major blacklists like Spamhaus and SORBS are well known within the security community, but there are in fact dozens of public blacklists used in spam filters all over the world. Most email security products provide the option to add extra blacklists to enhance the product's ability to detect spam.

One such blacklist was SpamCannibal. I say 'was', because the blacklist ceased its activities last summer and was no longer responding to DNS queries. That isn't great, but unless your email security set-up relied solely on this blacklist, probably not a huge deal.

The situation changed in the early hours of yesterday, however, when the SpamCannibal domain expired. As is typical in the takeover of expired domains, it was pointed to a dodgy-looking (but not necessarily malicious) parking site. What was worse – though again not uncommon – was that a wildcard DNS was pointed to this parking site.

In practice, this meant that any query to SpamCannibal's blacklist returned the same positive response, leading spam filters to believe the queried IP address was blacklisted.

It is unclear how many people and organizations were still using SpamCannibal, but the number is unlikely to have been very large. Nevertheless, the situation provides some useful lessons for the email security community.

If you are using someone else's blacklist, you should check whether it supports 'health checks', and if it does, perform a health check regularly. This can be done simply by confirming that the IP address 127.0.0.1 isn't listed, but 127.0.0.2 is.

If you are running a blacklist and aren't able to continue supporting it, consider donating the domain to another organization working in the email security space. At the very least, they should be able to prevent the domain registration from expiring.

As for SpamCannibal, whoever ran it did at least manage to reclaim ownership of the domain. It still isn't responding to any queries to its blacklist, but that is a lot better than responding to all queries.

SpamCannibal_original.png SpamCannibal_parking.png

 Left: The original SpamCannibal site; right: the (localized) redirection after the domain had expired.

twitter.png
fb.png
linkedin.png
hackernews.png
reddit.png

 

Latest posts:

VB2019 paper: Fantastic Information and Where to Find it: A guidebook to open-source OT reconnaissance

A VB2019 paper by FireEye researcher Daniel Kapellmann Zafra explained how open source intelligence (OSINT) can be used to learn crucial details of the inner workings of many a system. Today we publish Daniel's paper and the recording of his…

VB2019 paper: Different ways to cook a crab: GandCrab Ransomware-as-a-Service (RaaS) analysed in depth

Though active for not much longer than a year, GandCrab had been one of the most successful ransomware operations. In a paper presented at VB2019 in London, McAfee researchers John Fokker and Alexandre Mundo looked at the malware code, its evolution…

VB2019 paper: Domestic Kitten: an Iranian surveillance program

At VB2019 in London, Check Point researchers Aseel Kayal and Lotem Finkelstein presented a paper detailing an Iranian operation they named 'Domestic Kitten' that used Android apps for targeted surveillance. Today we publish their paper and the video…

VB2019 video: Discretion in APT: recent APT attack on crypto exchange employees

At VB2019 in London, LINE's HeungSoo Kang explained how cryptocurrency exchanges had been attacked using Firefox zero-days. Today, we publish the video of his presentation.

VB2019 paper: DNS on fire

In a paper presented at VB2019, Cisco Talos researchers Warren Mercer and Paul Rascagneres looked at two recent attacks against DNS infrastructure: DNSpionage and Sea Turtle. Today we publish their paper and the recording of their presentation.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.