-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datasets: test with multi-buffer and occurences in different packets
Ticket: 5576
- Loading branch information
1 parent
01fee9f
commit 61a9767
Showing
5 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Test | ||
==== | ||
|
||
Test datasets only sets when there is a full signature match. | ||
Test is with a signature using different keywords matching at different stages, | ||
and pcap having different packets making the transaction progress step by step. | ||
And test is using a multi-buffer to test that we only save the right occurences. | ||
|
||
https://redmine.openinfosecfoundation.org/issues/5576 | ||
|
||
PCAP | ||
==== | ||
|
||
Pcap crafted with some http server and some python client that delays or not the writing of the headers |
2 changes: 2 additions & 0 deletions
2
tests/datasets-delayed-multi-postmatch/expected/http_match.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
WC1maXJzdDogc2VjcmV0 | ||
SGVhZGVyMTogZmlyc3Q= |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alert http any any -> any any ( sid: 1; http.stat_code; content: "200"; fast_pattern; http.response_header; content: "first"; dataset:set,http_match,type string,save http_match.csv; file.data; content: "later";) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
args: | ||
- -k none --data-dir=${OUTPUT_DIR} | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: alert | ||
alert.signature_id: 1 | ||
- file-compare: | ||
filename: http_match.csv | ||
expected: expected/http_match.csv |