]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
28 hours agorules: adds test for pcre \X engine analysis master 3169/head 3173/head
Philippe Antoine [Wed, 17 Jun 2026 16:04:45 +0000 (18:04 +0200)] 
rules: adds test for pcre \X engine analysis

Ticket: 8634

2 days agotests: add basic ftp firewall upload tests 3167/head 3170/head
Jason Ish [Tue, 16 Jun 2026 20:20:42 +0000 (14:20 -0600)] 
tests: add basic ftp firewall upload tests

Not exhaustive, but complimentary to the download tests for reviewing
tickets 8662 and 8663.

2 days agotests: ftp active download test for firewall
Jason Ish [Mon, 15 Jun 2026 23:18:54 +0000 (17:18 -0600)] 
tests: ftp active download test for firewall

This demonstrats how testing for "ftpdata_command: retr" is not possible
for active ftp without a Suricata fix.

2 days agotests: ftp passive download test for firewall
Jason Ish [Mon, 15 Jun 2026 23:14:12 +0000 (17:14 -0600)] 
tests: ftp passive download test for firewall

Notes:

- ftp-data:request_started and ftp-data:request_complete never reached

2 days agoftp: add active and passive data tests
Jason Ish [Wed, 10 Jun 2026 22:53:57 +0000 (16:53 -0600)] 
ftp: add active and passive data tests

Some observations:

- On the data channel, ftpdata_command:retr matches in the to_client
  direction, for passive and active.

- On the data channel, ftpdata_command:stor matches in the to_server
  direction. This matches the direction of the file, but it is the
  client that send the STOR request. Does this make sense?

- On the data channel, file_data matches in the direction of the TCP
  connection to differs for active and passive mode. This almost seems
  counter intuitive to how ftpdata_command works. But a direction is not
  required here so I'm not sure it matters much to rule writers.

2 days agorunner: allow rule file to be referenced by filename
Jason Ish [Wed, 10 Jun 2026 22:17:59 +0000 (16:17 -0600)] 
runner: allow rule file to be referenced by filename

Useful to point to a common rule file from another test like we do with
PCAPs.

3 days agotests: support firewall tests in 8 3166/head
Victor Julien [Mon, 18 May 2026 09:59:48 +0000 (11:59 +0200)] 
tests: support firewall tests in 8

6 days agopcap-file-stdin: read pcap from stdin via /dev/stdin 3163/head
Samaresh Kumar Singh [Thu, 21 May 2026 18:45:25 +0000 (13:45 -0500)] 
pcap-file-stdin: read pcap from stdin via /dev/stdin

Feed a one packet pcap into Suricata via /dev/stdin to exercise the
non-seekable file handling fix in OISF/suricata#15384 for Bug #8464.
Without the fix InitPcapFile calls setvbuf on the FILE underlying the
pcap handle after libpcap has already consumed the pcap header, glibc
cannot recover on a non-seekable fd, the first pcap_next_ex returns
-1, and no packets are decoded.

The test overrides the default invocation with a command that pipes
input.pcap into Suricata reading from /dev/stdin. The rule alerts on
a deterministic content match in the TCP payload, and the check
asserts that exactly one alert with sid 1 lands in eve. On the pre
fix code the run produces zero alerts and the test fails. On the
fixed code one alert is observed and the test passes.

Bug: #8464.

7 days agoconf: adds test that we do not crash on yaml null 3162/head
Philippe Antoine [Fri, 12 Jun 2026 06:45:43 +0000 (08:45 +0200)] 
conf: adds test that we do not crash on yaml null

Ticket: 8651

7 days agosip: test that ssdp is not identified as sip 2959/head 3159/head
Giuseppe Longo [Sat, 7 Mar 2026 11:46:55 +0000 (12:46 +0100)] 
sip: test that ssdp is not identified as sip

