]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
2 years agodetect/bsize: Validate bsize values after parsing 8165/head
Jeff Lucovsky [Sun, 16 Oct 2022 14:13:19 +0000 (10:13 -0400)] 
detect/bsize: Validate bsize values after parsing

Issue: 2982

This commit moves bsize validation with respect to content matches to
the post-parse validation stage. This allows bsize to consider all
content-related values, including those that follow the bsize keyword.

2 years agobsize/general: Remove unnecessary includes
Jeff Lucovsky [Sun, 16 Oct 2022 14:12:13 +0000 (10:12 -0400)] 
bsize/general: Remove unnecessary includes

This commit removes unused/commented out #include lines.

2 years agoadd to general: Typo fixup
Jeff Lucovsky [Sun, 16 Oct 2022 14:08:26 +0000 (10:08 -0400)] 
add to general: Typo fixup

2 years agonetmap: Fix include file issues
Jeff Lucovsky [Tue, 9 Aug 2022 12:52:34 +0000 (08:52 -0400)] 
netmap: Fix include file issues

2 years agodoc: Update bsize documentation
Jeff Lucovsky [Mon, 18 May 2020 13:30:02 +0000 (09:30 -0400)] 
doc: Update bsize documentation

This commit updates the bsize documentation

1. Describe what happens when "content" immediately precedes "bsize"
2. Include the operators and
3. Include examples using the operators.

2 years agodetect/bsize: Semantic validation of bsize values
Jeff Lucovsky [Thu, 27 Jan 2022 15:23:55 +0000 (10:23 -0500)] 
detect/bsize: Semantic validation of bsize values

This commit adds validation of the bsize value(s) with the available
buffer size. Signatures are flagged if the bsize and buffer size are
incompatible.

Issue: 3682

2 years agotests/bsize: Test cases with preceding content
Jeff Lucovsky [Mon, 18 May 2020 13:33:58 +0000 (09:33 -0400)] 
tests/bsize: Test cases with preceding content

This commit adds test cases that validate behavior when "content"
immediately precedes "bsize".

2 years agogeneral: Typo fixup
Jeff Lucovsky [Fri, 21 Jan 2022 14:46:51 +0000 (09:46 -0500)] 
general: Typo fixup

2 years agodetect/content: Use SCCalloc instead of malloc/memset
Jeff Lucovsky [Fri, 21 Jan 2022 14:45:56 +0000 (09:45 -0500)] 
detect/content: Use SCCalloc instead of malloc/memset

This commit replaces a SCMalloc/memset with SCCalloc

2 years agodetect/content: Consider distance in validation
Jeff Lucovsky [Sat, 13 Feb 2021 15:41:09 +0000 (10:41 -0500)] 
detect/content: Consider distance in validation

Ticket: 2982

This commit validates that the content usage in a rule will not exceed
the dsize value.

Values of distance that cause the right edge to be exceeded are
considered an error and the signature will be rejected.

2 years agoutil/base64: use padding var for calculations
Shivani Bhardwaj [Mon, 31 Oct 2022 13:23:06 +0000 (18:53 +0530)] 
util/base64: use padding var for calculations

2 years agouserguide: update tos keyword information
jason taylor [Wed, 2 Nov 2022 19:51:33 +0000 (19:51 +0000)] 
userguide: update tos keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update fragoffset keyword information
jason taylor [Wed, 2 Nov 2022 19:41:29 +0000 (19:41 +0000)] 
userguide: update fragoffset keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update fragbits information
jason taylor [Fri, 28 Oct 2022 19:48:18 +0000 (19:48 +0000)] 
userguide: update fragbits information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update geoip information
jason taylor [Thu, 20 Oct 2022 21:05:29 +0000 (21:05 +0000)] 
userguide: update geoip information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update id keyword information
jason taylor [Tue, 11 Oct 2022 22:00:21 +0000 (22:00 +0000)] 
userguide: update id keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update ipv6.hdr keyword information
jason taylor [Fri, 7 Oct 2022 20:44:14 +0000 (20:44 +0000)] 
userguide: update ipv6.hdr keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update ipv4.hdr keyword information
jason taylor [Fri, 7 Oct 2022 20:18:01 +0000 (20:18 +0000)] 
userguide: update ipv4.hdr keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update ip_proto keyword information
jason taylor [Thu, 6 Oct 2022 22:05:23 +0000 (22:05 +0000)] 
userguide: update ip_proto keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update sameip keyword information
jason taylor [Wed, 28 Sep 2022 23:58:03 +0000 (23:58 +0000)] 
userguide: update sameip keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update ipopts keyword information
jason taylor [Wed, 28 Sep 2022 23:00:48 +0000 (23:00 +0000)] 
userguide: update ipopts keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agouserguide: update ttl keyword information
jason taylor [Wed, 21 Sep 2022 23:22:44 +0000 (23:22 +0000)] 
userguide: update ttl keyword information

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agodoc: update doc for HTTP file.data to server
Philippe Antoine [Thu, 10 Nov 2022 12:17:49 +0000 (13:17 +0100)] 
doc: update doc for HTTP file.data to server

Ticket: #4144

Completes e587f6792afdb863cbe57e972bd395443f23d9d9

2 years agoquic: use VecDeque
Philippe Antoine [Fri, 4 Nov 2022 14:35:30 +0000 (15:35 +0100)] 
quic: use VecDeque

Ticket: #5637

2 years agosecurity: disable setrlimit with asan
Victor Julien [Wed, 9 Nov 2022 14:44:26 +0000 (16:44 +0200)] 
security: disable setrlimit with asan

Various parts of ASAN will require creation of threads. At least
LSAN reporting and ASAN stack traces require this. Detect if we
run with ASAN and bypass the noproc setting with a warning.

Bug: #5661.

2 years agopcre: configurable paths for PCRE2 for include/lib 8157/head
Philippe Antoine [Thu, 3 Nov 2022 10:02:07 +0000 (11:02 +0100)] 
pcre: configurable paths for PCRE2 for include/lib

Ticket: #5572

2 years agossl: add debug validation checks for recent changes
Victor Julien [Tue, 1 Nov 2022 15:48:13 +0000 (16:48 +0100)] 
ssl: add debug validation checks for recent changes

Make sure the assumptions are correct.

2 years agotls: fix buffer overread
Philippe Antoine [Wed, 5 Oct 2022 19:21:41 +0000 (21:21 +0200)] 
tls: fix buffer overread

Recently introduced by commit 4bab6e24e5e2cef29c9a5a6bee3263e4a3d47e76

Ticket: #5564

2 years agodetect: avoids memory leak on ja3 signature parsing
Philippe Antoine [Thu, 3 Nov 2022 15:13:21 +0000 (16:13 +0100)] 
detect: avoids memory leak on ja3 signature parsing

If a later keyword enforces a protocol incompatible with ja3

2 years agoclean: use SC_MD5_HEX_LEN instead of magic number 32
Philippe Antoine [Thu, 3 Nov 2022 12:42:57 +0000 (13:42 +0100)] 
clean: use SC_MD5_HEX_LEN instead of magic number 32

2 years agoclean: replace MD5_STRING_LENGTH with more used SC_MD5_HEX_LEN
Philippe Antoine [Thu, 3 Nov 2022 12:27:10 +0000 (13:27 +0100)] 
clean: replace MD5_STRING_LENGTH with more used SC_MD5_HEX_LEN

2 years agoclean: remove useless * sizeof(char)
Philippe Antoine [Thu, 3 Nov 2022 12:26:07 +0000 (13:26 +0100)] 
clean: remove useless * sizeof(char)

2 years agoquic: ja3 code deduplication
Philippe Antoine [Thu, 3 Nov 2022 12:20:25 +0000 (13:20 +0100)] 
quic: ja3 code deduplication

As quic transactions are unidirectional, the same function is
used to get ja3 from client or from server.

2 years agoquic: allow ja3.hash keyword
Philippe Antoine [Fri, 28 Oct 2022 19:57:11 +0000 (21:57 +0200)] 
quic: allow ja3.hash keyword

Ticket: #5624

2 years agorust: fix cargo clippy --all-features
Philippe Antoine [Fri, 4 Nov 2022 10:13:07 +0000 (11:13 +0100)] 
rust: fix cargo clippy --all-features

2 years agorust: cargo clippy --all-features --fix --allow-no-vcs
Philippe Antoine [Fri, 4 Nov 2022 08:38:51 +0000 (09:38 +0100)] 
rust: cargo clippy --all-features --fix --allow-no-vcs

2 years agoci: cargo clippy run option
Philippe Antoine [Thu, 3 Nov 2022 20:34:37 +0000 (21:34 +0100)] 
ci: cargo clippy run option

As clippy does not recognize git which is above

