]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Juliana Fajardini [Thu, 5 Dec 2024 01:32:05 +0000 (22:32 -0300)]
test: check flowint isnotset support
Related to
Task #7426
Victor Julien [Wed, 4 Dec 2024 08:27:22 +0000 (09:27 +0100)]
tests: add test for 7414 and 7433
Philippe Antoine [Tue, 8 Oct 2024 14:10:04 +0000 (16:10 +0200)]
http1: adds test with invalid status
Ticket: 7311
Jason Ish [Wed, 20 Nov 2024 17:12:03 +0000 (11:12 -0600)]
tests: add keyword check to requires test
Only for 8.0 for now.
requires-fail: With the change to unknown requires statements treated as
not meeting requirements, update the rule to use an unknown keyword to
make it fail out.
This is to test an edge case from ticket #6710.
Ticket: #7403
Philippe Antoine [Wed, 27 Nov 2024 13:44:34 +0000 (14:44 +0100)]
transforms: remove dependency on C files
As most transforms have been moved to rust in suricata master
Shivani Bhardwaj [Mon, 25 Nov 2024 08:07:48 +0000 (13:37 +0530)]
detect-xor: do not depend on C code
Starting
8984bc68011 , xor transform was moved to rust and this test was
always skipped as it depended on the C file.
Philippe Antoine [Wed, 27 Nov 2024 15:06:54 +0000 (16:06 +0100)]
mqtt: test reason code since Suricata 7
Philippe Antoine [Thu, 30 Nov 2023 13:46:04 +0000 (14:46 +0100)]
Adds tests for negated content and absent keyword
Ticket: 2224
Shivani Bhardwaj [Tue, 5 Nov 2024 13:20:15 +0000 (18:50 +0530)]
datasets: add test to show hash collisions
Bug 7209
Pierre Chifflier [Wed, 13 Nov 2024 15:39:03 +0000 (16:39 +0100)]
ldap: add test for STARTTLS extended operation
Juliana Fajardini [Thu, 7 Nov 2024 21:19:14 +0000 (18:19 -0300)]
rule-types: add check for more rule types
The goal is to have at least one rule for each rule type the engine
has.
Victor Julien [Tue, 24 Sep 2024 19:26:34 +0000 (21:26 +0200)]
tests: TLS SNI firewall test for non-matching SNI
Victor Julien [Tue, 24 Sep 2024 13:30:29 +0000 (15:30 +0200)]
tests: add TLS enforcement tests
Tests that flow is TLS and if SNI is expected.
Victor Julien [Tue, 24 Sep 2024 13:20:09 +0000 (15:20 +0200)]
tests: add basic TCP tracking firewall rules
Philippe Antoine [Wed, 2 Oct 2024 09:06:09 +0000 (11:06 +0200)]
sip: adds checks for stat code keyword
Ticket: 7295
Ensures that stat-code and method do not share the same buffer
in different directions
Philippe Antoine [Thu, 7 Nov 2024 15:11:46 +0000 (16:11 +0100)]
detect/http: backport http.header test for 7
Ticket: 7327
Philippe Antoine [Tue, 15 Oct 2024 12:41:16 +0000 (14:41 +0200)]
prefilter/multibuf: test with multiple packets
Ticket: 7326
Nancy Enos [Thu, 24 Oct 2024 07:38:47 +0000 (10:38 +0300)]
tests: add rule type check for tcp-window
Ticket: 6352
Sascha Steinbiss [Sun, 20 Oct 2024 01:20:05 +0000 (03:20 +0200)]
mqtt: check SUBACK
This requires SUBACK matching support.
Sascha Steinbiss [Sun, 20 Oct 2024 01:19:19 +0000 (03:19 +0200)]
mqtt: check for CONNACK reason code 134
See https://redmine.openinfosecfoundation.org/issues/7323 and
https://forum.suricata.io/t/question-about-mqtt-detection/4890/3
Sascha Steinbiss [Sun, 20 Oct 2024 01:18:42 +0000 (03:18 +0200)]
mqtt: check reason codes for CONNACK
Juliana Fajardini [Thu, 17 Oct 2024 19:05:03 +0000 (12:05 -0700)]
tls/eve-fields: update test to 7.0.8
Related to
Bug #7287
Alice Akaki [Tue, 22 Oct 2024 22:38:47 +0000 (18:38 -0400)]
tests: add rule type check for flow.age
Ticket: #6312
Philippe Antoine [Thu, 10 Oct 2024 19:53:27 +0000 (21:53 +0200)]
template: use the keyword for the tx buffer for suricata 7
Ticket: 7315
Juliana Fajardini [Thu, 17 Oct 2024 00:36:32 +0000 (17:36 -0700)]
tls: add check for 'subjectaltname'
As this was missing from the logs, ensure that there won't be any
regressions.
Related to
Bug #7332
Juliana Fajardini [Wed, 16 Oct 2024 19:26:44 +0000 (12:26 -0700)]
tls: check for custom fields logging
Related to
Bug https://redmine.openinfosecfoundation.org/issues/7287
Juliana Fajardini [Fri, 27 Sep 2024 14:14:46 +0000 (11:14 -0300)]
tests: showcase bug 7286 (tls)
Related to
Bug https://redmine.openinfosecfoundation.org/issues/7286
Philippe Antoine [Mon, 12 Aug 2024 08:18:04 +0000 (10:18 +0200)]
detect/datasets: adds test for unset operation
Ticket: 7195
Jason Ish [Wed, 25 Sep 2024 16:37:54 +0000 (10:37 -0600)]
dns-reversed-udp-1: test that flow is reversed
Test that because this is a DNS response, that the flow is reversed.
Juliana Fajardini [Tue, 24 Sep 2024 21:33:54 +0000 (18:33 -0300)]
tests: showcase endswith, distance + within usage
Suricata docs state that `endswith` cannot be mixed with `offset`,
`within` or `distance` for the same pattern, but apparently, at least
from Suricata 7 on, this seems possible.
Tests created based on material and scenarios provided by Brandon
Murphy in the Redmine ticket.
Related to
Task #5030
Alice Akaki [Thu, 10 Oct 2024 03:42:40 +0000 (23:42 -0400)]
tests: add rule type check for icmp_id
Ticket: #6360
Philippe Antoine [Tue, 8 Oct 2024 19:42:43 +0000 (21:42 +0200)]
template: use the keyword for the tx buffer
Ticket: 7315
Philippe Antoine [Thu, 3 Oct 2024 12:51:35 +0000 (14:51 +0200)]
transform/base64: adds test against UBSan
Ticket: 7296
Ilya Bakhtin [Thu, 29 Aug 2024 19:18:48 +0000 (21:18 +0200)]
tls: test for tls header inspection rules
Ticket - 7235
Philippe Antoine [Mon, 23 Sep 2024 07:34:49 +0000 (09:34 +0200)]
datasets: do not expect a reproducible order
as hashmaps may be randomized
Ticket: 7209
Victor Julien [Wed, 25 Sep 2024 04:52:20 +0000 (06:52 +0200)]
tests: enable 7264 test for 7.0.7
Victor Julien [Fri, 20 Sep 2024 14:04:57 +0000 (16:04 +0200)]
tests: add test for bug 7264
Juliana Fajardini [Mon, 23 Sep 2024 21:08:24 +0000 (18:08 -0300)]
pgsql: update raw-stream-trigger test for suri-7
Related to
Bug #7001
Victor Julien [Mon, 23 Sep 2024 15:45:08 +0000 (17:45 +0200)]
tests: enable bug 7187 test for 7.0.x
Jeff Lucovsky [Thu, 15 Aug 2024 14:58:34 +0000 (10:58 -0400)]
tests: Updates for 6555
This commit provides updates needed for issue 6555. Previously, the gap
handling was restricted to master; 6555 adds those changes to main-7.0.x
Most of the changes are to extend the version; the
eve-payload-07-http-gap tests adds version-based checks as a new output
value payload_length is not available in main-7.0.x
Giuseppe Longo [Sun, 14 Apr 2024 12:07:10 +0000 (14:07 +0200)]
sip: add tests for headers sticky buffers
Ticket #6374
Jeff Lucovsky [Wed, 14 Aug 2024 14:11:48 +0000 (10:11 -0400)]
smtp: add tests for issue 7126
Ensure the SMTP applayer parser doesn't generate an error message while
parsing the SMTP frames.
Juliana Fajardini [Wed, 11 Sep 2024 14:12:33 +0000 (11:12 -0300)]
pgsql: update bug 6983 test
With the tracking of transaction completion per-direction, in IPS mode,
the engine will match on the rule before it sees the response message,
so it won't log the full transaction with the alert.
Update the checks for the alert to keep it simpler and thus compatible
with both Suri-7 and Suri-8.
Related to
Bug #7113
Juliana Fajardini [Mon, 10 Jun 2024 23:38:46 +0000 (20:38 -0300)]
pgsql: add tests with alert metadata
Check for transaction metadata in PGSQL alerts.
Add `engine-analysis` tests for the used rules, as well, to better
describe them and compare with expected behavior.
Related to
Task #7000
Philippe Antoine [Sun, 25 Aug 2024 20:28:01 +0000 (22:28 +0200)]
tests: move pcaps to tests where they are used
Following removal of tests only used in 6, some directories
were left with only a pcap, that got used by other tests.
Found with command
for pcap in $(find . -name *.pcap); do if ! test -e "$(dirname $pcap)/test.yaml"; then echo "$(dirname $pcap)"; fi; done
Juliana Fajardini [Wed, 10 Jul 2024 20:18:54 +0000 (17:18 -0300)]
tests: update ips-state-1 test
This test indicated that there were FP drops for HTTP transactions,
leading the `http` events check to fail. This is no longer the case.
flow.action is still not set to drop for tls.
Juliana Fajardini [Wed, 3 Jul 2024 19:36:14 +0000 (16:36 -0300)]
README/help: add info on IPS mode tests creation
It is possible to create a test that runs in IPS mode by just adding ips
to its name. But that is not documented. This will might not work when
using the createst script, though, as when the script runs the test for
the first time to create the `test.yaml` checks, the test-name is not
taken into consideration (therefore, the checks are valid for IDS mode).
Related to
Task #7039
Juliana Fajardini [Fri, 5 Jul 2024 15:19:52 +0000 (12:19 -0300)]
README: keep help text up-to-date w/ actual help
There were discrepancies between the help text shown by the createst
script and the version shown in the README file.
I've kept the bit longer explanation for some of the options where it
feels they're not so straightforward in meaning.
Jeff Lucovsky [Mon, 29 Apr 2024 19:00:04 +0000 (15:00 -0400)]
tests/reference; Tests for reference inclusion
Issue: 4974
Positive and negative tests for reference inclusion in alerts.
Additionally, reference-04 tests that a scheme provided with
a reference is used in place of the key.
Juliana Fajardini [Fri, 13 Sep 2024 21:27:50 +0000 (18:27 -0300)]
rules/test: add app-layer-protocol negated test
To complement bug-7241 tests.
Victor Julien [Wed, 11 Sep 2024 07:10:37 +0000 (09:10 +0200)]
tests: add test for issue 7241/7242 for 7
Add test that works with Suricata 7.
Philippe Antoine [Thu, 5 Sep 2024 19:03:09 +0000 (21:03 +0200)]
http2: test all frames types
Philippe Antoine [Wed, 14 Aug 2024 20:24:58 +0000 (22:24 +0200)]
http/gap: fix check for payload_length
Change to suricata.yaml illustrates bug 7213
There is not yet a valid http1.response frame for the second request
after the gap
Philippe Antoine [Wed, 14 Aug 2024 14:25:17 +0000 (16:25 +0200)]
http2: add test for frames
Ticket: 5743
Victor Julien [Wed, 31 Jul 2024 12:12:55 +0000 (14:12 +0200)]
tests: add test for 7187
Philippe Antoine [Tue, 10 Sep 2024 06:54:30 +0000 (08:54 +0200)]
tls/ja3: backport test with duplicate handshake
Ticket: 6634
Victor Julien [Fri, 6 Sep 2024 12:21:25 +0000 (14:21 +0200)]
tests: add test for issue 7241
Test for 8+ only.
Philippe Antoine [Tue, 3 Sep 2024 14:04:09 +0000 (16:04 +0200)]
tls/ja3: adds test with duplicate handshake
Ticket: 6634
Juliana Fajardini [Tue, 27 Aug 2024 17:53:16 +0000 (14:53 -0300)]
pgsql: update bug-6983 tests
Add app-layer fields to pgsql alerts.
Related to
Bug #7066
Jason Ish [Thu, 15 Aug 2024 19:52:47 +0000 (13:52 -0600)]
tests: remove suricata 6 specific tests
Some tests directories remain as one or more exists tests link to these
pcaps. Just leaving until we have a strategy like a hash based pcap repo
or something else.
Jason Ish [Tue, 13 Aug 2024 21:20:21 +0000 (15:20 -0600)]
github-ci: remove 6.0.x builds
Suricata 6.0 is now EOL.
Giuseppe Longo [Thu, 18 Jul 2024 15:14:55 +0000 (17:14 +0200)]
ldap: add tests for udp and frames
Philippe Antoine [Fri, 19 Jul 2024 09:41:18 +0000 (11:41 +0200)]
rfb: adds test for rules with secresult being an integer keyword
Ticket: 6723
Philippe Antoine [Wed, 17 Jul 2024 14:08:23 +0000 (16:08 +0200)]
rfb: convert unit test to SV
Ticket: 7178
Philippe Antoine [Fri, 2 Aug 2024 09:40:21 +0000 (11:40 +0200)]
detect: test prefilter auto mode
Ticket: 6278
Philippe Antoine [Fri, 26 Jul 2024 12:54:53 +0000 (14:54 +0200)]
detect: adds check for decode-event with prefilter
Ticket: 6728
Philippe Antoine [Fri, 26 Jul 2024 12:52:41 +0000 (14:52 +0200)]
detect: adds check for stream-event with prefilter
Ticket: 6728
Philippe Antoine [Fri, 21 Jun 2024 06:53:30 +0000 (08:53 +0200)]
ssh: adds test for frames
Ticket: 5734
Philippe Antoine [Thu, 28 Mar 2024 15:51:03 +0000 (16:51 +0100)]
doh: adds test for dns over http2 with post
Ticket: 5773
Philippe Antoine [Tue, 5 Dec 2023 13:10:42 +0000 (14:10 +0100)]
dns: adds test for dns over http2
Ticket: 5773
Giuseppe Longo [Tue, 28 May 2024 09:57:45 +0000 (11:57 +0200)]
ldap: add tests
Philippe Antoine [Thu, 6 Jun 2024 11:38:56 +0000 (13:38 +0200)]
smtp: adds test for invalid replies
Ticket: 1125
Philippe Antoine [Thu, 23 May 2024 11:29:06 +0000 (13:29 +0200)]
smtp/ftp: test protocol detection in both directions
Ticket: 1125
Mahmoud Maatuq [Thu, 13 Jun 2024 18:37:09 +0000 (22:37 +0400)]
imap: add test for protocol detection
ticket #2886
Signed-off-by: mmmaatuq <mahmoudmatook.mm@gmail.com>
Philippe Antoine [Wed, 10 Jul 2024 20:52:48 +0000 (22:52 +0200)]
ssh: deprecate ssh.softwareversion keyword
Ticket: 2377
Victor Julien [Wed, 10 Jul 2024 09:59:35 +0000 (11:59 +0200)]
tests: relax mqtt warning check
To account for changing error message in Suricata.
Shivani Bhardwaj [Sat, 22 Jun 2024 07:21:02 +0000 (12:51 +0530)]
applayer: add tests for ticket 7044
Victor Julien [Fri, 12 Jul 2024 05:03:32 +0000 (07:03 +0200)]
tests: skip dns tests that fail on master
Juliana Fajardini [Thu, 23 May 2024 16:47:15 +0000 (13:47 -0300)]
tests/dns: add tests for task 7018
Also related to
Bug #7004
Jason Ish [Fri, 5 Jul 2024 01:01:32 +0000 (19:01 -0600)]
dns-udp-double-request-response: v2 and v3 tests
Jason Ish [Fri, 5 Jul 2024 00:58:36 +0000 (18:58 -0600)]
dns-tcp-www-google-com: v2 and v3 tests
Jason Ish [Fri, 5 Jul 2024 00:56:28 +0000 (18:56 -0600)]
dns-tcp-ts-gap: update for v2 and v3 dns logging
Jason Ish [Fri, 5 Jul 2024 00:05:50 +0000 (18:05 -0600)]
dns-tcp-multirequest-buffer: v2 and v3 tests
Jason Ish [Fri, 5 Jul 2024 00:02:40 +0000 (18:02 -0600)]
dns-single-request: v2 and v3 tests
Jason Ish [Fri, 5 Jul 2024 00:00:32 +0000 (18:00 -0600)]
dns-incomplete: dns v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 23:56:09 +0000 (17:56 -0600)]
bug-990: dns v2 and v3 tests
As this is a DNS test move into dns/.
Jason Ish [Thu, 4 Jul 2024 23:53:58 +0000 (17:53 -0600)]
bug-856: dns v2 and v3 tests
Move into dns as this is a DNS test.
Jason Ish [Thu, 4 Jul 2024 23:49:58 +0000 (17:49 -0600)]
bug-1158: dns v2 and v3 tests
As this is a DNS test, also move into the dns/ folder.
Jason Ish [Thu, 4 Jul 2024 23:42:45 +0000 (17:42 -0600)]
dns-udp-null: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 23:39:40 +0000 (17:39 -0600)]
dns-udp-junkrequest-first: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 23:25:43 +0000 (17:25 -0600)]
decode-teredo-01: update for dns v3 logging
Jason Ish [Thu, 4 Jul 2024 22:41:39 +0000 (16:41 -0600)]
ethernet-eve: update for dns v3 logging
Jason Ish [Thu, 4 Jul 2024 22:39:44 +0000 (16:39 -0600)]
vxlan-decoder-03: v2 and v3 dns tests
Jason Ish [Thu, 4 Jul 2024 21:45:07 +0000 (15:45 -0600)]
dns-udp-eve-log-query-only: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:43:29 +0000 (15:43 -0600)]
dns-udp-eve-log-answer-only: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:41:29 +0000 (15:41 -0600)]
dns-udp-eve-log-srv: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:39:05 +0000 (15:39 -0600)]
dns-udp-eve-log-aaaa-only: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:34:36 +0000 (15:34 -0600)]
dns-udp-eve-log-mx-only: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:28:59 +0000 (15:28 -0600)]
dns-udp-eve-dig: v2 and v3 tests
Jason Ish [Thu, 4 Jul 2024 21:24:59 +0000 (15:24 -0600)]
dns-udp-eve-txt: v2 and v3 tests