Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Misdetection] ini file misdetected as audio #944

Open
luckyservant opened this issue Feb 4, 2025 · 1 comment
Open

[Misdetection] ini file misdetected as audio #944

luckyservant opened this issue Feb 4, 2025 · 1 comment
Labels
misdetection This issue is about a misdetection on a content type currently supported

Comments

@luckyservant
Copy link

Thanks team for your efforts.
Problem
ini file is being mistaken for audio files.

Additional context
On my windows PC imported the magika lib to my python(3.13.1) script. Magika's output for a ini file
(Not: Given file which is also in the attachment is not malicious)

{
        "file_path": "C:\\MW_Samples\\0x0804.ini",
        "ct_label": "mp3",
        "score": 0.9984009861946106,
        "group": "audio",
        "mime_type": "audio/mpeg",
        "magic": "Audio file with ID3",
        "description": "MP3 media file"
    }

Linux file tool cmd and
output:

file --mime-type 0x0804.ini                        
0x0804.ini: text/plain 

0x0804.zip

@luckyservant luckyservant added misdetection This issue is about a misdetection on a content type currently supported needs triage This issue still needs triage by one of the maintainers labels Feb 4, 2025
@reyammer
Copy link
Collaborator

reyammer commented Feb 4, 2025

Thanks for reporting!

Checked with the last version (you can install it with pip install --pre magika), it gets detected as VBA (with low confidence). Then checked the .ini manually... it's a very weird one, I'm not entirely surprised the model gets confused.

@reyammer reyammer removed the needs triage This issue still needs triage by one of the maintainers label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misdetection This issue is about a misdetection on a content type currently supported
Projects
None yet
Development

No branches or pull requests

2 participants