]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Joyce Yu [Mon, 17 Mar 2025 18:51:12 +0000 (14:51 -0400)]
Tests: add bug-5486
- add test to check presence of ethernet metadata in events
triggered on flow timeout pseudopackets
Jason Ish [Wed, 12 Mar 2025 19:09:17 +0000 (13:09 -0600)]
eve-validator: downgrade versions to keep Rust 1.67.1 support
Jason Ish [Tue, 25 Feb 2025 22:27:28 +0000 (16:27 -0600)]
rfb-partial-tx: remove fgrep requires check
This is true for 7 and 8 now.
Jason Ish [Tue, 25 Feb 2025 22:25:06 +0000 (16:25 -0600)]
readme: use current values in examples
Jason Ish [Tue, 25 Feb 2025 22:18:52 +0000 (16:18 -0600)]
tls-duplicate-hello: requires JA3
Jason Ish [Tue, 25 Feb 2025 22:10:48 +0000 (16:10 -0600)]
tests/tls: some sub tests require ja3
Jason Ish [Tue, 25 Feb 2025 22:07:59 +0000 (16:07 -0600)]
test-ruleparse-etopen-01: requires HAVE_JA3
Jason Ish [Tue, 25 Feb 2025 21:36:54 +0000 (15:36 -0600)]
tests: remove feature checks for RUST, JANSSON and NSS
These are all optiosn that can no longer be disabled.
Jason Ish [Tue, 25 Feb 2025 21:40:03 +0000 (15:40 -0600)]
quic-v2: break out ja3 tests and require HAVE_JA3
Jason Ish [Tue, 25 Feb 2025 21:18:41 +0000 (15:18 -0600)]
test/quic-ietf: break out ja3 dependent tests
JA3 is a compile time option, breakout the JA3 tests to another test
that depends on HAVE_JA3.
Philippe Antoine [Fri, 7 Mar 2025 17:03:57 +0000 (18:03 +0100)]
detect: backport test for midstream
Ticket: 7552
Alice Akaki [Thu, 13 Feb 2025 21:04:29 +0000 (17:04 -0400)]
detect: transaction cleaned before detection when stream.midstream=true
Ticket: #7552
Philippe Antoine [Thu, 6 Mar 2025 06:24:25 +0000 (07:24 +0100)]
detect: backport tests for file.data to 7
Ticket: 7577
Jason Ish [Mon, 24 Feb 2025 17:38:44 +0000 (11:38 -0600)]
test: dns rdata match on additionals cname
Also provides coverage.
Jason Ish [Fri, 21 Feb 2025 21:29:54 +0000 (15:29 -0600)]
tests/dns: coverage for cname, ptr and mx rdata
Jason Ish [Thu, 20 Feb 2025 21:21:36 +0000 (15:21 -0600)]
tests/dns: add dns.response.rrname to some tests for coverage
Jason Ish [Wed, 19 Feb 2025 21:23:09 +0000 (15:23 -0600)]
dns tests: update for keyword name changes
- dns.query.name -> dns.queries.rrname
- dns.answer.name -> dns.answers.rrname
Jason Ish [Wed, 19 Feb 2025 21:16:58 +0000 (15:16 -0600)]
tests: dns.additionals.rrname and dns.authorities.rrname
Jason Ish [Tue, 28 Jan 2025 22:38:53 +0000 (16:38 -0600)]
dns-response-rrname-sticky-buffer: update for keyword rename
And rename the test to match the keyword.
Add ticket reference to README.
Nathan Scrivens [Tue, 20 Aug 2024 00:40:31 +0000 (20:40 -0400)]
tests: add test for 7012
Philippe Antoine [Tue, 4 Mar 2025 15:58:33 +0000 (16:58 +0100)]
detect: add tests for file.data
with HTTP1 multipart and multiple files
Ticket: 7577
Alice Akaki [Fri, 14 Feb 2025 16:42:12 +0000 (12:42 -0400)]
detect: add test for ldap.responses.message
Ticket: #7532
Alice Akaki [Thu, 6 Feb 2025 06:16:40 +0000 (02:16 -0400)]
detect: add test for ldap.responses.result_code
Ticket: #7532
Philippe Antoine [Tue, 25 Feb 2025 20:36:23 +0000 (21:36 +0100)]
requires: remove requires on file names
As functionality can move from file to file, especially from
C to rust and we still want to run the tests
On the way, remove some some requires on features that are
always present since 7
HAVE_LIBJANSSON
HAVE_NSS
RUST
Jeff Lucovsky [Tue, 4 Feb 2025 13:28:34 +0000 (08:28 -0500)]
config/ftp: Test behavior w/invalid values
Issue: 4082
Test the FTP config logic when there are invalid values for
- memcap
- max-tx
- max-line-len
Ensure that a warning message is displayed
Philippe Antoine [Thu, 6 Feb 2025 12:28:01 +0000 (13:28 +0100)]
dns: convert unittests for dns.query keyword
Ticket: 3725
Philippe Antoine [Tue, 17 Dec 2024 08:46:32 +0000 (09:46 +0100)]
eve-validator: cargo update
especially update vulnerable idna crate to a safe version
Found by dependabot
Philippe Antoine [Tue, 10 Dec 2024 20:23:09 +0000 (21:23 +0100)]
ja3/ja4: usage of skip when feature is present
Philippe Antoine [Tue, 10 Dec 2024 13:50:08 +0000 (14:50 +0100)]
unified2: remove obsolete test
Ticket: 2385
Philippe Antoine [Tue, 10 Dec 2024 13:42:08 +0000 (14:42 +0100)]
eve: remove obsolete test
suricata/yaml no longer has http-headers option
Philippe Antoine [Tue, 10 Dec 2024 13:29:57 +0000 (14:29 +0100)]
dhcp: enable test
Ticket #3345 was closed and this test passes quickly
Philippe Antoine [Sun, 23 Feb 2025 20:26:17 +0000 (21:26 +0100)]
quic: backport multiple tests to 7
Ticket: 7556
Philippe Antoine [Fri, 21 Feb 2025 09:36:59 +0000 (10:36 +0100)]
quic: add tests with multiple retry packets
Ticket: 7556
The second retry packet must be discarded
Shivani Bhardwaj [Wed, 19 Feb 2025 07:57:17 +0000 (13:27 +0530)]
dcerpc: test ifaces as a part of dcerpc request
Alice Akaki [Thu, 6 Feb 2025 01:54:44 +0000 (21:54 -0400)]
detect: add test for ldap.responses.dn keyword
Ticket: #7471
Alice Akaki [Fri, 31 Jan 2025 12:48:47 +0000 (08:48 -0400)]
detect: add test for ldap.request.dn keyword
Ticket: #7471
Philippe Antoine [Mon, 17 Feb 2025 10:17:48 +0000 (11:17 +0100)]
quic: add tests for fragment reassembly
Ticket: 7556
Juliana Fajardini [Fri, 14 Feb 2025 23:06:23 +0000 (20:06 -0300)]
tests: add test for pgsql event
Related to
Task #5566
Juliana Fajardini [Fri, 7 Feb 2025 22:43:37 +0000 (19:43 -0300)]
pgsql: add tests for no-failing on parsing error
Related to
Task #5524
Juliana Fajardini [Fri, 20 Dec 2024 02:02:22 +0000 (23:02 -0300)]
tests: add flowbits engine-analysis test
Especially to illustrate the engine-analysis report on flowbit rules
statefulness changes based on another flowbit rule.
Related to
Task #7456
Victor Julien [Mon, 17 Feb 2025 20:49:31 +0000 (21:49 +0100)]
tests: enable bug 7554 test for 7.0.x
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