[Paper Review] A Federated Learning Approach for Multi-stage Threat Analysis in Advanced Persistent Threat Campaigns
This paper proposes a 3-phase unsupervised federated learning framework that enables privacy-preserving, multi-stage APT detection by extracting and scoring suspicious log patterns across distributed clients. Using clustering and a custom suspicion scoring mechanism, it reduces analyst workload while maintaining data privacy via Paillier encryption, achieving high pattern detection accuracy on the SoTM 34 dataset.
Multi-stage threats like advanced persistent threats (APT) pose severe risks by stealing data and destroying infrastructure, with detection being challenging. APTs use novel attack vectors and evade signature-based detection by obfuscating their network presence, often going unnoticed due to their novelty. Although machine learning models offer high accuracy, they still struggle to identify true APT behavior, overwhelming analysts with excessive data. Effective detection requires training on multiple datasets from various clients, which introduces privacy issues under regulations like GDPR. To address these challenges, this paper proposes a novel 3-phase unsupervised federated learning (FL) framework to detect APTs. It identifies unique log event types, extracts suspicious patterns from related log events, and orders them by complexity and frequency. The framework ensures privacy through a federated approach and enhances security using Paillier's partial homomorphic encryption. Tested on the SoTM 34 dataset, our framework compares favorably against traditional methods, demonstrating efficient pattern extraction and analysis from log files, reducing analyst workload, and maintaining stringent data privacy. This approach addresses significant gaps in current methodologies, offering a robust solution to APT detection in compliance with privacy laws.
Motivation & Objective
- Address the challenge of detecting advanced persistent threats (APTs) that evade signature-based and traditional ML-based detection due to novel, obfuscated attack vectors.
- Reduce the overwhelming volume of false positives and benign patterns that burden security analysts during APT analysis.
- Enable collaborative model training across multiple organizations without centralizing sensitive log data, ensuring compliance with privacy regulations like GDPR.
- Develop a scalable, privacy-preserving framework that maintains contextual data integrity while improving detection accuracy for rare, complex APT behaviors.
- Minimize reliance on artificial or synthetic datasets by enabling real-world, distributed log analysis through federated learning.
Proposed method
- The framework employs a 3-phase process: (1) log event type identification, (2) clustering of related events using DBSCAN with DateTime and PID as criteria, and (3) suspicion scoring of extracted patterns.
- Federated learning is applied to train the clustering model across multiple clients without sharing raw log data, preserving data privacy.
- Paillier’s partial homomorphic encryption secures model aggregation and communication between clients and the central server.
- A custom suspicion score is computed based on pattern frequency, complexity, and deviation from normal behavior, ranking patterns by threat likelihood.
- Log files from Apache, Linux, and system sources are merged and chronologically ordered to preserve temporal relationships for accurate pattern correlation.
- The framework excludes Snort and Iptables logs from analysis, focusing only on those that confirm APT activity, to avoid noise and improve relevance.

Experimental results
Research questions
- RQ1Can a federated, unsupervised learning framework effectively detect multi-stage APT behaviors without centralized access to raw log data?
- RQ2How can suspicious log patterns be reliably extracted and scored while minimizing false positives and preserving contextual information?
- RQ3To what extent does the proposed framework reduce analyst workload compared to traditional pattern analysis methods?
- RQ4How does the integration of Paillier encryption enhance data privacy in collaborative APT detection across distributed clients?
- RQ5Can the framework maintain high detection accuracy on real-world APT datasets while complying with privacy regulations like GDPR?
Key findings
- The framework successfully extracted 97 unique log event patterns from 569 transactions, with 569 transactions processed from merged Apache and Linux system logs.
- The suspicion scoring mechanism effectively ranked malicious patterns—such as backdoor installation (Cluster 343) and payload download attempts (Cluster 265)—at the top of the list, enabling prioritized analyst review.
- Correlation between AWSTAT script abuse and mailserver load spikes (Cluster 403) was identified and ranked second in suspicion, indicating a potential attack chain.
- The framework reduced the need for manual filtering, preserving contextual data and avoiding loss of critical information that could be discarded by heuristic-based filters.
- The use of pure C-means clustering for evaluation yielded superior cluster quality, supporting the validity of the pattern extraction process.
- The framework demonstrated strong performance on the SoTM 34 dataset, outperforming traditional methods in pattern detection efficiency and privacy compliance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.