]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
4 years agoAdds test about ftp epsv response parsing 491/head
Philippe Antoine [Tue, 27 Apr 2021 07:15:24 +0000 (09:15 +0200)] 
Adds test about ftp epsv response parsing

4 years agomodbus: add test cases
Simon Dugas [Sun, 6 Dec 2020 17:20:24 +0000 (17:20 +0000)] 
modbus: add test cases

Add tests for modbus logging and alerting.

4 years agohttp2: fix for suricata 6
Victor Julien [Fri, 21 May 2021 08:50:02 +0000 (10:50 +0200)] 
http2: fix for suricata 6

4 years agoAdds check for http.cookie keyword on http2 traffic 501/head
Philippe Antoine [Mon, 26 Apr 2021 13:50:17 +0000 (15:50 +0200)] 
Adds check for http.cookie keyword on http2 traffic

4 years agoAdds check for http.host.raw keyword on http2 traffic
Philippe Antoine [Mon, 26 Apr 2021 13:29:25 +0000 (15:29 +0200)] 
Adds check for http.host.raw keyword on http2 traffic

4 years agoAdds check for http.method keyword on http2 traffic
Philippe Antoine [Mon, 26 Apr 2021 13:16:24 +0000 (15:16 +0200)] 
Adds check for http.method keyword on http2 traffic

4 years agoAdds check for http.server keyword on http2 traffic
Philippe Antoine [Mon, 26 Apr 2021 13:00:39 +0000 (15:00 +0200)] 
Adds check for http.server keyword on http2 traffic

4 years agohttp2: use stat_code instead of stat_msg as keyword
Philippe Antoine [Mon, 26 Apr 2021 12:42:11 +0000 (14:42 +0200)] 
http2: use stat_code instead of stat_msg as keyword

4 years agohttp-sha256-drop-02: don't use flow_id in test
Eric Leblond [Sun, 18 Apr 2021 10:26:05 +0000 (12:26 +0200)] 
http-sha256-drop-02: don't use flow_id in test

flow_id has no reason to be fix from a user perspective so we
should not use it in test but use information from the flow
itself.

4 years agotests: Invalid threshold.config w/out -T 498/head
Jeff Lucovsky [Sun, 28 Feb 2021 20:06:04 +0000 (15:06 -0500)] 
tests: Invalid threshold.config w/out -T

4 years agotests: Add test for threshold.config validation
Jeff Lucovsky [Sun, 28 Feb 2021 19:42:00 +0000 (14:42 -0500)] 
tests: Add test for threshold.config validation

This commit adds a test case to insure that "-T" stops execution when
threshold.config is not valid.

4 years agotests: basic geoip test
Eric Leblond [Thu, 1 Aug 2019 19:29:12 +0000 (21:29 +0200)] 
tests: basic geoip test

The tests are done by using a local database generated via the
geoip.pl Perl script. The obtained maxmindb test.mmdb and it only
contains 2 entries.

4 years agomore features detection in run.py
Eric Leblond [Thu, 1 Aug 2019 19:28:29 +0000 (21:28 +0200)] 
more features detection in run.py

4 years agotests/ftpdata: add detection
Victor Julien [Tue, 12 Jan 2021 21:03:13 +0000 (22:03 +0100)] 
tests/ftpdata: add detection

4 years agotests/threshold: Code coverage for issue 4407
Jeff Lucovsky [Wed, 31 Mar 2021 12:58:42 +0000 (08:58 -0400)] 
tests/threshold: Code coverage for issue 4407

This test insures that the Suricata code added for issue 4407 is
exercised.

4 years agotests: add test for Rust template parser 483/head
Jason Ish [Mon, 29 Mar 2021 16:28:17 +0000 (10:28 -0600)] 
tests: add test for Rust template parser

4 years agotests: add test for C template parser
Jason Ish [Mon, 29 Mar 2021 16:21:32 +0000 (10:21 -0600)] 
tests: add test for C template parser

4 years agoAdds kerberos probing parser test
Philippe Antoine [Thu, 11 Mar 2021 15:17:56 +0000 (16:17 +0100)] 
Adds kerberos probing parser test

4 years agolicense: add a LICENSE.txt (MIT)
Jason Ish [Tue, 16 Mar 2021 17:41:12 +0000 (11:41 -0600)] 
license: add a LICENSE.txt (MIT)

4 years agodns-udp-eve-log-srv: for Suricata v7+ 479/head
Jason Ish [Tue, 16 Mar 2021 04:24:35 +0000 (22:24 -0600)] 
dns-udp-eve-log-srv: for Suricata v7+

