Skip to content

Add Google Magika file type identification - #3158

Closed
kevross33 wants to merge 8 commits into
kevoreilly:masterfrom
kevross33:master
Closed

Add Google Magika file type identification#3158
kevross33 wants to merge 8 commits into
kevoreilly:masterfrom
kevross33:master

Conversation

@kevross33

Copy link
Copy Markdown
Contributor

Adds google magika to processing (https://github.com/google/magika). Main benefit of Magika is identification of text based formats - PowerShell scripts, python, .ini files etc. It will identify or guess at other filetypes. You can adjust confidence or hide low confidence matches too where it is guessing such as on shellcode data.

image image

Added a method to retrieve Google Magika content type predictions, which can be enabled in the configuration. The method caches results to avoid repeated calls.
Added magika cache clearing functionality and backfill logic for file_info.
Integrate magika_info function to enhance file processing.
Added configuration for Google Magika deep-learning content type identification, including options for model directory, prediction mode, minimum score, and maximum file size.
@kevross33 kevross33 closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant