John Lam 1997 — 2026

Comment spam and ineffectiveness of ip address filtering

I’ve been fighting a battle with the comment spammers for some time now on this blog. Most of you don’t notice the comment spam because I get to it fairly quickly. However, one thing that I’ve realized is that the IP address filtering feature of Movable Type is next to useless, since the same spammer now appears from apparently random IP addresses. I was curious about how this works, and just discovered that it’s due to ARP cache poisoning. A fascinating read for any of you who are fighting spam on your own blogs.

Update: From my comments, it does appear that what I’m seeing isn’t due to ARP cache poisoning. Doing some quick reverse DNS lookups shows that most of the spam is coming from various ISPs (rr.com and aol.com). So either the spammers have a bunch of “zombie” computers that they 0wn, or they’re simply logging in through dial-up connections. Since it looks like the spam is entered by hand, I suspect the latter.

9 archived reader comments

Len Holgate (2004-04-28)

John,

Try MT-Blacklist. I’ve found it works pretty well and when it does let a spam comment through it makes it easy to clean up and make sure that particular url isn’t used in a comment again…

http://www.jayallen.org/projects/mt-blacklist/

Len

Nidhogg (2004-04-28)

I thought ARP cache poisoning only worked on LANs, not on the internet. AFAIK, ARP works only for IP over Ethernet which would be logical since it uses broadcasts and you can’t broadcast to the entire Internet. And I doubt the spammer has an ethernet link to your server or you’re in trouble…

I may be wrong though, I’m no expert in that field.

Ian Griffiths (2004-04-28)

ARP is indeed an ethernet-level thing. (It’s not just ethernet - it’s used over a variety of different broadcast style network technologies. But the crucial point is that ARP works within a particular network segment - it doesn’t work across routers.)

So even if someone is using ARP cache poisoning, this is only useful for spoofing within the range of addresses on the subnet they’re on. This would mean that an blacklist that accepted a subnet mask as well as an address should be effective.

If the addresses don’t all appear to be coming from the same subnet they’re probably not using ARP cache poisoning. (And it would be an odd thing to do anyway - a spammer will most likely control the physical subnet they are on anyway, so ARP cache poisoning doesn’t actually buy you anything…)

Joe Madia (2004-04-29)

Aha! Nidhogg and Ian have fallen directly into your trap John. It’s obvious that 1) they are the comment spammers, 2) they have compromised your internal lan and 3) they are actually using ARP cache poisoning and need to find a way to throw you off their path.

Sneaky… very sneaky.

Rick Childress (2004-05-03)

“Mr. Lam,

We’ve determined where the spam is coming from. It’s coming from inside the house....”

: )

Nate (2004-05-03)

“A la carte” IP address blacklisting is useless. The spammers do in fact control an army of infected zombie PCs. They’ll hit you repeatedly from different IP addresses, all over the world, until one gets through.

Somewhat more effective would be to use realtime DNSBLs (the same blocking lists that mail servers use, like DSBL and SpamHaus). Does Movable Type offer such a feature?

John Lam (2004-05-03)

Ahhh … so that’s what Matthew was doing when he was banging away at the keyboard!

John Lam (2004-05-03)

Unfortunately, MT does not have a realtime DNSBL feature. It’s getting to the point where I’m most likely going to roll-my-own blog software so that I can have greater control over implementing comment spam algorithms. I’ve also been closing off comments on all old postings as well to keep my maintenance to a minimum.

Luciano Evaristo Guerche (2004-05-04)

Have you ever though about packet tweaking? I heard long time ago it is hard to do, but somehow possible.