]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Jason Ish [Fri, 30 May 2025 16:28:40 +0000 (10:28 -0600)]
tests/lua: update lua tests for suricata.log lib
Ticket: #7727
Jason Ish [Wed, 14 May 2025 22:35:04 +0000 (16:35 -0600)]
tests: add mdns test
Ticket: #3952
Juliana Fajardini [Sun, 25 May 2025 20:23:00 +0000 (17:23 -0300)]
pgsql: add tests for `query` keyword
Related to
Task #6259
Jeff Lucovsky [Sat, 24 May 2025 15:26:40 +0000 (11:26 -0400)]
test/decode: Test SLL2 decode
This test checks SLL2 decode operation.
Philippe Antoine [Tue, 20 May 2025 12:51:49 +0000 (14:51 +0200)]
dataset: backport test for ip set
Ticket: 7689
Jeff Lucovsky [Thu, 15 May 2025 11:50:40 +0000 (07:50 -0400)]
test/tlslib: Lua TLS library tests
Issue: 7608
Jeff Lucovsky [Tue, 8 Apr 2025 11:25:08 +0000 (07:25 -0400)]
detect/ftp: Tests for ftp.completion
This commit adds test cases for the rule keyword ftp.completion_code
Note that ftp.completion code can be used
- individually
- with other ftp keywords, e.g., ftp.reply
Jeff Lucovsky [Tue, 17 Sep 2024 12:56:36 +0000 (08:56 -0400)]
tests/luaxform: Lua transform tests
This commit adds tests for new Lua transform
- Basic transform operation
- Ensure non-existent Lua scripts are detected
- Ensure Lua scripts without transform functions are detected
- Ensure Lua scripts properly receive optional transform arguments
- Ensure Lua scripts work with Suricata's Lua libraries
Juliana Fajardini [Fri, 13 Sep 2024 21:27:50 +0000 (18:27 -0300)]
rules/test: add app-layer-protocol negated test
To complement bug-7241 tests.
Jeff Lucovsky [Wed, 16 Apr 2025 13:29:49 +0000 (09:29 -0400)]
tests/ftp: Add tests for ftp_reply_received keyword
Add tests for the FTP keyword ftp.reply_received that alert on both
values for reply_received -- "yes" and "no".
Also validate that only yes, no, on, off are accepted.
Issue: 7506
Richard McConnell [Wed, 29 Jan 2025 09:03:34 +0000 (09:03 +0000)]
Introduce TLS-JA4 client/server handshake tests
This update introduces two new tests to accompany the introduction of
client/server handshake parameters and output via JSON-EVE.
- ja4-cl-handshake: client eve output test
- ja4-sv-handshake: server eve output test
Jeff Lucovsky [Sat, 26 Apr 2025 12:16:34 +0000 (08:16 -0400)]
test/ftp: Tests for ftp.mode keyword
Issue: 7505
Add tests for the ftp.mode keyword for active, passive, and rule keyword
validation checks on the keyword option value.
Victor Julien [Tue, 13 May 2025 09:28:37 +0000 (11:28 +0200)]
tests: drop/pass deconfliction updates for 7.0.x
Jason Ish [Thu, 8 May 2025 21:51:24 +0000 (15:51 -0600)]
test: add lua test for suricata.file lib
Ticket: #7491
Juliana Fajardini [Fri, 25 Apr 2025 18:41:26 +0000 (15:41 -0300)]
tests/pgsql: add check for redacted password msg
Bug #7647
Victor Julien [Fri, 9 May 2025 08:50:17 +0000 (10:50 +0200)]
tests: firewall: add verdict output
Juliana Fajardini [Thu, 8 May 2025 19:05:51 +0000 (16:05 -0300)]
tests: add checks for ip version
Related to
Task #7047
Jason Ish [Wed, 7 May 2025 17:13:34 +0000 (11:13 -0600)]
tests: lua smtplib rule test
Jason Ish [Tue, 6 May 2025 20:43:52 +0000 (14:43 -0600)]
tests/lua-output-smtp: update for lua lib
Eric Leblond [Wed, 7 May 2025 16:19:12 +0000 (18:19 +0200)]
tests: requires 8.0.0 for datasets set IP
Eric Leblond [Tue, 6 May 2025 15:54:01 +0000 (17:54 +0200)]
tests: datasets set for IP
Philippe Antoine [Fri, 2 May 2025 06:51:38 +0000 (08:51 +0200)]
ja3: adds tests for lua
Ticket: 7605
Philippe Antoine [Fri, 18 Apr 2025 14:42:57 +0000 (16:42 +0200)]
detect: adds transactional rules with filesize
Ticket: 7665
Victor Julien [Sun, 4 May 2025 06:35:37 +0000 (08:35 +0200)]
tests: fix double stats record throwing test off
Set longer stats interval just like the test owning the pcap.
Victor Julien [Tue, 29 Apr 2025 12:55:43 +0000 (14:55 +0200)]
tests: firewall: add basic ssh tests
Victor Julien [Fri, 2 May 2025 15:34:36 +0000 (17:34 +0200)]
tests: ftpbounce engine name update
Jason Ish [Thu, 1 May 2025 22:50:45 +0000 (16:50 -0600)]
tests: test new suricata.flowintlib
Ticket: #7487
Philippe Antoine [Mon, 28 Apr 2025 12:22:17 +0000 (14:22 +0200)]
ssh: adds test with lua and hassh
Ticket: 7603
Jason Ish [Thu, 24 Apr 2025 18:14:55 +0000 (12:14 -0600)]
tests: update for new suricata.flowvar lib; test flowvar set
Philippe Antoine [Sat, 19 Apr 2025 19:16:52 +0000 (21:16 +0200)]
ssh: add test for lua output
Ticket: 7607
Philippe Antoine [Sat, 19 Apr 2025 11:51:46 +0000 (13:51 +0200)]
dns: more minimal setup for lua
Philippe Antoine [Sat, 5 Apr 2025 20:54:12 +0000 (22:54 +0200)]
ssh: adds test for lua
Ticket: 7607
Jeff Lucovsky [Sun, 20 Apr 2025 19:32:58 +0000 (15:32 -0400)]
detect/ftp: Tests for ftp.dynamic_port
Add tests for FTP's dynamic_port -- active and passive.
The ftp-active-dynamic_port-01 test case includes tests for the
comparison operands -- since the implementation uses the U16 matching
and parsing logic, only one test case has the additional test cases.
Philippe Antoine [Tue, 22 Apr 2025 12:45:20 +0000 (14:45 +0200)]
http1: adds test about request line matching
Ticket: 7668
Test that it matches as soon as possible
Jason Ish [Thu, 10 Apr 2025 22:49:37 +0000 (16:49 -0600)]
test: test a lua based fast.log
Jason Ish [Thu, 10 Apr 2025 22:17:13 +0000 (16:17 -0600)]
test: update tests for suricata.rule lib
Ticket: #7490
Philippe Antoine [Sat, 19 Apr 2025 12:41:41 +0000 (14:41 +0200)]
firewall: test that we drop packet with bad request line
Ticket: 5739
David Beckett [Wed, 16 Nov 2022 16:55:34 +0000 (16:55 +0000)]
Add test for brotli content encoding
Victor Julien [Mon, 24 Mar 2025 16:39:17 +0000 (17:39 +0100)]
tests: add tests for loading shipped rules from releases
From 7.0.0..7.0.9 and 6.0.20.
Eric Leblond [Mon, 31 Mar 2025 09:14:10 +0000 (11:14 +0200)]
tests: add tx_cnt tests
Philippe Antoine [Sat, 29 Mar 2025 21:07:59 +0000 (22:07 +0100)]
websocket: add test with decompression
Ticket: 7285
Alice Akaki [Wed, 9 Apr 2025 21:47:21 +0000 (17:47 -0400)]
detect: add test for email.received keyword
Ticket: #7599
Victor Julien [Fri, 11 Apr 2025 18:23:04 +0000 (20:23 +0200)]
tests: bring back 7 support for lua tests
Victor Julien [Fri, 11 Apr 2025 09:45:48 +0000 (11:45 +0200)]
tests: more firewall tests
Victor Julien [Fri, 11 Apr 2025 07:14:10 +0000 (09:14 +0200)]
tests: drop/pass deconfliction updates
Alice Akaki [Wed, 9 Apr 2025 19:21:21 +0000 (15:21 -0400)]
detect: add test for email.url keyword
Ticket: #7597
Shivani Bhardwaj [Thu, 10 Apr 2025 12:16:33 +0000 (17:46 +0530)]
run.py: add aggressive-cleanup option
This option enables one to delete an output dir if the tests are
passing. This is useful mostly for QA scenarios where the artifacts are
not really needed if all went well for a test.
Victor Julien [Tue, 8 Apr 2025 08:24:36 +0000 (10:24 +0200)]
tests: add check for lua rules enabled by default
Alice Akaki [Mon, 3 Mar 2025 15:45:14 +0000 (11:45 -0400)]
detect: add test for ldap.responses.attribute_type keyword
Ticket: #7533
Alice Akaki [Thu, 13 Feb 2025 05:20:56 +0000 (01:20 -0400)]
detect: add test for ldap.request.attribute_type keyword
Ticket: #7533
Jeff Lucovsky [Fri, 28 Mar 2025 16:57:20 +0000 (12:57 -0400)]
tests: Support list checks
Support string checks for JSON lists with the new __contains operator that
checks whether a string is contained within a list.
Example
- JSON list: "ftp":{"reply":["Opening BINARY mode data connection for temp.txt (1164 bytes).","Transfer complete."], }
- Check: ftp.reply.__contains: 'Transfer complete.'
Jeff Lucovsky [Fri, 28 Mar 2025 13:29:09 +0000 (09:29 -0400)]
detect/ftp: ftp.reply keyword tests
Issue: 7508
Add tests for the ftp.reply keyword.
Alex Savage [Mon, 24 Mar 2025 23:42:25 +0000 (23:42 +0000)]
tests/pop3 add eve output checks
Ticket: 3243
Eric Leblond [Wed, 24 Aug 2022 18:50:38 +0000 (20:50 +0200)]
tests: add tld tests
Eric Leblond [Tue, 23 Aug 2022 14:29:07 +0000 (16:29 +0200)]
tests: add tests for domain keyword
Victor Julien [Fri, 4 Apr 2025 15:29:07 +0000 (17:29 +0200)]
tests: add app-layer-state test
Victor Julien [Mon, 31 Mar 2025 08:25:19 +0000 (10:25 +0200)]
tests: firewall tests
Victor Julien [Thu, 27 Feb 2025 19:31:32 +0000 (20:31 +0100)]
run.py: support firewall mode
Treat firewall.rules special by loading it with --firewall-rules-exclusive
Allow fw and td rules.
Victor Julien [Mon, 20 Jan 2025 11:47:58 +0000 (12:47 +0100)]
tests: update tests for hook based registration
Philippe Antoine [Thu, 3 Apr 2025 13:33:57 +0000 (15:33 +0200)]
output: add test for suricata version in eve
Ticket: 4853
Jason Ish [Tue, 1 Apr 2025 22:16:14 +0000 (16:16 -0600)]
test: test pcap filter on pcap-log
Ticket: #6832
Lukas Sismis [Thu, 19 Sep 2024 08:47:15 +0000 (10:47 +0200)]
bypass: verify bypass behavior
Ticket: 6788
Lukas Sismis [Thu, 19 Sep 2024 08:44:52 +0000 (10:44 +0200)]
ssh: adjust to SSH bypass behavior change for 8.0.0 change
Ticket: 6788
Philippe Antoine [Thu, 20 Mar 2025 10:48:04 +0000 (11:48 +0100)]
smb/log: add tests for configured logging
being less verbose
Ticket: 7620
Juliana Fajardini [Wed, 2 Apr 2025 23:48:09 +0000 (16:48 -0700)]
pgsql: add tests for copy-out mode
Task #4854
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
Jason Ish [Tue, 1 Apr 2025 13:52:56 +0000 (07:52 -0600)]
tests: require ja3 feature on new bidir tests
Philippe Antoine [Thu, 27 Mar 2025 13:43:29 +0000 (14:43 +0100)]
http: add test about http parser error
Shivani Bhardwaj [Tue, 1 Apr 2025 10:32:31 +0000 (16:02 +0530)]
flow: log elephant flow count and bool
Feature 5647
Alice Akaki [Tue, 1 Apr 2025 22:41:36 +0000 (18:41 -0400)]
detect: add test for email.x_mailer keyword
Ticket: #7598
Alice Akaki [Sat, 29 Mar 2025 00:28:58 +0000 (20:28 -0400)]
detect: add test for email.message_id keyword
Ticket: #7593
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
Victor Julien [Mon, 13 Jun 2022 06:08:25 +0000 (08:08 +0200)]
tests: flowbit prefilter tests
Giuseppe Longo [Tue, 15 Oct 2024 08:55:26 +0000 (10:55 +0200)]
sdp: update test for time descriptions
Giuseppe Longo [Fri, 4 Oct 2024 13:03:47 +0000 (15:03 +0200)]
sdp: add tests for sticky buffers
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.
Shivani Bhardwaj [Tue, 1 Apr 2025 06:13:36 +0000 (11:43 +0530)]
http: add more lua logging tests
Shivani Bhardwaj [Tue, 1 Apr 2025 06:12:51 +0000 (11:42 +0530)]
http: add lua lib detection tests
Shivani Bhardwaj [Wed, 26 Mar 2025 06:00:18 +0000 (11:30 +0530)]
http: use lua lib to access data
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
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.
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.
Philippe Antoine [Tue, 8 Oct 2024 08:14:18 +0000 (10:14 +0200)]
rules/bidir: adds engine-analysis tests
Ticket: 5665
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
Alice Akaki [Fri, 28 Mar 2025 20:12:27 +0000 (16:12 -0400)]
detect: add test for email.date keyword
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
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.
Victor Julien [Fri, 28 Mar 2025 18:26:08 +0000 (19:26 +0100)]
github-ci: check for unsupported pcap types
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
Juliana Fajardini [Thu, 27 Mar 2025 02:25:04 +0000 (19:25 -0700)]
tests/lua: move tests using SCFlow funcs to *-pre8
Task #7489
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
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.
Jason Ish [Wed, 26 Mar 2025 21:27:17 +0000 (15:27 -0600)]
tests: put dnp3 tests into a dnp3 sub-directory
Alice Akaki [Sat, 22 Mar 2025 01:27:58 +0000 (21:27 -0400)]
detect: add test for email.cc keyword
Ticket: #7588
Alice Akaki [Wed, 26 Mar 2025 08:39:37 +0000 (04:39 -0400)]
detect: add test for email.to keyword
Ticket: #7596
Alice Akaki [Sat, 22 Mar 2025 01:59:22 +0000 (21:59 -0400)]
detect: add test for email.subject keyword
Ticket: #7595
Alice Akaki [Sat, 22 Mar 2025 01:58:11 +0000 (21:58 -0400)]
email: rename dir detect-mime-email to detect-email-from
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
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.
Alice Akaki [Sat, 15 Mar 2025 03:18:43 +0000 (23:18 -0400)]
detect: add test for mime email keywords
Ticket: #7592