Cerberus: Exploring Federated Prediction of Security Events

Mohammad Naseri, Yufei Han, Enrico Mariconti, Yun Shen, Gianluca Stringhini, Emiliano De Cristofaro · DOI

Abstract

Predicting cyberattacks before they materialize is a cornerstone of proactive defense, yet the data required to train robust predictive models is often sensitive and siloed within individual organizations. This paper explores Cerberus, a federated learning (FL) framework designed to predict future security events by training models across multiple organizations without the need for raw data sharing. While the study demonstrates the feasibility of collaborative, privacy-preserving prediction, it identifies a significant "utility tax" compared to centralized models and uncovers an incentive paradox: the most diverse organizations contribute the most to the global model while gaining the least relative benefit.

Introduction

In the modern threat landscape, reactive security is no longer sufficient. To stop breaches before they escalate, defenders must predict an attacker's next move based on sequences of observed events. However, building high-performing predictive models requires massive, diverse datasets. Traditionally, this necessitated pooling data from thousands of companies into a central repository—a practice that many organizations reject due to the sensitive nature of security logs, which contain metadata about network architecture and user behavior.

Training models locally is often equally ineffective, as individual companies rarely encounter a wide enough variety of attack patterns to learn emerging threats. Cerberus addresses this deadlock by utilizing Federated Learning (FL). In this paradigm, data remains on local servers, and only mathematical model updates are shared and aggregated. This research evaluates whether FL can effectively handle the highly skewed, non-independent and identically distributed (Non-IID) data typical of real-world security logs.

System Design and Methodology

Cerberus employs a Recurrent Neural Network (RNN) with specialized memory cells to capture the sequential patterns of security events. The framework is built upon several key technical components:

  • Federated Averaging (FedAvg): The primary algorithm used to aggregate model updates from disparate participants into a single global model.
  • Non-IIDness Quantification: To measure the diversity of data across organizations, the authors developed a metric based on Kullback-Leibler (KL) divergence. This allows for a granular understanding of how data distribution variance affects model performance.
  • Influence Functions: These serve as a computationally efficient proxy for Shapley values, allowing the system to measure exactly how much a specific participant’s data contributes to the improvement of the global model.
  • Security Stress-Testing: The framework was evaluated against backdoor poisoning attacks (where malicious actors attempt to manipulate specific predictions) and Membership Inference Attacks (MIA) (where attackers attempt to determine if specific records were used in training).

Experimental Setup

The study utilized a massive real-world dataset provided by a major security firm, encompassing nearly 5,000 organizations and 35 million security events collected over a seven-day period. The dataset included 1,465 unique security event types, such as "Trojan.Pandex Activity" and "TCP Bot Traffic." To test the limits of the system, the authors also created synthetic variants, including an "Extreme Non-IID" scenario where each participant only observes a single type of security event.

Key Results and Discussion

The Utility Tax

The transition from a centralized training model to a federated one revealed a clear trade-off. While the centralized model achieved an F1-score of 0.83, the federated Cerberus model achieved an F1-score of 0.70 (with an overall accuracy of 0.78). This 13% drop represents the "utility tax"—the performance cost incurred to maintain data privacy.

The Incentive Paradox

One of the most significant findings involves the distribution of benefits within the federation. "Knowledgeable" participants—those with the most diverse and rich datasets—contribute the most to the global model's accuracy. However, because their local models are already robust, they gain the least from the federation. Conversely, smaller organizations with sparse data see the most significant performance gains. This creates a potential barrier to adoption: high-quality contributors may lack the incentive to join a federation that primarily benefits their less-prepared counterparts.

Security and Privacy Analysis

Cerberus revealed vulnerabilities inherent in federated systems:

  • Backdoor Vulnerability: If only 1% of participants are malicious, they can successfully inject a "backdoor" into the model with 94% accuracy. These attacks are particularly dangerous because they do not degrade the model's performance on standard tasks, making them difficult to detect at the server level.
  • Privacy in Scale: Membership Inference Attacks (MIA) were found to be highly effective when the federation consisted of only 2 or 3 organizations. However, as the number of participants increases, the individual signal of any single organization is diluted, naturally enhancing the privacy of the system.
  • Defensive Trade-offs: While techniques like Centralized Differential Privacy (CDP) and Norm Bounding can mitigate backdoor attacks, they further reduce the model's overall utility, compounding the existing utility tax.

Conclusion and Future Work

Cerberus demonstrates that federated learning is a viable, though imperfect, path forward for collaborative threat intelligence. While it does not yet match the performance of centralized models, it provides a privacy-conscious alternative for organizations that cannot share raw data.

Future research must address the high False Positive Rate (currently 0.27), which can lead to alert fatigue in security operations centers. Additionally, developing sophisticated aggregation methods beyond standard FedAvg and creating robust incentive structures for high-quality contributors will be essential for the real-world deployment of federated security prediction systems.

Summary updated

BibTeX
@inproceedings{naseri2022cerberus,
  author = {Mohammad Naseri and Yufei Han and Enrico Mariconti and Yun Shen and Gianluca Stringhini and Emiliano De Cristofaro},
  title = {{Cerberus: Exploring Federated Prediction of Security Events}},
  booktitle = {CCS},
  year = {2022},
  url = {https://openreview.net/forum?id=5i7F15-8uT},
}
Figure