]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Victor Julien [Mon, 30 May 2022 18:14:43 +0000 (20:14 +0200)]
output-pcap-log: fixup tests for Suricata versions
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.
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.
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.
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.
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
Jason Ish [Fri, 22 Apr 2022 20:04:52 +0000 (14:04 -0600)]
ftp: test where first segment of command should be truncated
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
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
Victor Julien [Sun, 1 May 2022 06:34:25 +0000 (08:34 +0200)]
tests: fix ftp-data direction
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
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
Jeff Lucovsky [Sat, 12 Feb 2022 14:52:49 +0000 (09:52 -0500)]
test/ipproto: Validate proto name/numbers
Issue 5072
Sascha Steinbiss [Fri, 11 Mar 2022 18:46:32 +0000 (19:46 +0100)]
add tests for MQTT events
Sam Muhammed [Fri, 4 Mar 2022 13:02:41 +0000 (15:02 +0200)]
test: update checks for logging
Victor Julien [Fri, 4 Feb 2022 15:05:26 +0000 (16:05 +0100)]
tests: tests for iponly issue 5066
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 .
Eloy Pérez González [Thu, 10 Feb 2022 09:18:39 +0000 (10:18 +0100)]
smb-dce_opnum: 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
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
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
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.
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.
Philippe Antoine [Thu, 17 Mar 2022 20:32:42 +0000 (21:32 +0100)]
Adds an smtp test
Ticket: 4948
Modupe Falodun [Mon, 28 Feb 2022 08:41:03 +0000 (09:41 +0100)]
detect-dnp3: add tests
Task: 4911
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
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.
Philippe Antoine [Fri, 22 Oct 2021 17:48:49 +0000 (19:48 +0200)]
Adds test about xor transform
Philippe Antoine [Fri, 18 Mar 2022 10:13:56 +0000 (11:13 +0100)]
xff: checks dependig on suricata version
Modupe Falodun [Tue, 22 Feb 2022 17:26:00 +0000 (18:26 +0100)]
dcerpc: update keywords
Modupe Falodun [Tue, 22 Feb 2022 17:19:27 +0000 (18:19 +0100)]
detect-dce-iface: add tests
Task: 4911
Shivani Bhardwaj [Sat, 5 Feb 2022 08:58:42 +0000 (14:28 +0530)]
nfs: add test for memleak w file_data
Shivani Bhardwaj [Sat, 5 Feb 2022 08:21:45 +0000 (13:51 +0530)]
smtp-startssl: remove version 7 requirement
Shivani Bhardwaj [Sat, 5 Feb 2022 08:21:24 +0000 (13:51 +0530)]
dns-z-bit: remove version 7 requirement
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
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
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.
Modupe Falodun [Wed, 2 Feb 2022 15:02:11 +0000 (16:02 +0100)]
detect-file-data: add tests for SMTP file data
Task: 4938
Modupe Falodun [Thu, 10 Feb 2022 13:39:40 +0000 (14:39 +0100)]
ssh-banner: add tests
Bug: 4903
Modupe Falodun [Sat, 12 Feb 2022 09:25:30 +0000 (10:25 +0100)]
detect-flowbits: add tests
Task: 4911
Victor Julien [Tue, 1 Feb 2022 09:38:41 +0000 (10:38 +0100)]
tests: add sip with frames test
Victor Julien [Thu, 13 Jan 2022 14:44:53 +0000 (15:44 +0100)]
tests: add bug 4953 test
Modupe Falodun [Tue, 1 Feb 2022 21:56:43 +0000 (22:56 +0100)]
detect-engine-enip: add unittest
Task: 4911
Modupe Falodun [Tue, 1 Feb 2022 21:25:54 +0000 (22:25 +0100)]
detect-dce-opnum: add test
Task: 4911
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
Aaron Bungay [Sat, 13 Jun 2020 18:31:01 +0000 (14:31 -0400)]
tests: add test for smtp extract url schemes
Victor Julien [Sat, 29 Jan 2022 16:54:01 +0000 (17:54 +0100)]
tests: set minimum version to 6 for 4877
Victor Julien [Sat, 29 Jan 2022 16:14:42 +0000 (17:14 +0100)]
tests: add bug 1450 tests
Modupe Falodun [Thu, 27 Jan 2022 22:11:42 +0000 (23:11 +0100)]
detect/bypass: add test for detect-bypass
Task: 4911
Modupe Falodun [Thu, 27 Jan 2022 09:49:34 +0000 (10:49 +0100)]
http-response-line: add unittests
Task: 4911
Modupe Falodun [Tue, 25 Jan 2022 21:48:05 +0000 (22:48 +0100)]
http-request-line: add unittests
Task: 4911
Modupe Falodun [Mon, 24 Jan 2022 21:53:45 +0000 (22:53 +0100)]
detect-proto: add tests for detect-engine-proto
Task: 4911
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.
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.
Jeff Lucovsky [Tue, 7 Sep 2021 13:21:04 +0000 (09:21 -0400)]
test: Specify reference config file
Victor Julien [Thu, 27 Jan 2022 15:48:40 +0000 (16:48 +0100)]
pgsql: fix tx direction for tests
Angelo Mirabella [Thu, 20 Jan 2022 14:49:54 +0000 (14:49 +0000)]
bug-4877: add test for stream-tcp-reassembly issue
Shivani Bhardwaj [Fri, 24 Dec 2021 11:21:55 +0000 (16:51 +0530)]
dcerpc: use new sticky buffer keywords
Eloy Pérez González [Fri, 22 Oct 2021 09:35:43 +0000 (11:35 +0200)]
smb: add dce_opnum tests
Eloy Pérez González [Fri, 22 Oct 2021 09:52:15 +0000 (11:52 +0200)]
smb: add dce_iface tests
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
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
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
Victor Julien [Sun, 16 Jan 2022 09:54:03 +0000 (10:54 +0100)]
quic: convert pcap-ng to pcap
Victor Julien [Sat, 15 Jan 2022 18:37:27 +0000 (19:37 +0100)]
tests/quic: add sni test
Victor Julien [Fri, 14 Jan 2022 22:04:34 +0000 (23:04 +0100)]
quic: update for new quic.version
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
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.
Victor Julien [Fri, 7 Jan 2022 15:16:16 +0000 (16:16 +0100)]
tests: add basic telnet test
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.
Victor Julien [Thu, 9 Sep 2021 07:48:21 +0000 (09:48 +0200)]
tests: update several tests to test frames support
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
Modupe Falodun [Sat, 15 Jan 2022 22:53:42 +0000 (23:53 +0100)]
detect-modbus: add tests to modbus
Task: 4911
Modupe Falodun [Wed, 19 Jan 2022 21:48:58 +0000 (22:48 +0100)]
detect-hostbits: convert unittests
Task: 4911
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
Jeff Lucovsky [Sat, 18 Dec 2021 13:16:32 +0000 (08:16 -0500)]
general: Typo fixup
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.
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.
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.
Victor Julien [Wed, 15 Dec 2021 11:32:53 +0000 (12:32 +0100)]
tests: fix 4710 tests where reject support is missing
Victor Julien [Fri, 8 Oct 2021 10:26:37 +0000 (12:26 +0200)]
tests: test for security ticket 4710
Shivani Bhardwaj [Fri, 5 Nov 2021 19:48:18 +0000 (01:18 +0530)]
ssh-banner: remove version check
Philippe Antoine [Thu, 9 Dec 2021 10:13:49 +0000 (11:13 +0100)]
Add test about enip keywords
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.
Jason Ish [Sun, 12 Dec 2021 18:34:05 +0000 (12:34 -0600)]
datasets-05-state: fix pcap file
Broke in commit
13a538ed3b752e4c34830cdf973435ab3160cf8c .
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 .
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 .
Victor Julien [Sun, 12 Dec 2021 07:45:24 +0000 (08:45 +0100)]
tests: disable dataset test with broken path handling
Victor Julien [Sun, 12 Dec 2021 07:33:54 +0000 (08:33 +0100)]
ci: test --outdir
Jason Ish [Fri, 10 Dec 2021 18:27:11 +0000 (12:27 -0600)]
runner: more detail when shell check fails
Shivani Bhardwaj [Thu, 9 Dec 2021 07:50:55 +0000 (13:20 +0530)]
smtp/rfc2231: lock min version at 7
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.
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.
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.
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
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
Victor Julien [Mon, 6 Dec 2021 16:04:46 +0000 (17:04 +0100)]
asan: error out on memory leaks
Philippe Antoine [Mon, 11 Oct 2021 15:42:44 +0000 (17:42 +0200)]
Adds a hostname check to http-ipv6 test
Philippe Antoine [Wed, 21 Jul 2021 12:01:31 +0000 (14:01 +0200)]
Adds test with http over IPv6
and absence of anomalies
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.