Attacking Graph-based Classification via Manipulating the Graph Structure

Binghui Wang, Neil Zhenqiang Gong

Introduction

Graph-based classification (GBC) is a fundamental tool in modern security analytics, used extensively for tasks such as malware detection and identifying fraudulent social media accounts. These methods typically fall into two categories: Graph Neural Networks (GNNs) and Collective Classification (CC). While GNNs have been the subject of significant adversarial research, CC methods—often preferred in industrial settings for their efficiency—have remained largely unexamined from a security perspective.

Collective classification operates on the "guilt by association" principle: a node's label is influenced by the labels of its neighbors. This paper investigates how easily an attacker can subvert this logic by manipulating the graph's structure—adding or deleting edges—to allow malicious nodes to evade detection.

Methodology: Structural Optimization for Evasion

The researchers focused on Linearized Loopy Belief Propagation (LinLBP), a state-of-the-art CC method. They formulated the attack as an optimization problem designed to maximize the False Negative Rate (FNR) of target nodes while minimizing the cost of edge modifications.

Because edge existence is a binary state, the optimization problem is discrete and non-linear. The authors addressed this using several key techniques:

  1. Continuous Relaxation: Binary edge decisions were treated as continuous values between 0 and 1 during optimization and discretized afterward.
  2. Search Space Pruning: To maintain efficiency, the optimization focused only on edges directly connected to target nodes.
  3. Lagrangian Multipliers: The evasion constraint was integrated into the objective function as a penalty term based on posterior reputation scores.
  4. Iterative Gradient Descent: A projected gradient descent approach was used to alternately update reputation scores and adversarial modifications.

The attack was evaluated under various threat models, including "Full Knowledge" and "Partial Knowledge" (where the attacker has limited access to the graph or model parameters).

Experimental Setup

The study utilized four diverse graph datasets, ranging from small social networks to massive real-world communication graphs.

Table 1: Statistics of the four graph datasets used in the evaluation.

For the Facebook, Enron, and Epinions datasets, "positive" (malicious) nodes were synthesized by replicating the structure of benign nodes to ensure that the attack's success was due to the optimization strategy rather than obvious structural anomalies. The Twitter dataset provided a real-world testbed with actual fraudulent users.

Performance Evaluation and Key Insights

The proposed attack proved highly effective across all datasets and selection strategies (RAND, CC, and CLOSE). By strategically adding edges to high-reputation nodes or deleting edges to known malicious nodes, the attacker could effectively "dissociate" malicious targets from their suspicious context.

Table 2: Evasion performance (FNR) and associated costs across different datasets and node selection strategies (RAND, CC, CLOSE).

Key Findings:

  • High Evasion Rates: In most scenarios, the attack increased the FNR from 0% to over 85%, rendering the CC classifiers largely ineffective.
  • Transferability: Attacks optimized for LinLBP showed significant transferability to other CC methods (e.g., Random Walk) and even some GNN-based embeddings like DeepWalk. However, Graph Convolutional Networks (GCNs) showed higher relative robustness.
  • Efficiency: The optimization-based attack is remarkably fast. On the Facebook dataset, it achieved a 0.94 FNR in just 10 seconds, whereas the GNN-specific Nettack required 9 hours to reach a 0.22 FNR on the same target.
  • Minimal Knowledge Requirements: The attack remained potent even with only 20% knowledge of the graph structure, demonstrating its practicality in real-world scenarios where an attacker's view is limited.

Conclusion

This research highlights a critical vulnerability in collective classification systems. While CC methods are efficient, their reliance on local structural associations makes them susceptible to targeted edge manipulations. Future work must focus on developing adversarially robust graph classifiers and monitoring for structural anomalies, such as shifts in clustering coefficients, which may signal an ongoing attack.

Summary updated

BibTeX
@inproceedings{wang2019attacking,
  author = {Binghui Wang and Neil Zhenqiang Gong},
  title = {{Attacking Graph-based Classification via Manipulating the Graph Structure}},
  booktitle = {CCS},
  year = {2019},
  url = {https://openreview.net/forum?id=kqvh_39WV3},
}
Figure