]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
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

3 years agodcerpc: use new sticky buffer keywords
Shivani Bhardwaj [Fri, 24 Dec 2021 11:21:55 +0000 (16:51 +0530)] 
dcerpc: use new sticky buffer keywords

3 years agosmb: add dce_opnum tests
Eloy Pérez González [Fri, 22 Oct 2021 09:35:43 +0000 (11:35 +0200)] 
smb: add dce_opnum tests

3 years agosmb: add dce_iface tests
Eloy Pérez González [Fri, 22 Oct 2021 09:52:15 +0000 (11:52 +0200)] 
smb: add dce_iface tests

3 years agodcerpc: add dce_iface test to match many request/responses
Eloy Pérez González [Fri, 22 Oct 2021 10:18:39 +0000 (12:18 +0200)] 
dcerpc: add dce_iface test to match many request/responses

3 years agodcerpc-iface-01: update alert count to also match response
Eloy Pérez González [Thu, 4 Nov 2021 13:30:02 +0000 (14:30 +0100)] 
dcerpc-iface-01: update alert count to also match response

3 years agotests/quic: change min-version to 7 671/head
Juliana Fajardini [Thu, 20 Jan 2022 16:38:48 +0000 (16:38 +0000)] 
tests/quic: change min-version to 7

Quic was released with Suricata 7.0

3 years agoquic: convert pcap-ng to pcap 669/head
Victor Julien [Sun, 16 Jan 2022 09:54:03 +0000 (10:54 +0100)] 
quic: convert pcap-ng to pcap

3 years agotests/quic: add sni test
Victor Julien [Sat, 15 Jan 2022 18:37:27 +0000 (19:37 +0100)] 
tests/quic: add sni test

3 years agoquic: update for new quic.version
Victor Julien [Fri, 14 Jan 2022 22:04:34 +0000 (23:04 +0100)] 
quic: update for new quic.version

3 years agoquic: gquic tests for cyu hash and alerts
Emmanuel Thompson [Thu, 24 Sep 2020 15:20:08 +0000 (11:20 -0400)] 
quic: gquic tests for cyu hash and alerts

pcaps taken from this redmine attachement:
https://redmine.openinfosecfoundation.org/issues/3440#note-8

3 years agorunner: only set ASAN_OPTIONS if not set
Jason Ish [Wed, 19 Jan 2022 18:25:27 +0000 (12:25 -0600)] 
runner: only set ASAN_OPTIONS if not set

This allows the caller to override the ASAN_OPTIONS if needed.

3 years agotests: add basic telnet test
Victor Julien [Fri, 7 Jan 2022 15:16:16 +0000 (16:16 +0100)] 
tests: add basic telnet test

3 years agotests: split frame tests into their own tests
Jason Ish [Wed, 19 Jan 2022 18:38:25 +0000 (12:38 -0600)] 
tests: split frame tests into their own tests

These are all copied from other tests.  As new rule keywords
were added these tests needed to be recreated with the min-version
set to 7.

3 years agotests: update several tests to test frames support
Victor Julien [Thu, 9 Sep 2021 07:48:21 +0000 (09:48 +0200)] 
tests: update several tests to test frames support

3 years agotests: add pgsql tests
Juliana Fajardini [Tue, 21 Sep 2021 10:51:42 +0000 (11:51 +0100)] 
tests: add pgsql tests

These tests cover an assortment of pgsql authentication methods,
simple queries, error response messages, as well as SSL handshakes,
both rejected and accepted (w/ start tls enabled). Non-verbose log style
is enabled.

Related to task #4241

3 years agodetect-modbus: add tests to modbus
Modupe Falodun [Sat, 15 Jan 2022 22:53:42 +0000 (23:53 +0100)] 
detect-modbus: add tests to modbus

Task: 4911

3 years agodetect-hostbits: convert unittests 666/head
Modupe Falodun [Wed, 19 Jan 2022 21:48:58 +0000 (22:48 +0100)] 
detect-hostbits: convert unittests

