Skip to content
Merged
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
11 changes: 11 additions & 0 deletions tests/http-uri-spaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Description

Test http URI detection with spaces in it

# PCAP

The pcap comes from the idea in
https://redmine.openinfosecfoundation.org/issues/2881
You can reproduce a similar behavior with running a server and curl against it
`python3 -m http.server`
`curl "127.0.0.1:8000/uri afterspace"`
Binary file added tests/http-uri-spaces/input.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/http-uri-spaces/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert http any any -> any any (msg:"uri with space and after"; flow:established,to_server; content:" afterspace"; http_uri; sid:1; rev:1;)
13 changes: 13 additions & 0 deletions tests/http-uri-spaces/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 8.0.0

# disables checksum verification
args:
- -k none

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1
8 changes: 8 additions & 0 deletions tests/pop3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Description

Test pop3 protocol detection instead of FTP
See https://redmine.openinfosecfoundation.org/issues/6366

# PCAP

The pcap comes from TLPW1 in QA
Binary file added tests/pop3/input.pcap
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/pop3/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
requires:
min-version: 8

checks:
- filter:
count: 1
match:
event_type: flow
app_proto: pop3
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/smtp-data-rejected/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Test Description

Test that we handle SMTP DATA rejection even if the server advertised pipelining.

## PCAP

From QAlab TLPW

## Related issues

https://redmine.openinfosecfoundation.org/issues/6906
9 changes: 9 additions & 0 deletions tests/smtp-data-rejected/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
types:
- files:
force-hash: [sha256]
13 changes: 13 additions & 0 deletions tests/smtp-data-rejected/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 8

# disables checksum verification
args:
- -k none

checks:
- filter:
count: 1
match:
event_type: fileinfo
fileinfo.sha256: 2f4e7dba21a31bde1192ca03b489a9bd47281a28e206b3dcf245082a491e8e0a