NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Backdoor Attack Against One-Class Sequential Anomaly Detection Models

He Cheng, Shuhan Yuan

TL;DR

This paper introduces a novel backdoor attack specifically designed for one-class sequential anomaly detection models. The attack cleverly crafts imperceptible triggers from normal data and injects them into the training process, causing the model to misclassify triggered anomalous sequences as normal, posing a significant security threat to these critical systems.

What Problem Does This Paper Address?

Deep learning models are increasingly used for anomaly detection in sequential data, which has wide-ranging applications. However, these models are susceptible to "backdoor attacks." In a backdoor attack, a model behaves normally on clean data but misbehaves when presented with specific "triggers." For anomaly detection, this means a compromised model might incorrectly label malicious or anomalous sequences as normal if they contain the trigger. Existing backdoor attacks often rely on visible triggers or require access to abnormal data during training, which isn't always feasible. This paper addresses the challenge of creating imperceptible backdoor attacks against one-class sequential anomaly detection models, where the goal is to make the model miss anomalies that contain a hidden trigger.

Methods

The proposed attack framework has two main components:

  • Trigger Generation: The core idea is to create subtle, imperceptible "triggers" from the normal training data itself. The authors achieve this by:
  • Selecting a subset of normal sequences.
  • Creating perturbed versions of these sequences by replacing a few entries with other normal entries from the same sequence or the training set. These perturbed sequences are still considered normal by the model.
  • The replaced entries effectively become "placeholders" for future malicious injections. The key insight is that by focusing on these placeholders, the model might learn to ignore them, making it easier to inject anomalies later.
  • Backdoor Injection: This phase modifies the training objective of the anomaly detection model to incorporate the generated triggers. The authors propose two new learning objectives:
  • Perturbed Sequence Center Drifting: This aims to pull the representations of the perturbed (but still normal) sequences closer to the center of the original normal data distribution in the latent space. This helps ensure that even with the trigger, the perturbed sequences remain within the normal hypersphere.
  • Perturbed Sequence Representation Drifting: This objective maximizes the mutual information between the representations of the perturbed sequences and their original benign counterparts. The goal is to make the perturbed sequences indistinguishable from normal ones in the latent space, further masking the presence of the trigger.

These objectives are integrated into the existing training loss of one-class anomaly detection models like Deep SVDD and OC4Seq.

Datasets

The authors evaluate their attack on two publicly available datasets commonly used for sequential anomaly detection:

  • BlueGene/L (BGL): A dataset of system logs from a supercomputer.
  • Thunderbird: A dataset of system logs from a different source.

They create a benign test set to evaluate the model's performance on normal data and a poisoned test set to assess the attack's success rate.

Key Insights and Ideas

  • Leveraging Normal Data for Triggers: The most significant insight is that effective triggers can be generated solely from normal data. This makes the attack stealthier as it doesn't require access to or knowledge of anomalous data during the trigger creation phase.
  • Placeholder Strategy: By creating perturbed sequences with specific "placeholder" positions, the attack trains the model to focus on the surrounding context rather than the placeholder itself. This makes the model more susceptible to misclassifying anomalies injected at these placeholders.
  • Dual Objective for Stealth: The combination of "center drifting" and "representation drifting" is crucial. Center drifting keeps the triggered sequences within the normal boundary, while representation drifting ensures they look similar to normal data in the latent space, making them hard to detect.
  • Impact of Trigger Size: The attack becomes more effective as the number of injected abnormal entries (placeholders) increases, while benign models struggle to maintain high detection rates.

Key Results

  • Benign Performance Maintained: Infected models (Deep SVDD and OC4Seq) showed performance very close to their benign counterparts on clean datasets, indicating the attack doesn't significantly degrade normal operation. For example, F1 scores for Deep SVDD on BGL were 93.93% (benign) vs. 95.15% (infected).
  • High Attack Success Rate (ASR): The proposed attack achieved high ASR, meaning it successfully tricked the infected models into classifying triggered anomalous sequences as normal. For instance, with 6 abnormal entries injected, the ASR for Deep SVDD on BGL reached 86.95%, significantly outperforming benign models which dropped to 40.86%.
  • Robustness to Multiple Anomalies: The infected models maintained a high ASR even when multiple abnormal entries were injected, whereas benign models' performance degraded significantly.
  • Hyperparameter Sensitivity: The attack's effectiveness was analyzed with respect to hyperparameters $\alpha$ and $\beta$. Generally, increasing $\alpha$ and $\beta$ led to higher ASR, with the attack stabilizing at high levels, demonstrating the robustness of the learned objectives.

Limitations and Future Work

  • Limitations:
    • The paper focuses on distance-based one-class sequential anomaly detection models (Deep SVDD, OC4Seq). The applicability to other types of anomaly detection models is not explored.
  • The attack requires control over the training process and dataset.
  • Future Work: The authors explicitly state their future plan is to "study how to effectively defend the backdoor attack against the sequential anomaly detection models." This suggests an ongoing research direction towards developing robust defenses.

Summary updated

BibTeX
@inproceedings{cheng2024backdoor,
  author = {He Cheng and Shuhan Yuan},
  title = {{Backdoor Attack Against One-Class Sequential Anomaly Detection Models}},
  booktitle = {Pakdd},
  year = {2024},
  doi = {10.1007/978-981-97-2259-4\_20},
}
Figure