]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Victor Julien [Thu, 13 Feb 2025 15:03:22 +0000 (16:03 +0100)]
tests: bug 7554 test
Shivani Bhardwaj [Mon, 10 Feb 2025 10:43:10 +0000 (16:13 +0530)]
datarep: adjust error message to newer output
Shivani Bhardwaj [Thu, 9 Jan 2025 09:38:54 +0000 (15:08 +0530)]
dataset/rep: add tests for error conditions
Shivani Bhardwaj [Wed, 8 Jan 2025 10:36:30 +0000 (16:06 +0530)]
dataset: update engine module
since moving the file reading to Rust and adding the common
FatalErrorOnInit callback to util-debug.c, the module that finally does
make the error message is "debug".
Jason Ish [Mon, 27 Jan 2025 22:47:52 +0000 (16:47 -0600)]
test: add test for lua base64
Combined test, testing base64 in rule and output context.
Victor Julien [Wed, 22 Jan 2025 13:31:23 +0000 (14:31 +0100)]
tests: add tests for suricata.packet lualib
Split tests for 7 and 8 as the packetlib is a breaking change.
Alice Akaki [Wed, 22 Jan 2025 22:58:21 +0000 (18:58 -0400)]
detect/integers: test enum with negated strings
Ticket: #7513
Jeff Lucovsky [Sat, 8 Feb 2025 17:05:11 +0000 (12:05 -0500)]
detect/csum: Update min-version
Issue: 7468
The backport of 7467 to main-7.0.x allows these tests to run in a 7.0.x
environment.
Philippe Antoine [Thu, 23 Jan 2025 20:37:59 +0000 (21:37 +0100)]
smtp: backport tls test to 7
Ticket: 7469
Jeff Lucovsky [Wed, 3 Jul 2024 12:29:59 +0000 (08:29 -0400)]
tests/decode: Verify unknown ethertype event
Issue: 7129
Ilya Bakhtin [Sun, 19 May 2024 17:04:32 +0000 (19:04 +0200)]
detect-proto: add a test for DNS detected as DCERPC by PM
Victor Julien [Sat, 25 Jan 2025 08:50:58 +0000 (09:50 +0100)]
tests: add prefilter analysis tests
Shivani Bhardwaj [Thu, 29 Aug 2024 10:59:11 +0000 (16:29 +0530)]
dcerpc: add test for frames
Feature 4904
Jeff Lucovsky [Mon, 20 Jan 2025 13:40:58 +0000 (08:40 -0500)]
detect/csum: Test interaction btw csum/stream setting
Issue: 7467
Validate that there is no interaction between the csum keyword and
stream.checksum-validation settings.
Victor Julien [Thu, 23 Jan 2025 15:48:05 +0000 (16:48 +0100)]
tests: add test for issue 7521
Ticket: #7521.
Victor Julien [Thu, 23 Jan 2025 15:25:56 +0000 (16:25 +0100)]
tests: update test for issue 7521
Expect only a single iponly alert for a single packet
Ticket: #7521.
Eric Leblond [Fri, 29 Nov 2024 17:51:31 +0000 (18:51 +0100)]
tests: verify valid json on long message
Juliana Fajardini [Fri, 24 Jan 2025 18:27:42 +0000 (15:27 -0300)]
tests: engine-analysis pkt_stream rule type tests
To accompany Rule Types documentation.
Related to
Task #7031
Juliana Fajardini [Fri, 24 Jan 2025 18:23:16 +0000 (15:23 -0300)]
tests: add engine-analysis stream rule type tests
To accompany the Rule Types documentation.
Related to
Task #7031
Juliana Fajardini [Wed, 22 Jan 2025 19:51:57 +0000 (16:51 -0300)]
tests: add engine-analysis de_only rule type tests
To accompany rule types documentation.
Related to
Task #7031
Juliana Fajardini [Wed, 22 Jan 2025 19:40:18 +0000 (16:40 -0300)]
tests: engine-analysis tests for pkt rule type
To accompany rule types documentation.
Related to
Task #7031
Juliana Fajardini [Fri, 24 Jan 2025 20:20:15 +0000 (17:20 -0300)]
tests: engine-analysis tests for ip_only rule type
To accompany rule types documentation.
Related to
Task #7031
Juliana Fajardini [Fri, 24 Jan 2025 22:02:07 +0000 (19:02 -0300)]
tests: add simple ip only w/ negated content test
Juliana Fajardini [Fri, 24 Jan 2025 22:01:44 +0000 (19:01 -0300)]
tests: engine-analysis for like_ip_only rule type
Add engine-analysis tests for like_ip_only rule type, to accompany rule
types documentation.
Related to
Task #7031
Juliana Fajardini [Mon, 20 Jan 2025 20:45:03 +0000 (17:45 -0300)]
tests: engine-analysis tests for pd_only rule type
Test protocol detection only engine-analysis tests to accompany rule
types documentation.
Related to
Task #7031
Juliana Fajardini [Mon, 20 Jan 2025 20:33:45 +0000 (17:33 -0300)]
tests: engine-analysis app_layer rule type tests
Add tests for the app_layer rule type for the engine-analysis report to
accompany rule types documentation.
Related to
Task #7031
Juliana Fajardini [Mon, 20 Jan 2025 19:25:17 +0000 (16:25 -0300)]
tests: engine-analysis tests for app_tx rule type
Add test for the app_tx rule type for the engine-analysis report to
accompany rule types documentation.
Related to
Task #7031
Juliana Fajardini [Wed, 27 Nov 2024 19:55:57 +0000 (16:55 -0300)]
tests: add rule type checks for iprep rules
To accompany rule types documentation.
Added these separately, as they require extra config files.
As the test name still includes `rule-types`, it's still possible to
both batches of tests at once.
Related to
Task #https://redmine.openinfosecfoundation.org/issues/7031
Cole Dishington [Tue, 8 Aug 2023 02:50:59 +0000 (14:50 +1200)]
flow: Add tests for excluding pkt recursion from flow
Add tests for verifying matching packet flows when including and
excluding pkt recursion from flow matching.
Bug: #6260
Jeff Lucovsky [Mon, 20 Jan 2025 15:12:07 +0000 (10:12 -0500)]
test/ftp: FTP command tests
Issue: 7502
Add test cases for the keyword ftp.command:
- Validate matches
- Validate keyword can't be used for server responses
Philippe Antoine [Fri, 24 Jan 2025 12:58:10 +0000 (13:58 +0100)]
detect/smtp: smtp.rcpt_to keyword
Ticket: 7516
Philippe Antoine [Fri, 24 Jan 2025 12:37:59 +0000 (13:37 +0100)]
detect/smtp: smtp.mail_from keyword
Ticket: 7517
Philippe Antoine [Fri, 24 Jan 2025 12:23:49 +0000 (13:23 +0100)]
detect/smtp: smtp.helo keyword
Ticket: 7515
Jason Ish [Wed, 22 Jan 2025 22:30:28 +0000 (16:30 -0600)]
test: test lua require with builtin lib for output scripts
Jason Ish [Mon, 20 Jan 2025 21:58:54 +0000 (15:58 -0600)]
test: test for lua hashing lib
Ticket: #7073
Alice Akaki [Mon, 23 Dec 2024 11:04:57 +0000 (07:04 -0400)]
detect: add test for ldap operation keywords
Ticket: #7453
Philippe Antoine [Thu, 19 Dec 2024 10:27:10 +0000 (11:27 +0100)]
smtp: test protocol detection after TLS from client
Ticket: 7469
Alice Akaki [Tue, 14 Jan 2025 01:26:42 +0000 (21:26 -0400)]
ldap: add test for abandon request
Ticket: #7477
Alice Akaki [Wed, 8 Jan 2025 21:11:37 +0000 (17:11 -0400)]
detect: add test for vlan.layers
Ticket: #1065
Alice Akaki [Mon, 23 Dec 2024 12:17:58 +0000 (08:17 -0400)]
detect: add test for vlan.id
Ticket: #1065
Jason Ish [Fri, 10 Jan 2025 23:33:31 +0000 (17:33 -0600)]
datasets-lua: update to use require "suricata.dataset"
Victor Julien [Wed, 6 Nov 2024 10:19:38 +0000 (11:19 +0100)]
tests: add lua dataset tests
Shivani Bhardwaj [Fri, 23 Aug 2024 07:06:50 +0000 (12:36 +0530)]
flow/pkt: add test for either dir
Shivani Bhardwaj [Fri, 23 Aug 2024 07:03:40 +0000 (12:33 +0530)]
flow/pkts: add rules w new syntax
Victor Julien [Tue, 3 Dec 2024 09:32:00 +0000 (10:32 +0100)]
tests: add RST with unacked data file tests
Add tests for bad handling of unacked data following a RST.
The additional data should not lead to new tx's or files.
Victor Julien [Sat, 30 Nov 2024 07:46:56 +0000 (08:46 +0100)]
tests: add bug 7422 tests
Tests various forms of RST triggering handling of unACK'd data.
Victor Julien [Fri, 20 Dec 2024 19:31:28 +0000 (20:31 +0100)]
tests: don't enforce shutdown flow logging
Test checked for a flow log being generated by shutdown, but it is
possible to have the flow manager handle it before shutdown. So in that
case it would be "timeout". Since the test isn't about that, remove the
check.
Victor Julien [Fri, 20 Sep 2024 07:40:55 +0000 (09:40 +0200)]
tests: update for stricter timeout handling
Philippe Antoine [Tue, 10 Sep 2024 13:30:06 +0000 (15:30 +0200)]
dns: adds test for corrupt additionals
Ticket: 7228
Philippe Antoine [Wed, 18 Dec 2024 21:04:47 +0000 (22:04 +0100)]
dns: update 7018 tests for suricata 8
using dns v3 logging
Ticket: 7199
This also fixes ticket 7449
Jeff Lucovsky [Sun, 29 Dec 2024 15:17:03 +0000 (10:17 -0500)]
tests/lua: Test for issue 7466
This test was contributed by the reporter of issue 7466. Slight
modifications not affecting the structure nor results were made.
This test exercises the problem reported in the issue and a memory leak
will be reported on Suricata binaries without the fix (ASAN-only).
Non-ASAN builds will not report the issue (regardless of whether the
Suricata fix is included).
Jason Ish [Mon, 16 Dec 2024 18:50:54 +0000 (12:50 -0600)]
test: truncated ipv4 test
Test that no src_ip, dest_ip are logged instead of just empty strings.
Ticket: https://redmine.openinfosecfoundation.org/issues/7460
Jeff Lucovsky [Thu, 12 Dec 2024 14:53:25 +0000 (09:53 -0500)]
output: Permit output tests for failure case
Remove the restriction for bug-5198. The test case uses discretionary
access control to mediate access to the output log directory. Thus, skip
the test when running as root.
Issue: 7447
Philippe Antoine [Wed, 18 Dec 2024 20:23:36 +0000 (21:23 +0100)]
doh2: add test for 65K limit
Ticket: 7464
Victor Julien [Wed, 18 Dec 2024 19:57:03 +0000 (20:57 +0100)]
tests: workaround for urgp tests
Slow runs lead to multiple stats records with the same data.
Completes
cb35ba0d74e1bd163071c3cea1abe509018cda4a
Victor Julien [Tue, 17 Dec 2024 15:29:02 +0000 (16:29 +0100)]
tests: workaround for urgp test
Slow runs lead to multiple stats records with the same data.
Philippe Antoine [Wed, 11 Dec 2024 14:54:09 +0000 (15:54 +0100)]
dns: enable test for ticket 7018
by converting to dns v3 mostly
Ticket: 7018
Ticket: 7449
Shivani Bhardwaj [Tue, 12 Nov 2024 08:18:17 +0000 (13:48 +0530)]
applayer: add test for dcerpc req http resp
as done in the unittest AppLayerTest08 as of Suricata
278dc24c .
Victor Julien [Wed, 11 Dec 2024 20:15:56 +0000 (21:15 +0100)]
tests: tcp urgent for 7.0.x
Victor Julien [Mon, 9 Dec 2024 16:13:07 +0000 (17:13 +0100)]
tests: tcp urgent tests
Victor Julien [Mon, 9 Dec 2024 16:02:19 +0000 (17:02 +0100)]
tests: update telnet for urgent handling
Jason Ish [Tue, 10 Dec 2024 20:40:35 +0000 (14:40 -0600)]
dns-rname-truncated: update for 7.0.8 backport
Jason Ish [Fri, 1 Nov 2024 18:02:04 +0000 (12:02 -0600)]
test: dns name truncation
Add test for DNS name truncation and associated alert.
Ticket: #7280
Philippe Antoine [Wed, 11 Dec 2024 14:03:00 +0000 (15:03 +0100)]
tls: add ticket reference in READMEs
Philippe Antoine [Wed, 11 Dec 2024 13:53:53 +0000 (14:53 +0100)]
backport: for ticket 7199 and 7318
As these tickets impact some common tests
Shivani Bhardwaj [Mon, 7 Oct 2024 08:24:16 +0000 (13:54 +0530)]
add test for extra tls alert
Victor Julien [Thu, 28 Nov 2024 10:41:16 +0000 (11:41 +0100)]
tests: update firewall test for pkt sigs not alerting on ffr packets
Philippe Antoine [Mon, 2 Dec 2024 10:18:29 +0000 (11:18 +0100)]
tls: add check for catch-all rule logging app-layer metadata
Ticket: 7530
Philippe Antoine [Thu, 28 Nov 2024 12:37:47 +0000 (13:37 +0100)]
pgsql: use detect.guess-applayer-tx for content test
Ticket: 7199
Philippe Antoine [Thu, 28 Nov 2024 10:19:15 +0000 (11:19 +0100)]
output: use detect.guess-applayer-tx for http-ish content test
Ticket: 7199
Juliana Fajardini [Fri, 27 Sep 2024 20:55:50 +0000 (17:55 -0300)]
tests: add test for bug-7199
More of a change in behavior than a bug, but important to be documented
Related to
Bug https://redmine.openinfosecfoundation.org/issues/7199
Juliana Fajardini [Fri, 6 Dec 2024 12:51:41 +0000 (09:51 -0300)]
tests: enable task 7426 test to 70x
Related to
Task #7427
Victor Julien [Fri, 6 Dec 2024 05:50:31 +0000 (06:50 +0100)]
tests: support bug 7414 tests for 7
Jason Ish [Wed, 4 Dec 2024 17:45:38 +0000 (11:45 -0600)]
test: simple test for unknown requirements
Jason Ish [Wed, 4 Dec 2024 17:13:08 +0000 (11:13 -0600)]
test: test setting to ignore unknown requirement
Test that the new behavior in 8 for treating unknown requirements as
unsatisfied can be disable in 7.0.8 and newer, but that this setting is not
respected in 8.
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