]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Juliana Fajardini [Wed, 27 May 2026 20:39:32 +0000 (17:39 -0300)]
tests: check for ban of bypass keyword w/ firewall
Related to
Ticket #8551
Juliana Fajardini [Tue, 26 May 2026 20:41:03 +0000 (17:41 -0300)]
tests: check replace keyword ban with firewall
Related to
Ticket #8551
Victor Julien [Thu, 28 May 2026 19:30:26 +0000 (21:30 +0200)]
tests: add another missed rule accept tx alert test
Victor Julien [Thu, 28 May 2026 11:10:57 +0000 (13:10 +0200)]
tests: tighten fw default policy test
Jason Ish [Wed, 27 May 2026 21:44:15 +0000 (15:44 -0600)]
tests: add test for missing default policy alert
Like test 104, but tests "accept:tx,alert". We are not seeing the alert
when we should be.
Jason Ish [Wed, 27 May 2026 17:25:38 +0000 (11:25 -0600)]
tests: add test for default access with alert policy
Test shows that a default of "accept:flow, alert" results in a drop.
Jason Ish [Wed, 27 May 2026 16:40:50 +0000 (10:40 -0600)]
tests: add test for packet policy alert skipping app rule
Jason Ish [Wed, 27 May 2026 16:11:10 +0000 (10:11 -0600)]
tests: add test for missing default policy alert
Test that a default app policy with alert logs an alert when an explicit rule
exists for the same hook but does not match.
Victor Julien [Wed, 27 May 2026 07:56:20 +0000 (09:56 +0200)]
tests: update tests for updated fw discard logic
Victor Julien [Tue, 26 May 2026 21:12:27 +0000 (23:12 +0200)]
tests/firewall: account for drop no longer including alert
Jason Ish [Tue, 26 May 2026 18:07:52 +0000 (12:07 -0600)]
tests: firewall test showing default drop with alert
Victor Julien [Tue, 26 May 2026 10:08:19 +0000 (12:08 +0200)]
tests: add more firewall+TD tests
Jason Ish [Wed, 20 May 2026 18:22:21 +0000 (12:22 -0600)]
tests/firewall: add test testing <response body
Victor Julien [Sun, 17 May 2026 19:30:13 +0000 (21:30 +0200)]
tests: add firewall policy alert support
Victor Julien [Sat, 16 May 2026 19:41:46 +0000 (21:41 +0200)]
tests: add tests for fw hook lt mode
Juliana Fajardini [Thu, 14 May 2026 19:32:14 +0000 (16:32 -0300)]
tests: add check for exception-policy-drop-reson
Juliana Fajardini [Wed, 15 Apr 2026 21:51:11 +0000 (18:51 -0300)]
tests/firewall: no firewall mode, no related stats
Related to
Ticket #7699
Juliana Fajardini [Tue, 14 Apr 2026 14:32:01 +0000 (11:32 -0300)]
tests: check for dedicated firewall counters
Related to
Ticket #7699
Shivani Bhardwaj [Tue, 24 Feb 2026 06:16:58 +0000 (11:46 +0530)]
tests: add test for ticket 5711
Philippe Antoine [Tue, 12 May 2026 20:42:36 +0000 (22:42 +0200)]
http: fix test with filestore
Check that no files were stored, and that we have only one fileinfo
event
Ticket: 8529
Jason Ish [Thu, 14 May 2026 20:39:01 +0000 (14:39 -0600)]
doc: document stats check usage
Philippe Antoine [Wed, 29 Apr 2026 11:59:22 +0000 (13:59 +0200)]
framework: has-key and not-has-key accept lists
Philippe Antoine [Wed, 29 Apr 2026 09:05:51 +0000 (11:05 +0200)]
framework: yaml loader check duplicate key
And fix test cases that had duplicate keys
Victor Julien [Tue, 19 May 2026 04:23:28 +0000 (06:23 +0200)]
tests: disable bug 6617 temporarily
Jason Ish [Thu, 14 May 2026 21:52:46 +0000 (15:52 -0600)]
tests: enable ntp tests for min-version 8.0.5
Philippe Antoine [Sat, 16 May 2026 18:47:07 +0000 (20:47 +0200)]
backport: support issue 8399 tests for 8
Jason Ish [Fri, 15 May 2026 19:11:37 +0000 (13:11 -0600)]
tests: test showing defaults taking precedence over rules
Jason Ish [Fri, 15 May 2026 16:49:22 +0000 (10:49 -0600)]
tests: cover firewall default accept:tx pipelining
Add a firewall regression test for default app-layer accept:tx policies with
HTTP pipelining.
The pcap contains a full TCP conversation where two HTTP requests are carried
in the same client packet. The firewall defaults accept the first transaction
at request-complete with accept:tx, while a request_line rule should still
inspect and block the second transaction.
The test expects the /foo/ request to produce the drop alert. Current affected
Suricata branches miss that alert because the default accept:tx for the earlier
transaction accepts the packet and bypasses inspection of the later
transaction.
Jason Ish [Thu, 14 May 2026 18:27:15 +0000 (12:27 -0600)]
tests: test accept:flow with threat detection
Victor Julien [Tue, 5 May 2026 20:39:06 +0000 (22:39 +0200)]
tests: firewall default policy tests
Jason Ish [Tue, 5 May 2026 17:41:53 +0000 (11:41 -0600)]
tests: show how accept:flow can bypass threat detection
This test shows how an accept flow on an http request will skip thread
detection on http response data.
Victor Julien [Fri, 1 May 2026 08:56:57 +0000 (10:56 +0200)]
tests: firewall: add multi-action rule tests
Victor Julien [Thu, 23 Apr 2026 19:58:51 +0000 (21:58 +0200)]
tests: firewall: rename to have unique numbers
Victor Julien [Thu, 23 Apr 2026 19:55:27 +0000 (21:55 +0200)]
tests: add more firewall rules
Victor Julien [Thu, 23 Apr 2026 19:31:25 +0000 (21:31 +0200)]
tests: firewall: update for action scope changes
Victor Julien [Mon, 20 Apr 2026 15:58:26 +0000 (17:58 +0200)]
tests: firewall: add missing rules
Ticket: #8495.
Juliana Fajardini [Thu, 9 Apr 2026 02:07:58 +0000 (23:07 -0300)]
tests: check tls.cert_chain_len in firewall mode
Related to
Ticket #8387
Juliana Fajardini [Fri, 17 Apr 2026 13:52:50 +0000 (10:52 -0300)]
test: check for dns keywords in firewall mode
Based on initial work by Yash Datre
- dns.opcode
- dns.query with datarep
Related to
Ticket #8387
Yash Datre [Fri, 17 Apr 2026 20:55:11 +0000 (17:55 -0300)]
test: check for untested keywords in firewall mode
Add suricata-verify tests for keywords that emit 'has not been tes
for firewall rules' warnings. Tests are consolidated into 3 test cases.
- firewall-keyword-icode: tests icode with ICMP echo traffic
- firewall-keyword-http: tests pcre, urilen, dataset with HTTP traff
- firewall-keyword-tls: tests tls.cert_chain_len with TLS cert chain
These tests validate that the keywords function correctly in firewal
mode and can be used to justify adding SIGMATCH_SUPPORT_FIREWALL to
each keyword in the engine.
Related to
Ticket #8387
Jason Ish [Sun, 1 Mar 2026 16:37:26 +0000 (10:37 -0600)]
tests: add ja3 tests for issue 8336
Jason Ish [Wed, 13 May 2026 22:32:36 +0000 (16:32 -0600)]
tests: update alert.engine test for 8.0.5
Philippe Antoine [Tue, 12 May 2026 08:22:21 +0000 (10:22 +0200)]
backport: support issue 8553 tests for 8
Jeff Lucovsky [Sun, 10 May 2026 13:23:43 +0000 (09:23 -0400)]
tests: extend bug-8489 tests to include 8.0.5+
Issue: 8490
Sergey Pinaev [Wed, 29 Apr 2026 12:10:45 +0000 (15:10 +0300)]
reputation: test reputation category with 0x0c 0x0a line
Ticket: 8500
Jason Ish [Thu, 7 May 2026 21:38:24 +0000 (15:38 -0600)]
tests: add alert.engine checks to firewall tests
Ticket: #8456
Philippe Antoine [Sun, 10 May 2026 20:07:28 +0000 (22:07 +0200)]
backport: support issue 8522 tests for 8
Jeff Lucovsky [Tue, 21 Apr 2026 14:46:05 +0000 (10:46 -0400)]
tests: add test cases for bug 8489
Issue: 8489
Three test cases:
- bug-8489-01: two commands with max-tx=1 (limit exceeded) raises the
too_many_transactions anomaly and fires the corresponding alert.
- bug-8489-02: six commands under max-tx=10 raise no anomaly and no
alert (negative regression).
- bug-8489-03: burst of commands exceeding the limit followed by a new
command after a server response — verifies the flow keeps parsing
after the event fires, so later commands are still logged.
Each test has a response_command_too_long rule alongside the
too_many_transactions rule so the to_client FTP parsing path stays
active; without a to_client app-layer-event signature Suricata skips
response parsing and the max-tx check does not fire.
Philippe Antoine [Thu, 7 May 2026 06:34:10 +0000 (08:34 +0200)]
dcerpc: adds test without PFC_FIRST_FRAG
Ticket: 8457
Sergey Pinaev [Thu, 30 Apr 2026 08:10:26 +0000 (11:10 +0300)]
bug-8505: add min-version
Sergey Pinaev [Wed, 29 Apr 2026 10:10:50 +0000 (13:10 +0300)]
detect-engine-analyzer: test engine-analysis with engine-analysis turned off
Ticket: 8505
Jason Ish [Tue, 5 May 2026 21:49:00 +0000 (15:49 -0600)]
tests: add ntp lua tests
Ticket: #8533
Shivani Bhardwaj [Mon, 4 May 2026 10:53:10 +0000 (16:23 +0530)]
Revert "tests: remove unneeded flowbit ops"
This reverts commit
bcdbc43dc8c84fb703b693cc47f27a39d5890215 .
Flowbits are used in this test to control the number of alerts per signature.
They were removed under the incorrect assumption of being unnecessarily
used as they were not checked anywhere.
Philippe Antoine [Tue, 7 Apr 2026 18:51:35 +0000 (20:51 +0200)]
output: rename reject-target to reject_target
Ticket: 6502
Split the checks for version 9 and before
Juliana Fajardini [Mon, 27 Apr 2026 08:59:07 +0000 (10:59 +0200)]
readme: improve Test adding instructions
To clarify that tests should also include a README file and any scripts
used to create the PCAP file.
Shivani Bhardwaj [Thu, 9 Apr 2026 11:09:56 +0000 (16:39 +0530)]
tests: remove unneeded flowbit ops
flowbits are used unnecessarily in these rules. Clean them up.
Peter Manev [Thu, 2 Apr 2026 12:46:18 +0000 (14:46 +0200)]
tests: Bug 5133
Generate dcerpc event_types
Philippe Antoine [Sat, 25 Apr 2026 19:23:54 +0000 (21:23 +0200)]
backport: support issue 8161 tests for 7
Philippe Antoine [Sat, 25 Apr 2026 19:23:14 +0000 (21:23 +0200)]
backport: support issue 8453 tests for 7
Philippe Antoine [Mon, 27 Apr 2026 13:55:54 +0000 (15:55 +0200)]
backport: support issue 8501 tests for 8
Philippe Antoine [Tue, 28 Apr 2026 08:19:14 +0000 (10:19 +0200)]
dcerpc: move dcepayload unit tests to SV
Ticket: 8391
Philippe Antoine [Tue, 28 Apr 2026 07:47:42 +0000 (09:47 +0200)]
dcerpc: move dce-stub-data unit test to SV
Ticket: 8391
Jeff Lucovsky [Sun, 9 Nov 2025 14:59:42 +0000 (09:59 -0500)]
test/subslice: Add test cases for subslice
Issue: 7672
Applies to versions 9+
Add test cases for the subslice transform, including some edge cases.
Test cases cover all use cases, including cases where truncate has
impact and edge cases.
Philippe Antoine [Sat, 25 Apr 2026 20:30:17 +0000 (22:30 +0200)]
mdns: adds rules to test to check they load
Ticket: 8501
Philippe Antoine [Fri, 3 Apr 2026 09:29:47 +0000 (11:29 +0200)]
doh2: adds test with dns+http ruleset
Ticket: 8454
Philippe Antoine [Thu, 23 Apr 2026 19:10:38 +0000 (21:10 +0200)]
backport: support issue 8452 tests for 8
Philippe Antoine [Wed, 22 Apr 2026 12:14:41 +0000 (14:14 +0200)]
backport: support issue 8432 tests for 8
Philippe Antoine [Thu, 2 Apr 2026 14:24:03 +0000 (16:24 +0200)]
http: adds suricata.yaml with http-body in alerts
to check json schema completeness
Ticket: 8161
Philippe Antoine [Fri, 3 Apr 2026 07:17:15 +0000 (09:17 +0200)]
http2: adds test for http2.host asap
Ticket: 8451
Philippe Antoine [Thu, 19 Mar 2026 10:02:40 +0000 (11:02 +0100)]
dcerpc: add check for opnum keyword with >
Ticket: 8179
Jason Ish [Thu, 16 Apr 2026 21:48:43 +0000 (15:48 -0600)]
tests: verify ntp keywords in firewall mode
Checks:
- ntp.version
- ntp.mode
- ntp.stratum
- ntp.reference_id
Also tests that a NTP message with a non-matching accept rule is
dropped.
Ticket: #8394
Jason Ish [Thu, 16 Apr 2026 16:18:35 +0000 (10:18 -0600)]
tests: add ntp.reference_id tests
Ticket: #8488
Jason Ish [Thu, 16 Apr 2026 00:13:42 +0000 (18:13 -0600)]
tests: add ntp.mode tests
Ticket: #8429
Jason Ish [Wed, 15 Apr 2026 23:22:27 +0000 (17:22 -0600)]
tests: add ntp.stratum keyword checks
Ticket: #8431
Jason Ish [Wed, 15 Apr 2026 22:42:19 +0000 (16:42 -0600)]
tests: add ntp keyword test
Adds tests for ntp.version keyword.
Ticket: #8430
Shivani Bhardwaj [Fri, 7 Nov 2025 06:16:45 +0000 (11:46 +0530)]
workflows: only run the modified tests
Running all the tests on PR or push event of suricata-verify is
irrelevant as the tests are supposed to be exclusive of one another.
Make sure that unless there's a framework or workflows change, only the
tests that are modified or added are run. This saves CI resources that
would otherwise be unnecessarily spent.
This does not affect the testing and coverage of the Suricata codebase
as when there's an s-v PR, Suricata's workflow is to clone the entire
repo and run all the tests in there.
Shivani Bhardwaj [Wed, 14 Jan 2026 07:53:47 +0000 (13:23 +0530)]
run.py: check for pattern on test's parent dir
In case the test name is not a match for a pattern passed on the
cmdline, also check for it's parent dir. It is no use to make test names
redundant when the dir clubs them under a name but they should all be
able to run if the dir pattern was passed.
Current behavior:
run.py dcerpc # runs all tests that match dcerpc; this leaves some
# tests in dcerpc/ dir that do not have dcerpc in their
# names
With this patch:
run.py dcerpc # first matches the test name with the pattern, if not
# found, checks if its parent dir matches. All dcerpc
# tests grouped under dcerpc/ dir will run
Victor Julien [Wed, 15 Apr 2026 10:19:47 +0000 (12:19 +0200)]
tests: add snmp trap tests
Victor Julien [Tue, 14 Apr 2026 11:56:44 +0000 (13:56 +0200)]
tests: add snmp firewall tests
Philippe Antoine [Tue, 7 Apr 2026 19:43:00 +0000 (21:43 +0200)]
dhcp: adds check for app-layer metadata logging in alerts
Ticket: 6091
Philippe Antoine [Tue, 7 Apr 2026 08:30:37 +0000 (10:30 +0200)]
smb: add check for old session setup decoding
Ticket: 5845
Philippe Antoine [Wed, 1 Apr 2026 12:20:24 +0000 (14:20 +0200)]
backport: support issue 8412 tests for 7
Philippe Antoine [Tue, 31 Mar 2026 19:30:28 +0000 (21:30 +0200)]
backport: support issue 8414 tests for 8
Philippe Antoine [Tue, 31 Mar 2026 19:30:25 +0000 (21:30 +0200)]
backport: support issue 8411 tests for 8
Philippe Antoine [Thu, 26 Mar 2026 07:55:15 +0000 (08:55 +0100)]
backport: support issue 8380 tests for 8
Philippe Antoine [Thu, 26 Mar 2026 14:36:33 +0000 (15:36 +0100)]
websocket: add test with control frame in reassembly
Ticket: 8413
Philippe Antoine [Thu, 26 Mar 2026 14:16:13 +0000 (15:16 +0100)]
http2: adds test with long frame
Ticket: 8410
Victor Julien [Thu, 5 Mar 2026 13:27:42 +0000 (14:27 +0100)]
tests: fix protocol for icmpv6 mtu rule
Victor Julien [Wed, 25 Feb 2026 09:10:00 +0000 (10:10 +0100)]
tests: add ether.hdr and arp tests
Juliana Fajardini [Tue, 24 Mar 2026 00:49:46 +0000 (21:49 -0300)]
github-ci: add qa-simulation to runs
Related to
Task #7885
Philippe Antoine [Thu, 5 Mar 2026 12:42:47 +0000 (13:42 +0100)]
backport: support issue 7885 tests for 7
7.0.x ticket: 7908
Philippe Antoine [Tue, 30 Dec 2025 19:53:51 +0000 (20:53 +0100)]
irc: add test for not detecting it as FTP
Ticket: 2978
Philippe Antoine [Wed, 25 Mar 2026 17:09:02 +0000 (18:09 +0100)]
backport: support issue 8404 tests for 8
Philippe Antoine [Wed, 18 Mar 2026 13:54:05 +0000 (14:54 +0100)]
backport: support issue 8376 tests for 8
Philippe Antoine [Wed, 18 Mar 2026 13:54:04 +0000 (14:54 +0100)]
backport: support issue 8374 tests for 8
Philippe Antoine [Wed, 18 Mar 2026 13:54:02 +0000 (14:54 +0100)]
backport: support issue 8373 tests for 8
Philippe Antoine [Fri, 13 Mar 2026 11:03:03 +0000 (12:03 +0100)]
dcerpc: add test with multiple ctx ids
Ticket: 8378
Jason Ish [Mon, 2 Mar 2026 17:36:03 +0000 (11:36 -0600)]
tests: add tests for issue 8333
- Test with geoip that fails on current main
- Test with iprep that passes on current main
The idea is that geoip should behave much like iprep, as its just
another form of IP address lookup returning true or false for a match.
Ticket: #8333
Victor Julien [Fri, 20 Mar 2026 11:45:35 +0000 (12:45 +0100)]
tests: add firewall icmp with icode keyword test
Victor Julien [Fri, 20 Mar 2026 10:48:28 +0000 (11:48 +0100)]
tests: add icode keyword to ping test
Victor Julien [Thu, 19 Mar 2026 16:13:21 +0000 (17:13 +0100)]
tests: add firewall reject test