Slamming Spam for FreeBy Channel Insider Staff | Posted 2005-09-21 Email Print
WEBINAR: Event Date: Tues, December 5, 2017 at 1:00 p.m. ET/10:00 a.m. PT
How Real-World Numbers Make the Case for SSDs in the Data Center REGISTER >
Open-source anti-spam applications that use statistical analysis can pick out spam much more accurately than Bayesian filters, once they get enough training.Jonathan Zdziarski knows how open-source spam-filtering programs work. He wrote one.
Even so, Zdziarski's creation DSPAMand similar programs that are designed to get better at their job over timesometimes gives its creator the willies. It usually happens when the application blocks spam messages that appear absolutely legitimate at first blush.
"It gets really accurate after the first 12 months," said Zdziarski, referring to DSPAM's built-in ability to "learn" how to filter mail. "As you train it more, and as it learns more on its own, it gets to this level of accuracy that's really spooky."
"Spammers have been trying to evade statistical filters for a few years, to no avail," he writes in his book. "As spammers change their messages to evade the filters, the filters always seem to have an eerie way of detecting their new tricksusually without the end user even noticing."
They do that with statistical analysis not only of the content and subject lines of the e-mail, but by using a form of artificial intelligence to learn and adapt to their users' personal preferences.
Most current commercial spam filters use Bayesian analysis to filter spam. These programs are usually based on a "heuristic" model, similar to most anti-virus applications, in which programmers compile lists of "detection rules" and blacklists used by the software to compare ingredients of incoming mail with telltale factors found in known spam.
Based on a theorem developed by 18th century mathematician Thomas Bayesand suggested in 2002 in a paper titled "A Plan for Spam" by author Paul GrahamBayesian language classification filters break down e-mail into smaller components called "tokens," which are assigned numeric values based on their "spamminess."
Savvy spammers are continuously concocting ingenious ways of tricking these outdated programs. For end users of heuristic spam blockers, the only way to keep their in-boxes relatively free of junk mail is to repeatedly update the software by downloading the latest detection rules and blacklists.
This scenario benefits the companies selling heuristic filters (and that includes most of the popular, commercially available offerings) because they require users to purchase subscriptions in order to download the newest detection rules.
"There are some applications out there that do a good job, but for the most part they are driven by this business model," complains Zdziarski. "Any [spam blocker] company out there that wants to stay alive needs monthly or annually recurring revenue."
If a heuristic spam blocker is not injected with updates, it quickly loses effectiveness.
The programs also use historical data sets, which serve as their memory of "characteristics that the filter has learned to be identifying characteristics of spam [and nonspam]," Zdziarski writes.
The Bayesian filter's analysis engine is its reasoning tool, using input from the tokenizer and historical data set to determine whether messages are spam or ham (legitimate mail).
Zdziarski said most commercial spam blockers are about 95 percent accurate. A well-tuned statistical filter can consistently be 10 times more accurate. "It's a huge difference," he said.