google / google/magika

[Misdetection] ini file misdetected as audio

Open
#944 1 comment 0 reactions 0 assignees View on GitHub
misdetection
Dominant language
Rust
Stars
18.6k
Forks
1.2k
Avg merge
3d 12h
Merged PRs (30d)
20

Description

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](https://github.com/user-attachments/files/18656094/0x0804.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with the attached 0x0804.zip using the Magika Python library on Python 3.13.1, then compare its result with the Linux file command output. Done means the INI sample is no longer classified as an MP3 or audio file, with the corrected behavior checked against this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.