[Paper Review] Improving Spam Detection Based on Structural Similarity
This paper proposes a spam detection algorithm that leverages structural similarity in email sender and recipient contact lists to reduce false positives. By modeling users as vectors in reciprocal contact spaces and clustering them based on similarity, the method uses an auxiliary classifier's past labels to probabilistically infer spam or legitimate status, achieving a 33% reduction in false positives on a real-world SMTP log dataset.
We propose a new detection algorithm that uses structural relationships between senders and recipients of email as the basis for the identification of spam messages. Users and receivers are represented as vectors in their reciprocal spaces. A measure of similarity between vectors is constructed and used to group users into clusters. Knowledge of their classification as past senders/receivers of spam or legitimate mail, comming from an auxiliary detection algorithm, is then used to label these clusters probabilistically. This knowledge comes from an auxiliary algorithm. The measure of similarity between the sender and receiver sets of a new message to the center vector of clusters is then used to asses the possibility of that message being legitimate or spam. We show that the proposed algorithm is able to correct part of the false positives (legitimate messages classified as spam) using a testbed of one week smtp log.
Motivation & Objective
- To address the growing challenge of spam email, which now constitutes 83% of all messages, and the increasing difficulty of detecting it due to adversarial evasion techniques.
- To identify stable, hard-to-change identifiers for spam detection, focusing on structural patterns in sender and recipient contact lists rather than volatile content-based features.
- To reduce false positives in existing spam filters by leveraging structural similarity among users, using a probabilistic clustering approach informed by an auxiliary classifier.
- To demonstrate that structural similarity in contact lists can improve the accuracy of spam detection systems, especially in correcting misclassified legitimate messages.
Proposed method
- Represent each email sender and recipient as a binary vector in a multi-dimensional space defined by all possible contacts, where each dimension indicates whether a message was sent to or received from that contact.
- Compute structural similarity between user vectors using a cosine-based similarity measure to group users into clusters based on shared contact patterns.
- Use an auxiliary spam classifier to label past senders and recipients as spam or legitimate, then apply probabilistic labeling to clusters based on the proportion of spam/legitimate members.
- For new messages, assess the likelihood of being spam or legitimate by measuring the similarity between the sender and recipient contact vectors and their proximity to cluster centers.
- Tune the algorithm's parameters to balance precision and recall, optimizing for minimal false positives while maintaining high detection rates.
- Validate the approach using a real-world SMTP log dataset from a Brazilian university, comparing results against SpamAssassin's classification.
Experimental results
Research questions
- RQ1Can structural similarity in email contact lists serve as a stable and effective identifier for distinguishing spam from legitimate email traffic?
- RQ2To what extent can structural clustering reduce false positives in spam detection when combined with an auxiliary classifier?
- RQ3How does the performance of the proposed method compare to existing content-based spam filters in terms of false positive reduction?
- RQ4Can the algorithm detect evolving spam sender behavior by tracking changes in contact list structures over time?
Key findings
- The proposed algorithm reduced the rate of false positives from 60.33% (original classification by SpamAssassin) to 39.67% when applied to the same test dataset.
- The method successfully grouped users into clusters based on structural similarity, with clusters showing strong correlation to spam or legitimate status as determined by the auxiliary classifier.
- Structural similarity in contact lists proved more stable than content-based features, making it a robust identifier for spam detection despite adversarial changes in sender names, domains, and message content.
- The algorithm demonstrated effectiveness in correcting misclassifications, particularly by reclassifying legitimate messages previously flagged as spam by the auxiliary system.
- The probabilistic clustering framework allows for integration with Bayesian inference and collaborative filtering, enabling continuous refinement based on user feedback and external classifier outputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.