Task: 4911

3 years agodns-z-bit: test dns z-bit alert and logging
Jason Ish [Tue, 21 Dec 2021 22:59:24 +0000 (16:59 -0600)] 
dns-z-bit: test dns z-bit alert and logging

Tickets: 4515, 4924

3 years agogeneral: Typo fixup
Jeff Lucovsky [Sat, 18 Dec 2021 13:16:32 +0000 (08:16 -0500)] 
general: Typo fixup

3 years agosmtp-starttls: test logging of smtp txn after startssl
Jason Ish [Thu, 11 Nov 2021 22:44:25 +0000 (16:44 -0600)] 
smtp-starttls: test logging of smtp txn after startssl

For ticket https://redmine.openinfosecfoundation.org/issues/4817.

3 years agorunner: convert runtime exceptions to TestError 646/head
Jason Ish [Thu, 6 Jan 2022 17:09:35 +0000 (11:09 -0600)] 
runner: convert runtime exceptions to TestError

Convert exceptions from code errors (well, any unexpected exception)
into a TestError. This allows the test to be reported as failed.

I think because tests are run in separate processes, its harder to
catch these sorts of errors.

3 years agorunner: wrap file compare exceptions in TestError
Jason Ish [Tue, 21 Dec 2021 16:13:12 +0000 (10:13 -0600)] 
runner: wrap file compare exceptions in TestError

If filecmp.cmp failed with an exception due to a missing file,
its exception was being lost due to another issue in the runner.

For this case it makes sense to catch this exception and wrap
it in a TestError exception as its most likely a missing file.

3 years agotests: fix 4710 tests where reject support is missing 616/head
Victor Julien [Wed, 15 Dec 2021 11:32:53 +0000 (12:32 +0100)] 
tests: fix 4710 tests where reject support is missing

3 years agotests: test for security ticket 4710 610/head
Victor Julien [Fri, 8 Oct 2021 10:26:37 +0000 (12:26 +0200)] 
tests: test for security ticket 4710

3 years agossh-banner: remove version check 607/head
Shivani Bhardwaj [Fri, 5 Nov 2021 19:48:18 +0000 (01:18 +0530)] 
ssh-banner: remove version check

3 years agoAdd test about enip keywords
Philippe Antoine [Thu, 9 Dec 2021 10:13:49 +0000 (11:13 +0100)] 
Add test about enip keywords

3 years agorunner: make env string safe before substitution 606/head
Jason Ish [Sun, 12 Dec 2021 20:18:15 +0000 (14:18 -0600)] 
runner: make env string safe before substitution

The environment cannot always be used safely with
string.Template as not all environment variables
are string safe.

Before substituting environment vars in the command
and args, sanitized to string safe values.

3 years agodatasets-05-state: fix pcap file
Jason Ish [Sun, 12 Dec 2021 18:34:05 +0000 (12:34 -0600)] 
datasets-05-state: fix pcap file

Broke in commit 13a538ed3b752e4c34830cdf973435ab3160cf8c.

3 years agoRevert "tests: disable dataset test with broken path handling"
Jason Ish [Sun, 12 Dec 2021 16:25:08 +0000 (10:25 -0600)] 
Revert "tests: disable dataset test with broken path handling"

This reverts commit 0bd6984e1249778d6668dd4a906d42a53481279f.

3 years agorunner: pass environment to shell checks
Jason Ish [Sun, 12 Dec 2021 16:32:19 +0000 (10:32 -0600)] 
runner: pass environment to shell checks

This allows a shell check to know where to found the output
directory.

This will allow us to revert 0bd6984e1249778d6668dd4a906d42a53481279f.

3 years agotests: disable dataset test with broken path handling
Victor Julien [Sun, 12 Dec 2021 07:45:24 +0000 (08:45 +0100)] 
tests: disable dataset test with broken path handling

