[Misdetection] ini file misdetected as audio
- 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
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