]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
2 years agoAdds test about smb ntlmssp arbitrary order 1081/head
Philippe Antoine [Tue, 6 Dec 2022 13:28:48 +0000 (14:28 +0100)] 
Adds test about smb ntlmssp arbitrary order

Ticket: #5258

2 years agotest: update warning about bad hex 1080/head
Philippe Antoine [Thu, 15 Sep 2022 18:58:39 +0000 (20:58 +0200)] 
test: update warning about bad hex

To reflect the full content string

2 years agotests: update frames for stream frames 1071/head
Victor Julien [Sun, 8 Jan 2023 06:43:59 +0000 (07:43 +0100)] 
tests: update frames for stream frames

2 years agotests: fix tcp tests being too strict on tcp objects
Victor Julien [Sun, 8 Jan 2023 06:38:33 +0000 (07:38 +0100)] 
tests: fix tcp tests being too strict on tcp objects

2 years agotests: add rules for flow drops
Victor Julien [Thu, 22 Dec 2022 18:17:47 +0000 (19:17 +0100)] 
tests: add rules for flow drops

2 years agotests: tls nom7 updates 1063/head
Victor Julien [Thu, 29 Sep 2022 08:50:25 +0000 (10:50 +0200)] 
tests: tls nom7 updates

2 years agotests: tls updates for 6 backports
Victor Julien [Mon, 26 Sep 2022 17:12:22 +0000 (19:12 +0200)] 
tests: tls updates for 6 backports

2 years agooutput: fixups for output changes 1043/head
Victor Julien [Thu, 1 Dec 2022 19:33:26 +0000 (20:33 +0100)] 
output: fixups for output changes

2 years agotests: limit rfb community id check to 7 1041/head
Victor Julien [Thu, 15 Dec 2022 10:03:20 +0000 (11:03 +0100)] 
tests: limit rfb community id check to 7

2 years agotests: fix grep for openbsd
Victor Julien [Sat, 10 Dec 2022 19:01:30 +0000 (20:01 +0100)] 
tests: fix grep for openbsd

2 years agotests: fix pcap for openbsd
Victor Julien [Sat, 10 Dec 2022 14:59:52 +0000 (15:59 +0100)] 
tests: fix pcap for openbsd

2 years agotests: fix bug 4376 for openbsd
Victor Julien [Sat, 10 Dec 2022 11:01:47 +0000 (12:01 +0100)] 
tests: fix bug 4376 for openbsd

2 years agocreatest: rename add-version to simply version
Jason Ish [Wed, 7 Dec 2022 21:34:46 +0000 (15:34 -0600)] 
createst: rename add-version to simply version

This is a more consistent mapping to the documented name in test.yaml.

Also add --cfg to the README which was missing.

2 years agocreatest: document --features
Jason Ish [Wed, 7 Dec 2022 21:10:10 +0000 (15:10 -0600)] 
createst: document --features

2 years agocreatest: Commandline param to specify required features
Haleema Khan [Fri, 21 Oct 2022 01:46:46 +0000 (06:46 +0500)] 
createst: Commandline param to specify required features

Feature: #4061

2 years agodetect-bytemath: add tests
Haleema Khan [Mon, 24 Oct 2022 15:05:32 +0000 (20:05 +0500)] 
detect-bytemath: add tests

Ticket: #5589

2 years agotemplate tests: update for removal of C templates 1033/head
Jason Ish [Thu, 17 Nov 2022 22:01:50 +0000 (16:01 -0600)] 
template tests: update for removal of C templates

In 7, the rust based template parser is simply template.

2 years agorfb: adds a check for community_id field in a rfb event 1030/head
Philippe Antoine [Wed, 30 Nov 2022 15:28:14 +0000 (16:28 +0100)] 
rfb: adds a check for community_id field in a rfb event

2 years agotests/http2: Add tests for HTTP/2 decompression bug
David Beckett [Wed, 16 Nov 2022 18:32:01 +0000 (18:32 +0000)] 
tests/http2: Add tests for HTTP/2 decompression bug

7.0.0-beta1 hits anomaly, failed_decompression

2 years agosmtp: fix test counting empty new lines 1029/head
Philippe Antoine [Mon, 28 Nov 2022 20:54:53 +0000 (21:54 +0100)] 
smtp: fix test counting empty new lines

2 years agotests: issue 5223 for 6 1019/head suricata-6.0.9
Victor Julien [Sat, 26 Nov 2022 14:31:17 +0000 (15:31 +0100)] 
tests: issue 5223 for 6

