]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
3 years agotests: add test for bug 5197 898/head
Shivani Bhardwaj [Mon, 21 Mar 2022 13:33:02 +0000 (19:03 +0530)] 
tests: add test for bug 5197

3 years agotest/alert-max: add check for discarded alerts 896/head
Juliana Fajardini [Tue, 5 Apr 2022 19:47:31 +0000 (16:47 -0300)] 
test/alert-max: add check for discarded alerts

Check that we correctly log to stats how many alerts have been discarded
due to packet alert queue overflow.

Task #5179

3 years agotests: add test for cornercase alert_max case
Juliana Fajardini [Wed, 23 Feb 2022 12:35:41 +0000 (12:35 +0000)] 
tests: add test for cornercase alert_max case

With dynamic memory alocation of the packet alert queue, we must make
sure that when we rearrange signatures in the alert queue we are not
leaking memory. This test is intended to cover such a case.

Related to
Task #4943

3 years agotests: add test for packet_alert_max more than 15
Juliana Fajardini [Wed, 19 Jan 2022 18:46:17 +0000 (18:46 +0000)] 
tests: add test for packet_alert_max more than 15

Task#4207

3 years agotests: add test for max alert default & noalerts
Shivani Bhardwaj [Fri, 7 Jan 2022 10:20:02 +0000 (15:50 +0530)] 
tests: add test for max alert default & noalerts

Since the default max alert value is 15 and we want to ensure that that
value is enforced if the configuration is set with something invalid,
this test has packet-max-alert set to 0 (which will fall back to 15,
the default). We have 15 'noalert' rules and 1 alert rule that gets
triggered.

Related to task #4942

3 years agotests: less strict fileinfo checks for bug-130 894/head
Victor Julien [Thu, 28 Jul 2022 05:46:10 +0000 (07:46 +0200)] 
tests: less strict fileinfo checks for bug-130

3 years agotests: do not validate an empty array in bug-130
Philippe Antoine [Fri, 1 Jul 2022 18:30:44 +0000 (20:30 +0200)] 
tests: do not validate an empty array in bug-130

3 years agotests/filestore-5408: requires HAVE_NSS suricata-5.0.10 suricata-6.0.6
Jason Ish [Tue, 12 Jul 2022 17:04:30 +0000 (11:04 -0600)] 
tests/filestore-5408: requires HAVE_NSS

3 years agoips-state: test flow pass for ip-only rule with negation
Jason Ish [Mon, 9 May 2022 15:37:32 +0000 (09:37 -0600)] 
ips-state: test flow pass for ip-only rule with negation

Ticket: #5361

3 years agodatasets: add test for bug 5109
Shivani Bhardwaj [Tue, 29 Mar 2022 06:34:45 +0000 (12:04 +0530)] 
datasets: add test for bug 5109

3 years agoframework: ability to run rules based on a min suricata version
Philippe Antoine [Fri, 1 Jul 2022 12:04:17 +0000 (14:04 +0200)] 
framework: ability to run rules based on a min suricata version

3 years agosnmp: adds rule check about snmp.usm keyword
Philippe Antoine [Wed, 29 Jun 2022 19:23:47 +0000 (21:23 +0200)] 
snmp: adds rule check about snmp.usm keyword

3 years agothreshold: adds test for threshold.config with by_rule
Philippe Antoine [Thu, 28 Apr 2022 14:38:05 +0000 (16:38 +0200)] 
threshold: adds test for threshold.config with by_rule

3 years agosmtp: do not test server detection failure
Philippe Antoine [Wed, 29 Jun 2022 19:55:45 +0000 (21:55 +0200)] 
smtp: do not test server detection failure

3 years agodns: test DNS frames
Jason Ish [Mon, 14 Feb 2022 14:49:16 +0000 (08:49 -0600)] 
dns: test DNS frames

3 years agoAdds regression test against forced filestore 869/head
Philippe Antoine [Fri, 1 Jul 2022 11:21:21 +0000 (13:21 +0200)] 
Adds regression test against forced filestore