3 years agoci: test --outdir 603/head
Victor Julien [Sun, 12 Dec 2021 07:33:54 +0000 (08:33 +0100)] 
ci: test --outdir

3 years agorunner: more detail when shell check fails
Jason Ish [Fri, 10 Dec 2021 18:27:11 +0000 (12:27 -0600)] 
runner: more detail when shell check fails

3 years agosmtp/rfc2231: lock min version at 7
Shivani Bhardwaj [Thu, 9 Dec 2021 07:50:55 +0000 (13:20 +0530)] 
smtp/rfc2231: lock min version at 7

3 years agodataset tests: use args instead of full command
Jason Ish [Fri, 10 Dec 2021 15:13:14 +0000 (09:13 -0600)] 
dataset tests: use args instead of full command

All these tests were using a full command to set the --data-dir
argument. Instead just the default command be used but add an
addition --data-dir argument.

3 years agodatasets-06-state-long: fix file compare
Jason Ish [Fri, 10 Dec 2021 15:27:23 +0000 (09:27 -0600)] 
datasets-06-state-long: fix file compare

Different versions of sort will sort differently. So
sort the expected data as well before comparing it
with sorted output.

3 years agodataset-06-state-long: add test on learning dataset
Eric Leblond [Sat, 21 Aug 2021 20:52:29 +0000 (22:52 +0200)] 
dataset-06-state-long: add test on learning dataset

Test that suricata can learn a set of 1200 DNS rrname and store
correctly the result on disk.

3 years agoAdds test for SMTP with RFC2231
Philippe Antoine [Fri, 4 Jun 2021 13:02:12 +0000 (15:02 +0200)] 
Adds test for SMTP with RFC2231

ie attachment filename split over multiple sections

3 years agoFixes mqtt unassgined test
Philippe Antoine [Thu, 2 Dec 2021 15:50:24 +0000 (16:50 +0100)] 
Fixes mqtt unassgined test

There is only one occurence of mqtt.msgtype == 0
So there should be only one alert

3 years agoasan: error out on memory leaks
Victor Julien [Mon, 6 Dec 2021 16:04:46 +0000 (17:04 +0100)] 
asan: error out on memory leaks

3 years agoAdds a hostname check to http-ipv6 test suricata-6.0.4
Philippe Antoine [Mon, 11 Oct 2021 15:42:44 +0000 (17:42 +0200)] 
Adds a hostname check to http-ipv6 test

3 years agoAdds test with http over IPv6
Philippe Antoine [Wed, 21 Jul 2021 12:01:31 +0000 (14:01 +0200)] 
Adds test with http over IPv6

and absence of anomalies

3 years agogithub-ci: run check-eve.py standalone
Jason Ish [Tue, 26 Oct 2021 15:56:53 +0000 (09:56 -0600)] 
github-ci: run check-eve.py standalone

So check-eve is fully tested as well.

3 years agorunner: only validate eve if jsonschema is available
Jason Ish [Tue, 26 Oct 2021 15:50:04 +0000 (09:50 -0600)] 
runner: only validate eve if jsonschema is available

We can only validate eve output if the jsonschema Python module
is available. Instead of requiring it at this time, print out a
warning and skip the test.

3 years agocheck-eve: print full filename being tested
Jason Ish [Tue, 26 Oct 2021 15:45:43 +0000 (09:45 -0600)] 
check-eve: print full filename being tested

With check-eve it makes more sense to print the full filename
being tested rather than just the test name.  As it is possible
that more than the expected eve.json is being tested.

3 years agogithub-ci: add python3-jsonschema
Jason Ish [Mon, 1 Mar 2021 16:17:56 +0000 (10:17 -0600)] 
github-ci: add python3-jsonschema

Required for the EVE schema tests.

3 years agorun.py: integrate check-eve.py
Tharushi Jayasekara [Wed, 24 Feb 2021 16:53:25 +0000 (22:23 +0530)] 
run.py: integrate check-eve.py

