Skip to content

Commit

Permalink
suricata/rules: add HTML magic
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Sep 6, 2024
1 parent 0a547c7 commit 45a7950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions suricata/rules/suricata.rules
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ alert ip any any -> any any (msg: "tag"; file.data; content: "Vgm|20|"; startswi
alert ip any any -> any any (msg: "tag"; file.data; content: "wOF"; startswith; fast_pattern; filemagic: "Web Open Font"; metadata: tag WOFF, color primary; sid: 1016;)
alert ip any any -> any any (msg: "tag"; file.data; content: "|7F|ELF|02 01 01 00 00 00 00 00 00 00 00 00|"; startswith; fast_pattern; filemagic: "ELF"; metadata: tag ELF, color primary; sid: 1017;)
alert ip any any -> any any (msg: "tag"; file.data; content: "f0VMRgIBAQAAAAAAAAAAAA"; metadata: tag ELF B64, color primary; sid: 1018;)
alert ip any any -> any any (msg: "tag"; file.data; content: "<html"; depth: 64; nocase; fast_pattern; filemagic: "HTML document"; metadata: tag HTML, color primary; sid: 1019;)

# Tag HTTP methods and status (sid 2001-3000)
alert http any any -> any any (msg: "tag"; http.method; content: "POST"; startswith; metadata: tag POST, color info; sid: 2001;)
Expand Down
1 change: 1 addition & 0 deletions webapp/static/js/flowdisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Api from './api.js'
// These should match defined magics in suricata.rules
const MAGIC_EXT = {
'GIF image': 'gif',
'HTML document': 'html',
'JPEG image': 'jpg',
'PDF document': 'pdf',
'PNG image': 'png',
Expand Down

0 comments on commit 45a7950

Please sign in to comment.