Skip to content
#federated learning Open access

Federated drift-resilient android malware detection through lightweight bytecode imaging

Nov 2026 · Discover Computing · 36 references
Advanced Malware Detection Techniques

Abstract

Android malware evolves continuously, causing machine-learning-based detectors trained on historical data to lose effectiveness against newer threats. At the same time, collaborative malware detection may be constrained by organisational and operational requirements that limit centralized pooling of raw application data. Temporal robustness and federated malware detection have largely been studied separately, leaving their combined behaviour under resource-constrained deployment insufficiently understood. This study presents a federated Android malware detection framework based on an Era-as-Client formulation, in which temporally distinct application cohorts are treated as separate federated clients. A lightweight convolutional neural network operates on $$32\times32$$ grayscale representations of Android DEX bytecode. Experiments use 20,000 real-world AndroZoo applications divided into Era-OLD (2013–2017) and Era-NEW (2019–2023), with evaluation performed over five random seeds. Direct OLD-to-NEW transfer reduces accuracy from 96.5% to 91.9%, with malware recall decreasing to 85.1%. This degradation is accompanied by measurable changes in the bytecode-image distribution: mean normalized pixel intensity increases from 0.292 to 0.326, image entropy from 6.18 to 6.44 bits, and active-pixel ratio from 0.735 to 0.794. A Kolmogorov–Smirnov test further confirms a significant temporal distribution difference ( $$D=0.20$$ , $$p < 10^{-10}$$ ). To separate the effect of contemporary labelled-data access from federated optimization, the Era-as-Client model is compared with matched Centralized Pooled and Sequential Adaptation controls. The federated model achieves 96.2% accuracy, 97.8% precision, 94.5% recall, 96.1% F1-score, 0.990 AUC, and 0.989 average precision. Under identical OLD+NEW training-data access, Centralized Pooled training reaches 96.6% accuracy and Sequential Adaptation reaches 96.1%. Thus, the federated model remains within 0.4 percentage points of centralized pooling, and its principal benefit is raw-data locality and decentralized collaborative training rather than superior predictive accuracy. A strict forward-in-time evaluation further reserves all 2022–2023 applications for final testing while restricting training, validation, and adaptation to data available through 2021. Under this setting, the OLD-only model achieves 90.4% accuracy, whereas the Federated Era-as-Client, Centralized Pooled, and Sequential Adaptation settings achieve 94.4%, 94.9%, and 94.2%, respectively, confirming the benefit of more recent training information on a genuinely later unseen period. Multi-client experiments additionally evaluate client-count scaling, non-IID partitioning, and partial participation. Accuracy remains 95.7% with ten clients under fixed local-data volume, 94.2% under strong Dirichlet heterogeneity ( $$\alpha=0.1$$ ), and 95.1% with 30% client participation. The model contains 48,662 trainable parameters, occupies 0.186 MB in FP32 form, and achieves an average CPU inference latency of 5.6 ms. Although $$128\times128$$ inputs improve accuracy by 1.0 percentage point, the selected $$32\times32$$ representation provides 2.6 $$\times$$ lower inference latency, supporting its use for latency-constrained deployment. Overall, the study provides quantitative evidence of temporal distribution shift in bytecode imagery, matched controls for interpreting federated adaptation, strict forward-in-time validation, and multi-client evaluation under controlled federated heterogeneity. The federated design provides raw-data locality by avoiding centralized APK pooling; standard FedAvg is not treated as providing a formal privacy guarantee without additional mechanisms such as differential privacy or secure aggregation.

Read PDF

Similar papers

#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#machine learning Review Open access Jun 2014

Why Early-Stage Software Startups Fail: A Behavioral Framework

This state-of-practice investigation was performed using a literature review followed by a multiple-case study approach and presents how inconsistency between managerial strategies and execution can lead to failure by means of a behavioral framework.

Carmine Giardino, Xiaofeng Wang, P. Abrahamsson · 175 citations · ⚡19
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#machine learning Review Open access May 2016

Key Challenges in Software Startups Across Life Cycle Stages

It is found that what perceived as biggest challenges by software startups do vary across different life cycle stages, even though its significance decreases when the learning focuses of the startups move from problem to solution and their products mature.

Xiaofeng Wang, Henry Edison, Sohaib Shahid Bajwa et al. · 62 citations · ⚡6

Related blog posts

MIT News · Artificial Intelligence Nov 17, 2026

Learning the language of machine learning

By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.

Microsoft Research Blog Nov 16, 2026

TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient

AI coding agents are increasingly help developers fix bugs and build features largely on their own, but every interaction with their models consumes tokens. In each session, an agent sends instructions, tool descriptions, and session history to its model. Most efforts to reduce this cost focus on individual tasks. Yet developers return to the same […] The post TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.