Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
magika — 快速且准确的AI驱动文件内容类型检测 | Kitploit
工具/GitHubGitHub/google/magika
通用工具静态分析代码分析取证分析恶意软件分析机器学习
GitHubgoogle/magika

magika

快速且准确的AI驱动文件内容类型检测

查看仓库网站
17.9k1.1k652026年12月2日Kitploit 审核通过
分享
内容在请求的语言中不可用。显示英文版本。

Magika

image NPM Version image image Go Version

OpenSSF Best Practices CodeQL Python Coverage Actions status PyPI Monthly Downloads PyPI Downloads

Magika is a novel AI-powered file type detection tool that relies on the recent advance of deep learning to provide accurate detection. Under the hood, Magika employs a custom, highly optimized model that only weighs about a few MBs, and enables precise file identification within milliseconds, even when running on a single CPU. Magika has been trained and evaluated on a dataset of ~100M samples across 200+ content types (covering both binary and textual file formats), and it achieves an average ~99% accuracy on our test set.

[!NOTE] Magika 2.0 release candidates are now on PyPI (2.0.0rc0 and above) and crates.io (2.0.0-rc.0 and above for magika and magika-cli) — help testing is very welcome!

Try it with pip install --pre -U magika (Python API + bundled CLI) or cargo install --locked magika-cli --version "^2.0.0-rc.0" (Rust CLI; prebuilt binaries on GitHub Releases). Share feedback via GitHub Issues; see the Python, Rust CLI, and Rust library changelogs for details.

What's new in the 2.0 release candidates:

  • Faster, zero-dependency Rust core (~5x smaller footprint): A natively compiled pure-Rust tract runtime replaces ONNX Runtime across Rust and the PyO3 Python bindings — dropping external runtime deps (~5x smaller disk footprint overall) and speeding up startup and inference, even while still using standard_v3_3 under the hood.
  • Cohesive pipeline (YARA rules, resolvers, & ML): Custom YARA rules (bring your own detections for hotfixes while waiting for upstream patches, or other custom needs), native format resolvers (up to 500x faster on supported binary formats, with container decompression), and the ML model work together out of the box.
  • 400+ supported content types (up from 216): See the full list.
  • GPU acceleration & parallel batching: Metal (macOS) and CUDA (Rust CLI/crate) with non-blocking startup (classifying on CPU while GPU initializes), plus parallel batch identification in Rust.
  • Broader platform support: Expanded pre-built wheels and binaries, including musl environments like Alpine Linux.

Coming in subsequent 2.0 release candidates:

  • 1000+ content types: Further coverage expansion via additional native format resolvers.
  • Next-generation ML model: A smaller, faster model with stronger short-snippet detection.

Here is an example of what Magika command line output looks like:

Magika is used at scale to help improve Google users' safety by routing Gmail, Drive, and Safe Browsing files to the proper security and content policy scanners, processing hundreds billions samples on a weekly basis. Magika has also been integrated with VirusTotal (example) and abuse.ch (example).

For more context you can read our initial announcement post on Google's OSS blog, you can consult Magika's website, and you can read more in our research paper, published at the IEEE/ACM International Conference on Software Engineering (ICSE) 2025.

You can try Magika without installing anything by using our web demo, which runs locally in your browser!

Highlights

  • Available as a command line tool written in Rust, a Python API, and additional bindings for Rust, JavaScript/TypeScript (with an experimental npm package, which powers our web demo), and GoLang (WIP).
  • Trained and evaluated on a dataset of ~100M files across 200+ content types.
  • On our test set, Magika achieves ~99% average precision and recall, outperforming existing approaches -- especially on textual content types.
  • After the model is loaded (which is a one-off overhead), the inference time is about 5ms per file, even when run on a single CPU.
  • You can invoke Magika with even thousands of files at the same time. You can also use -r for recursively scanning a directory.
  • Near-constant inference time, independently from the file size; Magika only uses a limited subset of the file's content.
  • Magika uses a per-content-type threshold system that determines whether to "trust" the prediction for the model, or whether to return a generic label, such as "Generic text document" or "Unknown binary data".
  • The tolerance to errors can be controlled via different prediction modes, such as high-confidence, medium-confidence, and best-guess.
  • The client and the bindings are already open source, and more is coming soon!

Table of Contents

  1. Getting Started
    1. Installation
    2. Quick Start
  2. Documentation
  3. Security Vulnerabilities
  4. License
  5. Disclaimer

Getting Started

Installation

Command Line Tool

Magika ships a CLI written in Rust, and can be installed in several ways.

Via magika python package:

pipx install magika

Via brew (macOS / Linux)

brew install magika

Via installer script:

curl -LsSf https://securityresearch.google/magika/install.sh | sh

or:

powershell -ExecutionPolicy Bypass -c "irm https://securityresearch.google/magika/install.ps1 | iex"

Via magika-cli Rust package:

cargo install --locked magika-cli

Python package

pip install magika

JavaScript package

下载工具

相关工具

  • CyberChef

    网络瑞士军刀 - 用于加密、编码、压缩和数据分析的网络应用

  • SecLists

    精心策划的用于安全评估的字典集合,包括用户名、密码、URL、模糊测试载荷以及用于渗透测试和情报收集的敏感数据模式。

  • scapy

    基于 Python 的交互式数据包操作库,用于在多种协议中伪造、解码、发送、捕获和分析网络数据包,支持扫描、路由追踪、攻击和网络发现。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    841
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    449
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    387
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    348
  • 6

    faraday

    infobyte/faraday

    面向攻击性安全、漏洞管理和自主渗透测试的开源及AI驱动的网络安全工具。由拉丁美洲的黑客构建,供全球使用。

    334

探索所有工具

浏览我们的工具集合

查看所有工具 →