2 years agotests: smb2 async for 6.0.x 1018/head
Victor Julien [Sat, 26 Nov 2022 06:58:20 +0000 (07:58 +0100)] 
tests: smb2 async for 6.0.x

2 years agotests: add tests for bug 5633 1017/head
Victor Julien [Fri, 25 Nov 2022 16:31:43 +0000 (17:31 +0100)] 
tests: add tests for bug 5633

2 years agosmb2: fixes test about smb events count 1014/head
Philippe Antoine [Wed, 23 Nov 2022 07:56:47 +0000 (08:56 +0100)] 
smb2: fixes test about smb events count

2 years agoAdds test about smb2 async read response
Philippe Antoine [Tue, 22 Nov 2022 20:45:52 +0000 (21:45 +0100)] 
Adds test about smb2 async read response

2 years agoframework: utf-8 validation in test stdout/stderr
Philippe Antoine [Fri, 23 Sep 2022 12:08:54 +0000 (14:08 +0200)] 
framework: utf-8 validation in test stdout/stderr

2 years agoframework: adds a timeout of 5 minutes per test
Philippe Antoine [Thu, 15 Sep 2022 08:59:50 +0000 (10:59 +0200)] 
framework: adds a timeout of 5 minutes per test

2 years agotests: add tests for negated protocol matching
Victor Julien [Tue, 21 Dec 2021 09:07:01 +0000 (10:07 +0100)] 
tests: add tests for negated protocol matching

2 years agoquic: adds signature for parsing check
Philippe Antoine [Fri, 28 Oct 2022 20:09:45 +0000 (22:09 +0200)] 
quic: adds signature for parsing check

2 years agosmtp: more valid SMTP for protocol-changed test
Philippe Antoine [Thu, 3 Nov 2022 10:38:36 +0000 (11:38 +0100)] 
smtp: more valid SMTP for protocol-changed test

That is one server banner, plus one response per request

2 years agotest/rules: Update ETOpen rules 1003/head
Jeff Lucovsky [Wed, 10 Aug 2022 12:00:22 +0000 (08:00 -0400)] 
test/rules: Update ETOpen rules

Issue: 2982

During 2982 development, an issue with some rules in the ETOpen ruleset
were discovered and reported to Proofpoint.

This commit updates the ETOpen rules containing the fixes for the
reported issue which manifested in 2 rules: sids 2037001 and 2035521.

2 years agotest/yaml: Improve YAML parsing error messages
Jeff Lucovsky [Tue, 25 Jan 2022 19:14:50 +0000 (14:14 -0500)] 
test/yaml: Improve YAML parsing error messages

Without this commit, a YAML syntactic error is silently ignored. This
patch displays the YAML exception, if any, that occurs while loading the
YAML config file.

2 years agotests/dsize Suricata version 7 and later tests
Jeff Lucovsky [Sat, 22 Jan 2022 14:33:50 +0000 (09:33 -0500)] 
tests/dsize Suricata version 7 and later tests

This commit adds a test for Suricata 7 and later with the new dsize
validation logic. A new error message indicating the actual and expected
dsize value is emitted when there's a mismatch.

2 years agogeneral: Typo fixup
Jeff Lucovsky [Fri, 21 Jan 2022 15:35:11 +0000 (10:35 -0500)] 
general: Typo fixup

2 years agotests: Update to use modified error message
Jeff Lucovsky [Sat, 13 Feb 2021 15:36:33 +0000 (10:36 -0500)] 
tests: Update to use modified error message

2 years agotests: Add test case for 2982
Jeff Lucovsky [Sat, 13 Feb 2021 15:36:11 +0000 (10:36 -0500)] 
tests: Add test case for 2982

2 years agotests: update pcre test for new output
Victor Julien [Tue, 1 Nov 2022 09:12:03 +0000 (10:12 +0100)] 
tests: update pcre test for new output

Disable on 6 until we can do version checks per shell check.

2 years agocreatest: add arg for setting midstream true
Juliana Fajardini [Thu, 24 Feb 2022 19:31:44 +0000 (19:31 +0000)] 
createst: add arg for setting midstream true

With this, one can pass '--midstream' and this will add that as a test
argument and write it to test.yaml. Default is still midstream false.

2 years agotests: add test for pgsql out of order params bug
Juliana Fajardini [Wed, 7 Sep 2022 19:38:12 +0000 (16:38 -0300)] 
tests: add test for pgsql out of order params bug

StartupMessages for pgsql have a series of parameters that may show up
in any order, so let's make sure we can indeed parse them if, for
instance, user, which is a mandatory parameter, isn't the first to be
seen in the list.

Related to
Bug #5524