8 days agotests: improve and add dns lte tests 3157/head
Victor Julien [Wed, 10 Jun 2026 13:15:25 +0000 (15:15 +0200)] 
tests: improve and add dns lte tests

8 days agotests: add test for dns:< auto-accept-prior mix with packet:filter
Yash Datre [Thu, 4 Jun 2026 23:26:42 +0000 (23:26 +0000)] 
tests: add test for dns:< auto-accept-prior mix with packet:filter

Test accept:flow dns:<state (auto-accept prior hooks syntax) confirming
correct handling of the packet:filter table.

8 days agotests: add test for sctp keywords
Giuseppe Longo [Tue, 31 Mar 2026 08:03:58 +0000 (10:03 +0200)] 
tests: add test for sctp keywords

Ticket #4251

8 days agodatasets: add match subdomain test
Antoine Abou Faysal [Fri, 20 Mar 2026 17:14:46 +0000 (19:14 +0200)] 
datasets: add match subdomain test

Ticket: 8385

13 days agoflowbits: add test for toggle for 7 and 8 3149/head
Shivani Bhardwaj [Thu, 4 Jun 2026 04:35:47 +0000 (10:05 +0530)] 
flowbits: add test for toggle for 7 and 8

13 days agoflowbits: remove tests with toggle command
Shivani Bhardwaj [Fri, 22 May 2026 12:10:59 +0000 (17:40 +0530)] 
flowbits: remove tests with toggle command

Task 8595

13 days agodhcp: add overload-3 test using Wireshark canonical capture
Samaresh Kumar Singh [Fri, 29 May 2026 00:20:30 +0000 (19:20 -0500)] 
dhcp: add overload-3 test using Wireshark canonical capture

Companion to dhcp-option-52-overload (overload value 2, sname only). This adds a second test using PRIV_bootp-both_overload.pcap from the Wireshark sample collection, which exercises overload value 3 (both sname and file overloaded) on a single DHCP DISCOVER -- the canonical
reference capture for BOOTP option overload.

The Wireshark sample only carries Option 56 (DHCP Message) in the overloaded areas, which the EVE DHCP logger does not currently emit, so this test does not assert on the overloaded-area content itself. It does verify the parser cleanly processes a real-world overload=3 packet without dropping the event and that the inline-option fields (dhcp_type, id, client_mac, lease_time) still surface correctly -- a regression guard for the Option 52 overload code path. Bug: #8538.

13 days agodhcp: verify option 52 overload parsing
Samaresh Kumar Singh [Sat, 9 May 2026 13:54:15 +0000 (08:54 -0500)] 
dhcp: verify option 52 overload parsing

Add a verification test that runs Suricata over a pcap where the server places dns_servers, routers and a domain inside the BOOTP sname continuation area while flagging Option Overload (52) value 2 in the standard options block. The test asserts that the EVE DHCP events for both the OFFER and the ACK now expose those
overloaded values and that the parallel non overloaded flow in the same capture still reports its inline values.

Bug: #8538.

2 weeks agobackport: support issue 8620 tests for 8 3147/head
Philippe Antoine [Thu, 4 Jun 2026 08:23:34 +0000 (10:23 +0200)] 
backport: support issue 8620 tests for 8

2 weeks agoci: make libhtp repo cloning conditional 3145/head
Juliana Fajardini [Tue, 26 May 2026 13:35:04 +0000 (10:35 -0300)] 
ci: make libhtp repo cloning conditional

As it's only needed for main-7.0.x branch, now.

2 weeks agotests: move non-true-firewall tests to ips dir
Juliana Fajardini [Tue, 26 May 2026 00:28:34 +0000 (21:28 -0300)] 
tests: move non-true-firewall tests to ips dir

These test the engine's behavior with ips acting as firewall-like, and
with the introduction of the firewall mode, were ambiguous, in the
firewall directory.

2 weeks agotests: add test with dns forward pointer
Jason Ish [Wed, 3 Jun 2026 16:29:35 +0000 (10:29 -0600)] 
tests: add test with dns forward pointer

