]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
3 months agopgsql: add tests for copy-out mode 2419/head
Juliana Fajardini [Wed, 2 Apr 2025 23:48:09 +0000 (16:48 -0700)] 
pgsql: add tests for copy-out mode

Task #4854

4 months agotest/ftp: ftp.command_data keyword tests 2384/head
Jeff Lucovsky [Sat, 29 Mar 2025 12:09:38 +0000 (08:09 -0400)] 
test/ftp: ftp.command_data keyword tests

Issue: 7503

Add tests that check for
- ftp.command and ftp.command_data
- ftp.command_data

4 months agotests: require ja3 feature on new bidir tests 2415/head
Jason Ish [Tue, 1 Apr 2025 13:52:56 +0000 (07:52 -0600)] 
tests: require ja3 feature on new bidir tests

4 months agohttp: add test about http parser error
Philippe Antoine [Thu, 27 Mar 2025 13:43:29 +0000 (14:43 +0100)] 
http: add test about http parser error

4 months agoflow: log elephant flow count and bool 2411/head
Shivani Bhardwaj [Tue, 1 Apr 2025 10:32:31 +0000 (16:02 +0530)] 
flow: log elephant flow count and bool

Feature 5647

4 months agodetect: add test for email.x_mailer keyword
Alice Akaki [Tue, 1 Apr 2025 22:41:36 +0000 (18:41 -0400)] 
detect: add test for email.x_mailer keyword

Ticket: #7598

4 months agodetect: add test for email.message_id keyword
Alice Akaki [Sat, 29 Mar 2025 00:28:58 +0000 (20:28 -0400)] 
detect: add test for email.message_id keyword

Ticket: #7593

4 months agodetect/email: add custom log information for tests detect-email-subject and detect...
Alice Akaki [Wed, 2 Apr 2025 19:21:35 +0000 (15:21 -0400)] 
detect/email: add custom log information for tests detect-email-subject and detect-email-date

4 months agotests: flowbit prefilter tests
Victor Julien [Mon, 13 Jun 2022 06:08:25 +0000 (08:08 +0200)] 
tests: flowbit prefilter tests

4 months agosdp: update test for time descriptions 2404/head 2407/head
Giuseppe Longo [Tue, 15 Oct 2024 08:55:26 +0000 (10:55 +0200)] 
sdp: update test for time descriptions

4 months agosdp: add tests for sticky buffers
Giuseppe Longo [Fri, 4 Oct 2024 13:03:47 +0000 (15:03 +0200)] 
sdp: add tests for sticky buffers

4 months agotest/entropy: Basic entropy keyword test 2403/head
Jeff Lucovsky [Mon, 13 Jan 2025 13:49:50 +0000 (08:49 -0500)] 
test/entropy: Basic entropy keyword test

This commit adds a basic test of the entropy keyword.

4 months agohttp: add more lua logging tests 2396/head
Shivani Bhardwaj [Tue, 1 Apr 2025 06:13:36 +0000 (11:43 +0530)] 
http: add more lua logging tests

4 months agohttp: add lua lib detection tests
Shivani Bhardwaj [Tue, 1 Apr 2025 06:12:51 +0000 (11:42 +0530)] 
http: add lua lib detection tests

4 months agohttp: use lua lib to access data
Shivani Bhardwaj [Wed, 26 Mar 2025 06:00:18 +0000 (11:30 +0530)] 
http: use lua lib to access data

4 months agoexceptions: add checks for new stats counters
Juliana Fajardini [Mon, 24 Mar 2025 20:36:34 +0000 (13:36 -0700)] 
exceptions: add checks for new stats counters

Using more search-friendly stats counters for exception_policy counters.

Related to
Task #7185

4 months agotest/linktype: Expand linktype_name coverage
Jeff Lucovsky [Sat, 27 Jul 2024 14:09:20 +0000 (10:09 -0400)] 
test/linktype: Expand linktype_name coverage

Issue: 4974

This commit extends the linktype_name validation across the existing
tests so that more linktype name values are checked:
    - C_HDLC
    - PPP
    - IPV4
    - IPV6
    - RAW
    - EN10B
    - LINUX_SLL

Some existing tests required suricata.yaml configuration to enable the
packet values to be in the alerts.

4 months agotests: linktype_name test
Jeff Lucovsky [Thu, 25 Apr 2024 14:18:48 +0000 (10:18 -0400)] 
tests: linktype_name test

Issue: 6954

Ensure that the linktype_name is included in the alerts.

4 months agorules/bidir: adds engine-analysis tests 2388/head
Philippe Antoine [Tue, 8 Oct 2024 08:14:18 +0000 (10:14 +0200)] 
rules/bidir: adds engine-analysis tests

Ticket: 5665