2 years agotests/pgsql: adjust to new startup message format
Juliana Fajardini [Wed, 7 Sep 2022 19:11:44 +0000 (16:11 -0300)] 
tests/pgsql: adjust to new startup message format

With the pgsql improving, we made database an optional parameter (as it
is, according to the documentation). Then the tests had to be updated.

2 years agotests: add tests for real bittorrent-dht traffic 984/head
Jason Ish [Tue, 4 Oct 2022 22:02:31 +0000 (16:02 -0600)] 
tests: add tests for real bittorrent-dht traffic

2 years agodetect-bytetest: add tests 982/head
Modupe Falodun [Tue, 1 Mar 2022 23:06:21 +0000 (00:06 +0100)] 
detect-bytetest: add tests

Task: 4911

2 years agoreadme: update createst explanation, add examples
Juliana Fajardini [Wed, 6 Jul 2022 19:35:12 +0000 (16:35 -0300)] 
readme: update createst explanation, add examples

There were optional arguments missing in the usage  shown, as well as in
the list with explanations about possible arguments.

2 years agocreatest: fix typo, update copyright year
Juliana Fajardini [Thu, 24 Feb 2022 20:17:47 +0000 (20:17 +0000)] 
createst: fix typo, update copyright year

2 years agocreatest: add option for custom suricata.yaml
Shivani Bhardwaj [Mon, 27 Jun 2022 10:25:38 +0000 (15:55 +0530)] 
createst: add option for custom suricata.yaml

2 years agodetect-icmp-seq: add test
Alice Akaki [Wed, 26 Oct 2022 02:42:12 +0000 (22:42 -0400)] 
detect-icmp-seq: add test

Task: #5597

2 years agodetect-itype: add tests
Haleema Khan [Sat, 22 Oct 2022 03:53:55 +0000 (08:53 +0500)] 
detect-itype: add tests

Ticket: #5590

2 years agotests: add test for issue 4751
Haleema Khan [Fri, 21 Oct 2022 21:06:02 +0000 (02:06 +0500)] 
tests: add test for issue 4751

Ticket: #4751

2 years agocreatest: add the add-version param to specify Suricata version
Alice Akaki [Wed, 19 Oct 2022 04:54:02 +0000 (00:54 -0400)] 
createst: add the add-version param to specify Suricata version

Feature #4059

2 years agotests: add ip dataset loading test
Eric Leblond [Sun, 19 Jun 2022 11:19:47 +0000 (13:19 +0200)] 
tests: add ip dataset loading test

2 years agotests: add ipv6 dataset test
Eric Leblond [Sun, 19 Jun 2022 11:08:18 +0000 (13:08 +0200)] 
tests: add ipv6 dataset test

Also this test ip.src keyword

2 years agotests: add ipv4 set save test
Eric Leblond [Sun, 19 Jun 2022 11:03:13 +0000 (13:03 +0200)] 
tests: add ipv4 set save test

2 years agotests: add test for issue 5223
Shivani Bhardwaj [Fri, 7 Oct 2022 04:44:09 +0000 (10:14 +0530)] 
tests: add test for issue 5223

2 years agoAdds check about flow.age keyword
Philippe Antoine [Fri, 23 Sep 2022 09:31:52 +0000 (11:31 +0200)] 
Adds check about flow.age keyword

2 years agoadd test for extended security ipopts
Sascha Steinbiss [Thu, 22 Sep 2022 14:11:19 +0000 (16:11 +0200)] 
add test for extended security ipopts

2 years agotests: update nfs for mac logging fix 966/head
Victor Julien [Thu, 20 Oct 2022 05:18:00 +0000 (07:18 +0200)] 
tests: update nfs for mac logging fix

2 years agotests: various tag rules 962/head
Victor Julien [Sat, 15 Oct 2022 14:56:14 +0000 (16:56 +0200)] 
tests: various tag rules

2 years agotests: add suppress tests 961/head
Victor Julien [Sat, 15 Oct 2022 09:50:06 +0000 (11:50 +0200)] 
tests: add suppress tests

2 years agotests: add rate_filter tests 960/head
Victor Julien [Sat, 15 Oct 2022 06:07:10 +0000 (08:07 +0200)] 
tests: add rate_filter tests

2 years agobug78: relax flow checking suricata-6.0.8
Eric Leblond [Sun, 25 Sep 2022 17:39:59 +0000 (19:39 +0200)] 
bug78: relax flow checking

2 years agotests: add tests for ntlmssp keywords
Eric Leblond [Mon, 27 Jun 2022 04:17:31 +0000 (06:17 +0200)] 
tests: add tests for ntlmssp keywords