Just to show that it works.

Related to ticket: #8584.

2 weeks agotls: add pre8 issuer zero lua test
Jason Ish [Sun, 10 May 2026 19:41:37 +0000 (21:41 +0200)] 
tls: add pre8 issuer zero lua test

Add a pre-8 variant based on tests/tls/tls-issuer-zero, modified to
enable a Lua TLS rule for certificate info access with an issuer
containing a zero.

Ticket: #6286

2 weeks agotests: add test for issue 8536 use after free
Jason Ish [Wed, 6 May 2026 23:09:29 +0000 (17:09 -0600)] 
tests: add test for issue 8536 use after free

Ticket: #8536

2 weeks agotests: add dotprefix use after free test
Jason Ish [Wed, 6 May 2026 23:16:00 +0000 (17:16 -0600)] 
tests: add dotprefix use after free test

Ticket: #8537

2 weeks agotests: lower dataset min-version to 7.0.16
Jason Ish [Sat, 16 May 2026 22:24:07 +0000 (16:24 -0600)] 
tests: lower dataset min-version to 7.0.16

2 weeks agotests: lower dnp3 response min-version to 7.0.16
Jason Ish [Sat, 16 May 2026 22:24:07 +0000 (16:24 -0600)] 
tests: lower dnp3 response min-version to 7.0.16

2 weeks agotests: lower dnp3 request min-version to 7.0.16
Jason Ish [Sat, 16 May 2026 22:24:07 +0000 (16:24 -0600)] 
tests: lower dnp3 request min-version to 7.0.16

2 weeks agotests: lower security-8510 min-version to 7.0.16
Jason Ish [Sat, 16 May 2026 22:24:07 +0000 (16:24 -0600)] 
tests: lower security-8510 min-version to 7.0.16

2 weeks agotests: lower security-8550 min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower security-8550 min-version to 8.0.5

2 weeks agotests: lower lua overflow escape min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower lua overflow escape min-version to 8.0.5

2 weeks agotests: lower dataset absolute path min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower dataset absolute path min-version to 8.0.5

2 weeks agotests: lower lua-sandbox-alloclimit-bypass min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower lua-sandbox-alloclimit-bypass min-version to 8.0.5

2 weeks agotests: lower dnp3 response min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower dnp3 response min-version to 8.0.5

2 weeks agotests: lower dnp3 request min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower dnp3 request min-version to 8.0.5

2 weeks agotests: lower security-8510 min-version to 8.0.5
Jason Ish [Wed, 13 May 2026 21:19:10 +0000 (15:19 -0600)] 
tests: lower security-8510 min-version to 8.0.5

2 weeks agotests: test for defrag issue 8550
Jason Ish [Mon, 11 May 2026 16:49:52 +0000 (10:49 -0600)] 
tests: test for defrag issue 8550

2 weeks agolua: adds test against sandbox escape
Philippe Antoine [Tue, 12 May 2026 12:35:19 +0000 (14:35 +0200)] 
lua: adds test against sandbox escape

2 weeks agotests: add test for dataset absolute save path bypass
Jason Ish [Fri, 8 May 2026 21:40:46 +0000 (15:40 -0600)] 
tests: add test for dataset absolute save path bypass

Ticket: #8546

2 weeks agotests/lua-sandbox-alloclimit-bypass: regression test for LuaAlloc ptr==NULL alloc_lim...
Sree Gopinath [Mon, 27 Apr 2026 15:25:12 +0000 (08:25 -0700)] 
tests/lua-sandbox-alloclimit-bypass: regression test for LuaAlloc ptr==NULL alloc_limit bypass

The ptr==NULL (new allocation) path in LuaAlloc does not check
alloc_limit before allocating. A single large string.rep() call
bypasses the configured security.lua.max-bytes limit while the
realloc path (ptr!=NULL) correctly enforces it.