2 years agorust: fix warnings on rustc 1.67.0-nightly
Philippe Antoine [Thu, 3 Nov 2022 14:35:22 +0000 (15:35 +0100)] 
rust: fix warnings on rustc 1.67.0-nightly

warning: for loop over an `Option`. This is more readably written
as an `if let` statement

2 years agodetect/parse-port: fix whitespaces bug 8137/head
Daniel Young [Mon, 23 May 2022 19:41:48 +0000 (15:41 -0400)] 
detect/parse-port: fix whitespaces bug

Updated by Victor Julien to:
- accept but strip leading whitespaces
- update tests
- cleanup tests

2 years agodetect/filename: fix buffer description
Eric Leblond [Wed, 27 Jul 2022 07:21:51 +0000 (09:21 +0200)] 
detect/filename: fix buffer description

2 years agosrc: remove unneeded header and refs
Shivani Bhardwaj [Mon, 26 Sep 2022 04:44:51 +0000 (10:14 +0530)] 
src: remove unneeded header and refs

2 years agodetect-l3proto: Convert unittests to new FAIL/PASS API
Haleema Khan [Fri, 28 Oct 2022 22:34:05 +0000 (03:34 +0500)] 
detect-l3proto: Convert unittests to new FAIL/PASS API

Ticket: #4050

2 years agodetect-icmp-seq: clean-up unittests
Alice Akaki [Fri, 28 Oct 2022 19:16:58 +0000 (15:16 -0400)] 
detect-icmp-seq: clean-up unittests

Task: #5597

2 years agoflow: fix FlowSwapFileFlags function 8127/head
Eric Leblond [Sun, 30 Oct 2022 12:08:06 +0000 (13:08 +0100)] 
flow: fix FlowSwapFileFlags function

Ticket: #5625

2 years agodetect-filesize: Convert unittests to new FAIL/PASS API 8118/head
Haleema Khan [Fri, 21 Oct 2022 02:45:49 +0000 (07:45 +0500)] 
detect-filesize: Convert unittests to new FAIL/PASS API

Ticket: 4039

2 years agodetect-distance: Convert unittests to new FAIL/PASS API
Haleema Khan [Sun, 23 Oct 2022 21:32:56 +0000 (02:32 +0500)] 
detect-distance: Convert unittests to new FAIL/PASS API

Ticket : #4020

2 years agopgsql: add test for parameter status parser
Juliana Fajardini [Mon, 24 Oct 2022 00:58:42 +0000 (21:58 -0300)] 
pgsql: add test for parameter status parser

Since we've done some changes to how the parameters are parsed, add one
more test case to check that.

Bug #5579

2 years agopgsql: move database into opt parameters list
Juliana Fajardini [Wed, 7 Sep 2022 19:41:48 +0000 (16:41 -0300)] 
pgsql: move database into opt parameters list

For StartupMessages, the database parameter is optional. This moves the
parameter into the optional_parameters list.

Bug #5579

2 years agoeve/schema: pgsql - allow flexible parameters list
Juliana Fajardini [Wed, 7 Sep 2022 18:52:42 +0000 (15:52 -0300)] 
eve/schema: pgsql - allow flexible parameters list

Pgsql's parameters - for message types like StartupMessage and
ParameterStatus, for instance, don't have a finite, definitive set, as
per their documentation. Our json schema was allow expecting a fixed set
of parameters, though, resulting in SV tests failing if different, valid
parameters appeared.

Bug #5579

2 years agopgsql: support empty parameter values
Philippe Antoine [Fri, 26 Aug 2022 12:02:16 +0000 (14:02 +0200)] 
pgsql: support empty parameter values

Bug #5579

2 years agopgsql: support out of order parameters for startup message
Philippe Antoine [Fri, 26 Aug 2022 12:00:40 +0000 (14:00 +0200)] 
pgsql: support out of order parameters for startup message

As user can be not the first parameter

Bug #5579

2 years agodetect-icmp-id: convert unittests to FAIL/PASS APIs 8113/head
Alice Akaki [Sat, 22 Oct 2022 17:07:04 +0000 (13:07 -0400)] 
detect-icmp-id: convert unittests to FAIL/PASS APIs

Task: #4042

2 years agodetect-itype: Convert unittests to new FAIL/PASS API
Haleema Khan [Fri, 21 Oct 2022 02:16:45 +0000 (07:16 +0500)] 
detect-itype: Convert unittests to new FAIL/PASS API