Remove file check and just use a version check now that 7 is out.

4 years agodns-udp-eve-log-query-only: add dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:58:17 +0000 (15:58 -0600)] 
dns-udp-eve-log-query-only: add dns eve v2 test

4 years agodns-udp-eve-log-mx-only: add dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:55:13 +0000 (15:55 -0600)] 
dns-udp-eve-log-mx-only: add dns eve v2 test

4 years agodns-udp-eve-log-answer-only: dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:50:01 +0000 (15:50 -0600)] 
dns-udp-eve-log-answer-only: dns eve v2 test

4 years agodns-udp-eve-log-aaaa-only: add dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:46:14 +0000 (15:46 -0600)] 
dns-udp-eve-log-aaaa-only: add dns eve v2 test

4 years agodns-udp-double-request-response: add dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:38:57 +0000 (15:38 -0600)] 
dns-udp-double-request-response: add dns eve v2 test

4 years agodns-tcp-www-google-com: add dns eve v2 test
Jason Ish [Mon, 15 Mar 2021 21:36:05 +0000 (15:36 -0600)] 
dns-tcp-www-google-com: add dns eve v2 test

4 years agodns-tcp-ts-gap: update for dns eve v2
Jason Ish [Mon, 15 Mar 2021 21:15:53 +0000 (15:15 -0600)] 
dns-tcp-ts-gap: update for dns eve v2

4 years agodns: mark existing dns eve v1 tests for Suricata < 7
Jason Ish [Mon, 15 Mar 2021 21:13:00 +0000 (15:13 -0600)] 
dns: mark existing dns eve v1 tests for Suricata < 7

4 years agodns-udp-unsolicited-response: dns eve v1 and v2 tests
Jason Ish [Mon, 15 Mar 2021 20:56:13 +0000 (14:56 -0600)] 
dns-udp-unsolicited-response: dns eve v1 and v2 tests

4 years agodns-udp-null: use dns v2 logging
Jason Ish [Mon, 15 Mar 2021 20:54:36 +0000 (14:54 -0600)] 
dns-udp-null: use dns v2 logging

Also, instead of file check use min-version of 7.

4 years agodns-udp-nxdomain-soa: v1 and v2 dns eve tests
Jason Ish [Mon, 15 Mar 2021 20:50:50 +0000 (14:50 -0600)] 
dns-udp-nxdomain-soa: v1 and v2 dns eve tests

4 years agodns-eve: dns eve v1 and v2 versions
Jason Ish [Fri, 12 Mar 2021 23:31:38 +0000 (17:31 -0600)] 
dns-eve: dns eve v1 and v2 versions

4 years agodns-tcp-multirequest-buffer: versions for v1 and v2 DNS logging
Jason Ish [Fri, 12 Mar 2021 23:27:01 +0000 (17:27 -0600)] 
dns-tcp-multirequest-buffer: versions for v1 and v2 DNS logging

4 years agodns-udp-dns-log-unanswered: remove
Jason Ish [Fri, 12 Mar 2021 23:21:20 +0000 (17:21 -0600)] 
dns-udp-dns-log-unanswered: remove

This test was specific to the non-Rust DNS parser which is no
longer supported.

4 years agodns-single-request: split into dns v1 and v2 test
Jason Ish [Fri, 12 Mar 2021 23:15:08 +0000 (17:15 -0600)] 
dns-single-request: split into dns v1 and v2 test

Update dns-single-request to v2 format, rename old test to
dns-single-request-v1.

4 years agogithub-ci: use github action checkout@v2 for build test
Jason Ish [Fri, 3 Apr 2020 17:34:43 +0000 (11:34 -0600)] 
github-ci: use github action checkout@v2 for build test

4 years agogithub-ci: move pcapng check to github
Jason Ish [Fri, 3 Apr 2020 17:20:35 +0000 (11:20 -0600)] 
github-ci: move pcapng check to github

4 years agostream/tcp: Test verifies the behavior when direction of TCP flow is changed by the... 474/head
Ilya Bakhtin [Sat, 1 Aug 2020 17:26:41 +0000 (19:26 +0200)] 
stream/tcp: Test verifies the behavior when direction of TCP flow is changed by the probing parser

pcap file contains 2 http transactions. The request is missing for the first one.
The second transaction is fully complete. So eve.json must contain one and only anomaly event.

Also common flow details are verified.
It must be http, to port 80 with specified number of bytes_toclient and bytes_toserver

4 years agotests/tcp: test for tcp invalid option fp
Victor Julien [Sat, 26 Dec 2020 07:39:57 +0000 (08:39 +0100)] 
tests/tcp: test for tcp invalid option fp

