Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Jan 27, 2025
1 parent b74d3d5 commit 06cb946
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/rule-hooks/http-body-hook-01/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
alert http1:response_not_started any any -> any any (sid:1;)
alert http1:response_line any any -> any any (sid:2;)
alert http1:response_headers any any -> any any (sid:3;)
alert http1:response_body any any -> any any (sid:4;)
alert http1:response_trailer any any -> any any (sid:5;)
alert http1:response_complete any any -> any any (sid:6;)
41 changes: 41 additions & 0 deletions tests/rule-hooks/http-body-hook-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
requires:
min-version: 8

pcap: ../../issue-1882/input.pcap

checks:
- filter:
count: 2
match:
event_type: http
http.url: "/index.php?action=3&current_dir=/bin/&filename=systemd"
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 1 # not started
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 2 # request_line
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 3 # header
- filter:
count: 108
match:
event_type: alert
alert.signature_id: 4 # body update
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 5 # trailer
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 6 # complete

0 comments on commit 06cb946

Please sign in to comment.