Stopping Spam Before the Gateway: Honeypots

Like pesky flies, spammers just can't resist the allure of honey. Discover some sweet tricks for luring spammers into your honey-laced traps.

 By Steven J. Vaughan-Nichols
Page 1 of 2
Print Article

Do you want to be aggressive – very aggressive – in stopping spam on your network? Then what you might want to do is to set up a fake open proxy or e-mail relay as a honeypot.

Honeypots are an ancient but eternally effective security tool. A honeypot in the network sense of the term is a server that looks like it has very attractive files as well as a nice little security hole in it. The idea is that crackers will be drawn to the honeypot in search of pirated copies of games, trade secrets, or such.

In reality, there's nothing of any real value stored in the honeypot. Rather, the value lies in watching who breaks into the honeypot — you can audit would-be attackers as they hunt for the goodies until you know exactly who they are and you can put the cuffs on them.

Some black-list administrators, notably Ron Guilmette, have taken the basic idea of a honeypot and turned it into an anti-spam approach. It works in exactly the same way as other network honepots. Since a spammer doesn't know what proxies or relays are open to abuse by spammers, they are constantly testing sites for new and vulnerable relays. In fact, a spammer probably has no idea what sites he is using to spread spam. Most simply rely on automatic scripts to find new sites as old open relays are either fixed or knocked off the net by being added to a blacklist.

If you're not sure yourself about whether your mail servers are open, you should get a copy of Mail Relay Tester, or run the Abuse.net mail relay test, and test out your own system.

If you're well past the point of needing such tools, you may be ready to try to nail spammers with a honeypot. The most basic way to do it is to simply set up an insecure mail server, aka relay, and wait for the spammers to come to you.

Then, one simply reads your incoming log for a visitor's IP address, looks up what ISP owns that IP address, and reports to the ISP that they have a spammer at x.x.x.x IP addresses as a member. Or, as Brad Spencer, a retired systems manager for the University of Wisconsin and honeypot advocate, puts it, "Boom! There went the much-exaggerated 'anonymity' of the spammers."

If you don't want to build your own open relay honeypot, you can simply download a complete package like Jackpot, which is a ready-to-run Simple Mail Transport Protocol (SMTP) relay honeypot called Bubblegum Proxypot. Bubblegum is written in Perl and runs on Linux, but its developer believes that it should run on most Perl-friendly systems.

Page 2: With Rewards Come Risks

This article was originally published on Nov 19, 2003
Get the Latest Scoop with Networking Update Newsletter