Actions
Feature #7514
openrules: add file specific hooks
Effort:
Difficulty:
Label:
Description
Thinking about 3 hooks:
file:new
file:update
file:finish
New would be for checking the name.
Update for data.
Finish for size and hashes.
Since file inspection is still a bit basic, it would require a bit of refactoring of how rule inspection is done.
pass file:new any any -> any any (file.name; file.name; content:".pdf"; nocase; endswith; sid:1;) drop file:new any any -> any any (msg:"drop non-pdf files"; sid:2;)
Perhaps a special hook would be required for the magic logic? It inspects only the first X bytes IIRC.
Updated by Victor Julien 10 days ago
- Related to Story #7164: usecase: improve firewall usecase added
Updated by Victor Julien 10 days ago
- Related to Feature #7485: rules: allow specifying explicit hooks added
Actions