Bug: #5589

2 years agogithub-actions: bump actions/cache from 3.0.10 to 3.0.11
dependabot[bot] [Thu, 13 Oct 2022 19:33:12 +0000 (19:33 +0000)] 
github-actions: bump actions/cache from 3.0.10 to 3.0.11

Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.10...9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoprofiling: Make rule_perf.log JSON output newline-delimited
Simeon Miteff [Wed, 28 Sep 2022 23:38:07 +0000 (09:38 +1000)] 
profiling: Make rule_perf.log JSON output newline-delimited

Adding a newline makes the output valid JSON when multiple sortings of
the rules profile object are written to the log.

2 years agodoc/netmap: Describe Netmap IPS usage
Jeff Lucovsky [Sat, 22 Oct 2022 16:59:22 +0000 (12:59 -0400)] 
doc/netmap: Describe Netmap IPS usage

Issue: 5512

This commit summarizes Netmap usage with Suricata's IPS mode.

2 years agodoc/userguide: update bittorrent-dht eve examples
Jason Ish [Tue, 13 Sep 2022 15:36:01 +0000 (09:36 -0600)] 
doc/userguide: update bittorrent-dht eve examples

Update the bittorrent-dht examples using real log records with peers
and nodes broken down into objects.

2 years agoeve/schema: bittorrent-dht updates
Jason Ish [Thu, 8 Sep 2022 18:08:26 +0000 (12:08 -0600)] 
eve/schema: bittorrent-dht updates

Some values that were previously strings are now parsed down into
objects.

2 years agobittorrent-dht: parse and log node6 lists
Jason Ish [Thu, 8 Sep 2022 17:15:38 +0000 (11:15 -0600)] 
bittorrent-dht: parse and log node6 lists

Node6 lists are just like node lists, but for IPv6 addresses.

2 years agobittorrent-dht: remove tests that are no longer valid
Jason Ish [Thu, 8 Sep 2022 18:39:31 +0000 (12:39 -0600)] 
bittorrent-dht: remove tests that are no longer valid

2 years agobittorrent-dht: fix values decoding, as a list of peers
Jason Ish [Thu, 8 Sep 2022 16:42:15 +0000 (10:42 -0600)] 
bittorrent-dht: fix values decoding, as a list of peers

The "values" field is not a string, but instead peer information in
compact format. Decode this properly and then properly format in the
log.

2 years agojsonbuilder: add append_hex - add hex to array
Jason Ish [Thu, 8 Sep 2022 16:41:10 +0000 (10:41 -0600)] 
jsonbuilder: add append_hex - add hex to array

New method, append_hex to add a byte array to a JSON array in hex
encoding.

2 years agobittorrent-dht: parse token and target as byte values
Jason Ish [Thu, 8 Sep 2022 14:59:11 +0000 (08:59 -0600)] 
bittorrent-dht: parse token and target as byte values

2 years agobittorrent-dht: only attempt to parse dht messages
Jason Ish [Wed, 7 Sep 2022 22:46:20 +0000 (16:46 -0600)] 
bittorrent-dht: only attempt to parse dht messages

The bittorrent flow is shared with transport messages as well as dht
messages. Only attempt to parse dht message as dht, ignore the rest.

2 years agobittorrent-dht: decode node data structures
Jason Ish [Wed, 7 Sep 2022 14:51:28 +0000 (08:51 -0600)] 
bittorrent-dht: decode node data structures

Instead of decoding the nodes field into a blog of bytes, decode it into
an array of node info objects, each with a node id, IP address and port.

2 years agobittorrent-dht: convert some fields to byte arrays
Jason Ish [Wed, 17 Aug 2022 23:20:00 +0000 (17:20 -0600)] 
bittorrent-dht: convert some fields to byte arrays

Some fields that were previously strings are not always value UTF-8
data, instead the protocol specification refers to them as strings of
bytes, so in other words byte arrays.

Currently fields converted are:
- client_version
- info_hash
- response.id
- request.id
- nodes
- token

2 years agodoc: rename bittorrent-dht to bittorrent_dht in eve output
Jason Ish [Fri, 12 Aug 2022 16:30:00 +0000 (10:30 -0600)] 
doc: rename bittorrent-dht to bittorrent_dht in eve output

2 years agobittorrent-dht/eve: log as bittorrent_dht
Jason Ish [Fri, 12 Aug 2022 16:27:45 +0000 (10:27 -0600)] 
bittorrent-dht/eve: log as bittorrent_dht