2 years agotests: add http file with gap test
Victor Julien [Wed, 21 Sep 2022 07:39:36 +0000 (09:39 +0200)] 
tests: add http file with gap test

2 years agofiles: update for tx-files work
Victor Julien [Sat, 17 Sep 2022 12:30:17 +0000 (14:30 +0200)] 
files: update for tx-files work

2 years agofilestore: do not enforce a warning id
Philippe Antoine [Tue, 26 Jul 2022 14:28:42 +0000 (16:28 +0200)] 
filestore: do not enforce a warning id

2 years agotests: tls nom7 updates
Victor Julien [Thu, 29 Sep 2022 08:50:25 +0000 (10:50 +0200)] 
tests: tls nom7 updates

2 years agotests: flowbit bad rules handling for 6.0.7 952/head
Victor Julien [Mon, 26 Sep 2022 08:37:48 +0000 (10:37 +0200)] 
tests: flowbit bad rules handling for 6.0.7

2 years agoincomplete-hex: check --init-errors-fatal
Jason Ish [Thu, 22 Sep 2022 18:14:33 +0000 (12:14 -0600)] 
incomplete-hex: check --init-errors-fatal

For version 6, non-fatal.
For version 7, fatal.

2 years agoincomplete hex: test with strict content keyword
Jason Ish [Thu, 22 Sep 2022 18:07:34 +0000 (12:07 -0600)] 
incomplete hex: test with strict content keyword

With strict content parsing, -T should fail out for version 6 and 7.

2 years agoincomplete-hex: -T tests for version 6 and 7
Jason Ish [Thu, 22 Sep 2022 18:03:09 +0000 (12:03 -0600)] 
incomplete-hex: -T tests for version 6 and 7

For version 7, incomplete hex should lead to a -T failure.  For
version 6, -T should pass.

2 years agotest-bad-hex-rule-1: update output for Suricata 6.0.7
Jason Ish [Tue, 20 Sep 2022 18:04:46 +0000 (12:04 -0600)] 
test-bad-hex-rule-1: update output for Suricata 6.0.7

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

2 years agotests: limit tls fragmentation test to 7
Victor Julien [Mon, 26 Sep 2022 08:33:56 +0000 (10:33 +0200)] 
tests: limit tls fragmentation test to 7

2 years agotests: add test with sslv2 start 944/head
Victor Julien [Thu, 18 Aug 2022 09:29:14 +0000 (11:29 +0200)] 
tests: add test with sslv2 start

2 years agotests: add tls fragmentation test
Victor Julien [Thu, 11 Aug 2022 19:03:19 +0000 (21:03 +0200)] 
tests: add tls fragmentation test

2 years agotests: update ssl tests after event rework
Victor Julien [Thu, 11 Aug 2022 09:26:56 +0000 (11:26 +0200)] 
tests: update ssl tests after event rework

2 years agotests: disable unittests as we investigate issues 941/head
Victor Julien [Mon, 19 Sep 2022 17:16:34 +0000 (19:16 +0200)] 
tests: disable unittests as we investigate issues

2 years agorunner: handle binary output from suricata stderr/stdout
Jason Ish [Thu, 15 Sep 2022 15:34:48 +0000 (09:34 -0600)] 
runner: handle binary output from suricata stderr/stdout

Don't attempt to decode output from Suricata stderr/stdout as utf-8, it
is required for relaying the output from Suricata to the log files,
in fact, its not even desired.  The log files should have a verbatim
copy of the output for analysis.

Only attempt to utf-8 decode the output when logging in verbose mode,
and then if that fails, fallback to logging the data as a byte buffer.

2 years agotests: run Suricata unittests 932/head
Victor Julien [Wed, 23 Feb 2022 19:59:43 +0000 (20:59 +0100)] 
tests: run Suricata unittests

`ut-complete` runs all tests, but disables ASAN leak checks.

`ut-leakcheck` runs 500ish tests that should pass.

2 years agotests/iprep: add a non-matching rule
Victor Julien [Wed, 23 Feb 2022 18:26:23 +0000 (19:26 +0100)] 
tests/iprep: add a non-matching rule

2 years agogh/workflow: use enable-debug-validation w build
Shivani Bhardwaj [Wed, 23 Mar 2022 07:02:35 +0000 (12:32 +0530)] 
gh/workflow: use enable-debug-validation w build

2 years agotests: add ips midstream exception policy tests
Juliana Fajardini [Wed, 17 Aug 2022 15:18:13 +0000 (12:18 -0300)] 
tests: add ips midstream exception policy tests

