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
15 changes: 15 additions & 0 deletions tests/ipv4-defrag-overlaps/test_407/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
---

# Configure the type of alert (and other) logging you would like.
outputs:
# Extensible Event Format (nicknamed EVE) event log in JSON format
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- alert:
payload: yes # enable dumping payload in Base64
payload-printable: yes # enable dumping payload in printable (lossy) format
packet: yes # enable dumping of packet (without stream segments)
1 change: 1 addition & 0 deletions tests/ipv4-defrag-overlaps/test_407/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert icmp any any -> 192.168.10.63 any (msg:"Bad keyword 000004ok detected !!!"; content:"000004ok"; classtype:bad-unknown; sid:1; rev:7; )
9 changes: 9 additions & 0 deletions tests/ipv4-defrag-overlaps/test_407/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *** Add configuration here ***

args:
- -k none

checks:
- shell:
args: grep '"payload_printable":".*\.\.\.\.\.\.\.\..*"' eve.json | wc -l | xargs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need a shell check instead of a filter one ?

expect: 0
Binary file added tests/ipv4-defrag-overlaps/test_407/test_407.pcap
Binary file not shown.
15 changes: 15 additions & 0 deletions tests/ipv4-defrag-overlaps/test_428/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
---

# Configure the type of alert (and other) logging you would like.
outputs:
# Extensible Event Format (nicknamed EVE) event log in JSON format
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- alert:
payload: yes # enable dumping payload in Base64
payload-printable: yes # enable dumping payload in printable (lossy) format
packet: yes # enable dumping of packet (without stream segments)
2 changes: 2 additions & 0 deletions tests/ipv4-defrag-overlaps/test_428/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alert icmp any any -> 192.168.10.63 any (msg:"Bad keyword 000004ok detected !!!"; content:"000004ok"; classtype:bad-unknown; sid:9; rev:7; )

9 changes: 9 additions & 0 deletions tests/ipv4-defrag-overlaps/test_428/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *** Add configuration here ***

args:
- -k none

checks:
- shell:
args: grep '"payload_printable":".*\.\.\.\.\.\.\.\..*"' eve.json | wc -l | xargs
expect: 0
Binary file added tests/ipv4-defrag-overlaps/test_428/test_428.pcap
Binary file not shown.
15 changes: 15 additions & 0 deletions tests/ipv4-defrag-overlaps/test_430/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
---

# Configure the type of alert (and other) logging you would like.
outputs:
# Extensible Event Format (nicknamed EVE) event log in JSON format
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- alert:
payload: yes # enable dumping payload in Base64
payload-printable: yes # enable dumping payload in printable (lossy) format
packet: yes # enable dumping of packet (without stream segments)
2 changes: 2 additions & 0 deletions tests/ipv4-defrag-overlaps/test_430/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alert icmp any any -> 192.168.10.63 any (msg:"Bad keyword 000003ol detected !!!"; content:"000003ol"; classtype:bad-unknown; sid:1; rev:7; )

9 changes: 9 additions & 0 deletions tests/ipv4-defrag-overlaps/test_430/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *** Add configuration here ***

args:
- -k none

checks:
- shell:
args: grep '"payload_printable":".*\.\.\.\.\.\.\.\..*"' eve.json | wc -l | xargs
expect: 0
Binary file added tests/ipv4-defrag-overlaps/test_430/test_430.pcap
Binary file not shown.
15 changes: 15 additions & 0 deletions tests/ipv4-defrag-overlaps/test_435/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
---

# Configure the type of alert (and other) logging you would like.
outputs:
# Extensible Event Format (nicknamed EVE) event log in JSON format
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- alert:
payload: yes # enable dumping payload in Base64
payload-printable: yes # enable dumping payload in printable (lossy) format
packet: yes # enable dumping of packet (without stream segments)
1 change: 1 addition & 0 deletions tests/ipv4-defrag-overlaps/test_435/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert icmp any any -> 192.168.10.63 any (msg:"Bad keyword 000003ol detected !!!"; content:"000003ol"; classtype:bad-unknown; sid:1; rev:7; )
9 changes: 9 additions & 0 deletions tests/ipv4-defrag-overlaps/test_435/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *** Add configuration here ***

args:
- -k none

checks:
- shell:
args: grep '"payload_printable":".*\.\.\.\.\.\.\.\..*"' eve.json | wc -l | xargs
expect: 0
Binary file added tests/ipv4-defrag-overlaps/test_435/test_435.pcap
Binary file not shown.
Loading