Behavioral Experiments in Email Filter Evasion

Liyiming Ke, Bo Li, Yevgeniy Vorobeychik

Abstract

Traditional models of adversarial machine learning often assume perfectly rational agents with complete information. This study bridges the gap between theory and practice by conducting a large-scale behavioral experiment with 265 human subjects tasked with evading a spam filter. The results demonstrate that simple defensive strategies, such as introducing 10% noise into filter outputs and increasing feature density, significantly degrade human evasion performance. These findings challenge standard machine learning practices and provide a more realistic foundation for modeling adversarial behavior in cybersecurity.

Introduction

In the ongoing arms race between spam filters and professional spammers, machine learning (ML) has become the primary line of defense. However, the effectiveness of these filters is constantly challenged by human adversaries who adapt their tactics to bypass detection. Most research in this field relies on stylized mathematical models that may not accurately reflect human decision-making. This paper presents a comprehensive human-subject study designed to observe and model how individuals actually behave when attempting to evade a classifier.

Methodology

The researchers recruited 265 participants via Amazon Mechanical Turk to participate in a simulated evasion task. Each participant was presented with a spam or phishing email template and asked to modify it to bypass a Naive Bayes filter while maintaining the original message's effectiveness. Effectiveness was measured by a "closeness" score, penalizing excessive edits.

The experimental interface used by participants to edit spam templates and receive filter feedback.

Participants were allowed up to 20 submissions per template. The experiment manipulated two primary variables: the presence of noise in the filter's feedback (a 10% chance of a flipped decision) and the scoring function used to evaluate the "cost" of edits ($S_1$ for raw changes and $S_2$ for substitution-aware changes).

The Impact of Randomization

One of the study's most significant findings is the deterrent effect of randomization. In a noise-free environment, participants were able to gradually learn the filter's boundaries, improving their success rate over time. However, when 10% noise was introduced, this learning process was fundamentally disrupted.

Filtered rate over successive submissions, comparing noise-free and noisy filter conditions.

As shown in the figure above, the filtered rate remained consistently higher in the noisy condition. Beyond just causing occasional errors, the noise prevented subjects from forming a coherent mental model of the filter, leading to a 30% drop in average evasion scores. This suggests that "strategic uncertainty" is a powerful tool for defenders.

Feature Density and Evasion Tactics

The study also explored the relationship between feature density—the proportion of words in a template used as features by the filter—and evasion success. Contrary to standard ML practices that favor feature reduction to prevent overfitting, the researchers found that higher feature density makes evasion significantly harder. A higher density leaves the adversary with fewer "safe" words to use, forcing them into more detectable modifications. There was a strong negative correlation between feature density and both average (Corr = -0.61) and maximum (Corr = -0.73) evasion scores.

Behaviorally, participants favored character-level substitutions (e.g., using "v1agra" instead of "viagra") over semantic changes like synonyms. Over 45% of all edits were character-level, indicating that humans prioritize visual similarity over linguistic correctness when trying to fool a machine. Furthermore, engagement was found to follow success; repeated failures acted as a psychological demotivator, leading to less effort in subsequent attempts.

Conclusion

By grounding adversarial modeling in human behavior, this research reveals that the "cat-and-mouse" game of spam detection is influenced by psychological factors as much as mathematical ones. The effectiveness of noise and high feature density suggests that filter designers should reconsider traditional optimization goals in favor of strategies that increase the cognitive load and uncertainty for the adversary. Future work will extend these behavioral insights to more complex classifiers and professional adversarial contexts.

Summary updated

BibTeX
@inproceedings{ke2016behavioral,
  author = {Liyiming Ke and Bo Li and Yevgeniy Vorobeychik},
  title = {{Behavioral Experiments in Email Filter Evasion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10061},
}
Figure