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

add test for bug 6617 #1560

Closed
wants to merge 1 commit into from
Closed
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
13 changes: 13 additions & 0 deletions tests/bug-6617/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Test Description

If the file transfer is happening in one direction, it should only
be stored/logged in that direction when `filestore:flow, to_server`
type of syntax defines the direction.

## PCAP

Comes from the test `filestore-v2.1-forced`.

## Related issues

https://redmine.openinfosecfoundation.org/issues/6617
14 changes: 14 additions & 0 deletions tests/bug-6617/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
types:
- files
- alert
- http
- file-store:
version: 2
enabled: yes
stream-depth: 0
1 change: 1 addition & 0 deletions tests/bug-6617/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert http any any -> any any (msg:"Filestore toserver"; filestore:to_server,flow; sid:1; rev:1;)
15 changes: 15 additions & 0 deletions tests/bug-6617/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pcap: ../filestore-v2.1-forced/suricata-update-pdf.pcap

requires:
min-version: 8

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: fileinfo
fileinfo.sha256: 291389dc5926982448d90e551689ef857650c0ad4fa656841e687d984609ec02
fileinfo.stored: false
Loading