Skip to content

Commit

Permalink
Adds a test about filestore
Browse files Browse the repository at this point in the history
That it does not store too many files
  • Loading branch information
catenacyber committed Jun 11, 2024
1 parent e8a1d72 commit a60b143
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/filestore-dont/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Description

Test filestore does not store too much

# Ticket

https://redmine.openinfosecfoundation.org/issues/6390

# PCAP

The pcap was manually crafted to have HTTP/1 pipelining POST request with multipart files when the first response is not over
Binary file added tests/filestore-dont/input.pcap
Binary file not shown.
15 changes: 15 additions & 0 deletions tests/filestore-dont/suricata.yaml
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
1 change: 1 addition & 0 deletions tests/filestore-dont/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert http any any -> any any (msg:"FILE HTTP filtore"; http.uri; content: "pipeline"; filestore:both,flow; sid:2; rev:1;)
13 changes: 13 additions & 0 deletions tests/filestore-dont/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 8

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: fileinfo
fileinfo.sha256: eb076a2ec6ced9ee2e823e098446513cf5b2bb60fbcb04e6c85dc23dedaa414a
fileinfo.stored: false

0 comments on commit a60b143

Please sign in to comment.