
Détection rapide et précise des types de contenu de fichiers alimentée par l'IA

The Cyber Swiss Army Knife - une application web pour le chiffrement, l'encodage, la compression et l'analyse de données.

Collection organisée de wordlists pour évaluations de sécurité, incluant noms d'utilisateur, mots de passe, URLs, charge utiles de fuzzing, et motifs de données sensibles pour tests d'intrusion et reconnaissance.

Bibliothèque interactive de manipulation de paquets basée sur Python pour forger, décoder, envoyer, capturer et analyser des paquets réseau sur une large gamme de protocoles, prenant en charge le scan, le traceroutage, les attaques et la découverte réseau.
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.0rc0and above) and crates.io (2.0.0-rc.0and above formagikaandmagika-cli) — help testing is very welcome!Try it with
pip install --pre -U magika(Python API + bundled CLI) orcargo 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
tractruntime 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 usingstandard_v3_3under 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
muslenvironments 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!
-r for recursively scanning a directory.high-confidence, medium-confidence, and best-guess.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
pip install magika