4 months agoAdds test about bidirectional rules
Philippe Antoine [Thu, 18 Jan 2024 13:30:27 +0000 (14:30 +0100)] 
Adds test about bidirectional rules

Ticket: 5665

Both positive and negative tests (impossible to load rules)
Matching and not matching tests

4 months agodetect: add test for email.date keyword
Alice Akaki [Fri, 28 Mar 2025 20:12:27 +0000 (16:12 -0400)] 
detect: add test for email.date keyword

4 months agotests: enable passing tests on version 8 2385/head
Philippe Antoine [Thu, 27 Mar 2025 19:29:03 +0000 (20:29 +0100)] 
tests: enable passing tests on version 8

for tests that restricted themselves to 7

Ticket: 7461

4 months agogithub-ci: no need to install tshark 2381/head
Victor Julien [Fri, 28 Mar 2025 18:32:10 +0000 (19:32 +0100)] 
github-ci: no need to install tshark

No packages update needed either.

4 months agogithub-ci: check for unsupported pcap types
Victor Julien [Fri, 28 Mar 2025 18:26:08 +0000 (19:26 +0100)] 
github-ci: check for unsupported pcap types

4 months agotests/lua: update/ add more for lua flow lua lib 2378/head
Juliana Fajardini [Thu, 27 Mar 2025 14:20:07 +0000 (07:20 -0700)] 
tests/lua: update/ add more for lua flow lua lib

For tests that used SCFlow functions but are min-version: 8.
Add a few more tests to cover other funcitons.

Task #7489

4 months agotests/lua: move tests using SCFlow funcs to *-pre8
Juliana Fajardini [Thu, 27 Mar 2025 02:25:04 +0000 (19:25 -0700)] 
tests/lua: move tests using SCFlow funcs to *-pre8

Task #7489

4 months agotests: add dnp3 lua state 2374/head
Jason Ish [Thu, 27 Mar 2025 17:20:05 +0000 (11:20 -0600)] 
tests: add dnp3 lua state

This is very minimal, should be expanded on.

Ticket: #7601

4 months agotests/dns: update tests using rrname in args to lua lib
Jason Ish [Wed, 26 Mar 2025 23:09:41 +0000 (17:09 -0600)] 
tests/dns: update tests using rrname in args to lua lib

These test were relaying on the args passed into the match, update to
use suricata.lua.

4 months agotests: put dnp3 tests into a dnp3 sub-directory
Jason Ish [Wed, 26 Mar 2025 21:27:17 +0000 (15:27 -0600)] 
tests: put dnp3 tests into a dnp3 sub-directory

4 months agodetect: add test for email.cc keyword 2370/head 2371/head
Alice Akaki [Sat, 22 Mar 2025 01:27:58 +0000 (21:27 -0400)] 
detect: add test for email.cc keyword

Ticket: #7588

4 months agodetect: add test for email.to keyword 2368/head 2369/head
Alice Akaki [Wed, 26 Mar 2025 08:39:37 +0000 (04:39 -0400)] 
detect: add test for email.to keyword

Ticket: #7596

4 months agodetect: add test for email.subject keyword 2360/head 2361/head suricata-7.0.10
Alice Akaki [Sat, 22 Mar 2025 01:59:22 +0000 (21:59 -0400)] 
detect: add test for email.subject keyword

Ticket: #7595

4 months agoemail: rename dir detect-mime-email to detect-email-from
Alice Akaki [Sat, 22 Mar 2025 01:58:11 +0000 (21:58 -0400)] 
email: rename dir detect-mime-email to detect-email-from

4 months agotests: check exception policies flow output 2355/head 2358/head
Juliana Fajardini [Mon, 24 Feb 2025 13:44:01 +0000 (10:44 -0300)] 
tests: check exception policies flow output

Add checks for `flow.exception_policy` fields in the
exception policies tests.

Related to
Task #6215

4 months agotest: add test for suricata.dns lua lib 2353/head
Jason Ish [Tue, 11 Mar 2025 22:58:10 +0000 (16:58 -0600)] 
test: add test for suricata.dns lua lib

Copy existing tests to a pre8 variant for 7.0 testing.

4 months agodetect: add test for mime email keywords
Alice Akaki [Sat, 15 Mar 2025 03:18:43 +0000 (23:18 -0400)] 
detect: add test for mime email keywords

Ticket: #7592

4 months agoTests: add bug-5486 2350/head
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

4 months agoeve-validator: downgrade versions to keep Rust 1.67.1 support 2347/head suricata-7.0.9
Jason Ish [Wed, 12 Mar 2025 19:09:17 +0000 (13:09 -0600)] 
eve-validator: downgrade versions to keep Rust 1.67.1 support

4 months agorfb-partial-tx: remove fgrep requires check
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.

