paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MAGIKA: AI-Powered Content-Type Detection

MAGIKA:AI 驱动的内容类型检测
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 1/10 · 该论文研究基于深度学习的内容类型检测,属于安全与文件识别应用,与用户关注的形式化/静态分析、Agentic 程序、浮点程序分析、贝叶斯程序分析及 LLM 交叉方向基本无关。虽然涉及机器学习与工业落地,但未触及程序分析或 LLM/Agent 的核心问题。引用 2 inbox
Yanick Fratantonio, Luca Invernizzi, Loua Farah, Kurt Thomas, Marina Zhang, Ange Albertini, Francois Galilee, Giancarlo Metitieri, Julien Cretin, Alex Petit-Bianco, David Tao, Elie Bursztein
crossref: 2026-09-12

AI 速览

一句话:提出深度学习内容类型检测工具 Magika,模型仅 1MB,百万文件上平均 F1 达 99%,优于现有工具。

内容类型检测旨在识别任意字节序列所编码的数据,对操作系统、开发与逆向工程环境及安全应用至关重要。本文提出 Magika,一种 AI 驱动的内容类型检测工具,其核心是可在单 CPU 上运行、仅需 1MB 内存存储权重的深度学习模型。作者在超过 100 种内容类型、逾 100 万个文件的测试集上评估,Magika 平均 F1 达到 99%,优于现有工具。工具以 Apache 2 许可证开源,模型与训练流水线公开,并已被 Gmail、Google Drive、VirusTotal 及 Apache Tika 等采用。当前版本已支持 200 多种内容类型。

问题
如何从任意字节序列中准确识别数据的内容类型;该任务对操作系统、开发与逆向工程环境和安全应用至关重要。
方法
提出 Magika,使用深度学习模型进行内容类型检测,模型可在单 CPU 上运行且权重仅占 1MB,并开源模型与训练流水线。
评估
在超过 100 种内容类型、逾 100 万个文件的测试集上评估,平均 F1 达 99%,优于现有内容类型检测工具,并报告了 Gmail、Google Drive、VirusTotal、Apache Tika 等实际采用情况。
原文摘要(Abstract)

The task of content-type detection—which entails identifying the data encoded in an arbitrary byte sequence—is critical for operating systems, development, reverse engineering environments, and a variety of security applications. In this paper, we introduce Magika, a novel AI-powered content-type detection tool. Under the hood, Magika employs a deep learning model that can execute on a single CPU with just 1MB of memory to store the model's weights. We show that Magika achieves an average F1 score of 99% across over a hundred content types and a test set of more than 1M files, outperforming all existing content-type detection tools today. To foster adoption and improvements, we open source Magika under an Apache 2 license on GitHub and we make our model and training pipeline publicly available. Our tool has already seen adoption by Gmail and Google Drive for attachment scanning, by VirusTotal to aid with malware analysis, and by prominent open-source projects such as Apache Tika. While this paper focuses on the initial version, Magika continues to evolve with support for over 200 content types now available. The latest developments can be found at https://github.com/google/magika.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8686,
  title = {MAGIKA: AI-Powered Content-Type Detection},
  author = {Yanick Fratantonio and Luca Invernizzi and Loua Farah and Kurt Thomas and Marina Zhang and Ange Albertini and Francois Galilee and Giancarlo Metitieri and Julien Cretin and Alex Petit-Bianco and David Tao and Elie Bursztein},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00158}
}