3 years agocheck-eve: script to validate eve.json output
Tharushi Jayasekara [Wed, 24 Feb 2021 16:52:16 +0000 (22:22 +0530)] 
check-eve: script to validate eve.json output

3 years agoschema.json: schema to validate eve.json output
Tharushi Jayasekara [Wed, 24 Feb 2021 16:49:44 +0000 (22:19 +0530)] 
schema.json: schema to validate eve.json output

3 years agolua: adds test about ScFlowVarGet
Philippe Antoine [Thu, 21 Oct 2021 11:43:01 +0000 (13:43 +0200)] 
lua: adds test about ScFlowVarGet

cf redmine 2094

3 years agoframework: allow to use env variables in args
Philippe Antoine [Fri, 22 Oct 2021 10:16:42 +0000 (12:16 +0200)] 
framework: allow to use env variables in args

such as OUTPUT_DIR for datasets

3 years agoAdds test with dataset and pcrexform for unique param
Philippe Antoine [Thu, 21 Oct 2021 20:03:34 +0000 (22:03 +0200)] 
Adds test with dataset and pcrexform for unique param

3 years agotls-fingerprint: test sticky buffer variant
Jason [Mon, 18 Oct 2021 21:44:22 +0000 (17:44 -0400)] 
tls-fingerprint: test sticky buffer variant

Add another rule and filter to test the sticky buffer variant
of a tls fingerprint match. Also shows that the 2 are more or
less equivalent.

3 years agoAdds test about HTTP2 disabled
Philippe Antoine [Fri, 17 Sep 2021 14:47:35 +0000 (16:47 +0200)] 
Adds test about HTTP2 disabled

3 years agotests: fix http-urldecode-body test on openbsd 564/head
Victor Julien [Mon, 18 Oct 2021 14:59:30 +0000 (16:59 +0200)] 
tests: fix http-urldecode-body test on openbsd

Tshark rewrite of the pcap, turning timestamps from nanosecond
to microsecond.

3 years agotests: fix fastopen test on openbsd 563/head
Victor Julien [Mon, 18 Oct 2021 14:30:32 +0000 (16:30 +0200)] 
tests: fix fastopen test on openbsd

Just rewrote it with:

tshark -F pcap -r <old> -w <new>

This changed the md5sum, so something changed.

OpenBSD 7.0 reported caplen of 0.

3 years agotests: fix pcapng pcaps 562/head
Victor Julien [Mon, 18 Oct 2021 13:18:49 +0000 (15:18 +0200)] 
tests: fix pcapng pcaps

3 years agoci: fix pcapng check on ubuntu
Victor Julien [Mon, 18 Oct 2021 13:16:57 +0000 (15:16 +0200)] 
ci: fix pcapng check on ubuntu

3 years agorunner: fix tests always being run in quiet mode 558/head
Jason Ish [Sun, 10 Oct 2021 05:10:35 +0000 (23:10 -0600)] 
runner: fix tests always being run in quiet mode

Fix an early return introduced in
9839097b816d2f7e1cb00d4f4e98919565d122a1, which resulted in a quiet like
mode all the time.

3 years agotests: convert check.sh to test.yaml
Jason Ish [Mon, 20 Sep 2021 17:43:49 +0000 (11:43 -0600)] 
tests: convert check.sh to test.yaml

3 years agoAdds tests about IPv6 fragmentation 557/head
Philippe Antoine [Fri, 10 Sep 2021 11:38:05 +0000 (13:38 +0200)] 
Adds tests about IPv6 fragmentation

3 years agomodbus: enable in configuration
Philippe Antoine [Thu, 7 Oct 2021 08:53:00 +0000 (10:53 +0200)] 
modbus: enable in configuration