Cf https://redmine.openinfosecfoundation.org/issues/5408

3 years agogithub/workflow: explicitly add cargo 855/head
Victor Julien [Tue, 14 Jun 2022 11:02:04 +0000 (13:02 +0200)] 
github/workflow: explicitly add cargo

3 years agotests: add dcerpc/smb test 854/head
Victor Julien [Tue, 14 Jun 2022 09:52:17 +0000 (11:52 +0200)] 
tests: add dcerpc/smb test

3 years agotests: various dcerpc updates
Victor Julien [Tue, 14 Jun 2022 09:49:36 +0000 (11:49 +0200)] 
tests: various dcerpc updates

3 years agotests: add test for bug 5392 853/head
Victor Julien [Mon, 13 Jun 2022 12:34:52 +0000 (14:34 +0200)] 
tests: add test for bug 5392

3 years agotests: update http gap test to fixed size logic
Victor Julien [Mon, 13 Jun 2022 12:32:30 +0000 (14:32 +0200)] 
tests: update http gap test to fixed size logic

3 years agotests/eve-alert-verbose: introduce test 852/head
Eric Leblond [Sun, 2 Aug 2020 16:49:42 +0000 (18:49 +0200)] 
tests/eve-alert-verbose: introduce test

Introduce test on alert verbosity change.

3 years agoAdd bug-1450 tests for suricata 7.0.0 and later
Pierre Chifflier [Sun, 20 Feb 2022 14:54:15 +0000 (15:54 +0100)] 
Add bug-1450 tests for suricata 7.0.0 and later

3 years agoSet maximum version for bug-1450-01
Pierre Chifflier [Sun, 20 Feb 2022 14:52:45 +0000 (15:52 +0100)] 
Set maximum version for bug-1450-01

3 years agoAdds test about DNS probing with junk request
Philippe Antoine [Wed, 17 Jul 2019 13:30:08 +0000 (15:30 +0200)] 
Adds test about DNS probing with junk request

3 years agolua: Test SCRule* functions for match scripts
Benjamin Wilkins [Tue, 2 Nov 2021 19:24:21 +0000 (15:24 -0400)] 
lua: Test SCRule* functions for match scripts

3 years agoAdds test about stream_size keyword
Philippe Antoine [Wed, 1 Jun 2022 12:26:55 +0000 (14:26 +0200)] 
Adds test about stream_size keyword

3 years agoAdds test about filesize keyword
Philippe Antoine [Wed, 1 Jun 2022 12:17:11 +0000 (14:17 +0200)] 
Adds test about filesize keyword

3 years agotests: add dcerpc test per #3109
Travis Green [Mon, 14 Oct 2019 16:03:10 +0000 (09:03 -0700)] 
tests: add dcerpc test per #3109

3 years agotests: add test for issue 4376
Victor Julien [Fri, 10 Jun 2022 12:20:34 +0000 (14:20 +0200)] 
tests: add test for issue 4376

3 years agoAdd tests for smb/dcerpc missing alert
Shivani Bhardwaj [Fri, 25 Mar 2022 10:29:09 +0000 (15:59 +0530)] 
Add tests for smb/dcerpc missing alert

3 years agotests: add test for bug 5162
Shivani Bhardwaj [Mon, 21 Mar 2022 14:14:56 +0000 (19:44 +0530)] 
tests: add test for bug 5162

3 years agotests: ips exception handling tests 846/head
Victor Julien [Mon, 21 Mar 2022 21:03:13 +0000 (22:03 +0100)] 
tests: ips exception handling tests

3 years agotests: test for bug 76
Victor Julien [Mon, 21 Mar 2022 21:03:44 +0000 (22:03 +0100)] 
tests: test for bug 76

3 years agogithub-ci: don't build eve-validator 830/head
Jason Ish [Fri, 3 Jun 2022 20:15:05 +0000 (14:15 -0600)] 
github-ci: don't build eve-validator

Building the eve-validator program is now automatically done as part of
running suricata-verify.

