Feature #5894
openfile: file classification keyword
Description
file_magic
/ file.magic
uses libmagic to classify files. It has never been a great match for us. It knows many, many files, and can extract quite a bit of meta data, but it comes with 2 important drawbacks:
1. performance - this has never been great and the impact on suri is considered too great for many scenarios
2. cross platform issues - many OS' ship different versions and different file signature data bases. This made it impossible for general purpose rulesets like ET open to use them reliably.
For the use case of Suricata a much simpler and reduced feature set is probably good enough. Most rules likely only care about detecting PDF, PE32, some compression formats. This type of capability could probably just life inside suricata's codebase itself, either hardcoded or as a new rule capability for file classification.
Feedback is requested on:
- what are the most important file types
- what should the detection granularity be (e.g. generic pdf, or pdf per version, generic window exe or more specific?)
- what if any feature extraction should be done
Updated by Victor Julien almost 2 years ago
- Related to Feature #886: bromagic support added
Updated by Victor Julien almost 2 years ago
- Related to Optimization #4234: Filemagic logging puts big pressure on performance added
Updated by Victor Julien almost 2 years ago
- Related to Bug #437: filemagic / libmagic inconsistent between releases added
Updated by Victor Julien almost 2 years ago
- Related to Bug #3732: filemagic logging resulting in performance hit added
Updated by Victor Julien almost 2 years ago
- Related to Task #5893: tracking: deep file awareness and inspection added