Statistical Open Proxy Monitor (STOPM)
Most ircds today have clumsy ways of dealing with spam and ban evasion. They do an IP address lookup and check if the IP is present on an RBL. If so, they ban the user. This unfortunately ends up banning a lot of innocent users. Users behind VPNs and tor are often banned, as are users who have bad ISPs.
Here are some examples:
- Some networks completely ban tor or force tor users to first register using a non-tor IP (which defeats the purpose of tor)
- Channel operators often set public channels to +R, which forces every use to register before they can chat. Some channels outright ban tor. This prevents unregistered users from chatting, which severely reduces privacy and makes it hard for new users to join.
- Users with bad residential ISPs are banned by default because their ISP has a reputation for spam; the entire IP range is placed on a blacklist.
- If you try to connect to Freenode from a blacklisted residential ISP, you are forced to install and authenticate using SASL (confusing for new users):
16:45 !cherryh.freenode.net *** Notice -- You need to identify via SASL to use this server 16:45 -!- ERROR Closing Link: 10.0.0.1 (SASL access only)
- Forcing SASL authentication has caused over 95% of our znc users to quit using SimoSnap
- +l limits to prevent flooding may prevent normal users from joining if limits aren't updated
- +Z which bans non-SSL users will ban lots of mIRC 6.x users who lack SSL
The STatistical Open Proxy Monitor (STOPM) is IRCNow's attempt at a good spam filtering system. It is designed to work automatically and should not require admins or users to memorize an endless series of flags.
We believe an intelligent policy will consider a user's fingerprints holistically and assign a statistical probability to guess whether or not it might be a spam bot.
A spam system has to be able to scale for a network with >50,000 users and determined attackers. To do this, we must build our own spam fighting system.
"The sculptor can more easily carve a fair statue from a rough block, than from the block which has been badly shaped out by another"
How STOPM works
A spam probability score will be assigned ranging from 0.0000 (not spam) to 1.0000 (spam) based on a combination of factors:
- Does the IP address appear on an RBL?
- Does the IP address have DNS and rDNS properly configured?
- Does the IP address come from a residential IP or VPN or other proxy?
- Is the IP address an open proxy based on port scans?
- Is ident enabled?
- Did the client use SSL?
- Does the irc client respond to CTCP requests?
- Does the client have a proper realname and username?
We can also combine this with http and smtp fingerprinting done by services to build a spam score that won't ban innocent users.
We will use ACOPM as our base because it is a minimal open proxy monitor, which we can then customize to our needs.