Skip to content

Commit

Permalink
test/entropy: Basic entropy keyword test
Browse files Browse the repository at this point in the history
This commit adds a basic test of the entropy keyword.
  • Loading branch information
jlucovsky committed Jan 13, 2025
1 parent db5e548 commit 546fd6f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/entropy/entropy-01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This test checks the entropy keyword with a comparison against HTTP file data.
Binary file added tests/entropy/entropy-01/input.pcap
Binary file not shown.
4 changes: 4 additions & 0 deletions tests/entropy/entropy-01/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alert http any any -> any any (msg:"entropy simple test"; \
file.data; \
entropy: value 4, oper >=; \
sid:1;)
9 changes: 9 additions & 0 deletions tests/entropy/entropy-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
requires:
min-version: 8

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1

0 comments on commit 546fd6f

Please sign in to comment.