3 years agosmb-eicar-padding: bump min-version to 6
Shivani Bhardwaj [Wed, 6 Oct 2021 10:29:39 +0000 (15:59 +0530)] 
smb-eicar-padding: bump min-version to 6

3 years agosmb-eicar-overlap: bump min-version to 6
Shivani Bhardwaj [Wed, 6 Oct 2021 10:29:28 +0000 (15:59 +0530)] 
smb-eicar-overlap: bump min-version to 6

3 years agokrb5-probing: bump min-version to 6
Shivani Bhardwaj [Wed, 6 Oct 2021 10:29:13 +0000 (15:59 +0530)] 
krb5-probing: bump min-version to 6

3 years agoissue-3703: bump min-version to 6
Shivani Bhardwaj [Wed, 6 Oct 2021 10:29:02 +0000 (15:59 +0530)] 
issue-3703: bump min-version to 6

3 years agossh: fix alert count 554/head
Shivani Bhardwaj [Mon, 6 Sep 2021 01:00:30 +0000 (06:30 +0530)] 
ssh: fix alert count

3 years agogithub-ci: add pcre2
Jason Ish [Wed, 29 Sep 2021 17:44:02 +0000 (11:44 -0600)] 
github-ci: add pcre2

3 years agoUse generic PCRE string for error code checking 549/head
Philippe Antoine [Tue, 25 May 2021 15:38:38 +0000 (17:38 +0200)] 
Use generic PCRE string for error code checking

3 years agopcrexform: test becomes obsolete in version 7
Philippe Antoine [Tue, 16 Mar 2021 19:37:07 +0000 (20:37 +0100)] 
pcrexform: test becomes obsolete in version 7

converted to a unit test failing to load the signature

3 years agotests: enable issue 4663 tests for 5 and 6
Victor Julien [Tue, 28 Sep 2021 12:41:26 +0000 (14:41 +0200)] 
tests: enable issue 4663 tests for 5 and 6

3 years agoSets minimum version 6 for ip6 invalid fragment length 547/head
Philippe Antoine [Fri, 10 Sep 2021 09:06:08 +0000 (11:06 +0200)] 
Sets minimum version 6 for ip6 invalid fragment length

3 years agoAds various tests about IPv6 denial of service
Philippe Antoine [Fri, 23 Jul 2021 15:56:35 +0000 (17:56 +0200)] 
Ads various tests about IPv6 denial of service

3 years agoAdds test about IPv6 smurf detection
Philippe Antoine [Fri, 23 Jul 2021 15:44:06 +0000 (17:44 +0200)] 
Adds test about IPv6 smurf detection

aka (spoofed) ping to multicast

3 years agoAdds test about ICMPv6 kill router
Philippe Antoine [Tue, 20 Jul 2021 08:51:27 +0000 (10:51 +0200)] 
Adds test about ICMPv6 kill router

3 years agoAdds test about ipv6 unknown dst opts
Philippe Antoine [Tue, 20 Jul 2021 07:57:00 +0000 (09:57 +0200)] 
Adds test about ipv6 unknown dst opts

used as way to have a covert channel

3 years agoAdds test about icmpv6 type and code detection
Philippe Antoine [Mon, 19 Jul 2021 13:47:40 +0000 (15:47 +0200)] 
Adds test about icmpv6 type and code detection

3 years agoAdds test about tcp protocol detection bailout
Philippe Antoine [Fri, 23 Apr 2021 20:24:20 +0000 (22:24 +0200)] 
Adds test about tcp protocol detection bailout

3 years agoAdd test for Bug #4503
Mats Klepsland [Mon, 31 May 2021 10:57:05 +0000 (12:57 +0200)] 
Add test for Bug #4503

3 years agorun.py: remove support for check.sh
Jason Ish [Mon, 20 Sep 2021 19:28:38 +0000 (13:28 -0600)] 
run.py: remove support for check.sh

3 years agoci: run in quiet mode
Jason Ish [Sat, 18 Sep 2021 00:30:53 +0000 (18:30 -0600)] 
ci: run in quiet mode