3 years agoeve-validator: reduce features in rust deps
Jason Ish [Wed, 25 May 2022 19:00:09 +0000 (13:00 -0600)] 
eve-validator: reduce features in rust deps

Should remove the requirement on system openssl being installed.

3 years agoeve-validator: better error messages
Jason Ish [Wed, 25 May 2022 17:44:08 +0000 (11:44 -0600)] 
eve-validator: better error messages

On file read error and schema parse errors.

3 years agoeve-validation: always build and run eve-validator
Jason Ish [Mon, 16 May 2022 20:20:40 +0000 (14:20 -0600)] 
eve-validation: always build and run eve-validator

Always build and run the eve-validator as part of Suricata-Verify. This
should only add extra time on first run, or after changes to the
"eve-validator" or an upgrade in the Rust toolchain.

Validation can be disabled with the --no-validation command line option.

Validation will not be run if the Suricata source tree does not contain
etc/schema.json.

Validation will also not run on Windows as there is an issue calling the
validation command that needs further looking into.

3 years agoschema.json: use file from suriceta source tree
Philippe Antoine [Thu, 12 May 2022 18:42:07 +0000 (20:42 +0200)] 
schema.json: use file from suriceta source tree

3 years agojsonschema: only run for version >= 7
Philippe Antoine [Wed, 24 Nov 2021 20:54:55 +0000 (21:54 +0100)] 
jsonschema: only run for version >= 7

3 years agojsonschema: use rust utility
Philippe Antoine [Mon, 22 Nov 2021 16:16:08 +0000 (17:16 +0100)] 
jsonschema: use rust utility

As it is faster than python

3 years agojsonschema: prints warning if we really do not have it
Philippe Antoine [Thu, 18 Nov 2021 08:36:55 +0000 (09:36 +0100)] 
jsonschema: prints warning if we really do not have it

3 years agooutput-pcap-log: test copy that tests <7 behavior 838/head
Victor Julien [Tue, 31 May 2022 09:58:35 +0000 (11:58 +0200)] 
output-pcap-log: test copy that tests <7 behavior

3 years agooutput-pcap-log: fixup tests for Suricata versions 834/head
Victor Julien [Mon, 30 May 2022 18:14:43 +0000 (20:14 +0200)] 
output-pcap-log: fixup tests for Suricata versions

3 years agooutput-pcap-log-conditional-tag-alert: new test 833/head
Eric Leblond [Thu, 4 Mar 2021 21:08:39 +0000 (22:08 +0100)] 
output-pcap-log-conditional-tag-alert: new test

Test that tag:session produce the same result as alerts when
using pcap conditional.

3 years agooutput-pcap-log-conditional-noalert: introduce test
Eric Leblond [Thu, 4 Mar 2021 21:05:21 +0000 (22:05 +0100)] 
output-pcap-log-conditional-noalert: introduce test

Verify that conditional pcap logging do not log if ever there is no
alert.

3 years agooutput-pcap-log-conditional-alert: introduce test
Eric Leblond [Thu, 4 Mar 2021 20:59:39 +0000 (21:59 +0100)] 
output-pcap-log-conditional-alert: introduce test

It uses pcap conditional mode with a matching signature and test
that the resulting pcap is what is expected.

3 years agooutput-pcap-log: update expected file
Eric Leblond [Thu, 4 Mar 2021 18:07:02 +0000 (19:07 +0100)] 
output-pcap-log: update expected file

Following changes due to conditional logging of pcap the output file
when reading pcap is now log.pcap.0 and the test had to be updated
accordingly.

3 years agotests: add tests for rule's actions 832/head
Juliana Fajardini [Thu, 26 May 2022 21:35:55 +0000 (18:35 -0300)] 
tests: add tests for rule's actions

These were converted from unittests present in `util-action`.

Task #5371

3 years agoftp: test where first segment of command should be truncated
Jason Ish [Fri, 22 Apr 2022 20:04:52 +0000 (14:04 -0600)] 
ftp: test where first segment of command should be truncated

3 years agoftp tests: ftp tests for issue 5024
Jason Ish [Thu, 7 Apr 2022 17:10:40 +0000 (11:10 -0600)] 
ftp tests: ftp tests for issue 5024

