Automic VaultAutomic Vault

brew

magika mit Homebrew, apk, Nix, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für magika in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install magika

local Homebrew formula metadata

Windows

Windows Package Managerverifiziert · 92%
winget install --id Google.Magika -e

Windows Package Manager source index · Google.Magika · Quelle: cdn.winget.microsoft.com

Überblick

Paketzusammenfassung

Fast and accurate AI powered file content types detection

Verlauf

Projektgeschichte und Nutzung

Magika is Google's AI-powered file content type detection tool. It ships as a Rust CLI plus Python, Rust, JavaScript/TypeScript, and emerging Go bindings, using a compact deep-learning model to classify binary and text files quickly on CPU.

Projektgeschichte

Google created the public repository in August 2023 and announced the open-source release in February 2024. Official docs describe a model trained and evaluated on roughly 100 million samples across more than 200 content types, with about 99 percent average precision and recall on Google's test set.

The project moved beyond a Python package into a multi-language toolchain. The README documents a Rust command-line tool, Python API, JavaScript package, Rust bindings, web demo, and additional bindings, with release tags split by CLI, Python, JavaScript, and Go components.

Adoptionsgeschichte

Magika had unusually fast visibility because Google said it was already used at scale inside Gmail, Drive, and Safe Browsing routing, processing hundreds of billions of samples weekly. Official docs also note integrations with VirusTotal and abuse.ch.

The open-source package spread into package managers quickly: the README documents Homebrew, pipx, pip, cargo, npm, and installer scripts, while the supplied Homebrew input also lists apk, Nix, and winget packages. The GitHub repository has tens of thousands of stars and more than a thousand forks, reflecting broad interest from security and developer-tooling users.

Wie es verwendet wird

The CLI scans files or directories and can emit descriptions, labels, MIME types, scores, JSON, or JSONL. Typical package-manager usage is `magika PATH`, often recursively, as a faster and ML-backed complement to extension- or magic-number-based detection.

Library users embed Magika to classify uploads, repositories, malware samples, or large file corpora. The docs emphasize near-constant inference time because the model uses a limited subset of file content.

Warum Paket-Nerds sich dafür interessieren

Magika is package-nerd interesting because it packages an ML model as a normal fast CLI. It belongs in the same mental drawer as `file` and libmagic, but with model assets, language bindings, and security-scanning use cases layered on top.

Its multi-artifact release style matters to maintainers: Homebrew ships the CLI, Python users install `magika`, Rust users can install `magika-cli`, JavaScript users have npm bindings, and downstreams need to track model/data changes as part of versioning.

Zeitleiste

  • 2023: Public GitHub repository created.
  • 2024: Google open-sourced Magika and announced it on the Google Open Source Blog.
  • 2024: CLI, Python, Rust, and JavaScript packaging paths documented.
  • 2025: Research paper published at ICSE according to official docs.
  • 2026: CLI and binding release tags continue in the public repository.

Related projects

  • libmagic and the Unix `file` command are the traditional content-type detection tools Magika is commonly compared with.
  • VirusTotal and abuse.ch are named by Google as integrations.
  • Gmail, Drive, and Safe Browsing are named by Google as internal-scale consumers.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 1 Laufzeitabhängigkeiten.
  • Build-Metadaten listen 2 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
magikacliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-25
Manager-Version1.0.2
Manager aktualisiert2026-07-15
lokale DatenOK
Upstreamaktuell
neueste erkannte Versioncli/v1.0.2

https://github.com/google/magika

  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:magika
Version1.0.2
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/magika
Homepagehttps://securityresearch.google/magika/
Repositoryhttps://github.com/google/magika
Upstream-Dokumentationhttps://securityresearch.google/magika
LizenzApache-2.0
Quellarchivhttps://github.com/google/magika/archive/refs/tags/cli/v1.0.2.tar.gz
Zuletzt aktualisiert2026-07-15T14:17:07+09:00
Pulseupdated
Abhängigkeitenopenssl@3
Build-Abhängigkeitenpkgconf, rust
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemagika
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Nix95%

magika

nix profile install nixpkgs#magika
  • normalized package name match
  • Abgeglichen nach: Magika
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: magika from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk95%

magika 1.0.2-r0

Detect file content types with deep learning

https://github.com/google/magika

sudo apk add magika
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: magika
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Magika
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: magika from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
winget95%

Google.Magika

winget install --id Google.Magika -e
  • normalized package name match
  • Abgeglichen nach: Magika
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Google.Magika from https://cdn.winget.microsoft.com/cache/source.msix

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment