Skip to content
Open
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
8 changes: 4 additions & 4 deletions tests/detect-email-date/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ checks:
alert.signature_id: 1
- filter:
requires:
min-version: 9
min-version: 8.0.7
count: 1
match:
event_type: smtp
email.date: Fri, 21 Apr 2023 05:10:36 +0000
pcap_cnt: 14
# Pre-9 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Remove when backported to 8.
# Pre-8.0.7 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Backported to 8.0.7.
- filter:
requires:
lt-version: 9
lt-version: 8.0.7
count: 1
match:
event_type: smtp
Expand Down
8 changes: 4 additions & 4 deletions tests/detect-email-msg-id/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ checks:
alert.signature_id: 1
- filter:
requires:
min-version: 9
min-version: 8.0.7
count: 1
match:
event_type: smtp
email.message_id: <alpine.DEB.2.00.1311261630120.9535@sd-26634.dedibox.fr>
pcap_cnt: 14
# Pre-9 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Remove when backported to 8.
# Pre-8.0.7 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Backported to 8.0.7.
- filter:
requires:
lt-version: 9
lt-version: 8.0.7
count: 1
match:
event_type: smtp
Expand Down
8 changes: 4 additions & 4 deletions tests/detect-email-subject/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ checks:
alert.signature_id: 1
- filter:
requires:
min-version: 9
min-version: 8.0.7
count: 1
match:
event_type: smtp
pcap_cnt: 14
email.subject: This is a test email
# Pre-9 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Remove when backported to 8.
# Pre-8.0.7 does not defer tx completion to the server response, so the
# SMTP event lands one packet earlier. Backported to 8.0.7.
- filter:
requires:
lt-version: 9
lt-version: 8.0.7
count: 1
match:
event_type: smtp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ outputs:

firewall:
policies:
dns:
# Allow DNS requests to start.
request-started: ["accept:hook"]
app:
dns:
# Allow DNS requests to start.
request-started: ["accept:hook"]

# Drop and alert on all DNS requests that are not allowed in
# firewall.rules.
request-complete: ["drop:flow", "alert"]
# Drop and alert on all DNS requests that are not allowed in
# firewall.rules.
request-complete: ["drop:flow", "alert"]

# Accept all responses.
response-started: ["accept:flow"]
# Accept all responses.
response-started: ["accept:flow"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ outputs:

firewall:
policies:
http:
request-started: ["accept:hook"]
request-line: ["drop:flow", "alert"]
app:
http1:
request-started: ["accept:hook"]
request-line: ["drop:flow", "alert"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ outputs:

firewall:
policies:
packet-filter: ["accept:hook", "alert"]
http:
request-started: ["accept:hook"]
request-line: ["accept:hook"]
request-headers: ["accept:hook"]
request-body: ["accept:hook"]
request-trailer: ["accept:hook"]
request-complete: ["accept:hook"]
response-started: ["accept:hook"]
response-line: ["accept:hook"]
response-headers: ["accept:hook"]
response-body: ["accept:hook"]
response-trailer: ["accept:hook"]
response-complete: ["accept:hook"]
packet:
filter: ["accept:hook", "alert"]
app:
http1:
request-started: ["accept:hook"]
request-line: ["accept:hook"]
request-headers: ["accept:hook"]
request-body: ["accept:hook"]
request-trailer: ["accept:hook"]
request-complete: ["accept:hook"]
response-started: ["accept:hook"]
response-line: ["accept:hook"]
response-headers: ["accept:hook"]
response-body: ["accept:hook"]
response-trailer: ["accept:hook"]
response-complete: ["accept:hook"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ outputs:

firewall:
policies:
packet-filter: ["accept:hook"]
http:
request-started: ["accept:flow", "alert"]
packet:
filter: ["accept:hook"]
app:
http1:
request-started: ["accept:flow", "alert"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ outputs:

firewall:
policies:
http:
request-started: ["accept:hook"]
request-line:
- "accept:tx"
- "alert"
app:
http1:
request-started: ["accept:hook"]
request-line:
- "accept:tx"
- "alert"
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ outputs:

firewall:
policies:
http:
request-started: ["accept:hook"]
request-line:
- "accept:tx"
- "alert"
app:
http1:
request-started: ["accept:hook"]
request-line:
- "accept:tx"
- "alert"
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ outputs:

firewall:
policies:
ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
app:
ftp-data:
request-started: ["accept:flow"]
response-started: ["accept:flow"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ outputs:

firewall:
policies:
packet-filter:
- "accept:hook"

ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
packet:
filter:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
app:
ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ outputs:

firewall:
policies:
packet-filter:
- "accept:hook"

ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
packet:
filter:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
app:
ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
34 changes: 18 additions & 16 deletions tests/firewall/ruletype-firewall-121-ftp-bounce/suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ outputs:

firewall:
policies:
packet-filter:
- "accept:hook"

ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
packet:
filter:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
app:
ftp:
request-started:
- "accept:hook"
request-complete:
- "accept:hook"
response-started:
- "accept:hook"
response-complete:
- "accept:hook"

ftp-data:
request-started:
- "accept:flow"
response-started:
- "accept:flow"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 9
min-version: 8.0.7

pcap: ../../http2-userinfo-authority/http2_userinfo_in_authority_1.pcap

Expand Down
2 changes: 1 addition & 1 deletion tests/firewall/ruletype-firewall-122-smtp/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 9
min-version: 8.0.7

pcap: smtp-simple-session.pcap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 9
min-version: 8.0.7

pcap: false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 9
min-version: 8.0.7

pcap: ../ruletype-firewall-122-smtp/smtp-simple-session.pcap

Expand Down
Loading
Loading