-
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.
Adds a test for filestore keyword with one direction
And a flow scope, to check that the files are indeed stored
- Loading branch information
1 parent
7b1d89d
commit 3ebe667
Showing
5 changed files
with
50 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,8 @@ | ||
# Description | ||
|
||
Test filestore stores all files with one direction | ||
|
||
# Ticket | ||
|
||
https://redmine.openinfosecfoundation.org/issues/6388 | ||
https://redmine.openinfosecfoundation.org/issues/6392 |
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,15 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
outputs: | ||
- eve-log: | ||
enabled: yes | ||
types: | ||
- files | ||
- alert | ||
- http | ||
- file-store: | ||
version: 2 | ||
enabled: yes | ||
force-filestore: no | ||
stream-depth: 0 |
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 (msg:"FILE HTTP filtore"; file.data; content: "123456789abcdef"; filestore:response,flow; sid:2; rev:1;) |
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,26 @@ | ||
requires: | ||
min-version: 6 | ||
features: | ||
- HAVE_NSS | ||
|
||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
app_proto: http | ||
event_type: fileinfo | ||
fileinfo.sha256: eb076a2ec6ced9ee2e823e098446513cf5b2bb60fbcb04e6c85dc23dedaa414a | ||
fileinfo.stored: true | ||
count: 1 | ||
match: | ||
app_proto: http | ||
event_type: fileinfo | ||
fileinfo.sha256: a87f126892a71279399ddda2dab8bbe1fcc6681b051c506e95294e71f639af72 | ||
fileinfo.stored: true | ||
count: 1 | ||
match: | ||
event_type: alert | ||
alert.signature_id: 2 |