Automic VaultAutomic Vault

brew

magika を Homebrew, apk, Nix, winget でインストール

magika のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install magika

local Homebrew formula metadata

Windows

Windows Package Manager確認済み · 92%
winget install --id Google.Magika -e

Windows Package Manager source index · Google.Magika · ソース: cdn.winget.microsoft.com

概要

パッケージ概要

Fast and accurate AI powered file content types detection

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

  • 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.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
magikacliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.0.2
マネージャ更新日2026-07-15
ローカルデータOK
上流最新
検出された最新cli/v1.0.2

https://github.com/google/magika

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:magika
バージョン1.0.2
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/magika
ホームページhttps://securityresearch.google/magika/
リポジトリhttps://github.com/google/magika
上流ドキュメントhttps://securityresearch.google/magika
ライセンスApache-2.0
ソースアーカイブhttps://github.com/google/magika/archive/refs/tags/cli/v1.0.2.tar.gz
最終更新2026-07-15T14:17:07+09:00
Pulseupdated
依存関係openssl@3
ビルド依存関係pkgconf, rust
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

magika

nix profile install nixpkgs#magika
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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