2 years agoeve-schema: add bittorrent-dht
Jason Ish [Fri, 12 Aug 2022 16:03:58 +0000 (10:03 -0600)] 
eve-schema: add bittorrent-dht

2 years agobittorrent-dht: register a pattern for protocol detection
Jason Ish [Wed, 10 Aug 2022 23:06:51 +0000 (17:06 -0600)] 
bittorrent-dht: register a pattern for protocol detection

Removes the port based probing which takes a long time to register for
ports 1024-65535 and instead use pattern based protocol detection.

2 years agobittorrent-dht: set parser to unidirectional
Jason Ish [Wed, 10 Aug 2022 17:49:06 +0000 (11:49 -0600)] 
bittorrent-dht: set parser to unidirectional

This parser does not match up responses with requests so flag it as
unidirectional.

2 years agouserguide/eve-log: remove mentions of requiring Rust
Jason Ish [Wed, 10 Aug 2022 17:42:42 +0000 (11:42 -0600)] 
userguide/eve-log: remove mentions of requiring Rust

Rust is required to build now.

2 years agobittorrent: updates for new event handling
Jason Ish [Wed, 10 Aug 2022 15:49:19 +0000 (09:49 -0600)] 
bittorrent: updates for new event handling

Fixes anomaly events.

2 years agodocs: update for bittorrent-dht app-layer
Aaron Bungay [Fri, 12 Feb 2021 01:22:11 +0000 (01:22 +0000)] 
docs: update for bittorrent-dht app-layer

2 years agobittorrent-dht: add bittorrent-dht app layer
Aaron Bungay [Fri, 5 Jun 2020 04:17:36 +0000 (00:17 -0400)] 
bittorrent-dht: add bittorrent-dht app layer

Parses and logs the bittorrent-dht protocol.

Note: Includes some compilation fixups after rebase by Jason Ish.

Feature: #3086

2 years agodnp3: fixups to work with unified json tx logger 8101/head
Jason Ish [Thu, 13 Oct 2022 21:51:10 +0000 (15:51 -0600)] 
dnp3: fixups to work with unified json tx logger

Update DNP3 to work with a single TX logger, and just register one
logger instead of 2.

This primarily creates a TX per message instead of correlating replies
to requests, which fits the DNP3 model better, but we didn't really have
this concept nailed down when DNP3 was written.

2 years agodpdk: set new running flag at thread startup 8097/head
Victor Julien [Thu, 27 Oct 2022 11:00:25 +0000 (13:00 +0200)] 
dpdk: set new running flag at thread startup

2 years agothreads: count thread types after all initialized
Victor Julien [Thu, 27 Oct 2022 10:17:11 +0000 (12:17 +0200)] 
threads: count thread types after all initialized

To avoid double counting in case a thread took longer than
expected to start up.

2 years agodetect-icmp-seq: convert unittests to FAIL/PASS APIs
Alice Akaki [Tue, 25 Oct 2022 19:41:56 +0000 (15:41 -0400)] 
detect-icmp-seq: convert unittests to FAIL/PASS APIs

Task: #4043

2 years agodns/eve: add 'HTTPS' type logging
Haleema Khan [Sat, 15 Oct 2022 04:17:42 +0000 (09:17 +0500)] 
dns/eve: add 'HTTPS' type logging

Add a new DNS record type to represent HTTPS
Ticket: #4751

2 years agodetect-itype: remove unittests
Haleema Khan [Mon, 24 Oct 2022 15:39:08 +0000 (20:39 +0500)] 
detect-itype: remove unittests

Ticket: #5590

2 years agodetect-replace: Convert unittests to FAIL/PASS API
Gabriel Lima Luz [Mon, 24 Oct 2022 14:04:31 +0000 (11:04 -0300)] 
detect-replace: Convert unittests to FAIL/PASS API

Ticket: 4054

2 years agosecurity: prevents process creation
Philippe Antoine [Fri, 13 May 2022 12:52:06 +0000 (14:52 +0200)] 
security: prevents process creation

with setrlimit NPROC.

So that, if Suricata wants to execve or such to create a new process
the OS will forbid it so that RCE exploits are more painful to write.

Ticket: #5373

2 years agoprofiling: sort LoggerId's in same order as defined
Jason Ish [Thu, 13 Oct 2022 15:06:11 +0000 (09:06 -0600)] 
profiling: sort LoggerId's in same order as defined