4 months agoreadme: use current values in examples
Jason Ish [Tue, 25 Feb 2025 22:25:06 +0000 (16:25 -0600)] 
readme: use current values in examples

4 months agotls-duplicate-hello: requires JA3
Jason Ish [Tue, 25 Feb 2025 22:18:52 +0000 (16:18 -0600)] 
tls-duplicate-hello: requires JA3

4 months agotests/tls: some sub tests require ja3
Jason Ish [Tue, 25 Feb 2025 22:10:48 +0000 (16:10 -0600)] 
tests/tls: some sub tests require ja3

4 months agotest-ruleparse-etopen-01: requires HAVE_JA3
Jason Ish [Tue, 25 Feb 2025 22:07:59 +0000 (16:07 -0600)] 
test-ruleparse-etopen-01: requires HAVE_JA3

4 months agotests: remove feature checks for RUST, JANSSON and NSS
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.

4 months agoquic-v2: break out ja3 tests and require HAVE_JA3
Jason Ish [Tue, 25 Feb 2025 21:40:03 +0000 (15:40 -0600)] 
quic-v2: break out ja3 tests and require HAVE_JA3

4 months agotest/quic-ietf: break out ja3 dependent tests
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.

4 months agodetect: backport test for midstream 2342/head 2343/head
Philippe Antoine [Fri, 7 Mar 2025 17:03:57 +0000 (18:03 +0100)] 
detect: backport test for midstream

Ticket: 7552

4 months agodetect: transaction cleaned before detection when stream.midstream=true 2341/head
Alice Akaki [Thu, 13 Feb 2025 21:04:29 +0000 (17:04 -0400)] 
detect: transaction cleaned before detection when stream.midstream=true

Ticket: #7552

4 months agodetect: backport tests for file.data to 7 2338/head 2340/head
Philippe Antoine [Thu, 6 Mar 2025 06:24:25 +0000 (07:24 +0100)] 
detect: backport tests for file.data to 7

Ticket: 7577

4 months agotest: dns rdata match on additionals cname 2337/head
Jason Ish [Mon, 24 Feb 2025 17:38:44 +0000 (11:38 -0600)] 
test: dns rdata match on additionals cname

Also provides coverage.

4 months agotests/dns: coverage for cname, ptr and mx rdata
Jason Ish [Fri, 21 Feb 2025 21:29:54 +0000 (15:29 -0600)] 
tests/dns: coverage for cname, ptr and mx rdata

4 months agotests/dns: add dns.response.rrname to some tests for coverage
Jason Ish [Thu, 20 Feb 2025 21:21:36 +0000 (15:21 -0600)] 
tests/dns: add dns.response.rrname to some tests for coverage

4 months agodns tests: update for keyword name changes
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

4 months agotests: dns.additionals.rrname and dns.authorities.rrname
Jason Ish [Wed, 19 Feb 2025 21:16:58 +0000 (15:16 -0600)] 
tests: dns.additionals.rrname and dns.authorities.rrname

4 months agodns-response-rrname-sticky-buffer: update for keyword rename
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.

4 months agotests: add test for 7012
Nathan Scrivens [Tue, 20 Aug 2024 00:40:31 +0000 (20:40 -0400)] 
tests: add test for 7012

4 months agodetect: add tests for file.data
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

4 months agodetect: add test for ldap.responses.message
Alice Akaki [Fri, 14 Feb 2025 16:42:12 +0000 (12:42 -0400)] 
detect: add test for ldap.responses.message

Ticket: #7532

4 months agodetect: add test for ldap.responses.result_code
Alice Akaki [Thu, 6 Feb 2025 06:16:40 +0000 (02:16 -0400)] 
detect: add test for ldap.responses.result_code

Ticket: #7532

5 months agorequires: remove requires on file names 2334/head
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

5 months agoconfig/ftp: Test behavior w/invalid values 2322/head
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

5 months agodns: convert unittests for dns.query keyword 2321/head
Philippe Antoine [Thu, 6 Feb 2025 12:28:01 +0000 (13:28 +0100)] 
dns: convert unittests for dns.query keyword

Ticket: 3725

5 months agoeve-validator: cargo update
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

5 months agoja3/ja4: usage of skip when feature is present
Philippe Antoine [Tue, 10 Dec 2024 20:23:09 +0000 (21:23 +0100)] 
ja3/ja4: usage of skip when feature is present

5 months agounified2: remove obsolete test
Philippe Antoine [Tue, 10 Dec 2024 13:50:08 +0000 (14:50 +0100)] 
unified2: remove obsolete test

Ticket: 2385

5 months agoeve: remove obsolete test
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

5 months agodhcp: enable test
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

5 months agoquic: backport multiple tests to 7 2316/head 2318/head
Philippe Antoine [Sun, 23 Feb 2025 20:26:17 +0000 (21:26 +0100)] 
quic: backport multiple tests to 7

