Project

General

Profile

Actions

Feature #5894

open

file: file classification keyword

Added by Victor Julien almost 2 years ago. Updated almost 2 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

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


Related issues 5 (2 open3 closed)

Related to Suricata - Feature #886: bromagic supportClosedActions
Related to Suricata - Optimization #4234: Filemagic logging puts big pressure on performanceFeedbackPeter ManevActions
Related to Suricata - Bug #437: filemagic / libmagic inconsistent between releasesRejectedCommunity TicketActions
Related to Suricata - Bug #3732: filemagic logging resulting in performance hitClosedEric LeblondActions
Related to Suricata - Task #5893: tracking: deep file awareness and inspectionAssignedVictor JulienActions
Actions #1

Updated by Victor Julien almost 2 years ago

Actions #2

Updated by Victor Julien almost 2 years ago

Actions #3

Updated by Victor Julien almost 2 years ago

  • Related to Bug #437: filemagic / libmagic inconsistent between releases added
Actions #4

Updated by Victor Julien almost 2 years ago

  • Related to Bug #3732: filemagic logging resulting in performance hit added
Actions #5

Updated by Victor Julien almost 2 years ago

  • Related to Task #5893: tracking: deep file awareness and inspection added
Actions #6

Updated by Victor Julien almost 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF