Suricata - alert on pdf files
-
I have written a custom rule to alert me on any pdf transfers seen going via smb
alert smb any any -> any any (msg:"PDF file transfer detected over SMB"; fileext:"pdf"; sid:100002; rev:1;)
The rule is written currently using the new Suricata 7.x binary for pfsense and the fileext is supported according to documentation.
For added measure I have enabled FileStore in the GUI as well. SMB parsers is set to enable.
Any clue as to why this wouldn't work?
This is just a test rule and i do intend on being more refined in the future.
-
My guess would be that if you’re moving the file over SMB, it’s likely to be on the same network, so would never actually touch the firewall to be detected.