Test for truncation of command requests and responses when they exceed
the maximum limit.

Associated Redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5024

3 years agocreatest: add min-version option
Tharushi Jayasekara [Sat, 24 Oct 2020 04:01:16 +0000 (09:31 +0530)] 
createst: add min-version option

Commandline param to specify minimum required version of Suricata

3 years agotests: fix ftp-data direction 817/head
Victor Julien [Sun, 1 May 2022 06:34:25 +0000 (08:34 +0200)] 
tests: fix ftp-data direction

3 years agotftp: test loading of a tftp rule
Jason Ish [Wed, 2 Feb 2022 23:11:22 +0000 (17:11 -0600)] 
tftp: test loading of a tftp rule

Update an existing tftp test to add a rule to test that rule can be
loaded.

Ticket: https://redmine.openinfosecfoundation.org/issues/5038

3 years agosmb2-named-pipe-unicode: new test for smb_named_pipe keyword
Eloy Pérez González [Fri, 25 Feb 2022 10:18:40 +0000 (11:18 +0100)] 
smb2-named-pipe-unicode: new test for smb_named_pipe keyword

3 years agotest/ipproto: Validate proto name/numbers
Jeff Lucovsky [Sat, 12 Feb 2022 14:52:49 +0000 (09:52 -0500)] 
test/ipproto: Validate proto name/numbers

Issue 5072

3 years agoadd tests for MQTT events
Sascha Steinbiss [Fri, 11 Mar 2022 18:46:32 +0000 (19:46 +0100)] 
add tests for MQTT events

3 years agotest: update checks for logging
Sam Muhammed [Fri, 4 Mar 2022 13:02:41 +0000 (15:02 +0200)] 
test: update checks for logging

3 years agotests: tests for iponly issue 5066
Victor Julien [Fri, 4 Feb 2022 15:05:26 +0000 (16:05 +0100)] 
tests: tests for iponly issue 5066

3 years agoRevert "test/from_base64: from_base64 transform test"
Jason Ish [Fri, 29 Apr 2022 18:29:44 +0000 (12:29 -0600)] 
Revert "test/from_base64: from_base64 transform test"

This reverts commit 7c1ff6dcca1c313eac2cae2b1feeb3ae40e53fec.

3 years agosmb-dce_opnum: set min version to 6
Eloy Pérez González [Thu, 10 Feb 2022 09:18:39 +0000 (10:18 +0100)] 
smb-dce_opnum: set min version to 6

3 years agosmb-dce_iface: set min version to 6
Eloy Pérez González [Thu, 10 Feb 2022 09:18:10 +0000 (10:18 +0100)] 
smb-dce_iface: set min version to 6

3 years agodcerpc-dce-iface-many: set min version to 6
Eloy Pérez González [Thu, 10 Feb 2022 09:17:43 +0000 (10:17 +0100)] 
dcerpc-dce-iface-many: set min version to 6

3 years agoAdded test to validate the pppoe decoder can handle an 8 bit protocol field.
Steven Ottenhoff [Thu, 13 Jan 2022 14:47:38 +0000 (14:47 +0000)] 
Added test to validate the pppoe decoder can handle an 8 bit protocol field.

Redmine https://redmine.openinfosecfoundation.org/issues/4810

3 years agotest/from_base64: from_base64 transform test
Jeff Lucovsky [Wed, 13 Apr 2022 13:06:26 +0000 (09:06 -0400)] 
test/from_base64: from_base64 transform test

Issue: 5220
This commit adds a simple test case for the from_base64 transform.

3 years agorunner: convert relative pcap filenames to full path
Jason Ish [Fri, 29 Apr 2022 16:14:43 +0000 (10:14 -0600)] 
runner: convert relative pcap filenames to full path

Allows copying and pasting the `cmdline` file when relative pcap file
names are used.

3 years agoAdds an smtp test
Philippe Antoine [Thu, 17 Mar 2022 20:32:42 +0000 (21:32 +0100)] 
Adds an smtp test

