]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
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
DEL VALLE Bastien [Tue, 14 Apr 2020 18:11:53 +0000 (20:11 +0200)]
Adds test for SMB keyword named_pipe with ascii and unicode
DEL VALLE Bastien [Tue, 7 Apr 2020 16:48:59 +0000 (18:48 +0200)]
Adds test for SMB key word named_pipe with ascii
DEL VALLE Bastien [Tue, 3 Mar 2020 17:45:20 +0000 (18:45 +0100)]
Adds test for SMB EICAR file by segmentation between NetBIOS and SMB
DEL VALLE Bastien [Tue, 3 Mar 2020 17:35:29 +0000 (18:35 +0100)]
Adds test for SMB EICAR file by segmentation in random bytes
DEL VALLE Bastien [Tue, 3 Mar 2020 17:25:10 +0000 (18:25 +0100)]
Adds test for SMB EICAR file nbss-more-ffsmb
Readme edited
Jeff Lucovsky [Thu, 23 Apr 2020 14:57:01 +0000 (10:57 -0400)]
tests: add tests for issue 3515
Jeff Lucovsky [Tue, 21 Apr 2020 14:34:02 +0000 (10:34 -0400)]
test/ftp: Verify FTP memory usage
This commit adds a test case for verifying that FTP memory use and
accounting are correct.
Shivani Bhardwaj [Sat, 4 Apr 2020 19:31:32 +0000 (01:01 +0530)]
Add tests for flowbit oring
Victor Julien [Mon, 20 Apr 2020 12:54:21 +0000 (14:54 +0200)]
tests: add dcerpc (over tcp) test
Victor Julien [Mon, 20 Apr 2020 12:48:51 +0000 (14:48 +0200)]
tests: add metadata and prefilter tests
Philippe Antoine [Mon, 16 Mar 2020 13:54:03 +0000 (14:54 +0100)]
Fix output-eve-ftp result
Victor Julien [Fri, 21 Feb 2020 15:54:11 +0000 (16:54 +0100)]
decoder: initial hdlc test
Victor Julien [Thu, 19 Mar 2020 20:28:01 +0000 (21:28 +0100)]
tests/tfo: add more tests
Victor Julien [Sat, 11 Apr 2020 11:27:04 +0000 (13:27 +0200)]
tests: dns-tcp-www-google-com is rust only
Rust parser has different behavior than the C parser in 4.1.x, but we're
too far into the branch to change such behavior.
Victor Julien [Fri, 27 Mar 2020 14:08:13 +0000 (15:08 +0100)]
tests: add http file blocking on sha256 tests
Jason Ish [Wed, 1 Apr 2020 22:50:59 +0000 (16:50 -0600)]
tests: mark 2 smb file tests as requiring rust
- filestore-container-smb
- smb-eicar-file
Philippe Antoine [Fri, 20 Mar 2020 08:38:22 +0000 (09:38 +0100)]
framework: warns on different type between yaml and json
Philippe Antoine [Wed, 5 Feb 2020 13:03:42 +0000 (14:03 +0100)]
Adds test for SMB EICAR file
Victor Julien [Thu, 26 Mar 2020 05:38:10 +0000 (06:38 +0100)]
windows: fix version check for win32
There may be leading output before the expected version string,
so make sure to be a bit stricter on in the regex to extract the
version correctly.
Victor Julien [Tue, 24 Mar 2020 18:12:18 +0000 (19:12 +0100)]
windows: skip tests that check for uid
Victor Julien [Tue, 24 Mar 2020 06:35:44 +0000 (07:35 +0100)]
windows: skip shell checks and don't run setup
Victor Julien [Tue, 24 Mar 2020 06:33:29 +0000 (07:33 +0100)]
tests: fix test using nanosecond precision
Not all libpcaps support this.
Jeff Lucovsky [Wed, 4 Mar 2020 13:23:37 +0000 (08:23 -0500)]
tests: byte_test bitmask tests
Jason Ish [Sat, 21 Mar 2020 18:44:55 +0000 (12:44 -0600)]
Update min-version to 6.0 for some test that fail on 5.0.x
- detect-filestore-config-02
- detect-filestore-config-04
- pcre-invalid-rule-01
Jason Ish [Sat, 21 Mar 2020 16:20:42 +0000 (10:20 -0600)]
github-ci: test against supported Suricata branches
The idea is not to test every compile time option, but a somewhat
standard once over of our supported branches to make sure tests
that are version specific are flagged as such.
Will also allow us to quickly spot PRs that fail that may
be depending on a suricata fix/pr.
Jason Ish [Fri, 20 Mar 2020 23:28:08 +0000 (17:28 -0600)]
detect-filestore-config: require nss
Jason Ish [Fri, 20 Mar 2020 22:28:28 +0000 (16:28 -0600)]
pcre-invalid-rule-01: min-version 5.0
Jason Ish [Fri, 20 Mar 2020 22:25:07 +0000 (16:25 -0600)]
file-data-depth-inspection: break into 2 tests
As the alert one doesn't work with 4.1.
Gabriel L. Somlo [Mon, 23 Sep 2019 13:47:41 +0000 (09:47 -0400)]
tests: file_data depth inspection should keep working with other rules
Jason Ish [Thu, 26 Sep 2019 14:55:37 +0000 (08:55 -0600)]
filemd5: test md5 rule triggers without filestore keyword
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2490
Philippe Antoine [Tue, 15 Oct 2019 14:33:59 +0000 (16:33 +0200)]
Adds test for http async parsing
Jason Ish [Thu, 7 Nov 2019 19:25:43 +0000 (13:25 -0600)]
http-all-headers: remove check.sh, use new __len test
Remove check.sh script and use __len to test the length
of the arrays.
Jason Ish [Thu, 7 Nov 2019 19:19:33 +0000 (13:19 -0600)]
Add ability to match on the length of an array.
By using the "magic" key value of __len, a match can be done
on the length of an array. For example:
- filter:
count: 1
match:
event_type: http
http.response_headers.__len: 9
This does rely on us never using __len as an actual object
key, so is a bit of a hack.
Maurizio Abba [Fri, 15 Feb 2019 20:19:20 +0000 (20:19 +0000)]
eve/http: add request/response headers test
Jason Ish [Mon, 18 Nov 2019 18:51:40 +0000 (12:51 -0600)]
dns: add some checks on source and destination addresses
Ticket #3340:
https://redmine.openinfosecfoundation.org/issues/3340
Jeff Lucovsky [Sun, 22 Dec 2019 19:49:33 +0000 (14:49 -0500)]
run: flush stdout before using check.sh
Jeff Lucovsky [Sun, 22 Dec 2019 19:48:26 +0000 (14:48 -0500)]
issue 3406: Add tests checking filestore config
Sascha Steinbiss [Tue, 25 Feb 2020 17:16:16 +0000 (18:16 +0100)]
add tests for RFB parser
Jeff Lucovsky [Fri, 28 Feb 2020 15:01:15 +0000 (10:01 -0500)]
tests/snmp: Update SNMP verifications
Jeff Lucovsky [Fri, 28 Feb 2020 14:51:57 +0000 (09:51 -0500)]
tests: FTP passive test update
Jeff Lucovsky [Fri, 28 Feb 2020 14:50:39 +0000 (09:50 -0500)]
tests: FTP active test update
Jeff Lucovsky [Wed, 19 Feb 2020 14:21:17 +0000 (09:21 -0500)]
run: Improved support of shell tests
Jeff Lucovsky [Wed, 19 Feb 2020 14:19:42 +0000 (09:19 -0500)]
tests/pcre: Add test to check sticky buffer
This commit adds test support to ensure that modifiers to pcre have the
proper content.
Victor Julien [Thu, 19 Mar 2020 12:18:28 +0000 (13:18 +0100)]
tests/ipv6: fix on versions <6
Philippe Antoine [Fri, 28 Feb 2020 14:17:59 +0000 (15:17 +0100)]
Adds passing test for IPv6 evasion atomic fragment
Jason Ish [Tue, 17 Mar 2020 15:38:01 +0000 (09:38 -0600)]
http-xff-unified2: quiet test script output
On failure the require script would send an error to stderr,
redirect this to /dev/null as it is supposed to fail
if there is no unified2 support.
Jeff Lucovsky [Wed, 4 Mar 2020 15:21:17 +0000 (10:21 -0500)]
tests: Test for issue 3463
Add a test for bug 3463 -- duplicate threshold options not detected.
Jeff Lucovsky [Sat, 29 Feb 2020 14:37:53 +0000 (09:37 -0500)]
tests: bug-3490 requires a min-version
Jeff Lucovsky [Sun, 23 Feb 2020 19:55:22 +0000 (14:55 -0500)]
tests: Add tests for issue 3490
Jason Ish [Tue, 18 Feb 2020 17:29:57 +0000 (11:29 -0600)]
readme: document shell checks
Jason Ish [Tue, 18 Feb 2020 17:22:57 +0000 (11:22 -0600)]
shell check: raise error if missing args
In a shell check, the args parameter is required. Fail the test
with a nicer error if the args field is missing.
Jeff Lucovsky [Sat, 28 Dec 2019 18:23:27 +0000 (13:23 -0500)]
decode: ERSPAN Type I packet parsing
Eric Leblond [Tue, 19 Nov 2019 17:06:08 +0000 (18:06 +0100)]
bpf-command-line: add test for bug 3346
Jason Ish [Thu, 9 Jan 2020 22:52:55 +0000 (16:52 -0600)]
dns test fix: only include relevant rules
Remove app-layer dns rules for events not relevant to
test as some of them are scheduled for removal.
Also convert check.sh to test.yaml.
Victor Julien [Wed, 11 Dec 2019 20:40:36 +0000 (21:40 +0100)]
bug-130: update for changed detection logic
Victor Julien [Wed, 11 Dec 2019 10:05:03 +0000 (11:05 +0100)]
http: test for body inspection corner case
Jason Ish [Mon, 9 Dec 2019 22:06:12 +0000 (16:06 -0600)]
fixup: HAVE_RUST should be just RUST
Andreas Herz [Mon, 1 Jul 2019 20:21:31 +0000 (22:21 +0200)]
tests: add mix of byte_extract tests
Victor Julien [Tue, 3 Dec 2019 07:13:36 +0000 (08:13 +0100)]
tests: fix missing HAVE_RUST declarations
Victor Julien [Wed, 20 Nov 2019 18:19:51 +0000 (19:19 +0100)]
tests: fixes for bug 130
Version check failed and windows failed to match.
Giuseppe Longo [Wed, 20 Nov 2019 10:50:36 +0000 (11:50 +0100)]
tests: fix sip tests
The correct numbers of alerts logged is not correct and OISF/suricata#4330
fixes this issue, so this commit fixes tests that are broken.
Jason Ish [Wed, 20 Nov 2019 21:49:18 +0000 (15:49 -0600)]
test: dhcp request flood test
Tests that a DHCP request flood doesn't take an excessive amount
of time.
Skipped by default.
Related ticket #3345:
https://redmine.openinfosecfoundation.org/issues/3345
Jason Ish [Wed, 20 Nov 2019 21:45:05 +0000 (15:45 -0600)]
run: fix --force to force running of skipped tests
Jason Ish [Wed, 20 Nov 2019 21:44:42 +0000 (15:44 -0600)]
All skip to be a boolean, for easy skip by default.
Jason Ish [Wed, 20 Nov 2019 21:36:56 +0000 (15:36 -0600)]
run: allow an empty test.yaml
On an empty test.yaml, make sure the config object is an
empty dict, and not None.
Jason Ish [Wed, 20 Nov 2019 18:17:24 +0000 (12:17 -0600)]
run: use 0 for undefined versioned components
Fix the version parser to use 0 for undefined version
components instead of None to support looser version
specifications:
5 => 5.0.0
5.1 => 5.1.0
5.1.1 => 5.1.1
Jason Ish [Wed, 13 Nov 2019 22:46:13 +0000 (16:46 -0600)]
bug-130: min-version 5.0
Shivani Bhardwaj [Sun, 30 Jun 2019 06:53:07 +0000 (12:23 +0530)]
Add tests for #130: content + nocase issue
Closes redmine ticket #3057.
Jason Ish [Wed, 13 Nov 2019 22:27:41 +0000 (16:27 -0600)]
base64 tests: update to work on 4.1
Eric Leblond [Sun, 13 Oct 2019 10:19:28 +0000 (12:19 +0200)]
base64: add basic tests
Jason Ish [Wed, 13 Nov 2019 17:32:49 +0000 (11:32 -0600)]
eve/dns: test eve/dns filtering
To confirm ticket:
https://redmine.openinfosecfoundation.org/issues/3231
Victor Julien [Thu, 7 Nov 2019 09:27:34 +0000 (10:27 +0100)]
tests: add bug 3277 nfsv2+filestore test
Victor Julien [Thu, 7 Nov 2019 09:23:31 +0000 (10:23 +0100)]
tests: add empty TCP SACK test
Victor Julien [Sat, 2 Nov 2019 15:23:45 +0000 (16:23 +0100)]
tests: add check for rdp support to rdp test
Andreas Herz [Tue, 29 Oct 2019 10:54:00 +0000 (11:54 +0100)]
tests: add rdp parser test
Jason Ish [Tue, 1 Oct 2019 21:39:28 +0000 (15:39 -0600)]
run: handle moved classificaton/reference config
First look for these configuration files in ./etc, then in the
top directory to handle the change of location in Suricata 5.0,
as well as work with older versions.
Victor Julien [Sat, 5 Oct 2019 09:27:01 +0000 (11:27 +0200)]
tests/datasets: set requirements
Victor Julien [Sat, 5 Oct 2019 08:51:18 +0000 (10:51 +0200)]
tests/datasets: fix path hanlding in isnotset test
Jason Ish [Thu, 3 Oct 2019 22:34:16 +0000 (16:34 -0600)]
test: dataset state isnotset test
The idea with this test is to alert on the first time something
is seen in a state type dataset.
Philippe Antoine [Mon, 4 Mar 2019 16:27:57 +0000 (17:27 +0100)]
Adds a testcase for HTTP multiple content-length
Philippe Antoine [Tue, 5 Mar 2019 13:09:05 +0000 (14:09 +0100)]
Adds a testcase for http invalid request line