Magika:基于AI的内容类型检测
Magika: AI-Powered Content-Type Detection
AI总结:
本文提出新型AI内容类型检测工具Magika,采用仅需1MB内存的深度学习模型,在超过1M文件测试集上实现99%平均F1分数,超越现有工具并已开源,被Gmail和VirusTotal采用。
摘要:
内容类型检测任务——即识别任意字节序列中编码的数据——对于操作系统、开发、逆向工程环境以及各种安全应用至关重要。在本文中,我们介绍了 Magika,一种新型基于 AI 的内容类型检测工具。在底层,Magika 采用了一个深度学习模型,该模型可在单个 CPU 上运行,仅需 1MB 内存来存储模型权重。我们展示了 Magika 在超过一百种内容类型和包含超过 1M 文件的测试集上实现了 99% 的平均 F1 分数,超越了当今所有现有的内容类型检测工具。为了促进采用和改进,我们在 GitHub 上以 Apache 2 许可证开源了 Magika,并公开了我们的模型和训练管道。我们的工具已被 Gmail 电子邮件提供商用于附件扫描,并已集成至 VirusTotal 以辅助恶意软件分析。我们注意到本文讨论的是 Magika 的首次迭代,更新的版本已支持超过 200 种内容类型。感兴趣的读者可在 Magika GitHub 仓库查看最新开发进展,地址为 https://github.com/google/magika。
英文摘要:
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. In order to foster adoption and improvements, we open source Magika under an Apache 2 license on GitHub and make our model and training pipeline publicly available. Our tool has already seen adoption by the Gmail email provider for attachment scanning, and it has been integrated with VirusTotal to aid with malware analysis. We note that this paper discusses the first iteration of Magika, and a more recent version already supports more than 200 content types. The interested reader can see the latest development on the Magika GitHub repository, available at https://github.com/google/magika.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。