4 years agoMove checks about HTTP2 keywords in separate tests
Philippe Antoine [Tue, 23 Feb 2021 09:06:25 +0000 (10:06 +0100)] 
Move checks about HTTP2 keywords in separate tests

so as to have min-version 7 for them

4 years agoAdds check with http.stat_msg keyword and HTTP2 traffic
Philippe Antoine [Thu, 17 Dec 2020 15:03:30 +0000 (16:03 +0100)] 
Adds check with http.stat_msg keyword and HTTP2 traffic

4 years agoAdds check with http.user_agent keyword and HTTP2 traffic
Philippe Antoine [Thu, 17 Dec 2020 14:21:14 +0000 (15:21 +0100)] 
Adds check with http.user_agent keyword and HTTP2 traffic

4 years agoAdds checks with http.uri keyword and HTTP2 traffic
Philippe Antoine [Mon, 7 Dec 2020 11:33:01 +0000 (12:33 +0100)] 
Adds checks with http.uri keyword and HTTP2 traffic

4 years agoAdd test for uricontent matching regression
Shivani Bhardwaj [Sat, 22 Jun 2019 09:08:43 +0000 (14:38 +0530)] 
Add test for uricontent matching regression

Closes redmine ticket #3055.

4 years agoAdd test for http_uri matching regression
Shivani Bhardwaj [Sat, 22 Jun 2019 09:07:44 +0000 (14:37 +0530)] 
Add test for http_uri matching regression

Related to redmine ticket #78. This test has been added since uricontent
has been deprecated by http_uri.

4 years agoikev1: improve ikev1 tests
frank honza [Fri, 27 Mar 2020 15:18:24 +0000 (16:18 +0100)] 
ikev1: improve ikev1 tests

(Fixed commit by Victor Julien after accidental merge of wrong PR)

4 years agoikev1: add ikev1 test
frank honza [Fri, 27 Mar 2020 15:18:24 +0000 (16:18 +0100)] 
ikev1: add ikev1 test

4 years agoAdds test about decoder against too many layers
Philippe Antoine [Tue, 23 Feb 2021 13:50:44 +0000 (14:50 +0100)] 
Adds test about decoder against too many layers

4 years agoframework: add python requirements.txt 424/head
Aaron Bungay [Thu, 28 Jan 2021 17:21:37 +0000 (17:21 +0000)] 
framework: add python requirements.txt

4 years agobug-4199: need to pass on suri 6 463/head
Victor Julien [Fri, 26 Feb 2021 07:17:28 +0000 (08:17 +0100)] 
bug-4199: need to pass on suri 6

4 years agotests: add more complex tests for bug 4199
Victor Julien [Fri, 26 Feb 2021 07:15:10 +0000 (08:15 +0100)] 
tests: add more complex tests for bug 4199

4 years agobug-4199: Add test for forum-reported issue 460/head
Jeff Lucovsky [Sat, 23 Jan 2021 20:26:33 +0000 (15:26 -0500)] 
bug-4199: Add test for forum-reported issue

4 years agobug-4199: Tests for shared http request body
Jeff Lucovsky [Sat, 12 Dec 2020 15:04:25 +0000 (10:04 -0500)] 
bug-4199: Tests for shared http request body

4 years agotests: dcerpc/zerologon now passes on 6
Victor Julien [Wed, 24 Feb 2021 08:04:54 +0000 (09:04 +0100)] 
tests: dcerpc/zerologon now passes on 6

4 years agodcerpc: limit test for bug 4198 to 7 for now 459/head
Victor Julien [Tue, 23 Feb 2021 20:14:42 +0000 (21:14 +0100)] 
dcerpc: limit test for bug 4198 to 7 for now

4 years agodcerpc: test for bug 4198
Shivani Bhardwaj [Sat, 20 Feb 2021 14:46:31 +0000 (20:16 +0530)] 
dcerpc: test for bug 4198

4 years agosmb: lock new tests for 7 for now
Victor Julien [Tue, 23 Feb 2021 19:54:35 +0000 (20:54 +0100)] 
smb: lock new tests for 7 for now

4 years agoAdds test for SMB AndX evasion 458/head
Philippe Antoine [Wed, 25 Nov 2020 15:04:55 +0000 (16:04 +0100)] 
Adds test for SMB AndX evasion

4 years agoAdds test for smb padding evasion
Philippe Antoine [Tue, 14 Apr 2020 12:05:16 +0000 (14:05 +0200)] 
Adds test for smb padding evasion

