-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mime: add previous suricata unit tests
mime: fix tests for bug-6207 Fix manually crafted pcaps to have valid MIME headers folding beginning with space And removing the test for BODY_BOUND which is becoming obsolete
- Loading branch information
1 parent
9d7cba8
commit 1ba81ee
Showing
33 changed files
with
636 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION | ||
anomaly.layer: proto_detect | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 6 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
event_type: smtp | ||
pcap_cnt: 14 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
event_type: smtp | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION | ||
anomaly.layer: proto_detect | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 6 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
event_type: smtp | ||
pcap_cnt: 14 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
event_type: smtp | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION | ||
anomaly.layer: proto_detect | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 6 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
event_type: smtp | ||
pcap_cnt: 14 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
event_type: smtp | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION | ||
anomaly.layer: proto_detect | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 6 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
email.url[0]: www.test.com/malware.exe?hahah | ||
event_type: smtp | ||
pcap_cnt: 14 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
event_type: smtp | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION | ||
anomaly.layer: proto_detect | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 6 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
- filter: | ||
count: 1 | ||
match: | ||
anomaly.app_proto: smtp | ||
anomaly.event: MIME_LONG_FILENAME | ||
anomaly.layer: proto_parser | ||
anomaly.type: applayer | ||
dest_ip: 127.0.0.1 | ||
dest_port: 39202 | ||
event_type: anomaly | ||
pcap_cnt: 14 | ||
proto: TCP | ||
src_ip: 127.0.0.1 | ||
src_port: 25 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.attachment[0]: 12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12c | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
event_type: smtp | ||
pcap_cnt: 14 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 0 | ||
- filter: | ||
count: 1 | ||
match: | ||
app_proto: smtp | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
email.attachment[0]: 12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12c | ||
email.from: toto <[email protected]> | ||
email.status: PARSE_DONE | ||
email.to[0]: 172.16.92.2@linuxbox | ||
event_type: fileinfo | ||
fileinfo.filename: 12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12characters12c | ||
fileinfo.gaps: false | ||
fileinfo.size: 25 | ||
fileinfo.state: CLOSED | ||
fileinfo.stored: false | ||
fileinfo.tx_id: 0 | ||
pcap_cnt: 15 | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
smtp.mail_from: <[email protected]> | ||
smtp.rcpt_to[0]: <172.16.92.2@linuxbox> | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
- filter: | ||
count: 1 | ||
match: | ||
dest_ip: 127.0.0.1 | ||
dest_port: 25 | ||
event_type: smtp | ||
proto: TCP | ||
smtp.helo: linuxbox | ||
src_ip: 127.0.0.1 | ||
src_port: 39202 | ||
tx_id: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test Description | ||
|
||
Test some mime processing | ||
|
||
## PCAP | ||
|
||
Previous unit test for MIME in Suricata | ||
|
||
## Related issues | ||
|
||
https://redmine.openinfosecfoundation.org/issues/3487 |
Binary file not shown.
Oops, something went wrong.