Ticket: 7556

5 months agoquic: add tests with multiple retry packets 2314/head
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

5 months agodcerpc: test ifaces as a part of dcerpc request
Shivani Bhardwaj [Wed, 19 Feb 2025 07:57:17 +0000 (13:27 +0530)] 
dcerpc: test ifaces as a part of dcerpc request

5 months agodetect: add test for ldap.responses.dn keyword
Alice Akaki [Thu, 6 Feb 2025 01:54:44 +0000 (21:54 -0400)] 
detect: add test for ldap.responses.dn keyword

Ticket: #7471

5 months agodetect: add test for ldap.request.dn keyword
Alice Akaki [Fri, 31 Jan 2025 12:48:47 +0000 (08:48 -0400)] 
detect: add test for ldap.request.dn keyword

Ticket: #7471

5 months agoquic: add tests for fragment reassembly 2309/head
Philippe Antoine [Mon, 17 Feb 2025 10:17:48 +0000 (11:17 +0100)] 
quic: add tests for fragment reassembly

Ticket: 7556

5 months agotests: add test for pgsql event 2306/head
Juliana Fajardini [Fri, 14 Feb 2025 23:06:23 +0000 (20:06 -0300)] 
tests: add test for pgsql event

Related to
Task #5566

5 months agopgsql: add tests for no-failing on parsing error
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

5 months agotests: add flowbits engine-analysis test
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

5 months agotests: enable bug 7554 test for 7.0.x 2298/head 2300/head
Victor Julien [Mon, 17 Feb 2025 20:49:31 +0000 (21:49 +0100)] 
tests: enable bug 7554 test for 7.0.x

5 months agotests: bug 7554 test 2294/head
Victor Julien [Thu, 13 Feb 2025 15:03:22 +0000 (16:03 +0100)] 
tests: bug 7554 test

5 months agodatarep: adjust error message to newer output 2287/head 2293/head
Shivani Bhardwaj [Mon, 10 Feb 2025 10:43:10 +0000 (16:13 +0530)] 
datarep: adjust error message to newer output

5 months agodataset/rep: add tests for error conditions
Shivani Bhardwaj [Thu, 9 Jan 2025 09:38:54 +0000 (15:08 +0530)] 
dataset/rep: add tests for error conditions

5 months agodataset: update engine module
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".

5 months agotest: add test for lua base64 2260/head 2290/head
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.

5 months agotests: add tests for suricata.packet lualib 2285/head 2286/head
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.

5 months agodetect/integers: test enum with negated strings 2284/head
Alice Akaki [Wed, 22 Jan 2025 22:58:21 +0000 (18:58 -0400)] 
detect/integers: test enum with negated strings

Ticket: #7513

5 months agodetect/csum: Update min-version 2283/head
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.

5 months agosmtp: backport tls test to 7
Philippe Antoine [Thu, 23 Jan 2025 20:37:59 +0000 (21:37 +0100)] 
smtp: backport tls test to 7

Ticket: 7469

6 months agotests/decode: Verify unknown ethertype event 2269/head
Jeff Lucovsky [Wed, 3 Jul 2024 12:29:59 +0000 (08:29 -0400)] 
tests/decode: Verify unknown ethertype event

Issue: 7129

6 months agodetect-proto: add a test for DNS detected as DCERPC by PM
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

6 months agotests: add prefilter analysis tests
Victor Julien [Sat, 25 Jan 2025 08:50:58 +0000 (09:50 +0100)] 
tests: add prefilter analysis tests

6 months agodcerpc: add test for frames 2268/head
Shivani Bhardwaj [Thu, 29 Aug 2024 10:59:11 +0000 (16:29 +0530)] 
dcerpc: add test for frames

Feature 4904

6 months agodetect/csum: Test interaction btw csum/stream setting 2263/head
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.

6 months agotests: add test for issue 7521
Victor Julien [Thu, 23 Jan 2025 15:48:05 +0000 (16:48 +0100)] 
tests: add test for issue 7521

Ticket: #7521.

6 months agotests: update test for issue 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.

6 months agotests: verify valid json on long message
Eric Leblond [Fri, 29 Nov 2024 17:51:31 +0000 (18:51 +0100)] 
tests: verify valid json on long message

6 months agotests: engine-analysis pkt_stream rule type tests 2261/head
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

6 months agotests: add engine-analysis stream rule type tests
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

6 months agotests: add engine-analysis de_only rule type tests
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

6 months agotests: engine-analysis tests for pkt rule type
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

6 months agotests: engine-analysis tests for ip_only rule type
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

6 months agotests: add simple ip only w/ negated content test
Juliana Fajardini [Fri, 24 Jan 2025 22:02:07 +0000 (19:02 -0300)] 
tests: add simple ip only w/ negated content test