4 years agoAdds smb overlap evasion test
Philippe Antoine [Tue, 14 Apr 2020 11:46:02 +0000 (13:46 +0200)] 
Adds smb overlap evasion test

4 years agohttp: increase time limit for sticky start test 441/head 456/head
Philippe Antoine [Wed, 17 Feb 2021 15:37:17 +0000 (16:37 +0100)] 
http: increase time limit for sticky start test

4 years agotests: add midstream protocol detection test 451/head
Ilya Bakhtin [Mon, 15 Feb 2021 18:04:39 +0000 (19:04 +0100)] 
tests: add midstream protocol detection test

In midstream protocol detection, the protocol must be detected
if the server message is split

4 years agodatasets: add test for loading 1m StringSets 450/head
Shivani Bhardwaj [Mon, 7 Sep 2020 07:03:02 +0000 (12:33 +0530)] 
datasets: add test for loading 1m StringSets

4 years agohttp/connect: remove app proto from filter 445/head
Shivani Bhardwaj [Fri, 19 Feb 2021 07:47:02 +0000 (13:17 +0530)] 
http/connect: remove app proto from filter

There is no DCERPC packet in the pcap. With the addition of probe
function in DCERPC, app_proto check for dcerpc causes the test to fail.
It is incorrect, remove it.

4 years agodcerpc/udp: remove test as pcap is not good
Shivani Bhardwaj [Sat, 13 Feb 2021 11:22:08 +0000 (16:52 +0530)] 
dcerpc/udp: remove test as pcap is not good

The pcap contains a lot of suspicious data that does not look like
DCERPC/UDP e.g. body in auth verifier. It is not properly handled by
applayer UDP parser with the probe function as there are UDP packets
preceding DCERPC/UDP causing failures.

4 years agodcerpc/udp: test with Scapy gen PCAP
Shivani Bhardwaj [Fri, 22 Jan 2021 13:17:08 +0000 (18:47 +0530)] 
dcerpc/udp: test with Scapy gen PCAP

4 years agotests: add iprep test for issue 4280 437/head
Victor Julien [Sat, 13 Feb 2021 19:23:05 +0000 (20:23 +0100)] 
tests: add iprep test for issue 4280

4 years agoparallel runs: initialize failedLogs on non-Linux 439/head
Tharushi Jayasekara [Tue, 16 Feb 2021 16:43:24 +0000 (22:13 +0530)] 
parallel runs: initialize failedLogs on non-Linux

4 years agoparallel runs: don't initialize MP at all on non-linux
Jason Ish [Thu, 11 Feb 2021 17:27:50 +0000 (11:27 -0600)] 
parallel runs: don't initialize MP at all on non-linux

On Windows, simply initializing seems to fail.

4 years agorun: remove parallel tests capability for Windows/Mac
Tharushi Jayasekara [Thu, 14 Jan 2021 13:32:48 +0000 (19:02 +0530)] 
run: remove parallel tests capability for Windows/Mac

4 years agorun.py: default to using python 3
Tharushi Jayasekara [Fri, 8 Jan 2021 06:35:02 +0000 (12:05 +0530)] 
run.py: default to using python 3

4 years agorun: fix maximum number of parallel processes
Tharushi Jayasekara [Fri, 8 Jan 2021 06:03:58 +0000 (11:33 +0530)] 
run: fix maximum number of parallel processes

Unless -j is provided, set the maximum number of processes to 8 if
the cpu count exceeds that.

4 years agorun: parallel tests capability
Tharushi Jayasekara [Mon, 14 Dec 2020 04:45:02 +0000 (10:15 +0530)] 
run: parallel tests capability

Used the python multiprocessing module to add parallel tests
capability.

Added a -j parameter to control the number of jobs defaulting to the
number of cores found by the mp module.

4 years agoCheck libnss required for JA3 support 425/head
Shivani Bhardwaj [Sat, 30 Jan 2021 06:37:08 +0000 (12:07 +0530)] 
Check libnss required for JA3 support

4 years agoCheck libnss for the required hash calculation
Shivani Bhardwaj [Sat, 30 Jan 2021 06:36:10 +0000 (12:06 +0530)] 
Check libnss for the required hash calculation

4 years agoAdds test for http post data decompression 422/head
Philippe Antoine [Tue, 1 Oct 2019 08:37:00 +0000 (10:37 +0200)] 
Adds test for http post data decompression

4 years agoframework: adds feature filtering per check 419/head
Philippe Antoine [Fri, 8 Jan 2021 14:50:19 +0000 (15:50 +0100)] 
framework: adds feature filtering per check

