]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Victor Julien [Wed, 23 Dec 2020 20:32:15 +0000 (21:32 +0100)]
github-ci: 4.1 is eol, 6.0 test added
Victor Julien [Wed, 23 Dec 2020 15:49:08 +0000 (16:49 +0100)]
tests: add more midstream test variants
Victor Julien [Fri, 18 Dec 2020 07:08:25 +0000 (08:08 +0100)]
tests: add TCP async matching test
Victor Julien [Thu, 17 Dec 2020 09:52:59 +0000 (10:52 +0100)]
tests: add tcp async testmyids test
Simon Dugas [Tue, 7 Apr 2020 17:40:29 +0000 (17:40 +0000)]
tests/dns: add test for logging SOA fields
test config and pcap were copied from an existing test dns-udp-nxdomain-soa
Sascha Steinbiss [Tue, 3 Nov 2020 23:55:36 +0000 (00:55 +0100)]
dns: add test for SRV EVE-JSON output
Simon Dugas [Thu, 10 Sep 2020 21:04:40 +0000 (21:04 +0000)]
dns: add test for NULL record
Add test case to show that NULL record types are being logged.
Philippe Antoine [Thu, 5 Nov 2020 13:03:56 +0000 (14:03 +0100)]
Adds test against invalid HTTP protocol
Jason Ish [Fri, 4 Sep 2020 16:03:47 +0000 (10:03 -0600)]
geneve-test: simple test of the geneve decoder
Just check the ICMP flow to see that decoding occurred.
Sascha Steinbiss [Sun, 8 Nov 2020 17:34:49 +0000 (18:34 +0100)]
tests/mac-eve-packet: check packet context metadata
This refers to Redmine bug #4109.
Jeff Lucovsky [Thu, 17 Sep 2020 13:54:04 +0000 (09:54 -0400)]
tests/anomaly: Verify metadata section
This commit verifies that the "metadata" element, if any, is in the
proper place within anomaly event records.
Victor Julien [Thu, 26 Nov 2020 11:48:10 +0000 (12:48 +0100)]
tests/dcerpc: fix event log check
Victor Julien [Fri, 20 Nov 2020 07:22:34 +0000 (08:22 +0100)]
github-ci: fix env handling
Jeff Lucovsky [Thu, 5 Nov 2020 12:44:53 +0000 (07:44 -0500)]
tests: ICMPv4 header tests
Philippe Antoine [Wed, 6 Nov 2019 12:23:21 +0000 (13:23 +0100)]
Adds test case for url-decode transform keyword
Shivani Bhardwaj [Thu, 12 Nov 2020 11:02:29 +0000 (16:32 +0530)]
Add tests for DCERPC/UDP
Victor Julien [Mon, 16 Nov 2020 08:08:58 +0000 (09:08 +0100)]
run: don't disable asan leak checks
Jeff Lucovsky [Wed, 11 Nov 2020 12:31:57 +0000 (07:31 -0500)]
tests: Mixed file_data/transforms in IPS mode
Jeff Lucovsky [Sat, 24 Oct 2020 13:17:37 +0000 (09:17 -0400)]
tests: Add combo with file_data/fast_pattern
Jeff Lucovsky [Mon, 19 Oct 2020 12:52:40 +0000 (08:52 -0400)]
tests: Add file-data/url_decode test
Jeff Lucovsky [Thu, 15 Oct 2020 12:46:23 +0000 (08:46 -0400)]
tests: Add SMTP tests for issue 3616
Jeff Lucovsky [Tue, 6 Oct 2020 12:24:48 +0000 (08:24 -0400)]
bug-3616: New test with mixed file_data/transform rules
Jeff Lucovsky [Tue, 20 Oct 2020 12:25:12 +0000 (08:25 -0400)]
tests: Add exact match argument
This commit extends the CLI with a flag to treat the "pattern"
argument(s) as an exact match instead of a substring match.
Philippe Antoine [Wed, 30 Sep 2020 12:35:33 +0000 (14:35 +0200)]
Adds test with HTTP connect followed by parser failure
Philippe Antoine [Fri, 18 Sep 2020 06:15:44 +0000 (08:15 +0200)]
Adds http2 test against Suricata bug fixes
Ilya Bakhtin [Tue, 25 Aug 2020 13:16:40 +0000 (15:16 +0200)]
dnp3: test of dnp3 flow direction fix
Jeff Lucovsky [Thu, 10 Sep 2020 12:46:00 +0000 (08:46 -0400)]
tests: Add file_data/compress-ws transform tests
Jeff Lucovsky [Thu, 7 May 2020 13:27:07 +0000 (09:27 -0400)]
tests: Add file_data/strip-ws transform tests
Jason Ish [Wed, 16 Sep 2020 15:21:22 +0000 (09:21 -0600)]
smb-eicar-file: check files array
Add a check for the files array to make sure it exists
and has a filename.
Only applicable to v6.0.0+.
Philippe Antoine [Tue, 8 Sep 2020 07:21:18 +0000 (09:21 +0200)]
http: adds test for connect and protocol change
Philippe Antoine [Mon, 13 Jul 2020 14:06:45 +0000 (16:06 +0200)]
Adds http2 ugrade test
Adds http2 connection upgrade from http1 test
Jason Ish [Mon, 7 Sep 2020 05:11:22 +0000 (23:11 -0600)]
Revert "run.py: default to using python 3"
This reverts commit
3737f5aac5409d8e8e2663e1afa18d4a2b40df34 .
Jason Ish [Tue, 1 Sep 2020 19:06:35 +0000 (13:06 -0600)]
run.py: update copyright; assign to OISF
Assignment should have been done when this repo was imported into
the OISF namespace.
Jason Ish [Tue, 1 Sep 2020 19:05:30 +0000 (13:05 -0600)]
run.py: default to using python 3
Its time to default to using Python 3.
Jeff Lucovsky [Tue, 1 Sep 2020 11:20:06 +0000 (07:20 -0400)]
tests: Skip obsoleted standalone output test on 6+
This commit restricts the test case to versions less than 6. It's been
deprecated in 6.0+
Philippe Antoine [Wed, 22 Jul 2020 19:15:25 +0000 (21:15 +0200)]
http: fix http-sticky-server pcap by removing gaped flow
Philippe Antoine [Mon, 13 Jul 2020 08:00:11 +0000 (10:00 +0200)]
http: adds test with gap extending beyond body
Philippe Antoine [Mon, 13 Jul 2020 07:55:47 +0000 (09:55 +0200)]
http: adds test with whole body as gap
Philippe Antoine [Mon, 13 Jul 2020 07:53:03 +0000 (09:53 +0200)]
http: adds test with double gap
Philippe Antoine [Mon, 13 Jul 2020 07:50:42 +0000 (09:50 +0200)]
http: adds test with signle gap
Philippe Antoine [Thu, 30 Jul 2020 15:20:48 +0000 (17:20 +0200)]
dns: adds test against incomplete TCP payload
Sascha Steinbiss [Fri, 21 Aug 2020 09:09:34 +0000 (11:09 +0200)]
add MQTT ping test
See https://github.com/OISF/suricata/pull/5307 for details.
Shivani Bhardwaj [Thu, 19 Sep 2019 07:16:33 +0000 (12:46 +0530)]
Give test count as output not check count
With the current setup, after running suricata-verify, the output would
give stats about the passed, failed or skipped checks. However, it is
cleaner to get the total stats about tests only.
The priority order for the output is:
FAILED
SKIPPED
PASSED
i.e. if a check or sub-test has failed, the entire test will be counted
as failed in the final output. If all the checks have been skipped,
the test will be counted as skipped in the final output else passed.
Closes redmine ticket 3172.
Jason Ish [Mon, 3 Aug 2020 20:55:49 +0000 (14:55 -0600)]
http2: update test to match new log format
Also test for http1 compatible fields.
Jason Ish [Mon, 3 Aug 2020 15:30:41 +0000 (09:30 -0600)]
http2: enable http2 app-layer and output
HTTP2 is experimental and disabled by default so the tests
need to explicitly enable it.
Philippe Antoine [Mon, 13 Jul 2020 14:06:45 +0000 (16:06 +0200)]
Adds basic http2 test
Victor Julien [Thu, 6 Aug 2020 07:17:59 +0000 (09:17 +0200)]
rdp: fix new test for suricata 5
Jeff Lucovsky [Sun, 17 May 2020 13:59:28 +0000 (09:59 -0400)]
test:byte_jump Test from_end
This commit adds test cases for the `byte_jump` `from_end` keyword.
Jeff Lucovsky [Mon, 29 Jun 2020 13:42:39 +0000 (09:42 -0400)]
test: Community-id tests for dhcp, rdp, smb, tftp
This commit adds test cases that verify the community id string is
included in dhcp, rdp, smb and tftp records when configured.
Jason Ish [Tue, 4 Aug 2020 22:29:34 +0000 (16:29 -0600)]
rdp-protocol: test rdp metadata in alert
Jason Ish [Tue, 4 Aug 2020 22:29:12 +0000 (16:29 -0600)]
snmp-v2c-get: test snmp metadata in alert
Shivani Bhardwaj [Wed, 5 Aug 2020 06:41:56 +0000 (12:11 +0530)]
dcerpc: Add test for gap handling
Shivani Bhardwaj [Fri, 5 Jun 2020 13:14:52 +0000 (18:44 +0530)]
dcerpc: add logging test
Shivani Bhardwaj [Fri, 5 Jun 2020 13:13:47 +0000 (18:43 +0530)]
dcerpc: Remove double tests
Shivani Bhardwaj [Fri, 5 Jun 2020 13:13:16 +0000 (18:43 +0530)]
createst: add strictcsum option
Jason Ish [Tue, 4 Aug 2020 21:20:13 +0000 (15:20 -0600)]
readme: fix example indenting
Jason Ish [Tue, 4 Aug 2020 21:17:10 +0000 (15:17 -0600)]
filestore-v2.4-forced-with-meta: use "match" tests
Remove jq tests, these can now be done with the match
syntax.
Jason Ish [Tue, 4 Aug 2020 21:14:45 +0000 (15:14 -0600)]
filestore-v2: check for flow_id in .meta file
Jason Ish [Tue, 4 Aug 2020 21:08:29 +0000 (15:08 -0600)]
filestore-v2: check that flow_id exists in fileinfo record
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2196
Jason Ish [Tue, 4 Aug 2020 21:07:27 +0000 (15:07 -0600)]
runner: debug-failed fixups
Don't dump a file that looks like binary. This is determined
by trying to utf-8 decode a file.
Philippe Antoine [Wed, 30 Oct 2019 16:12:53 +0000 (17:12 +0100)]
option: adds debugfailed option
Prints contents of files in output directory of failed tests
Intent is to debug flasky behaviors
Andreas Herz [Thu, 10 Oct 2019 20:02:56 +0000 (22:02 +0200)]
tests: test that triggers a rule with established though 3whs missing
Jeff Lucovsky [Sun, 14 Jun 2020 17:57:38 +0000 (13:57 -0400)]
tests/filestore: Filestore Stream-depth test cases
This commit adds the following test cases for filestore related
stream-depth configuration settings
1.`file-stream.stream-depth` exceeds `stream.reassembly.depth`.
2.`file-stream.stream-depth` is less than `stream.reassembly.depth`.
3.`file-stream.stream-depth` set to 0.
Jeff Lucovsky [Fri, 12 Jun 2020 13:04:04 +0000 (09:04 -0400)]
tests: Add test for transform/content interaction
This commit adds a test case for issue 3661.
Jeff Lucovsky [Sat, 1 Aug 2020 13:59:27 +0000 (09:59 -0400)]
tests/anomaly: Test case for mult. loggers
This commit adds a test case for the issue described in bug 3835.
Multiple anomaly loggers aren't supported.
Philippe Antoine [Mon, 13 Jul 2020 12:29:56 +0000 (14:29 +0200)]
ssh: adds regression test for hassh kex parsing
Sascha Steinbiss [Tue, 10 Mar 2020 20:10:48 +0000 (21:10 +0100)]
add cases for MAC addresses in EVE-JSON
Jeff Lucovsky [Thu, 5 Mar 2020 13:25:36 +0000 (08:25 -0500)]
tests: ERSPAN Type I packet decode if config
This commit adds tests for ERSPAN Type I decoding based on configuration
settings.
Jeff Lucovsky [Mon, 24 Feb 2020 14:54:34 +0000 (09:54 -0500)]
tests: pcrexform tests
This PR adds tests for the `pcrexform` including tests for
- basic functionality: Simple PCRE
- extended functionality: Multiple PCREs
- Negative: PCRE that do not match anything
- Negative: Missing option values
Sascha Steinbiss [Sun, 22 Mar 2020 19:19:19 +0000 (20:19 +0100)]
add MQTT tests
Victor Julien [Sat, 6 Jun 2020 07:27:07 +0000 (09:27 +0200)]
tests: fixes after TCP changes
Fixes around ACK'd data.
Victor Julien [Fri, 24 Jul 2020 11:28:11 +0000 (13:28 +0200)]
tests/hassh: adapt to changed logging format
Victor Julien [Mon, 13 Jul 2020 20:04:53 +0000 (22:04 +0200)]
tests/dhcp: fix RUST test on non-RUST
Jeff Lucovsky [Sun, 14 Jun 2020 15:13:33 +0000 (11:13 -0400)]
tests/ftp-data Test case for event type ftp_data
This commit adds a test case to insure that `ftp_data` events are being
generated.
Victor Julien [Mon, 13 Jul 2020 13:37:16 +0000 (15:37 +0200)]
tests/dnp3: limit midstream test to 5.0+
Jason Ish [Fri, 10 Jul 2020 22:29:53 +0000 (16:29 -0600)]
dnp3: new test with more detail
Also rename to make it clear its an dnp3/eve test.
Victor Julien [Thu, 19 Mar 2020 08:34:22 +0000 (09:34 +0100)]
tests: conditional logging tests for http and dns
Philippe Antoine [Tue, 30 Jun 2020 06:52:34 +0000 (08:52 +0200)]
Adds dnp3 midstream direction probing parser test
Jeff Lucovsky [Tue, 5 May 2020 12:14:56 +0000 (08:14 -0400)]
test: Add byte_math tests
This commit adds tests for the byte_math keyword. The test is simple
and complements the unit tests added with the Suricata pr.
Jason Ish [Tue, 7 Jul 2020 15:32:40 +0000 (09:32 -0600)]
ikev2: check more fields
To help validate jsonbuilder conversion.
Jason Ish [Thu, 2 Jul 2020 17:19:14 +0000 (11:19 -0600)]
new test: netflow-eve: basic check of netflow records
Vadym Malakhatko [Wed, 3 Jun 2020 13:19:27 +0000 (16:19 +0300)]
tests/hassh Add test cases for hassh
Angelo Mirabella [Wed, 17 Jun 2020 06:33:21 +0000 (07:33 +0100)]
tests: add test for http raw header
Jason Ish [Wed, 3 Jun 2020 05:48:39 +0000 (23:48 -0600)]
dhcp test: fix test for new unicode encoding
With JsonBuilder, NUL bytes in a string are now encoded as
unicode (\u0000) instead of our previous convention of \\x00.
Rename the old test as its still required for pre version 6.0.
Victor Julien [Sat, 23 May 2020 13:50:57 +0000 (15:50 +0200)]
tests: fix missing NSS check
Jason Ish [Tue, 19 May 2020 22:02:55 +0000 (16:02 -0600)]
filestore/ftp tests: require HAVE_NSS
Jason Ish [Fri, 15 May 2020 16:23:28 +0000 (10:23 -0600)]
filestore v1 test: require version less than 6
Filestore v1 has been removed in version 6.0.0.
Jason Ish [Fri, 15 May 2020 16:28:45 +0000 (10:28 -0600)]
github-ci: install cbindgen with --debug (builds faster)
Jason Ish [Fri, 15 May 2020 16:23:13 +0000 (10:23 -0600)]
github-ci: run self test
Jason Ish [Fri, 15 May 2020 16:22:22 +0000 (10:22 -0600)]
runner: fix tests, add self-test command
Fix the runner unit test, looks like they had not been
update to match some changes.
Add a self-test command to run the unit tests..
./run.py --self-test
Jason Ish [Fri, 15 May 2020 16:20:19 +0000 (10:20 -0600)]
runner: add less-than version requirements
lt-version can be used to specify that the Suricata version must
be less than a certain value. This is similar to what a max-version
might look like but be more predictable.
For example, to run a test on all versions less than 6:
lt-version: 6
Shivani Bhardwaj [Tue, 21 Apr 2020 07:24:27 +0000 (12:54 +0530)]
Move dce-iface-01 test to dcerpc folder
Shivani Bhardwaj [Tue, 21 Apr 2020 07:23:24 +0000 (12:53 +0530)]
Add tests for DCERPC
Shivani Bhardwaj [Tue, 9 Jul 2019 17:55:35 +0000 (23:25 +0530)]
Add createst script
createst is a script to produce a test directory with test.yaml as per
the PCAP and configuration provided.
This currently implements the functionality of creating the "checks" block
in `test.yaml` from a given `eve.json`. You can add other configuration
in the file thus created.
Usage
=====
```
usage: createst.py [-h] [--output-path <output-path>] [--eventtype-only]
[--allow-events [ALLOW_EVENTS]]
<test-name> <pcap-file>
Create tests with a given PCAP. Execute the script from a valid Suricata
source directory.
positional arguments:
<test-name> Name of the test folder
<pcap-file> Path to the PCAP file
optional arguments:
-h, --help show this help message and exit
--output-path <output-path>
Path to the folder where generated test.yaml should be
put
--eventtype-only Create filter blocks based on event types only
--allow-events [ALLOW_EVENTS]
Create filter blocks for the specified events
```
Jason Ish [Thu, 21 May 2020 17:31:03 +0000 (11:31 -0600)]
smtp-eve: higher fidelity smtp test with alerts
Jason Ish [Wed, 29 Apr 2020 21:55:46 +0000 (15:55 -0600)]
new test: dhcp-eve-extended
Tests the extended output of DHCP.
Jason Ish [Mon, 20 Apr 2020 17:39:54 +0000 (11:39 -0600)]
dns txt test: break into v1 and v2 tests
Eliminating the check.sh test at the same time.
Jason Ish [Mon, 20 Apr 2020 17:22:40 +0000 (11:22 -0600)]
dns dig test: break into eve v1 and v2 tests
Replace the EVE DNS dig test with 2 tests, one for v1 and
one for v2, both with higher detail matching.
Victor Julien [Mon, 27 Apr 2020 06:39:22 +0000 (08:39 +0200)]
tests: add datarep parsing test
Victor Julien [Sun, 26 Apr 2020 12:23:59 +0000 (14:23 +0200)]
tests: fix RUST feature checks and add them to smb tests