Sort the LoggerId's in the order they are define in suricata-common.h.

2 years agologgers: all json tx loggers can share the same loggerid
Jason Ish [Wed, 5 Oct 2022 21:06:53 +0000 (15:06 -0600)] 
loggers: all json tx loggers can share the same loggerid

This is to avoid the tx logging code that doesn't support LoggerId
values over 31 at this time. The simplest fix for now is to just have
all JSON (eve) loggers use the same ID.

DNP3 is left as-is for now as it needs some extra support in the parser.

2 years agoworkflow: add systemd integration and check
Richard McConnell [Tue, 4 Oct 2022 16:18:05 +0000 (17:18 +0100)] 
workflow: add systemd integration and check

Intergration of systemd is a feature that enables notification of
a running service to the service manager. The workflow now ensures
compilation with systemd and checks the binary has been built against
libsystemd.

2 years agodoc/systemd: add documentation for sd_notify
Richard McConnell [Tue, 4 Oct 2022 16:16:40 +0000 (17:16 +0100)] 
doc/systemd: add documentation for sd_notify

2 years agosuricata: add sd_notify support
Richard McConnell [Tue, 4 Oct 2022 16:15:21 +0000 (17:15 +0100)] 
suricata: add sd_notify support

Upon all threads reaching a running state the system generates
a notification for systems running and configured for systemd

Implements feature 5384
(https://redmine.openinfosecfoundation.org/issues/5384)

2 years agosource: add THV_RUNNING flag to notify of running state
Richard McConnell [Tue, 4 Oct 2022 16:13:01 +0000 (17:13 +0100)] 
source: add THV_RUNNING flag to notify of running state

Each module (thread) updates its status to indicate running.
Main thread awaits for all threads to be in a running state
before continuing the initialisation process

Implements feature 5384
(https://redmine.openinfosecfoundation.org/issues/5384)

2 years agodoc: add reference to ipaddr in IP matching
Eric Leblond [Mon, 22 Aug 2022 21:46:01 +0000 (23:46 +0200)] 
doc: add reference to ipaddr in IP matching

2 years agodatasets: don't exit on invalid data
Eric Leblond [Fri, 15 Jul 2022 10:33:09 +0000 (12:33 +0200)] 
datasets: don't exit on invalid data

2 years agodetect: doc link for ip.src and ip.dst
Eric Leblond [Sun, 10 Jul 2022 18:31:00 +0000 (20:31 +0200)] 
detect: doc link for ip.src and ip.dst

2 years agodoc: add ip.dst and ip.src doc
Eric Leblond [Sun, 10 Jul 2022 17:05:18 +0000 (19:05 +0200)] 
doc: add ip.dst and ip.src doc

2 years agodoc: document new dataset types
Eric Leblond [Sat, 4 Jun 2022 21:00:14 +0000 (23:00 +0200)] 
doc: document new dataset types

Feature: #5383

2 years agodatasets: introduce new IPv6 type
Eric Leblond [Tue, 31 May 2022 16:53:17 +0000 (18:53 +0200)] 
datasets: introduce new IPv6 type

This patch also simplifies IPv6 parsing.

Feature: #5383

2 years agodetect: add ip.dst keyword as sticky buffer
Eric Leblond [Tue, 31 May 2022 15:43:24 +0000 (17:43 +0200)] 
detect: add ip.dst keyword as sticky buffer

Feature: #5383

2 years agodetect: add ip.src keyword
Eric Leblond [Sat, 11 Jun 2022 21:28:37 +0000 (23:28 +0200)] 
detect: add ip.src keyword

It is a sticky buffer matching on src_ip.

Feature: #5383

2 years agodatasets: introduce ipv4 type
Eric Leblond [Sun, 15 May 2022 10:39:01 +0000 (12:39 +0200)] 
datasets: introduce ipv4 type

This patch introduce the IPv4 type for dataset so Suricata commandmatch
on a set of IPv4 addresses. This is meant to complement iprep feature
for people that needs more flexibility such as settings the IP on
the packet path.

Feature: #5383

2 years agodatasets: factorize serialised operations
Eric Leblond [Tue, 19 Jan 2021 21:00:54 +0000 (22:00 +0100)] 
datasets: factorize serialised operations

Ticket: #5184

2 years agodoc: document dataset-lookup
Eric Leblond [Mon, 18 Jan 2021 22:41:55 +0000 (23:41 +0100)] 
doc: document dataset-lookup

Ticket: #5184