4 years agoAdds check for http2 file brotli decompression
Philippe Antoine [Tue, 17 Nov 2020 14:34:21 +0000 (15:34 +0100)] 
Adds check for http2 file brotli decompression

4 years agoAdds check for http2 file gzip decompression
Philippe Antoine [Thu, 12 Nov 2020 09:48:49 +0000 (10:48 +0100)] 
Adds check for http2 file gzip decompression

4 years agohttp2: checks there are no anomaly
Philippe Antoine [Tue, 10 Nov 2020 09:22:46 +0000 (10:22 +0100)] 
http2: checks there are no anomaly

4 years agohttp2: add files testing
Victor Julien [Sat, 7 Nov 2020 15:59:47 +0000 (16:59 +0100)] 
http2: add files testing

Update basic test to count files.

Add new test to inspect file.data and file hashes.

4 years agotests: nfs version for 5 414/head
Victor Julien [Wed, 20 Jan 2021 21:26:45 +0000 (22:26 +0100)] 
tests: nfs version for 5

4 years agotests: extend nfs test with logging, rules
Victor Julien [Wed, 20 Jan 2021 19:40:29 +0000 (20:40 +0100)] 
tests: extend nfs test with logging, rules

Limit to v6+

4 years agotests: add ssh keyword tests
Victor Julien [Wed, 20 Jan 2021 15:03:36 +0000 (16:03 +0100)] 
tests: add ssh keyword tests

4 years agotests: smb add smb.share test
Victor Julien [Wed, 20 Jan 2021 14:57:38 +0000 (15:57 +0100)] 
tests: smb add smb.share test

4 years agotests: add etopen parse test 412/head
Victor Julien [Wed, 20 Jan 2021 11:15:04 +0000 (12:15 +0100)] 
tests: add etopen parse test

4 years agotests: add dnp3 tests 410/head
Victor Julien [Tue, 19 Jan 2021 18:23:24 +0000 (19:23 +0100)] 
tests: add dnp3 tests

Based on pcaps from:
https://github.com/bro/bro/tree/master/testing/btest/Traces/dnp3

4 years agotests: don't test proto IPv6-ICMP 409/head
Victor Julien [Mon, 18 Jan 2021 21:28:10 +0000 (22:28 +0100)] 
tests: don't test proto IPv6-ICMP

https://redmine.openinfosecfoundation.org/issues/4267

4 years agotests/esp: Add test for logging ESP flow/netflow
Emmanuel Thompson [Wed, 6 May 2020 14:05:23 +0000 (10:05 -0400)] 
tests/esp: Add test for logging ESP flow/netflow

4 years agotests: add teredo test 408/head
Victor Julien [Mon, 18 Jan 2021 18:22:28 +0000 (19:22 +0100)] 
tests: add teredo test

4 years agotests: sctp should work with Windows
Victor Julien [Mon, 18 Jan 2021 17:02:45 +0000 (18:02 +0100)] 
tests: sctp should work with Windows

4 years agotests: add ERSPAN II test
Victor Julien [Mon, 18 Jan 2021 17:01:54 +0000 (18:01 +0100)] 
tests: add ERSPAN II test

4 years agotests: add tests for various tickets 407/head
Victor Julien [Mon, 18 Jan 2021 14:48:03 +0000 (15:48 +0100)] 
tests: add tests for various tickets

4 years agotests: add smb tests
Victor Julien [Mon, 18 Jan 2021 14:42:46 +0000 (15:42 +0100)] 
tests: add smb tests

4 years agotests: skip sctp test on windows 406/head
Victor Julien [Mon, 18 Jan 2021 10:57:58 +0000 (11:57 +0100)] 
tests: skip sctp test on windows

4 years agotests: add issue 3267 test 405/head
Victor Julien [Mon, 18 Jan 2021 09:48:14 +0000 (10:48 +0100)] 
tests: add issue 3267 test

4 years agotests: add issue 3341 test
Victor Julien [Mon, 18 Jan 2021 09:46:37 +0000 (10:46 +0100)] 
tests: add issue 3341 test

4 years agotests: add bug 2736 tests
Victor Julien [Mon, 18 Jan 2021 09:45:21 +0000 (10:45 +0100)] 
tests: add bug 2736 tests

4 years agotests: add bug 2558 tests
Victor Julien [Mon, 18 Jan 2021 09:44:17 +0000 (10:44 +0100)] 
tests: add bug 2558 tests

4 years agotests: add 2491 tests
Victor Julien [Mon, 18 Jan 2021 09:43:11 +0000 (10:43 +0100)] 
tests: add 2491 tests