2 years agorunner: print suricata command line in verbose mode
Jason Ish [Thu, 4 Aug 2022 16:24:42 +0000 (10:24 -0600)] 
runner: print suricata command line in verbose mode

2 years agorunner: don't fail if the pcap filename is falsey
Jason Ish [Thu, 4 Aug 2022 16:20:14 +0000 (10:20 -0600)] 
runner: don't fail if the pcap filename is falsey

Instead, if the pcap filename is a "falsey" value in Python, treat it
like "pcap: false" in the requires section as this is an easy mistake to
make, and in some cases makes more sense to allow false where you could
also override the filename.

2 years agorunner: error out on errors from the runner
Jason Ish [Thu, 4 Aug 2022 15:51:59 +0000 (09:51 -0600)] 
runner: error out on errors from the runner

Currently exceptions from tests that are not explicitly handled are lost
due to the way Python's multiprocessing module works.  This means that
programming errors in the runner are silently ignore with the test not
being run or counted.

Instead, log the traceback for any unexpected exception and terminate
the runner, as this is programming error in the runner and should always
be fatal.

2 years agoAdds quic ietf v1 test 931/head
Philippe Antoine [Tue, 22 Feb 2022 08:20:26 +0000 (09:20 +0100)] 
Adds quic ietf v1 test

2 years agoAdds smb2 async test
Philippe Antoine [Thu, 2 Sep 2021 10:11:28 +0000 (12:11 +0200)] 
Adds smb2 async test

2 years agotests: add tests to check flow drops
Victor Julien [Fri, 17 Jun 2022 14:38:09 +0000 (16:38 +0200)] 
tests: add tests to check flow drops

2 years agotest/event: Test for reassembly depth reached event
Jeff Lucovsky [Tue, 12 Jul 2022 13:18:09 +0000 (09:18 -0400)] 
test/event: Test for reassembly depth reached event

Issue: 3512

This commit adds a test to validate that the stream reassembly depth
event fire.

2 years agoAdds test for kerberos ticket_encryption
Philippe Antoine [Tue, 12 Jul 2022 07:21:36 +0000 (09:21 +0200)] 
Adds test for kerberos ticket_encryption

2 years agotests/lua: Byte-extract/byte-math tests
Jeff Lucovsky [Fri, 29 Jul 2022 12:53:40 +0000 (08:53 -0400)] 
tests/lua: Byte-extract/byte-math tests

Issue: 2871

2 years agolua: Test byte_extract access from match scripts
Benjamin Wilkins [Tue, 9 Nov 2021 21:00:13 +0000 (16:00 -0500)] 
lua: Test byte_extract access from match scripts

2 years agoadd test for broken smtp url logging
Shivani Bhardwaj [Tue, 9 Aug 2022 05:14:35 +0000 (10:44 +0530)] 
add test for broken smtp url logging

2 years agotls: add test for tls.random keyword
Shivani Bhardwaj [Wed, 27 Jul 2022 05:18:50 +0000 (10:48 +0530)] 
tls: add test for tls.random keyword

2 years agoAdds test about event for failed protocol change
Philippe Antoine [Mon, 22 Aug 2022 15:46:20 +0000 (17:46 +0200)] 
Adds test about event for failed protocol change

2 years agodhcp: adds check about renewal_time keyword
Philippe Antoine [Thu, 25 Aug 2022 15:13:15 +0000 (17:13 +0200)] 
dhcp: adds check about renewal_time keyword

2 years agodhcp: adds check about rebinding_time keyword
Philippe Antoine [Thu, 25 Aug 2022 15:11:26 +0000 (17:11 +0200)] 
dhcp: adds check about rebinding_time keyword

2 years agodhcp: adds test about leasetime keyword
Philippe Antoine [Mon, 4 Jul 2022 12:36:57 +0000 (14:36 +0200)] 
dhcp: adds test about leasetime keyword

2 years agoadd bsize keyword tests
jason taylor [Mon, 25 Jul 2022 23:37:02 +0000 (23:37 +0000)] 
add bsize keyword tests

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agotests: add basic test for reject exception policy
Juliana Fajardini [Tue, 6 Sep 2022 22:02:15 +0000 (19:02 -0300)] 
tests: add basic test for reject exception policy

This test only ensures that Suricata does drop packet/flow after
reaching an exception condition with a 'reject' policy.

Related to
Task #5503

2 years agotests: add dsize option signature tests
jason taylor [Wed, 24 Aug 2022 15:48:38 +0000 (15:48 +0000)] 
tests: add dsize option signature tests

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agoAdds test for http file to server
Philippe Antoine [Fri, 26 Aug 2022 07:26:59 +0000 (09:26 +0200)] 
Adds test for http file to server