FARE: Enabling Fine-grained Attack Categorization under Low-quality Labeled Data

Junjie Liang, Wenbo Guo, Tongbo Luo, Vasant G. Honavar, Gang Wang, Xinyu Xing

FARE: Enabling Fine-grained Attack Categorization under Low-quality Labeled Data

Introduction

In cybersecurity, supervised machine learning is a cornerstone for detecting threats such as malware and fraud. However, these models are inherently limited by their reliance on high-quality, expert-labeled data. In practice, labeling is often a significant bottleneck, leading to two primary "low-quality" label issues: missing classes and coarse-grained labels.

Missing classes occur when new attack families emerge that were not present in the training set, leaving models blind to novel threats. Coarse-grained labels arise when analysts use generic tags (e.g., "abusive") to save time, masking distinct behaviors that require specific countermeasures. Traditional semi-supervised methods often fail in these scenarios because they assume the label set is complete. To address this, we present FARE (Fine-grained Attack Categorization through Representation Ensemble), a framework designed to uncover fine-grained attack structures even with deficient labeling.

The FARE Framework

FARE shifts the paradigm from pure classification to fine-grained clustering. It leverages the underlying distribution of data to correct and refine limited human labels. The pipeline consists of three integrated stages.

The complete FARE pipeline, illustrating the transition from neighborhood modeling to latent space projection and final clustering.

1. Ensemble of Neighborhood Models

Rather than relying on a single label source, FARE utilizes an ensemble of unsupervised algorithms—such as K-means, DBSCAN, and Deep Embedding Clustering—alongside existing labels. This ensemble generates a "neighborhood relationship table" ($y_{ij}$), which records whether different models agree that pairs of data points belong together. This consensus-based approach helps filter out noise from incorrect or overly broad labels.

2. Input Transformation Network

The second stage involves training a Multilayer Perceptron (MLP) using metric learning. By employing a contrastive loss function, the network maps high-dimensional input data into a low-dimensional latent space. In this space, "neighbors" identified by the ensemble are pulled closer together, while "non-neighbors" are pushed apart. This projection significantly enhances the separability of underlying clusters compared to the raw feature space.

3. Final Clustering and Discovery

In the optimized latent space, FARE applies K-means clustering. A key feature of this stage is the use of silhouette coefficients to automatically estimate the optimal number of clusters ($K$). This allows the system to discover new attack families that were entirely absent or merged in the original training labels.

Evaluation and Real-world Impact

FARE was evaluated across diverse domains, including Android malware (270k samples), network intrusion (KDDCUP 99), and traffic sign benchmarks (GTSRB).

  • Robustness to Missing Classes: In scenarios where the majority of malware classes were missing from training labels, FARE maintained high performance (AMI ~0.75), vastly outperforming state-of-the-art semi-supervised baselines like MixMatch, which dropped below 0.25 AMI.
  • Label Noise Tolerance: The framework proved resilient even when up to 75% of labels were corrupted, as the ensemble's consensus effectively outweighed individual labeling errors.
  • Production Success at JD.com: Deployed at the e-commerce giant JD.com, FARE identified 2,000 previously undetected fraudulent accounts. A subsequent A/B test using forced two-factor authentication resulted in a 0% pass rate for these accounts, confirming their fraudulent nature. Furthermore, FARE uncovered a novel fraud type: "price mistagging" exploitation.

Discussion and Limitations

The core insight of FARE is that the structural truth of data often resides in its distribution rather than its labels. By using unsupervised models to guide limited labels, FARE provides a robust mechanism for fine-grained categorization.

However, some challenges remain. FARE's performance can degrade under extreme class imbalance (e.g., a single class exceeding 98% of samples). Additionally, the computational cost of certain ensemble components like DBSCAN can be high on massive datasets, necessitating parallelization. Future work will also explore FARE's resilience against adversarial evasion attacks, where attackers intentionally manipulate features to blend into benign clusters.

Summary updated

BibTeX
@inproceedings{liang2021fare,
  author = {Junjie Liang and Wenbo Guo and Tongbo Luo and Vasant G. Honavar and Gang Wang and Xinyu Xing},
  title = {{FARE: Enabling Fine-grained Attack Categorization under Low-quality Labeled Data}},
  booktitle = {NDSS},
  year = {2021},
}
Figure