Spam detection using web page content: a new battleground

Marco Túlio Ribeiro, Pedro Henrique Calais Guerra, Leonardo Vilela, Adriano Veloso, Dorgival O. Guedes, Wagner Meira Jr., Marcelo H. P. C. Chaves, Klaus Steding-Jessen, Cristine HoepersCEAS 2011

TL;DR

This paper proposes a novel approach to spam detection by analyzing the content of web pages linked within email messages, arguing that this "new battleground" is currently underexplored by spammers. By integrating web page analysis with traditional email content filtering, they achieve a significant improvement in spam detection accuracy, particularly for emails that are difficult to classify based on content alone.

What Problem Does This Paper Address?

The ongoing "arms race" between spammers and spam filter developers has led to increasingly sophisticated obfuscation techniques in email content. Spammers continuously adapt their messages to evade detection by filters that rely solely on email body text. While content-based filters have been effective, they face a constant challenge as spammers evolve their tactics. This paper identifies a critical gap: the content of web pages linked by spam emails is largely ignored by current filters. Spammers, assuming this oversight, tend to leave these web pages relatively unobfuscated, making them a potentially rich source of evidence for identifying spam.

Methods

The core of the proposed methodology involves:

  1. Web Page Crawling: Extracting URLs from incoming email messages and downloading the corresponding web pages. This process involves following redirects and using a text-based browser (lynx) to extract the textual content, stripping away HTML tags and JavaScript.
  2. Web Page Spamicity Score Computation: Utilizing a lazy associative classifier (LAC) to analyze the extracted text from web pages. LAC mines association rules (e.g., "viagra -> spam") to classify pages as spam or ham, providing a "spamicity score" that reflects the certainty of the prediction. This classifier is chosen for its real-time performance, interpretable rules, and well-calibrated probability estimates.
  3. Message Scoring: Combining the spamicity score from the web page analysis with the score obtained from a traditional spam filter (SpamAssassin). This is achieved by adding the web page score (weighted by a parameter $W_p$) to the existing message score. A cost-sensitive approach is also incorporated to allow users to adjust the trade-off between false positives and false negatives.

Datasets

  • Spam Archive Dataset: Used for collecting spam messages and their associated linked web pages. This dataset is updated daily.
  • SpamAssassin Ham Dataset: Used for collecting legitimate (ham) email messages and their linked web pages.

The authors introduce a newly created dataset that associates web page content with email message content, which is made available to researchers. This dataset differs from previous ones by explicitly linking the email message to the web pages it references, enabling the analysis of this relationship.

Key Insights and Ideas

  • The Underexplored Battleground: Web pages linked by spam emails represent a significant, yet largely unexploited, avenue for spam detection. Spammers' current lack of concern for obfuscating these pages makes them an easier target for detection.
  • Complementary Evidence: Web page content provides valuable evidence that can nicely complement existing spam filtering techniques, especially for emails with minimal or obfuscated content.
  • Spammer Adaptation Cost: Requiring spammers to obfuscate both email content and linked web pages would significantly increase their operational costs and complexity, acting as a deterrent.
  • Readability vs. Obfuscation Trade-off: Spammers face a trade-off: highly obfuscated content reduces spam detection rates but also lowers click-through rates and message attractiveness. This trade-off is less pronounced for web pages, which spammers currently leave more readable.

Key Results

  • The proposed method, when integrated with SpamAssassin, can improve spam classification accuracy by up to 10% without increasing the false positive rate.
  • For spam messages that are weakly identified by SpamAssassin rules, the web page classification can provide the necessary evidence to correctly classify them as spam.
  • The rate of false negatives is remarkably lower when using the web page classification approach, even at $W_p=4$.
  • The rate of false positives can be maintained at an acceptable level, and even reduced to zero in some configurations, by adjusting the cost parameter.
  • Frequent terms in web pages (e.g., "viagra," "cialis") are significantly less frequent in email messages due to spammers' obfuscation efforts, highlighting the value of web page content.

Limitations and Future Work

  • Performance Overhead: Adding web page crawling and analysis introduces additional processing time and resource requirements, though the authors suggest it's manageable and scalable.
  • Time-Changing URLs: Spammers might dynamically change web page content after email delivery to evade detection. The authors suggest solutions like background analysis or user notifications.
  • User Privacy: Crawling URLs could potentially confirm to spammers that a user's email address is active if URLs contain encoded identifiers.
  • Abuse of Infrastructure: The crawler could be targeted by attackers sending a high volume of messages with many URLs. This can be mitigated by caching and rate limiting.
  • Spammer Adaptation: Spammers may eventually adapt by obfuscating web pages or making URLs harder to detect. However, this would increase their costs.
  • Future Work:
    • Combining message and web page content more intelligently, perhaps by only analyzing web pages when message content is insufficient.
  • Addressing user privacy concerns and potential infrastructure abuse.
  • Investigating more sophisticated machine learning techniques for web page analysis.

Summary updated

BibTeX
@inproceedings{ribeiro2011spam,
  author = {Marco Túlio Ribeiro and Pedro Henrique Calais Guerra and Leonardo Vilela and Adriano Veloso and Dorgival O. Guedes and Wagner Meira Jr. and Marcelo H. P. C. Chaves and Klaus Steding-Jessen and Cristine Hoepers},
  title = {{Spam detection using web page content: a new battleground}},
  booktitle = {CEAS},
  year = {2011},
  doi = {10.1145/2030376.2030386},
}

Loading related content...

Figure