3 years agoci: give jobs better names
Jason Ish [Fri, 17 Sep 2021 22:30:46 +0000 (16:30 -0600)] 
ci: give jobs better names

3 years agoci: add lua to the ubuntu builds
Jason Ish [Fri, 17 Sep 2021 22:29:11 +0000 (16:29 -0600)] 
ci: add lua to the ubuntu builds

3 years agoci: add almalinux build to test on RHEL-like systems
Jason Ish [Fri, 17 Sep 2021 22:24:03 +0000 (16:24 -0600)] 
ci: add almalinux build to test on RHEL-like systems

The test is done on Ubuntu, but there are some variations
between RHEL-like and Ubuntu that we should catch.

3 years agoAdds http2 range test
Philippe Antoine [Fri, 3 Sep 2021 09:09:57 +0000 (11:09 +0200)] 
Adds http2 range test

3 years agoAdds http range test over multiple flows
Philippe Antoine [Thu, 18 Feb 2021 09:40:22 +0000 (10:40 +0100)] 
Adds http range test over multiple flows

3 years agoAdds incomplete test for http range file
Philippe Antoine [Fri, 6 Dec 2019 14:58:09 +0000 (15:58 +0100)] 
Adds incomplete test for http range file

3 years agolua: fix ua-scfileinfo on 5.0.x w/o NSS 546/head
Victor Julien [Mon, 27 Sep 2021 12:38:25 +0000 (14:38 +0200)] 
lua: fix ua-scfileinfo on 5.0.x w/o NSS

3 years agofilestore-stream-depth: fix test for 6.0.x
Shivani Bhardwaj [Fri, 17 Sep 2021 06:06:58 +0000 (11:36 +0530)] 
filestore-stream-depth: fix test for 6.0.x

3 years agolua/fileinfo: match script and expected output 540/head
Victor Julien [Fri, 17 Sep 2021 09:24:33 +0000 (11:24 +0200)] 
lua/fileinfo: match script and expected output

3 years agotests: add test for lua SCFileInfo
Juliana Fajardini [Thu, 16 Sep 2021 13:41:00 +0000 (14:41 +0100)] 
tests: add test for lua SCFileInfo

Prep for using lua's pushinteger function in SCFileInfo callbacks

3 years agotests: add test for lua's SCRuleIds function
Juliana Fajardini [Mon, 26 Jul 2021 13:58:19 +0000 (14:58 +0100)] 
tests: add test for lua's SCRuleIds function

3 years agotests: add test for SCFlowStats function
Juliana Fajardini [Mon, 26 Jul 2021 13:49:23 +0000 (14:49 +0100)] 
tests: add test for SCFlowStats function

3 years agotests: add lua SCPacketTuple test
Juliana Fajardini [Thu, 1 Jul 2021 18:58:22 +0000 (19:58 +0100)] 
tests: add lua SCPacketTuple test

3 years agotests: add lua SCFlowTuple test
Juliana Fajardini [Thu, 1 Jul 2021 18:57:11 +0000 (19:57 +0100)] 
tests: add lua SCFlowTuple test

3 years agotests: add bug 4663 and 4670 tests
Victor Julien [Fri, 3 Sep 2021 15:03:24 +0000 (17:03 +0200)] 
tests: add bug 4663 and 4670 tests

3 years agorunner: add --quiet option
Jason Ish [Wed, 8 Sep 2021 16:59:44 +0000 (10:59 -0600)] 
runner: add --quiet option

With --quiet each successful test won't be output, instead
just failed tests, the final summary and maybe some other
useful diagnostic info.

Quiet will also suppress skipped tests from being printed.

3 years agotests: fix tests for suricata <=6 530/head
Victor Julien [Mon, 6 Sep 2021 10:17:56 +0000 (12:17 +0200)] 
tests: fix tests for suricata <=6