Test asserts:
- no alert fires (script should be blocked by limit)
- stats.detect.lua.memory_limit_errors == 1

Both assertions fail on affected versions (7.0.15, 8.0.4).

Fix: add alloc_limit check to ptr==NULL path in util-lua-sandbox.c

Ticket: #8507

[Modifications by JI]
- Set min-version to 9; remove lua as a requirement.
- Add ticket number.

2 weeks agotests: dnp3 tests for bounds exceeded
Jason Ish [Wed, 6 May 2026 22:16:42 +0000 (16:16 -0600)] 
tests: dnp3 tests for bounds exceeded

Ticket: #8460

2 weeks agotests: test for defrag issue 8510
Jason Ish [Thu, 7 May 2026 20:45:13 +0000 (14:45 -0600)] 
tests: test for defrag issue 8510

Ticket: #8510

2 weeks agotests: test for delayed tx clean with pass rule 3139/head
Jason Ish [Fri, 29 May 2026 21:19:02 +0000 (15:19 -0600)] 
tests: test for delayed tx clean with pass rule

Ticket: #8619

A memory leak is not directly assertable, so the accumulation is made
observable through a parser that bounds its live transactions. The pcap
is a single CLDAP (LDAP-over-UDP) flow with four complete
request/response pairs plus three trailing requests with no response.
With ldap.max-tx lowered to 4, correct cleanup frees each completed pair
and the live-transaction list never exceeds the cap. Under the bug the
completed transactions are never freed, the list grows past max-tx, and
the LDAP parser raises too_many_transactions, logged as an anomaly
record independent of detection (which is why it survives the pass
rule).

The check asserts the too_many_transactions anomaly is absent: the test
fails on the buggy code and passes once cleanup is fixed.

2 weeks agohttp2: match less on global unidirectional txs 3130/head 3135/head
Philippe Antoine [Tue, 2 Jun 2026 07:11:43 +0000 (09:11 +0200)] 
http2: match less on global unidirectional txs

Ticket: 8518

2 weeks agohttp2: some rules analysis make http2 engine first in 9
Philippe Antoine [Tue, 2 Jun 2026 07:07:17 +0000 (09:07 +0200)] 
http2: some rules analysis make http2 engine first in 9

Ticket: 8518

2 weeks agotests: remove setup of http-log 3131/head
Jason Ish [Mon, 1 Jun 2026 16:42:46 +0000 (10:42 -0600)] 
tests: remove setup of http-log

http-log has been removed in Suricata 9. This test did not depend on its
output either.

Ticket: #7232

2 weeks agotests: add test for llmnr proto 3047/head
Giuseppe Longo [Sat, 25 Apr 2026 10:37:31 +0000 (12:37 +0200)] 
tests: add test for llmnr proto

Ticket #8366

2 weeks agotests: check for ban of bypass keyword w/ firewall 3126/head
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

2 weeks agotests: check replace keyword ban with firewall
Juliana Fajardini [Tue, 26 May 2026 20:41:03 +0000 (17:41 -0300)] 
tests: check replace keyword ban with firewall

Related to
Ticket #8551

3 weeks agotests: add another missed rule accept tx alert test 3120/head 3124/head
Victor Julien [Thu, 28 May 2026 19:30:26 +0000 (21:30 +0200)] 
tests: add another missed rule accept tx alert test

3 weeks agotests: tighten fw default policy test
Victor Julien [Thu, 28 May 2026 11:10:57 +0000 (13:10 +0200)] 
tests: tighten fw default policy test

3 weeks agotests: add test for missing default policy alert
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.

3 weeks agotests: add test for default access with alert policy
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.

3 weeks agotests: add test for packet policy alert skipping app rule
Jason Ish [Wed, 27 May 2026 16:40:50 +0000 (10:40 -0600)] 
tests: add test for packet policy alert skipping app rule

