CRLGOct 2, 2025

Evaluating the Robustness of a Production Malware Detection System to Transferable Adversarial Attacks

arXiv:2510.01676v13 citationsh-index: 37Has CodeCCS
Originality Incremental advance
AI Analysis

This addresses a critical security problem for email users and providers by exposing and mitigating a real-world system-level vulnerability in a widely used production system.

The paper tackled the vulnerability of Gmail's malware detection system to adversarial attacks on its ML component, showing that altering just 13 bytes of malware could evade detection in 90% of cases, and proposed a defense that reduced the attack success rate to 20% with 50 bytes of changes.

As deep learning models become widely deployed as components within larger production systems, their individual shortcomings can create system-level vulnerabilities with real-world impact. This paper studies how adversarial attacks targeting an ML component can degrade or bypass an entire production-grade malware detection system, performing a case study analysis of Gmail's pipeline where file-type identification relies on a ML model. The malware detection pipeline in use by Gmail contains a machine learning model that routes each potential malware sample to a specialized malware classifier to improve accuracy and performance. This model, called Magika, has been open sourced. By designing adversarial examples that fool Magika, we can cause the production malware service to incorrectly route malware to an unsuitable malware detector thereby increasing our chance of evading detection. Specifically, by changing just 13 bytes of a malware sample, we can successfully evade Magika in 90% of cases and thereby allow us to send malware files over Gmail. We then turn our attention to defenses, and develop an approach to mitigate the severity of these types of attacks. For our defended production model, a highly resourced adversary requires 50 bytes to achieve just a 20% attack success rate. We implement this defense, and, thanks to a collaboration with Google engineers, it has already been deployed in production for the Gmail classifier.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes