]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Jeff Lucovsky [Wed, 22 Oct 2025 14:57:46 +0000 (10:57 -0400)]
test/luaxform: Ensure ip.src/ip.dst work with transforms
Demonstrate that the sticky buffers ip.src/ip.dst work with transforms.
The sample lua script creates a string "cidr" from an ipv4 src/dst
address.
E.g., "1.2.3.0/24"
The tests require 9.0 or greater; when issue 8016 is addressed,
additional version constraints will be added.
Issue: 8015
Olusegun Fajobi [Mon, 27 Oct 2025 14:13:10 +0000 (15:13 +0100)]
tests: add rule check for ttl keyword
Related to
Issue: #6310
Jason Ish [Mon, 20 Oct 2025 20:34:47 +0000 (14:34 -0600)]
tests/ike: update for 7.0.13
For backport of ticket #7923.
Jeff Lucovsky [Tue, 21 Oct 2025 13:06:29 +0000 (09:06 -0400)]
test/unknown: Ethertype updates for 8.0.x
Issue: 8007
Includes changes for issue 7855 needed for the backport.
Victor Julien [Mon, 20 Oct 2025 16:07:15 +0000 (18:07 +0200)]
tests: update issue 8002 pcap log test to run on 8.0.2
Jason Ish [Thu, 16 Oct 2025 22:54:48 +0000 (16:54 -0600)]
tests/ikev1-duplicate-proposals: update for 8.0
Ticket: #7923
Victor Julien [Sat, 18 Oct 2025 06:46:55 +0000 (08:46 +0200)]
github-actions: install cbindgen with locked deps
To avoid MSRV bumps in the dependencies.
Jeff Lucovsky [Tue, 2 Sep 2025 14:06:05 +0000 (10:06 -0400)]
test/entropy: Test with raw content
Test entropy w/out a sticky buffer.
Without the suricata fixes, the test will SEGV and thus fail.
With the suricata fixes, the calculated entropy value will be
matched with the value in the test specification.
Victor Julien [Fri, 5 Sep 2025 05:40:01 +0000 (07:40 +0200)]
tests: add issue 7657 tests
Victor Julien [Fri, 5 Sep 2025 05:38:47 +0000 (07:38 +0200)]
tests: add issue 3844 test
Philippe Antoine [Thu, 4 Sep 2025 06:46:50 +0000 (08:46 +0200)]
tls: add test for altname with zero inside
Ticket: 7881
Juliana Fajardini [Fri, 3 Oct 2025 15:33:09 +0000 (12:33 -0300)]
test/bug-5464: add file extension to pcap mention
The lack of the `.pcap` extension when using `pcap:` to use a file from
a different test seems prone to cause issues.
Philippe Antoine [Thu, 18 Sep 2025 08:32:06 +0000 (10:32 +0200)]
http2: do not test HTTP2_DECOMPRESSION feature
As it is always present since 7
Philippe Antoine [Thu, 16 Oct 2025 09:40:44 +0000 (11:40 +0200)]
http2: backport7 test about error code
Ticket: 7991
Victor Julien [Thu, 16 Oct 2025 11:44:57 +0000 (13:44 +0200)]
tests: add test for bpf in pcap multi logging (issue 8002)
Philippe Antoine [Wed, 24 Sep 2025 12:50:06 +0000 (14:50 +0200)]
detect/integers: add check for count argument
Ticket: 7211
Philippe Antoine [Wed, 15 Oct 2025 16:21:54 +0000 (18:21 +0200)]
http2: backport error code test to 8
or at least some checks of it
Philippe Antoine [Tue, 7 Oct 2025 18:49:39 +0000 (20:49 +0200)]
detect/files: backport nfs test over udp only to 8
Ticket: 7973
Philippe Antoine [Fri, 26 Sep 2025 10:44:46 +0000 (12:44 +0200)]
http2: adds test for http2.errorcode keyword
Ticket: 7889
Philippe Antoine [Tue, 7 Oct 2025 14:00:28 +0000 (16:00 +0200)]
smtp/mime: backport quoted printable tests to 7
Ticket: 7950
Jeff Lucovsky [Fri, 3 Oct 2025 14:21:18 +0000 (10:21 -0400)]
test/unknown: Use host order for ethtype check
Issue: 7855
Version 9+: Match the ethertype value using host order.
Version 8: Match the ethertype value using network order.
Victor Julien [Tue, 7 Oct 2025 11:30:22 +0000 (13:30 +0200)]
tests: add bug 7709 tests
Victor Julien [Sat, 4 Oct 2025 13:25:57 +0000 (15:25 +0200)]
tests: pop3: address todos in test
Philippe Antoine [Fri, 3 Oct 2025 14:03:28 +0000 (16:03 +0200)]
detect/files: add nfs test over udp only
Ticket: 7973
Philippe Antoine [Mon, 6 Oct 2025 06:54:45 +0000 (08:54 +0200)]
smtp/mime: backport quoted printable tests to 8
Ticket: 7950
Jason Ish [Thu, 25 Sep 2025 17:34:13 +0000 (11:34 -0600)]
tests/ike: update for attributes as objects in 9
Jason Ish [Thu, 25 Sep 2025 17:31:27 +0000 (11:31 -0600)]
test/ike: add test for duplicate proposals
Ticket: #7902
Jason Ish [Thu, 25 Sep 2025 16:49:22 +0000 (10:49 -0600)]
test/ike: add pcap_cnt
Easier to debug which packet record should match.
Juliana Fajardini [Tue, 30 Sep 2025 21:21:59 +0000 (18:21 -0300)]
tests: add tests for bug 7964
Related to
Bug #7964
Philippe Antoine [Mon, 29 Sep 2025 15:08:48 +0000 (17:08 +0200)]
smtp: do not test wrong values until backports
Ticket: 7950
Philippe Antoine [Mon, 29 Sep 2025 13:28:42 +0000 (15:28 +0200)]
mime: adds test about quoted-printable
Ticket: 7950
Philippe Antoine [Wed, 24 Sep 2025 19:08:23 +0000 (21:08 +0200)]
dnp3: adds tests about dnp3.ind keyword
Ticket: 6724
Philippe Antoine [Tue, 9 Sep 2025 20:47:58 +0000 (22:47 +0200)]
nfs: adds test for nfs_procedure keyword
Ticket: 6723
Philippe Antoine [Mon, 8 Sep 2025 08:51:50 +0000 (10:51 +0200)]
snmp: adds test for pdu_type keyword
Ticket: 6723
Philippe Antoine [Thu, 4 Sep 2025 13:33:32 +0000 (15:33 +0200)]
krb5: adds test for krb5_msg_type keyword
Ticket: 6723
Uses enumeration stringers and not equal mode
Fupeng Zhao [Wed, 17 Sep 2025 13:25:03 +0000 (13:25 +0000)]
tests/etag: Basic test case for ETAG decode
Ticket #3953.
Philippe Antoine [Thu, 18 Sep 2025 09:13:17 +0000 (11:13 +0200)]
http2: add test with window keyword and index
Ticket: 7480
Philippe Antoine [Thu, 18 Sep 2025 08:30:21 +0000 (10:30 +0200)]
http2: add check for http2.priority keyword
Was missing coverage
We do not have any pcaps with a stream changing its priority
to test the index capability
Philippe Antoine [Thu, 18 Sep 2025 08:00:17 +0000 (10:00 +0200)]
mqtt: add test with type keyword and index
Ticket: 7480
Philippe Antoine [Tue, 9 Sep 2025 13:01:58 +0000 (15:01 +0200)]
dns: add test with rrtype keyword and index
Ticket: 7480
Fupeng Zhao [Thu, 18 Sep 2025 11:31:26 +0000 (11:31 +0000)]
tests: add vxlan with non-zero reserved fields test
Ticket: #7753
Philippe Antoine [Wed, 18 Jun 2025 12:15:36 +0000 (14:15 +0200)]
email: test body-md5 auto setting without rules
Ticket: 7587
Verify that we do not output a body_md5
Alice Akaki [Mon, 14 Apr 2025 19:23:02 +0000 (15:23 -0400)]
detect: add test for email.body_md5 keyword
Ticket: #7587
Alice Akaki [Thu, 17 Apr 2025 19:04:06 +0000 (15:04 -0400)]
detect/mime: fix detect-email-received nits
Remove unused configuration from suricata.yaml
Reduce smtp filters to just one containing the three email.received[]
in test.yaml
Fixes: 2a2713e4 ("detect: add test for email.received keyword")
Victor Julien [Wed, 17 Sep 2025 17:58:26 +0000 (19:58 +0200)]
github-actions: adjust for suricata master to main rename
Add `main-8.0.x` branch as well.
Victor Julien [Wed, 17 Sep 2025 17:34:54 +0000 (19:34 +0200)]
tests: support 9 in requires-ok test
Philippe Antoine [Tue, 25 Feb 2025 09:16:36 +0000 (10:16 +0100)]
test: backports for issue 7521
Ticket: 7521
Juliana Fajardini [Mon, 8 Sep 2025 13:19:55 +0000 (10:19 -0300)]
tests/exception-policy: update READMEs #7884
Add more information concerning flow output for exception policies
in cases of flow-memcap and defrag-memcap.
Related to
Ticket #7884
Juliana Fajardini [Tue, 24 Jun 2025 18:32:45 +0000 (15:32 -0300)]
tests: update triggered exception flow output ones
To 7.0.12
Related to backport ticket
Task #7623
Victor Julien [Tue, 9 Sep 2025 19:51:03 +0000 (21:51 +0200)]
tests: enable 4702 test for 7.0.12
Victor Julien [Tue, 9 Sep 2025 19:45:25 +0000 (21:45 +0200)]
tests: add another test for 4702
Based on real traffic.
Philippe Antoine [Tue, 9 Sep 2025 18:58:32 +0000 (20:58 +0200)]
pppoe: backport test for pppoe decoder protocol alerts
Ticket: 7826
Victor Julien [Tue, 2 Sep 2025 07:51:54 +0000 (09:51 +0200)]
tests: add tests for issue 5758
Victor Julien [Tue, 2 Sep 2025 07:50:15 +0000 (09:50 +0200)]
tests: add tests for issue 6269
Victor Julien [Tue, 2 Sep 2025 07:50:01 +0000 (09:50 +0200)]
tests: add test for issue 4702
Thomas Winter [Mon, 21 Jul 2025 22:52:37 +0000 (10:52 +1200)]
pppoe: Add test for pppoe decoder protocol alerts
Suricata commit
b23fa51e ("detect: fix decoder only events") fixed
decoder events to go off properly. However it was found that the pppoe
decoder was going off on valid ppp packets.
With drop rules isntead of alert rules, a ppp connection could not
be established.
The following pcap is a valid ppp connection but valid pppoe packets
are being detected as wrong_type or unsup_proto.
Philippe Antoine [Thu, 28 Aug 2025 10:07:43 +0000 (12:07 +0200)]
http: backport test for identity Content encoding
Ticket: 7843
Jason Ish [Wed, 3 Sep 2025 15:18:47 +0000 (09:18 -0600)]
runner: respect CARGO env var when building eve validator
For cases where "cargo" does not exist, but "cargo-1.82" does.
Ticket: #7877
Philippe Antoine [Sun, 31 Aug 2025 18:59:22 +0000 (20:59 +0200)]
detect/prefilter: backport checks u8 prefilter with more modes
Ticket: 7865
Philippe Antoine [Tue, 26 Aug 2025 19:22:07 +0000 (21:22 +0200)]
detect/prefilter: test u8 prefilter with lte mode
Ticket: 7865
Philippe Antoine [Wed, 27 Aug 2025 20:42:57 +0000 (22:42 +0200)]
dns: add test with response with data length 0
Ticket: 7574
Philippe Antoine [Sun, 24 Aug 2025 20:02:28 +0000 (22:02 +0200)]
http: test no anomaly for identity Content encoding
Ticket: 7843
Jeff Lucovsky [Sun, 17 Aug 2025 14:21:39 +0000 (10:21 -0400)]
test/from_base64: Use transform with default values
This test uses default values for the parameters accepted by
from_base64:
- bytes
- offset
- decode type
Issue: 7853
Juliana Fajardini [Tue, 24 Jun 2025 19:01:11 +0000 (16:01 -0300)]
tests: update for exceptions stats counters
Related to backport ticket
Task #6509
Juliana Fajardini [Fri, 11 Jul 2025 21:49:06 +0000 (18:49 -0300)]
tests: add test for bug-7752 backport
Related to
Bug #7777 (backport ticket)
Bug #7752
Juliana Fajardini [Fri, 11 Jul 2025 21:49:58 +0000 (18:49 -0300)]
tests: fix check in test bug 4571 03
The event_type field was missing for one of the checks.
Philippe Antoine [Sun, 10 Aug 2025 16:27:20 +0000 (18:27 +0200)]
flow: backport test for community id with same ip
Ticket: 5689
Philippe Antoine [Wed, 9 Jul 2025 12:45:46 +0000 (14:45 +0200)]
http: backport multipart tests
Ticket: 7582
Juliana Fajardini [Sat, 14 Jun 2025 00:00:54 +0000 (21:00 -0300)]
tests: update bug 7725 tests for Suricata 7
Also added a few more cases for disabled config.
Related to (backport ticket 7726)
Bug #7725
Philippe Antoine [Wed, 9 Jul 2025 13:39:57 +0000 (15:39 +0200)]
doh: test that we do not have dns event without dns
Ticket: 7740
Philippe Antoine [Fri, 18 Jul 2025 14:11:27 +0000 (16:11 +0200)]
flow: add test for community id with same ip
Ticket: 5689
Philippe Antoine [Fri, 18 Jul 2025 13:35:41 +0000 (15:35 +0200)]
snmp: add test when snmp is disabled
Ticket: 7820
Jason Ish [Mon, 7 Jul 2025 17:26:13 +0000 (11:26 -0600)]
github-ci: add windows build
Jason Ish [Mon, 7 Jul 2025 06:01:06 +0000 (00:01 -0600)]
runner: convert to multi-threading from multi-processing
Multi-processing has issues on Windows, moving to threading does allow
it to work on Windows (with a few issues to still figure out).
This removes the single thread runner, instead for Windows and Mac
we'll just use one job for now, and change that default as we prove
its reliaable.
Update ctrl-c handling as well, for reliable ctrl-c cancellation.
Jason Ish [Mon, 7 Jul 2025 05:19:30 +0000 (23:19 -0600)]
runner: remove os.chdir, use full paths as needed
In preparation for multi-threading, where we can't chdir as that would
affect other threads.
Jason Ish [Sun, 6 Jul 2025 17:31:52 +0000 (11:31 -0600)]
runner: raise UnsatisfiedRequirementError for windows shell checks
Instead of just printing that shell checks are not supported on
Windows, properly skip the test so it is counted as skipped.
Eric Leblond [Wed, 11 Jun 2025 07:18:49 +0000 (09:18 +0200)]
run: fix invalid error handling
Jason Ish [Wed, 9 Jul 2025 21:12:03 +0000 (15:12 -0600)]
test/requires: now that 8.0.1 is a reality, test with 8.0.99
Jeff Lucovsky [Sun, 15 Jun 2025 14:27:00 +0000 (10:27 -0400)]
analyzer/tests: ICMP icode engine analysis test
Test the ICMP icode engine analysis additions.
Issue: 6359
Philippe Antoine [Tue, 17 Jun 2025 13:25:49 +0000 (15:25 +0200)]
framework: check for redundant check/test version requirement
Philippe Antoine [Tue, 17 Jun 2025 07:48:22 +0000 (09:48 +0200)]
dns: remove never run check
As version requirement for check was incompatible with the one
from the test
Philippe Antoine [Tue, 17 Jun 2025 07:47:44 +0000 (09:47 +0200)]
framework: check test/check version compatibility
Philippe Antoine [Tue, 17 Jun 2025 07:15:40 +0000 (09:15 +0200)]
firewall: remove unrun check
We cannot tun a check with version less than 7 if the whole test
is min version 8
Philippe Antoine [Tue, 17 Jun 2025 07:00:40 +0000 (09:00 +0200)]
tests: remove wrong lt-version: 7
When we meant to test before version 8
Jason Ish [Thu, 19 Jun 2025 18:10:58 +0000 (12:10 -0600)]
tests/lua: simply return of empty needs
Just "return {}". Makes it easier to extract what is actually being
returned here for comparison with documentation.
Jason Ish [Sun, 8 Jun 2025 20:33:34 +0000 (14:33 -0600)]
github-ci: add macos job
Mainly the make sure that changers to the runner don't cause issues.
macOS is different enough from Linux to needs its own check.
Juliana Fajardini [Thu, 29 May 2025 01:39:46 +0000 (22:39 -0300)]
tests/rules: add test for bug 5177
The engine analyzer issues the same note about using new rule buffers
regardless of the rule usage of new buffer or the old ones.
This test is just to showcase this.
Bug #5177
Juliana Fajardini [Thu, 5 Jun 2025 15:43:12 +0000 (12:43 -0300)]
tests: add tests for decode encapsulation types
Add simple tests for alert to match on TCP traffic over:
- IPv4 over IPv4 - bug-4571-01
- IPv6 - bug-4571-02
- IPv6 over IPv6 - bug-4571-03
- IPv6 over IPv4 - bug-4571-04
- IPv4 - bug-4571-05
- IPv4 over IPv6 - bug-4571-06
Related to
Bug #4571
Bug #7725
Bug #7752
Jeff Lucovsky [Sun, 15 Jun 2025 15:02:16 +0000 (11:02 -0400)]
test/analyzer: Add test for dsize info
Add a test that checks for dsize value information.
Jeff Lucovsky [Tue, 10 Jun 2025 13:10:16 +0000 (09:10 -0400)]
detect/test: Backport 7390 to 7.0.x
Andreas Herz [Wed, 11 Jun 2025 08:42:11 +0000 (10:42 +0200)]
tests: remove exit-code check for datasets-absolute-allowed on v8
With the commit in Suricata to skip adding localstatedir when a full
path is provided, the S-V test does not exit with 1 anymore but rather
with 0 since it succeeds.
This commits updates the previous test to run with Suricata prior to
verison 8 and a dedicated copy of the test to work with Suricata 8
without the need to check the exit code anymore, since it's 0.
The new test is split between Unix like systems and Windows by using
different absolute paths for the filenames.
Eric Leblond [Mon, 9 Jun 2025 14:32:11 +0000 (16:32 +0200)]
tests: add ipv4 datajson test
Eric Leblond [Sun, 8 Jun 2025 07:02:09 +0000 (09:02 +0200)]
tests: datajson uses context_key
Rename the enrichment_key to context_key in the signatures.
Eric Leblond [Wed, 7 May 2025 09:18:57 +0000 (11:18 +0200)]
tests: update datajson to latest code
Eric Leblond [Sat, 29 Mar 2025 07:48:38 +0000 (08:48 +0100)]
tests: datajson remove_key tests
Eric Leblond [Fri, 28 Mar 2025 08:34:08 +0000 (09:34 +0100)]
tests: fix memcap following data structure change
Eric Leblond [Thu, 27 Mar 2025 22:23:50 +0000 (23:23 +0100)]
tests: add jsonline format test for datajson
Eric Leblond [Mon, 24 Mar 2025 20:07:02 +0000 (21:07 +0100)]
tests: update datajson to new file format
Update the tests to use JSON format and the new dataset syntax.
Eric Leblond [Thu, 13 Mar 2025 07:29:33 +0000 (08:29 +0100)]
tests: update datajson 0.9 syntax
Eric Leblond [Sun, 2 Mar 2025 20:49:00 +0000 (21:49 +0100)]
tests: datajson test are Suricata 8