3 weeks agotests: add test for missing default policy alert
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.

3 weeks agotests: update tests for updated fw discard logic
Victor Julien [Wed, 27 May 2026 07:56:20 +0000 (09:56 +0200)] 
tests: update tests for updated fw discard logic

3 weeks agotests/firewall: account for drop no longer including alert
Victor Julien [Tue, 26 May 2026 21:12:27 +0000 (23:12 +0200)] 
tests/firewall: account for drop no longer including alert

3 weeks agotests: firewall test showing default drop with alert
Jason Ish [Tue, 26 May 2026 18:07:52 +0000 (12:07 -0600)] 
tests: firewall test showing default drop with alert

3 weeks agotests: add more firewall+TD tests
Victor Julien [Tue, 26 May 2026 10:08:19 +0000 (12:08 +0200)] 
tests: add more firewall+TD tests

3 weeks agotests/firewall: add test testing <response body
Jason Ish [Wed, 20 May 2026 18:22:21 +0000 (12:22 -0600)] 
tests/firewall: add test testing <response body

3 weeks agotests: add firewall policy alert support
Victor Julien [Sun, 17 May 2026 19:30:13 +0000 (21:30 +0200)] 
tests: add firewall policy alert support

3 weeks agotests: add tests for fw hook lt mode
Victor Julien [Sat, 16 May 2026 19:41:46 +0000 (21:41 +0200)] 
tests: add tests for fw hook lt mode

3 weeks agotests: add check for exception-policy-drop-reson 3117/head
Juliana Fajardini [Thu, 14 May 2026 19:32:14 +0000 (16:32 -0300)] 
tests: add check for exception-policy-drop-reson

3 weeks agotests/firewall: no firewall mode, no related stats
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

3 weeks agotests: check for dedicated firewall counters
Juliana Fajardini [Tue, 14 Apr 2026 14:32:01 +0000 (11:32 -0300)] 
tests: check for dedicated firewall counters

Related to
Ticket #7699

3 weeks agotests: add test for ticket 5711 3114/head
Shivani Bhardwaj [Tue, 24 Feb 2026 06:16:58 +0000 (11:46 +0530)] 
tests: add test for ticket 5711

4 weeks agohttp: fix test with filestore 3107/head
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

4 weeks agodoc: document stats check usage
Jason Ish [Thu, 14 May 2026 20:39:01 +0000 (14:39 -0600)] 
doc: document stats check usage

4 weeks agoframework: has-key and not-has-key accept lists
Philippe Antoine [Wed, 29 Apr 2026 11:59:22 +0000 (13:59 +0200)] 
framework: has-key and not-has-key accept lists

4 weeks agoframework: yaml loader check duplicate key
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

4 weeks agotests: disable bug 6617 temporarily suricata-8.0.5
Victor Julien [Tue, 19 May 2026 04:23:28 +0000 (06:23 +0200)] 
tests: disable bug 6617 temporarily

4 weeks agotests: enable ntp tests for min-version 8.0.5 3101/head
Jason Ish [Thu, 14 May 2026 21:52:46 +0000 (15:52 -0600)] 
tests: enable ntp tests for min-version 8.0.5

4 weeks agobackport: support issue 8399 tests for 8 3094/head 3100/head
Philippe Antoine [Sat, 16 May 2026 18:47:07 +0000 (20:47 +0200)] 
backport: support issue 8399 tests for 8

4 weeks agotests: test showing defaults taking precedence over rules 3092/head
Jason Ish [Fri, 15 May 2026 19:11:37 +0000 (13:11 -0600)] 
tests: test showing defaults taking precedence over rules

4 weeks agotests: cover firewall default accept:tx pipelining
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.

4 weeks agotests: test accept:flow with threat detection
Jason Ish [Thu, 14 May 2026 18:27:15 +0000 (12:27 -0600)] 
tests: test accept:flow with threat detection