Ticket: 4948

3 years agodetect-dnp3: add tests
Modupe Falodun [Mon, 28 Feb 2022 08:41:03 +0000 (09:41 +0100)] 
detect-dnp3: add tests

Task: 4911

3 years agorules parsing: updates emerging-all.rules 810/head
Philippe Antoine [Mon, 25 Apr 2022 14:35:14 +0000 (16:35 +0200)] 
rules parsing: updates emerging-all.rules

from http://rules.emergingthreats.net/open/suricata-6.0/emerging-all.rules

3 years agotest-bad-hex-rule-1: add rule with incomplete hex
Jason Ish [Tue, 22 Mar 2022 15:53:59 +0000 (09:53 -0600)] 
test-bad-hex-rule-1: add rule with incomplete hex

Add a rule with incomplete hex, for example "|22 2 22|" which
should result in a parse error.

Ticket #5201.

3 years agoAdds test about xor transform
Philippe Antoine [Fri, 22 Oct 2021 17:48:49 +0000 (19:48 +0200)] 
Adds test about xor transform

3 years agoxff: checks dependig on suricata version 796/head 803/head suricata-5.0.9 suricata-6.0.5
Philippe Antoine [Fri, 18 Mar 2022 10:13:56 +0000 (11:13 +0100)] 
xff: checks dependig on suricata version

3 years agodcerpc: update keywords 761/head
Modupe Falodun [Tue, 22 Feb 2022 17:26:00 +0000 (18:26 +0100)] 
dcerpc: update keywords

3 years agodetect-dce-iface: add tests
Modupe Falodun [Tue, 22 Feb 2022 17:19:27 +0000 (18:19 +0100)] 
detect-dce-iface: add tests

Task: 4911

3 years agonfs: add test for memleak w file_data
Shivani Bhardwaj [Sat, 5 Feb 2022 08:58:42 +0000 (14:28 +0530)] 
nfs: add test for memleak w file_data

3 years agosmtp-startssl: remove version 7 requirement
Shivani Bhardwaj [Sat, 5 Feb 2022 08:21:45 +0000 (13:51 +0530)] 
smtp-startssl: remove version 7 requirement

3 years agodns-z-bit: remove version 7 requirement
Shivani Bhardwaj [Sat, 5 Feb 2022 08:21:24 +0000 (13:51 +0530)] 
dns-z-bit: remove version 7 requirement

3 years agossh-banner-only: update test.yaml checks
Juliana Fajardini [Tue, 18 Jan 2022 16:58:21 +0000 (16:58 +0000)] 
ssh-banner-only: update test.yaml checks

Added filter for rule sid 3 which had none
Uncommented rule sid 2

3 years agonfs: Add detection rules for NFS3_READDIRPLUS 757/head
Sam Muhammed [Thu, 10 Feb 2022 15:20:12 +0000 (17:20 +0200)] 
nfs: Add detection rules for NFS3_READDIRPLUS

Improve S-V test for NFS3PROC_READDIRPLUS
related to Suri@ 03906010a

3 years agohttp2-files: add comparison for fast.log output
Juliana Fajardini [Tue, 15 Feb 2022 12:25:05 +0000 (12:25 +0000)] 
http2-files: add comparison for fast.log output

The idea is to compare that, each time, the alerts generated are queued
in the same order. This test was selected because it has several txs,
some of which trigger alerts for same signatures in the same packet,
and it failed with a bug related to alert queuing optimization.

3 years agodetect-file-data: add tests for SMTP file data 753/head
Modupe Falodun [Wed, 2 Feb 2022 15:02:11 +0000 (16:02 +0100)] 
detect-file-data: add tests for SMTP file data

Task: 4938

3 years agossh-banner: add tests
Modupe Falodun [Thu, 10 Feb 2022 13:39:40 +0000 (14:39 +0100)] 
ssh-banner: add tests

Bug: 4903

3 years agodetect-flowbits: add tests
Modupe Falodun [Sat, 12 Feb 2022 09:25:30 +0000 (10:25 +0100)] 
detect-flowbits: add tests

