[Paper Review] A Mixture Model Based Defense for Data Poisoning Attacks Against Naive Bayes Spam Filters
This paper proposes a mixture of naive Bayes models to defend against data poisoning attacks on spam filters, where attackers inject ham-like spam emails to degrade performance. By initializing a second component with ham data and using BIC for model selection, the method isolates attack samples in a separate component, preserving the original spam model and maintaining high accuracy even under strong attacks in both retraining and initial training scenarios.
Naive Bayes spam filters are highly susceptible to data poisoning attacks. Here, known spam sources/blacklisted IPs exploit the fact that their received emails will be treated as (ground truth) labeled spam examples, and used for classifier training (or re-training). The attacking source thus generates emails that will skew the spam model, potentially resulting in great degradation in classifier accuracy. Such attacks are successful mainly because of the poor representation power of the naive Bayes (NB) model, with only a single (component) density to represent spam (plus a possible attack). We propose a defense based on the use of a mixture of NB models. We demonstrate that the learned mixture almost completely isolates the attack in a second NB component, with the original spam component essentially unchanged by the attack. Our approach addresses both the scenario where the classifier is being re-trained in light of new data and, significantly, the more challenging scenario where the attack is embedded in the original spam training set. Even for weak attack strengths, BIC-based model order selection chooses a two-component solution, which invokes the mixture-based defense. Promising results are presented on the TREC 2005 spam corpus.
Motivation & Objective
- To address the vulnerability of Naive Bayes spam filters to data poisoning attacks that skew the spam model using ham-like spam emails.
- To develop a defense effective not only for classifier retraining but also for the more challenging scenario where attacks are embedded in the original training set.
- To isolate attack samples in a secondary mixture component without degrading the original spam model's accuracy.
- To provide a robust, model-selection-driven defense that automatically activates when attacks are present.
Proposed method
- Proposes a mixture of naive Bayes models for spam, with two components: one for legitimate spam and one for potential attack samples.
- Initializes the second component using the ham training data to capture the attack distribution, even if the first component is contaminated.
- Uses the Expectation-Maximization (EM) algorithm to reassign emails to components, effectively separating attack samples into the second component.
- Applies Bayesian Information Criterion (BIC) to select model order, favoring a two-component model when attack strength is sufficient to degrade performance.
- Employs a fixed prior of β₁ = β₂ = 0.5 for component mixing weights during EM initialization.
- Treats the attack as a distinct component, allowing the original spam model to remain largely unaffected by contamination.
Experimental results
Research questions
- RQ1Can a mixture model of naive Bayes classifiers effectively isolate data poisoning attacks in spam filters, even when the attack is embedded in the original training data?
- RQ2Does BIC-based model selection reliably detect the presence of an attack and trigger the defense mechanism?
- RQ3How does the mixture model perform compared to standard naive Bayes under varying attack strengths in both retraining and initial training scenarios?
- RQ4Can the second component effectively capture the attack distribution while preserving the integrity of the original spam model?
Key findings
- In the retraining scenario, the mixture model maintains test accuracy above 0.9 even under attack strengths up to 10⁵, while standard NB degrades rapidly.
- For the 'truncated' attack (more potent), the mixture model still outperforms standard NB, showing robustness to stronger attack distributions.
- BIC consistently selects the two-component model for all attack strengths above zero, confirming automatic defense activation.
- The learned mixture almost completely isolates attack samples in the second component, with minimal contamination of the original spam model.
- In the training scenario, the mixture model matches standard NB at low attack strengths and significantly outperforms it at high attack strengths.
- For 'truncated' attacks above 10⁴, only one attack email was misclassified as true spam in the mixture model, demonstrating high isolation accuracy.
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.