4 weeks agotests: firewall default policy tests
Victor Julien [Tue, 5 May 2026 20:39:06 +0000 (22:39 +0200)] 
tests: firewall default policy tests

4 weeks agotests: show how accept:flow can bypass threat detection
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.

4 weeks agotests: firewall: add multi-action rule tests
Victor Julien [Fri, 1 May 2026 08:56:57 +0000 (10:56 +0200)] 
tests: firewall: add multi-action rule tests

4 weeks agotests: firewall: rename to have unique numbers
Victor Julien [Thu, 23 Apr 2026 19:58:51 +0000 (21:58 +0200)] 
tests: firewall: rename to have unique numbers

4 weeks agotests: add more firewall rules
Victor Julien [Thu, 23 Apr 2026 19:55:27 +0000 (21:55 +0200)] 
tests: add more firewall rules

4 weeks agotests: firewall: update for action scope changes
Victor Julien [Thu, 23 Apr 2026 19:31:25 +0000 (21:31 +0200)] 
tests: firewall: update for action scope changes

4 weeks agotests: firewall: add missing rules
Victor Julien [Mon, 20 Apr 2026 15:58:26 +0000 (17:58 +0200)] 
tests: firewall: add missing rules

Ticket: #8495.

4 weeks agotests: check tls.cert_chain_len in firewall mode
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

4 weeks agotest: check for dns keywords in firewall mode
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

4 weeks agotest: check for untested keywords in firewall mode
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

4 weeks agotests: add ja3 tests for issue 8336
Jason Ish [Sun, 1 Mar 2026 16:37:26 +0000 (10:37 -0600)] 
tests: add ja3 tests for issue 8336

5 weeks agotests: update alert.engine test for 8.0.5 3085/head 3086/head
Jason Ish [Wed, 13 May 2026 22:32:36 +0000 (16:32 -0600)] 
tests: update alert.engine test for 8.0.5

5 weeks agobackport: support issue 8553 tests for 8 3083/head
Philippe Antoine [Tue, 12 May 2026 08:22:21 +0000 (10:22 +0200)] 
backport: support issue 8553 tests for 8

5 weeks agotests: extend bug-8489 tests to include 8.0.5+
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

5 weeks agoreputation: test reputation category with 0x0c 0x0a line 3081/head
Sergey Pinaev [Wed, 29 Apr 2026 12:10:45 +0000 (15:10 +0300)] 
reputation: test reputation category with 0x0c 0x0a line

Ticket: 8500

5 weeks agotests: add alert.engine checks to firewall tests
Jason Ish [Thu, 7 May 2026 21:38:24 +0000 (15:38 -0600)] 
tests: add alert.engine checks to firewall tests

Ticket: #8456

5 weeks agobackport: support issue 8522 tests for 8 3077/head 3078/head
Philippe Antoine [Sun, 10 May 2026 20:07:28 +0000 (22:07 +0200)] 
backport: support issue 8522 tests for 8

5 weeks agotests: add test cases for bug 8489 3073/head
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.

5 weeks agodcerpc: adds test without PFC_FIRST_FRAG
Philippe Antoine [Thu, 7 May 2026 06:34:10 +0000 (08:34 +0200)] 
dcerpc: adds test without PFC_FIRST_FRAG

Ticket: 8457

5 weeks agobug-8505: add min-version
Sergey Pinaev [Thu, 30 Apr 2026 08:10:26 +0000 (11:10 +0300)] 
bug-8505: add min-version

5 weeks agodetect-engine-analyzer: test engine-analysis with engine-analysis turned off
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

6 weeks agotests: add ntp lua tests 3069/head 3070/head
Jason Ish [Tue, 5 May 2026 21:49:00 +0000 (15:49 -0600)] 
tests: add ntp lua tests

Ticket: #8533

6 weeks agoRevert "tests: remove unneeded flowbit ops" 3067/head
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.

6 weeks agooutput: rename reject-target to reject_target
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