magika
« Back to VersTracker
Description:
Fast and accurate AI powered file content types detection
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @Google  |  formulae.brew.sh
Category: Security
Tags: ai ml security file-type-detection google cli
Install: brew install magika
About:
Magika is a machine learning-based file type detection tool that leverages deep learning models to accurately identify file content types. Unlike traditional methods that rely on file extensions or magic bytes, Magika analyzes the actual content structure to detect over 100 file types with high precision. This approach is particularly valuable for security applications where accurate file identification is critical.
Key Features:
  • AI-powered content detection using deep learning models
  • Supports over 100 file types with high accuracy
  • Fast inference optimized for production use
  • Command-line interface for easy integration
  • Open-source implementation from Google
Use Cases:
  • Security scanning and malware detection pipelines
  • File processing workflows requiring accurate type verification
  • Data loss prevention (DLP) systems
  • Digital forensics and incident response
Alternatives:
  • file – Traditional Unix tool using magic bytes; less accurate for ambiguous or disguised files
  • python-magic – Python wrapper around libmagic; similar to file command but with Python API
  • trid – Windows-focused file type identifier; uses signature databases rather than ML
Version History
Detected Version Rev Change Commit