BinarizedAttack: Structural Poisoning Attacks to Graph-based Anomaly Detection

Yulin Zhu, Yuni Lai, Kaifa Zhao, Xiapu Luo, Mingquan Yuan, Jian Ren, Kai Zhou

Graph-based Anomaly Detection (GAD) has become a cornerstone of modern security, used to sniff out everything from fake social media accounts to fraudulent financial transactions. By looking at the relationships between data points rather than just the points themselves, GAD tools like OddBall are incredibly effective.

However, a new paper titled "BinarizedAttack: Structural Poisoning Attacks to Graph-based Anomaly Detection" reveals a significant blind spot: these systems are highly vulnerable to "structural poisoning." By strategically adding or deleting just a few connections (edges) in a graph, an attacker can make a malicious node look perfectly normal.

TL;DR

The authors introduce BinarizedAttack, a novel gradient-descent method that optimizes structural poisoning attacks against graph-based anomaly detectors. By manipulating a tiny fraction of a graph's edges, they can reduce anomaly scores by up to 90%, allowing malicious actors to evade detection even in "black-box" settings where the attacker doesn't know the underlying detection model.

What Problem Does This Paper Address?

Most research on evading machine learning focuses on "feature-space" attacks—changing the data inside a file or a packet. But in the world of graphs, features are often derived from the structure (e.g., "how many friends does this user have?").

While structural attacks are highly realistic (it's easy to follow a user or create a link), they are mathematically "hard" to pull off. Why? Because graph structure is discrete. You either have an edge or you don't. You can't add "0.5 of a friendship" to make a gradient-descent algorithm happy. Previous attempts used greedy searches or simple relaxations, which often failed to find the most effective way to hide anomalies within a limited "budget" of allowed changes.

Methods

The authors formulate the attack as a bi-level optimization problem: the attacker wants to minimize the anomaly score of target nodes, but the anomaly score itself depends on a regression model that is recalculated every time the graph changes.

To solve this in a discrete domain, they propose BinarizedAttack, inspired by Binarized Neural Networks (BNNs). The key innovations are:

  1. Dual Variables: They maintain a "soft" continuous variable ($\dot{Z}$) to capture gradients during the backward pass and a "discrete dummy" variable ($Z$) to evaluate the objective function during the forward pass.
  2. LASSO Penalty: Instead of a hard constraint on the number of edges changed, they use a LASSO ($L_1$) penalty. This encourages "sparsity," naturally pushing the optimization toward modifying as few edges as possible.
  3. Gradient Guidance: Unlike greedy methods that pick the best single edge to change one by one, BinarizedAttack uses fractional gradients to guide the search for an optimal global graph structure.

Datasets

The researchers evaluated their attack on both synthetic and real-world datasets:

  • Synthetic: Erdos-Renyi (ER) and Barabasi-Albert (BA) random graphs.
  • Real-World:
    • Blogcatalog: A social network of bloggers.
  • Wikivote: Wikipedia's voting data.
  • Bitcoin-Alpha: A "who-trusts-whom" network of Bitcoin traders.

Key Insights and Ideas

  • Structural Attacks are Stealthy: The paper shows that BinarizedAttack doesn't just lower scores; it breaks the specific structural patterns GAD tools look for (like "near-cliques" or "near-stars").
  • The "Unnoticeable" Side Effect: A key finding is that these attacks don't significantly shift the global distribution of features in the graph. To a defender looking at the "big picture," the graph looks unchanged, but the specific target nodes have successfully "blended in."
  • Transferability is Real: Even though the attack was designed to fool OddBall (a regression-based system), it successfully fooled deep-learning-based systems like GAL and ReFeX. This suggests that structural patterns of anomalies are universal enough that an attack on one system often works on others.

Key Results

  • High Efficacy: On the Wikivote dataset, BinarizedAttack outperformed greedy methods by over 13% when the attack budget was high.
  • Minimal Effort: Attackers could decrease anomaly scores by 90% while modifying less than 2% of the edges in the graph.
  • Visual Proof: Using t-SNE visualizations, the authors showed that before an attack, anomalous nodes formed a distinct cluster. After the BinarizedAttack, those nodes were physically moved (in the embedding space) into the middle of the "benign" node cluster.

Limitations and Future Work

The authors tested potential countermeasures, such as using robust statistical estimators like Huber regression or RANSAC. While these methods slightly mitigated the attack's impact, they couldn't stop it entirely.

The main limitation is that the current attack assumes the attacker can modify any edge in the graph (global control). In many real-world scenarios, an attacker might only be able to control edges connected to their own nodes. Investigating these "local" structural attacks and developing more robust, graph-specific defenses remains a critical frontier for future research.

Summary updated

BibTeX
@inproceedings{zhu2022binarizedattack,
  author = {Yulin Zhu and Yuni Lai and Kaifa Zhao and Xiapu Luo and Mingquan Yuan and Jian Ren and Kai Zhou},
  title = {{BinarizedAttack: Structural Poisoning Attacks to Graph-based Anomaly Detection}},
  booktitle = {ICDE},
  year = {2022},
  url = {https://openreview.net/forum?id=VWTegmXLg1},
}
Figure