
Why ransomware detection needs a new approach
Ransomware has become one of the most disruptive forms of cyberattack in recent years, locking entire infrastructures, encrypting critical data, and demanding payment for decryption keys.
The financial and operational damage is now estimated to exceed trillions of dollars annually, impacting industries from healthcare and finance to manufacturing and government.
Traditional malware detection systems rely on signature-based methods — matching files against known attack patterns. While effective for previously identified threats, they fail to recognize new, obfuscated, or polymorphic variants, which evolve faster than centralized defense systems can learn.
Machine learning (ML) has transformed this landscape by detecting behavioral patterns — such as anomalous file access, cryptographic operations, or unusual process activity — that reveal malicious intent.
But training ML-based detectors introduces a major challenge: these systems require large, diverse, and up-to-date datasets, often scattered across different organizations and jurisdictions.
In most cases, sharing raw telemetry or security logs is impossible due to privacy laws (GDPR, HIPAA), contractual constraints, and regulatory compliance requirements.
This is where Federated Learning (FL) offers a breakthrough.

“Privacy-preserving FL over customers’ endpoints”: showing distributed nodes training locally and sharing only model updates.
A federated solution to a global cybersecurity problem
Sherpa.ai’s research team explored how Federated Learning can enable organizations to collaboratively train AI models for ransomware detection without ever moving sensitive data.
Instead of uploading logs or features to a central location, each node (for example, a client server or firewall appliance) trains locally using its private data and shares only encrypted model updates.
These updates are aggregated into a global model that improves with each communication round — without exposing individual datasets.
This paradigm is especially relevant for cybersecurity companies, including both software and hardware vendors, that operate at global scale — often protecting millions of endpoints where local data cannot legally or technically be centralized.
Examples include companies like CrowdStrike, Fortinet, Cisco, Microsoft, and Google, all of which deploy agents that collect critical telemetry under strict privacy and data-sovereignty requirements.

“ML lifecycle for ransomware detection”: depicting the training and protection phases, from labeled benign/malicious samples to real-time deployment.
From centralized data to distributed intelligence
Centralized training remains the theoretical upper bound for performance, but it is increasingly unfeasible in real-world settings.
Aggregating sensitive data from hospitals, banks, or industrial networks into a single location creates compliance risks, latency bottlenecks, and a single point of failure.
In contrast, federated architectures align with modern regulatory frameworks and improve both security and resilience.

“Centralized architecture”: illustrating the risk of private data being transferred to a single data repository.
Sherpa.ai’s implementation focuses on Horizontal Federated Learning (HFL) — where each participant node holds different samples with the same feature space.
Each node trains locally, sends model updates to a secure central aggregator, and receives a new global model.
This process repeats until convergence, ensuring privacy while leveraging the collective intelligence of the network.

“Federated architecture implemented on the Sherpa.ai FL platform”: showing nodes training locally and sharing encrypted model updates.
The dataset: real ransomware behavior
To evaluate the approach, the team used the Ransomware Storage Access Patterns (RanSAP) dataset — a benchmark that records read/write access patterns at the disk level while executing both benign software and multiple ransomware families (including WannaCry, Ryuk, and GandCrab).
The dataset captures how ransomware interacts with the storage subsystem, using BitVisor, a hypervisor that intercepts input/output operations between the OS and storage device.
By recording entropy, read/write throughput, and logical block access variability, the model learns to differentiate normal usage from malicious encryption activity.

“Overview of the RanSAP data collection environment”: diagram of the test machine setup and monitoring process.
Each of the four simulated servers represents a distinct endpoint with unique characteristics — mimicking the diversity found in real-world deployments.
These servers form the federated nodes, each training independently on its portion of the dataset.
Experimental setup
The research compared three scenarios:
- Single-node training: each server trains on its own dataset independently.
- Centralized training: all datasets are combined into a single training pool (ideal but unrealistic).
- Federated training: the Sherpa.ai FL platform coordinates training across nodes, aggregating model updates while keeping all raw data local.
Each model was tested on a shared, centralized test dataset to fairly compare accuracy, precision, recall, and F1-score.
Results: performance without compromising privacy
The federated approach achieved nearly the same accuracy as centralized training — and substantially outperformed any single-node model.

“Metrics comparison across nodes, centralized, and federated models.”
The federated model improved accuracy by 9% over the weakest local model and achieved near-identical precision and recall to the centralized approach — all while keeping data fully private and compliant.
Training time was under two minutes thanks to Sherpa.ai’s communication-efficient implementation of Federated Random Forests, requiring only two communication rounds between nodes and the aggregator.
Applications and impact
This privacy-preserving approach is immediately applicable to:
- Cybersecurity vendors: to improve endpoint protection and firewall systems across millions of devices.
- Cloud and storage providers: to detect emerging ransomware patterns without transferring logs.
- Industrial and IoT systems: to secure manufacturing or critical infrastructure without exposing operational telemetry.
It also aligns with green AI objectives, reducing bandwidth and energy consumption by orders of magnitude compared to centralized learning.
Conclusion
The experiments demonstrate that Federated Learning can deliver enterprise-grade ransomware detection while maintaining complete data sovereignty and compliance.
By training collaboratively across isolated nodes, Sherpa.ai’s FL platform achieves:
- High accuracy and robustness comparable to centralized models,
- Full privacy preservation under GDPR and global regulations,
- Scalability across millions of endpoints and organizations.
As cyber threats grow in sophistication and data privacy laws tighten, federated intelligence offers a path toward secure, sustainable, and cooperative cyber defense.