Task: 4911

3 years agotests: add sip with frames test 711/head
Victor Julien [Tue, 1 Feb 2022 09:38:41 +0000 (10:38 +0100)] 
tests: add sip with frames test

3 years agotests: add bug 4953 test 707/head
Victor Julien [Thu, 13 Jan 2022 14:44:53 +0000 (15:44 +0100)] 
tests: add bug 4953 test

3 years agodetect-engine-enip: add unittest
Modupe Falodun [Tue, 1 Feb 2022 21:56:43 +0000 (22:56 +0100)] 
detect-engine-enip: add unittest

Task: 4911

3 years agodetect-dce-opnum: add test
Modupe Falodun [Tue, 1 Feb 2022 21:25:54 +0000 (22:25 +0100)] 
detect-dce-opnum: add test

Task: 4911

3 years agonfs3: add test for readdirplus records 699/head
Sam Muhammed [Sat, 22 Jan 2022 14:30:58 +0000 (16:30 +0200)] 
nfs3: add test for readdirplus records

Required for nfs3_records unittests
4e2edd44aa08f08286001701ec0860c6638625d5

Task #4866

3 years agotests: add test for smtp extract url schemes
Aaron Bungay [Sat, 13 Jun 2020 18:31:01 +0000 (14:31 -0400)] 
tests: add test for smtp extract url schemes

3 years agotests: set minimum version to 6 for 4877 695/head
Victor Julien [Sat, 29 Jan 2022 16:54:01 +0000 (17:54 +0100)] 
tests: set minimum version to 6 for 4877

3 years agotests: add bug 1450 tests
Victor Julien [Sat, 29 Jan 2022 16:14:42 +0000 (17:14 +0100)] 
tests: add bug 1450 tests

3 years agodetect/bypass: add test for detect-bypass
Modupe Falodun [Thu, 27 Jan 2022 22:11:42 +0000 (23:11 +0100)] 
detect/bypass: add test for detect-bypass

Task: 4911

3 years agohttp-response-line: add unittests
Modupe Falodun [Thu, 27 Jan 2022 09:49:34 +0000 (10:49 +0100)] 
http-response-line: add unittests

Task: 4911

3 years agohttp-request-line: add unittests
Modupe Falodun [Tue, 25 Jan 2022 21:48:05 +0000 (22:48 +0100)] 
http-request-line: add unittests

Task: 4911

3 years agodetect-proto: add tests for detect-engine-proto
Modupe Falodun [Mon, 24 Jan 2022 21:53:45 +0000 (22:53 +0100)] 
detect-proto: add tests for detect-engine-proto

Task: 4911

3 years agotests: Prevent errors when testing threshold.config 693/head
Jeff Lucovsky [Wed, 26 Jan 2022 18:28:54 +0000 (13:28 -0500)] 
tests: Prevent errors when testing threshold.config

This commit causes the tests to use a known, valid reference.config
file for the tests. With the introduction of reference.config file
validation, those errors will occur before threshold.config is
validated.

3 years agotests/reference: Reference.config validation
Jeff Lucovsky [Wed, 5 Jan 2022 19:57:34 +0000 (14:57 -0500)] 
tests/reference: Reference.config validation

This commit adds tests for reference.config file validation.

Test 1 uses Suricata's test mode with an invalid formatted file while
test 2 runs Suricata in inspect mode with the same invalid file.

3 years agotest: Specify reference config file
Jeff Lucovsky [Tue, 7 Sep 2021 13:21:04 +0000 (09:21 -0400)] 
test: Specify reference config file

3 years agopgsql: fix tx direction for tests 690/head
Victor Julien [Thu, 27 Jan 2022 15:48:40 +0000 (16:48 +0100)] 
pgsql: fix tx direction for tests

3 years agobug-4877: add test for stream-tcp-reassembly issue
Angelo Mirabella [Thu, 20 Jan 2022 14:49:54 +0000 (14:49 +0000)] 
bug-4877: add test for stream-tcp-reassembly issue