From: DEL VALLE Bastien Date: Tue, 3 Mar 2020 17:25:10 +0000 (+0100) Subject: Adds test for SMB EICAR file nbss-more-ffsmb X-Git-Tag: suricata-6.0.4~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002f1d80145357a1c0e71c96c455d92065cf749e;p=thirdparty%2Fsuricata-verify.git Adds test for SMB EICAR file nbss-more-ffsmb Readme edited --- diff --git a/tests/smb-eicar-file-nbss-more-ffsmb/README.md b/tests/smb-eicar-file-nbss-more-ffsmb/README.md new file mode 100644 index 000000000..e5766743a --- /dev/null +++ b/tests/smb-eicar-file-nbss-more-ffsmb/README.md @@ -0,0 +1,15 @@ +# Description + +Test SMB EICAR file rule. + +# PCAP + +The pcap comes from running Linux client smbclient against a Windows 2019 Server (with a shared folder public without needed authentication) + +Needs a Proxy that sends two NetBIOS messages in one TCP packet + +Command is +`smbclient //localhost/public/ -U % -m NT1` +Than in the smbclient shell : +`put eicar` where eicar is the name of a file with the EICAR contents : +https://en.wikipedia.org/wiki/EICAR_test_file diff --git a/tests/smb-eicar-file-nbss-more-ffsmb/input.pcap b/tests/smb-eicar-file-nbss-more-ffsmb/input.pcap new file mode 100644 index 000000000..a96332011 Binary files /dev/null and b/tests/smb-eicar-file-nbss-more-ffsmb/input.pcap differ diff --git a/tests/smb-eicar-file-nbss-more-ffsmb/test.rules b/tests/smb-eicar-file-nbss-more-ffsmb/test.rules new file mode 100644 index 000000000..fcb9e4489 --- /dev/null +++ b/tests/smb-eicar-file-nbss-more-ffsmb/test.rules @@ -0,0 +1 @@ +alert smb any any -> any any (msg:"EICAR file"; flow:established; file_data; content:"|58354f2150254041505b345c505a58353428505e2937434329377d2445494341522d5354414e444152442d414e544956495255532d544553542d46494c452124482b482a|"; sid:1; rev:1;) diff --git a/tests/smb-eicar-file-nbss-more-ffsmb/test.yaml b/tests/smb-eicar-file-nbss-more-ffsmb/test.yaml new file mode 100644 index 000000000..c1282b105 --- /dev/null +++ b/tests/smb-eicar-file-nbss-more-ffsmb/test.yaml @@ -0,0 +1,14 @@ +requires: + features: + - HAVE_LIBJANSSON + +# disables checksum verification +args: +- -k none + +checks: + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1