Introduction
Data clustering is a fundamental tool in computer security, used to identify patterns in unlabeled data such as grouping similar malware samples or detecting botnet traffic. However, most clustering algorithms are designed under the assumption that data follows a natural statistical distribution. In security contexts, this assumption is often violated by active adversaries who deliberately manipulate data to evade detection or disrupt system operations. This paper provides a formal framework for evaluating the security of clustering algorithms against such non-random manipulations.
A Framework for Adversarial Clustering
The authors propose a systematic approach to modeling attacks based on three primary dimensions:
- Adversary's Goal: Attacks can be targeted (hiding specific samples) or indiscriminate (disrupting the entire system). These goals typically aim to violate either integrity (evading detection) or availability (causing a denial of service by rendering clustering results useless).
- Adversary's Knowledge: This ranges from "black-box" scenarios to "white-box" scenarios where the attacker has perfect knowledge of the dataset, features, algorithm, and parameters.
- Adversary's Capability: Attackers may perform poisoning (injecting new malicious samples into the training set) or obfuscation (modifying existing malicious samples to look like legitimate ones).
The "Bridge" Attack Heuristic
The study focuses on single-linkage hierarchical clustering, a popular method in security due to its ability to find clusters of arbitrary shapes. However, the authors demonstrate that this method is exceptionally fragile. Because its merge criterion depends solely on the minimum distance between any two points in different clusters, an attacker can force two distinct clusters to merge by injecting a few strategic "bridge" points in the gap between them.
To find these optimal points, the authors developed efficient bridge-based heuristics that identify the "no man's land" between clusters and place attack samples to maximize the disruption of the clustering hierarchy.
Experimental Evaluation
The framework was tested across three diverse datasets: a synthetic 2D "Banana" dataset, a malware dataset containing 1,000 HTTP traffic samples, and the MNIST handwritten digits dataset.
Key Findings
- Fragility of Single-Linkage: In the malware dataset, controlling just 5% of the data allowed the "Bridge" heuristic to increase the number of clusters from 9 to over 25, effectively shattering the useful structure of the data.
- The Curse of Dimensionality: High-dimensional spaces like MNIST (using digits '0', '1', and '6') proved even more vulnerable. Injecting just two carefully designed samples (0.2% of the data) caused the clustering to fragment into the maximum allowed limit of 100 clusters.
- Successful Obfuscation: The authors successfully "hid" a cluster of the digit '3' inside a cluster of '6's by gradually shifting the features of the '3's. This demonstrates that malicious samples can be modified to evade detection while potentially maintaining their original malicious functionality.
Discussion and Future Work
The results highlight a significant security gap in common clustering practices. While the heuristics developed were specific to single-linkage clustering, the underlying framework is generalizable.
Future research must address several challenges:
- Limited Knowledge Attacks: Evaluating how well these attacks perform when the adversary has incomplete information about the system.
- Inverse Feature-Mapping: Bridging the gap between finding an ideal feature vector for an attack and creating a functional file (e.g., a malware binary) that produces those features.
- Defensive Design: Developing "adversarial clustering" algorithms that are inherently robust to bridge-building and other poisoning tactics, moving beyond simple distance-based merge criteria.
Summary updated