Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/entropy: Basic entropy keyword test #2232

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading