]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
13 months agodoc/userguide: document threshold backoff type 11388/head 11394/head
Victor Julien [Wed, 26 Jun 2024 07:36:49 +0000 (09:36 +0200)] 
doc/userguide: document threshold backoff type

13 months agostream: enable backoff on event rules
Victor Julien [Mon, 24 Jun 2024 10:34:44 +0000 (12:34 +0200)] 
stream: enable backoff on event rules

Enable backoff for most rules. The rules looking at the session start up
use a count of 1 and a multiplier of 2.

Post-3whs rules use a count of 1 and a multiplier of 10.

13 months agodetect/threshold: implement backoff type
Victor Julien [Mon, 24 Jun 2024 08:55:45 +0000 (10:55 +0200)] 
detect/threshold: implement backoff type

Implement new `type backoff` for thresholding. This allows alerts to be
limited.

A count of 1 with a multiplier of 10 would generate alerts for matching packets:
1, 10, 100, 1000, 10000, 100000, etc.

A count of 1 with a multiplier of 2 would generate alerts for matching packets:
1, 2, 4, 8, 16, 32, etc.

Like with other thresholds, rule actions like drop and setting of
flowbits will still be performed for each matching packet.

Current implementation is only for the by_flow tracker and for per rule
threshold statements.

Tracking is done using uint32_t. When it reaches this value, the rest of
the packets in the tracker will use the silent match.

Ticket: #7120.

13 months agodetect/threshold: regex cleanup
Victor Julien [Mon, 24 Jun 2024 09:06:10 +0000 (11:06 +0200)] 
detect/threshold: regex cleanup

13 months agodetect/threshold: format file
Victor Julien [Mon, 24 Jun 2024 08:08:45 +0000 (10:08 +0200)] 
detect/threshold: format file

13 months agodoc/userguide: document new threshold config options
Victor Julien [Wed, 15 May 2024 09:12:45 +0000 (11:12 +0200)] 
doc/userguide: document new threshold config options

13 months agodetect/threshold: make hash size and memcap configurable
Victor Julien [Wed, 15 May 2024 09:02:29 +0000 (11:02 +0200)] 
detect/threshold: make hash size and memcap configurable

13 months agodetect/threshold: includes cleanup
Victor Julien [Sat, 20 Apr 2024 05:41:00 +0000 (07:41 +0200)] 
detect/threshold: includes cleanup

13 months agodetect/threshold: expand cache support for rule tracking
Victor Julien [Fri, 19 Apr 2024 16:57:32 +0000 (18:57 +0200)] 
detect/threshold: expand cache support for rule tracking

Use the same hash key as for the regular threshold storage,
so include gid, rev, tentant id.

13 months agodetect/threshold: consider tenant id in tracking
Victor Julien [Fri, 19 Apr 2024 16:31:39 +0000 (18:31 +0200)] 
detect/threshold: consider tenant id in tracking

Ticket: #6967.

13 months agodetect/threshold: include rev in threshold tracking
Victor Julien [Fri, 19 Apr 2024 16:27:57 +0000 (18:27 +0200)] 
detect/threshold: include rev in threshold tracking

13 months agodetect/threshold: improve hash function
Victor Julien [Fri, 19 Apr 2024 16:17:33 +0000 (18:17 +0200)] 
detect/threshold: improve hash function

13 months agothresholds: use dedicated storage
Victor Julien [Tue, 9 Jan 2024 15:00:08 +0000 (16:00 +0100)] 
thresholds: use dedicated storage

Instead of a Host and IPPair table thresholding layer, use a dedicated
THash to store both. This allows hashing on host+sid+tracker or
ippair+sid+tracker, to create more unique hash keys.

This allows for fewer hash collisions.

The per rule tracking also uses this, so that the single big lock is no
longer a single point of contention.

Reimplement storage for flow thresholds to reuse as much logic as
possible from the host/ippair/rule thresholds.

Ticket: #426.

13 months agorange: use thash expiry API for timeout
Victor Julien [Tue, 9 Jan 2024 15:14:10 +0000 (16:14 +0100)] 
range: use thash expiry API for timeout

13 months agothash: add expiration logic
Victor Julien [Wed, 10 Jan 2024 08:49:10 +0000 (09:49 +0100)] 
thash: add expiration logic

Add a callback and helper function to handle data expiration.

Update datasets to explicitly not use expiration.

13 months agodetect/address: constify ipv6 cmp funcs
Victor Julien [Tue, 9 Jan 2024 20:53:35 +0000 (21:53 +0100)] 
detect/address: constify ipv6 cmp funcs

13 months agodetect/threshold: minor rate filter cleanup
Victor Julien [Tue, 9 Jan 2024 19:18:21 +0000 (20:18 +0100)] 
detect/threshold: minor rate filter cleanup

13 months agodetect/threshold: minor code cleanup
Victor Julien [Tue, 9 Jan 2024 15:39:22 +0000 (16:39 +0100)] 
detect/threshold: minor code cleanup

Packet pointer is not used during allocation.

13 months agodetect/threshold: minor cleanup
Victor Julien [Tue, 9 Jan 2024 15:10:30 +0000 (16:10 +0100)] 
detect/threshold: minor cleanup

13 months agodetect/threshold: implement per thread cache
Victor Julien [Mon, 11 Sep 2023 19:17:36 +0000 (21:17 +0200)] 
detect/threshold: implement per thread cache

Thresholding often has 2 stages:

1. recording matches
2. appling an action, like suppress

E.g. with something like:
threshold:type limit, count 10, seconds 3600, track by_src;
the recording state is about counting 10 first hits for an IP,
then followed by the "suppress" state that might last an hour.

By_src/by_dst are expensive, as they do a host table lookup and lock
the host. If many threads require this access, lock contention becomes
a serious problem.

This patch adds a thread local cache to avoid the synchronization
overhead. When the threshold for a host enters the "apply" stage,
a thread local hash entry is added. This entry knows the expiry
time and the action to apply. This way the action can be applied
w/o the synchronization overhead.

A rbtree is used to handle expiration.

Implemented for IPv4.

13 months agodetect: add ticket id to var related todos
Victor Julien [Wed, 13 Mar 2024 10:03:01 +0000 (11:03 +0100)] 
detect: add ticket id to var related todos

13 months agodetect/detection_filter: add support for track by_flow
Victor Julien [Wed, 13 Mar 2024 10:01:28 +0000 (11:01 +0100)] 
detect/detection_filter: add support for track by_flow

13 months agodoc: add thresholding by_flow
Victor Julien [Fri, 8 Mar 2024 10:50:14 +0000 (11:50 +0100)] 
doc: add thresholding by_flow

13 months agodetect/content: fix wrong value for depth check
Victor Julien [Tue, 5 Mar 2024 09:03:15 +0000 (10:03 +0100)] 
detect/content: fix wrong value for depth check

Limits propegation checked for DETECT_DEPTH as a content flag,
which appears to have worked by chance. After reshuffling the
keyword id's it no longer worked. This patch uses the proper
flag DETECT_CONTENT_DEPTH.

13 months agodetect: group content inspect keyword id's
Victor Julien [Tue, 5 Mar 2024 09:02:53 +0000 (10:02 +0100)] 
detect: group content inspect keyword id's

13 months agodetect: group types used in traffic variables
Victor Julien [Mon, 4 Mar 2024 11:53:35 +0000 (12:53 +0100)] 
detect: group types used in traffic variables

Traffic variables (flowvars, flowbits, xbits, etc) use a smaller int for
their type than detection types. As a workaround make sure the values fit
in a uint8_t.

13 months agothreshold: add by_flow support for global thresholds
Victor Julien [Sat, 2 Mar 2024 06:58:30 +0000 (07:58 +0100)] 
threshold: add by_flow support for global thresholds

Allow rate_filter and thresholds from the global config to specify
tracking "by_flow".

13 months agodetect/threshold: implement tracking 'by_flow'
Victor Julien [Tue, 27 Feb 2024 10:06:47 +0000 (11:06 +0100)] 
detect/threshold: implement tracking 'by_flow'

Add support for 'by_flow' track option. This allows using the various
threshold options in the context of a single flow.

Example:

    alert tcp ... stream-event:pkt_broken_ack; \
        threshold:type limit, track by_flow, count 1, seconds 3600;

The example would limit the number of alerts to once per hour for
packets triggering the 'pkt_broken_ack' stream event.

Implemented as a special "flowvar" holding the threshold entries. This
means no synchronization is required, making this a cheaper option
compared to the other trackers.

Ticket: #6822.

13 months agoutil/var: add comments explaining types
Victor Julien [Mon, 4 Mar 2024 11:29:24 +0000 (12:29 +0100)] 
util/var: add comments explaining types

13 months agoutil/var: remove printf; add assert
Victor Julien [Fri, 1 Mar 2024 12:30:09 +0000 (13:30 +0100)] 
util/var: remove printf; add assert

13 months agohttp2: do not expand duplicate headers
Philippe Antoine [Mon, 17 Jun 2024 14:30:49 +0000 (16:30 +0200)] 
http2: do not expand duplicate headers

Ticket: 7104

As this can cause a big mamory allocation due to the quadratic
nature of the HPACK compression.

13 months agomodbus: abort flow parsing on flood
Philippe Antoine [Thu, 25 Apr 2024 19:24:33 +0000 (21:24 +0200)] 
modbus: abort flow parsing on flood

Ticket: 6987

Let's not spend more resources for a flow which is trying to
make us do it...

13 months agodetect: remove unnecessary detect thread flags stores 11365/head
Victor Julien [Sun, 10 Sep 2023 06:21:02 +0000 (08:21 +0200)] 
detect: remove unnecessary detect thread flags stores

13 months agodetect/nfs: do not free a null pointer
Philippe Antoine [Sun, 23 Jun 2024 20:57:11 +0000 (22:57 +0200)] 
detect/nfs: do not free a null pointer

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69840

13 months agodetect/base64: Use Rust defined modes everywhere 11353/head
Jeff Lucovsky [Thu, 21 Mar 2024 14:23:36 +0000 (10:23 -0400)] 
detect/base64: Use Rust defined modes everywhere

Issue: 6487

To avoid ambiguity, a single definition for base 64 decoding modes will
be used. The Rust base64 transform contains the definitions for the
existing mode types: Strict, RFC2045, RFC4648

13 months agodoc/transform: Correct typo
Jeff Lucovsky [Sun, 25 Feb 2024 15:00:45 +0000 (10:00 -0500)] 
doc/transform: Correct typo

13 months agodoc/transform: Describe the from_base64 transform
Jeff Lucovsky [Fri, 23 Feb 2024 13:51:56 +0000 (08:51 -0500)] 
doc/transform: Describe the from_base64 transform

Issue: 6487

Document the new transform and indicate that it's the preferred way to
perform base64 decoding (preferred over base64_decode)

13 months agodetect/transform: Add from_base64 transform
Jeff Lucovsky [Thu, 22 Feb 2024 15:41:37 +0000 (10:41 -0500)] 
detect/transform: Add from_base64 transform

Issue: 6487

Implement the from_base64 transform:
    [bytes value] [offset value] [mode strict|rfc4648|rfc2045]

    The value for bytes and offset may be a byte_ variable or an
    unsigned integer.

13 months agodetect/transform: from_base64 option parsing
Jeff Lucovsky [Thu, 22 Feb 2024 14:47:18 +0000 (09:47 -0500)] 
detect/transform: from_base64 option parsing

Issue: 6487

Implement from_base64 option parsing in Rust. The Rust module also
contains unit tests.

13 months agodetect/parser: Refactor utility routines
Jeff Lucovsky [Thu, 22 Feb 2024 14:40:28 +0000 (09:40 -0500)] 
detect/parser: Refactor utility routines

Refactor utility functions/definitions from the byte_math module into
the parser module. This includes parse_var and ResultValue

Issue: 6487

13 months agoflow: declare and use constansts where possible
Shivani Bhardwaj [Fri, 21 Jun 2024 08:25:59 +0000 (13:55 +0530)] 
flow: declare and use constansts where possible

13 months agoflow/manager: make fn calls only when necessary
Shivani Bhardwaj [Fri, 21 Jun 2024 08:12:24 +0000 (13:42 +0530)] 
flow/manager: make fn calls only when necessary

13 months agoflow/timeout: cleanup fn names and comments
Shivani Bhardwaj [Mon, 17 Jun 2024 10:30:13 +0000 (16:00 +0530)] 
flow/timeout: cleanup fn names and comments

13 months agoflow: remove unneeded args to fn
Shivani Bhardwaj [Thu, 13 Jun 2024 14:01:02 +0000 (19:31 +0530)] 
flow: remove unneeded args to fn

13 months agoflow/manager: add fn docs
Shivani Bhardwaj [Thu, 13 Jun 2024 13:45:54 +0000 (19:15 +0530)] 
flow/manager: add fn docs

13 months agoflow: add defensive check
Shivani Bhardwaj [Thu, 13 Jun 2024 13:05:31 +0000 (18:35 +0530)] 
flow: add defensive check

13 months agopacketpool: use DEBUG_VALIDATE statement
Shivani Bhardwaj [Thu, 13 Jun 2024 13:04:40 +0000 (18:34 +0530)] 
packetpool: use DEBUG_VALIDATE statement

13 months agoflow: use bool wherever possible
Shivani Bhardwaj [Thu, 13 Jun 2024 13:03:30 +0000 (18:33 +0530)] 
flow: use bool wherever possible

13 months agodetect/icmp: require real packet in signature
Philippe Antoine [Fri, 21 Jun 2024 07:27:50 +0000 (09:27 +0200)] 
detect/icmp: require real packet in signature

Fixes: 956c8bebd1 ("detect/prefilter: use sig mask to exclude pkt engines")
13 months agodetect: add to signature mask for decode events
Philippe Antoine [Wed, 19 Jun 2024 11:42:32 +0000 (13:42 +0200)] 
detect: add to signature mask for decode events

Ticket: 6291

13 months agodetect: fix check for app_layer events
Philippe Antoine [Wed, 19 Jun 2024 11:39:08 +0000 (13:39 +0200)] 
detect: fix check for app_layer events

Ticket: 7106

13 months agoaf-packet: Remove unused preprocessor define
Jeff Lucovsky [Tue, 18 Jun 2024 13:45:06 +0000 (09:45 -0400)] 
af-packet: Remove unused preprocessor define

Remove unused preprocessor value; exposed by compilation warning

13 months agooutput: configurable payload_length field for alerts
Philippe Antoine [Thu, 20 Jun 2024 14:18:25 +0000 (16:18 +0200)] 
output: configurable payload_length field for alerts

Ticket: 7098

13 months agodcerpc: add app-layer metadata in alerts
Philippe Antoine [Thu, 20 Jun 2024 13:09:16 +0000 (15:09 +0200)] 
dcerpc: add app-layer metadata in alerts

Ticket: 6090

13 months agofilestore: do not try to store a file set to nostore
Philippe Antoine [Thu, 7 Dec 2023 09:32:03 +0000 (10:32 +0100)] 
filestore: do not try to store a file set to nostore

Ticket: 6390

This can happen with keyword filestore:both,flow
If one direction does not have a signature group with a filestore,
the file is set to nostore on opening, until a signature in
the other direction tries to set it to store.
Subsequent files will be stored in both directions as flow flags
are now set.

13 months agoapp-layer: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Thu, 29 Jun 2023 13:41:31 +0000 (15:41 +0200)] 
app-layer: fix -Wshorten-64-to-32 warnings

Ticket: #6186

Warnings about downcast from 64 to 32 bits

13 months agoutil: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Thu, 23 Nov 2023 14:46:39 +0000 (15:46 +0100)] 
util: fix -Wshorten-64-to-32 warnings

Ticket: 6186

Warnings about downcast from 64 to 32 bits

Generic fixes required to get app-layer clean

13 months agodetect: remove unused field 11331/head
Philippe Antoine [Wed, 19 Jun 2024 14:45:03 +0000 (16:45 +0200)] 
detect: remove unused field

content_inspect_window is used in app-layer-smtp, but
not directly in detect-file-data

13 months agodetect: add tls.alpn keyword
Victor Julien [Sat, 1 Jun 2024 07:12:29 +0000 (09:12 +0200)] 
detect: add tls.alpn keyword

Ticket: #7108.

13 months agoeve/schema: update for alpn
Victor Julien [Fri, 31 May 2024 13:05:16 +0000 (15:05 +0200)] 
eve/schema: update for alpn

13 months agoeve/tls: log ALPN for client and server
Victor Julien [Fri, 31 May 2024 12:33:31 +0000 (14:33 +0200)] 
eve/tls: log ALPN for client and server

Part of the extended logging.

Logs `client_alpns` and `server_alpns` arrays in the tls object.

Ticket: #7055.

13 months agotls: store all ALPN records in the state
Victor Julien [Fri, 31 May 2024 12:18:15 +0000 (14:18 +0200)] 
tls: store all ALPN records in the state

For later logging and detection.

13 months agoeve/schema: minor enip reformat
Victor Julien [Tue, 18 Jun 2024 20:05:53 +0000 (22:05 +0200)] 
eve/schema: minor enip reformat

13 months agogithub-ci: run cargo update test on pull requests 11326/head
Jason Ish [Tue, 18 Jun 2024 04:41:49 +0000 (22:41 -0600)] 
github-ci: run cargo update test on pull requests

Previously it was run once a week, hiding some issues until
Monday's. Instead run on pull requests, but still not every push.

13 months agodetect/icmp-id: remove prefilter pseudo check
Victor Julien [Tue, 18 Jun 2024 04:54:28 +0000 (06:54 +0200)] 
detect/icmp-id: remove prefilter pseudo check

This is now handled at registration with SIG_MASK_REQUIRE_REAL_PKT.

13 months agodetect/dsize: remove prefilter pseudo check
Victor Julien [Tue, 18 Jun 2024 04:54:09 +0000 (06:54 +0200)] 
detect/dsize: remove prefilter pseudo check

This is now handled at registration with SIG_MASK_REQUIRE_REAL_PKT.

13 months agodetect/stream_size: allow match on pseudo packets
Victor Julien [Thu, 16 May 2024 10:25:07 +0000 (12:25 +0200)] 
detect/stream_size: allow match on pseudo packets

Often used with stream content, which can be inspected with pseudo packets.

13 months agodetect/csum: remove pseudo packet checks
Victor Julien [Thu, 16 May 2024 09:43:17 +0000 (11:43 +0200)] 
detect/csum: remove pseudo packet checks

13 months agodetect/csum: general code cleanups
Victor Julien [Thu, 16 May 2024 09:42:27 +0000 (11:42 +0200)] 
detect/csum: general code cleanups

13 months agodetect/prefilter: use sig mask to exclude pkt engines
Victor Julien [Tue, 30 Apr 2024 05:38:42 +0000 (07:38 +0200)] 
detect/prefilter: use sig mask to exclude pkt engines

Add an argument to the packet prefilter registration function to include
`SignatureMask` flags. This will be used at runtime to only call these
prefilter engines when the mask check passes.

13 months agodetect/prefilter: minor function ptr cleanup
Victor Julien [Mon, 29 Apr 2024 18:48:32 +0000 (20:48 +0200)] 
detect/prefilter: minor function ptr cleanup

Use a typedef'd function pointer for packet Prefilter callbacks to make
the code consistent with the other callbacks.

13 months agodetect: remove pseudo checks from packet keywords
Victor Julien [Wed, 1 May 2024 05:16:13 +0000 (07:16 +0200)] 
detect: remove pseudo checks from packet keywords

Keep as debug validation check.

13 months agodetect: skip pseudo packets if sig needs real pkt
Victor Julien [Wed, 1 May 2024 05:15:53 +0000 (07:15 +0200)] 
detect: skip pseudo packets if sig needs real pkt

If a signature uses a condition that requires a real packet, filter
out pseudo packets as early as possible. To do this, the SignatureMask
logic is used.

This allows for the removal of checks for pseudo packets in individual
keywords `Match` functions, which will be done in a follow up commit.

Update analyzer to output the new flag.

Ticket: #7002.

13 months agotests: move detect http.uri tests to suricata-verify
Philippe Antoine [Fri, 14 Jun 2024 08:28:24 +0000 (10:28 +0200)] 
tests: move detect http.uri tests to suricata-verify

Ticket: 3725

13 months agofuzz: adapt target to number of keywords being dynamic 11320/head
Philippe Antoine [Tue, 18 Jun 2024 05:30:01 +0000 (07:30 +0200)] 
fuzz: adapt target to number of keywords being dynamic

Ticket: 4683

13 months agorust: remove unnecessary nested unsafe
Philippe Antoine [Mon, 17 Jun 2024 13:53:42 +0000 (15:53 +0200)] 
rust: remove unnecessary nested unsafe

13 months agosip: use right slice to take line from 11312/head
Philippe Antoine [Mon, 17 Jun 2024 13:38:11 +0000 (15:38 +0200)] 
sip: use right slice to take line from

We iterate over input, but we are now at start.
Avois quadratic complexity turning to OOM.

Ticket: 7093

13 months agorust/ike: prefix never read field names with _ 11309/head
Jason Ish [Thu, 13 Jun 2024 20:28:23 +0000 (14:28 -0600)] 
rust/ike: prefix never read field names with _

New warning from rustc.

The other option is to allow dead code, however this is more explicit,
and when they are read, its obvious they should be renamed.

13 months agorust: simply matches with unwrap_or_default
Jason Ish [Thu, 13 Jun 2024 20:23:28 +0000 (14:23 -0600)] 
rust: simply matches with unwrap_or_default

New default clippy warning:
https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default

13 months agorust: fix clippy lint for legacy_numeric_constants
Jason Ish [Thu, 13 Jun 2024 20:21:56 +0000 (14:21 -0600)] 
rust: fix clippy lint for legacy_numeric_constants

https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants

13 months agocargo: use default-features instead of default_features
Jason Ish [Thu, 13 Jun 2024 20:16:36 +0000 (14:16 -0600)] 
cargo: use default-features instead of default_features

"default_features" is being deprecated in Rust 2024.

13 months agodetect/enip: move keywords to rust
Philippe Antoine [Tue, 11 Jun 2024 12:20:16 +0000 (14:20 +0200)] 
detect/enip: move keywords to rust

Ticket: 4863

13 months agodetect/websocket: move keywords to rust
Philippe Antoine [Tue, 7 May 2024 14:13:07 +0000 (16:13 +0200)] 
detect/websocket: move keywords to rust

Ticket: 4863

13 months agodetect/dhcp: move keywords to rust
Philippe Antoine [Tue, 7 May 2024 13:42:32 +0000 (15:42 +0200)] 
detect/dhcp: move keywords to rust

Ticket: 4863

13 months agodetect/snmp: move keywords to rust
Philippe Antoine [Fri, 26 Apr 2024 14:32:49 +0000 (16:32 +0200)] 
detect/snmp: move keywords to rust

Ticket: 4863

On the way, convert unit test DetectSNMPCommunityTest to a SV test.

And also, make snmp.pdu_type use a generic uint32 for detection,
allowing operators, instead of just equality.

13 months agodetect: helper to have pure rust keywords
Philippe Antoine [Fri, 26 Apr 2024 14:31:47 +0000 (16:31 +0200)] 
detect: helper to have pure rust keywords

detect: make number of keywords dynamic

Ticket: 4683

13 months agoenip: remove unnecessary unsafe
Philippe Antoine [Tue, 11 Jun 2024 10:43:50 +0000 (12:43 +0200)] 
enip: remove unnecessary unsafe

As the function SCEnipRegisterParsers is already marked as unsafe

13 months agoprofiling: check packet flag first
Eric Leblond [Wed, 8 Nov 2023 20:20:28 +0000 (21:20 +0100)] 
profiling: check packet flag first

This fixes the state handling and simplify the logic.

13 months agoprofiling: add option to active rules profiling at start
Eric Leblond [Wed, 8 Nov 2023 20:18:33 +0000 (21:18 +0100)] 
profiling: add option to active rules profiling at start

When replaying a pcap file, it is not possible to get rules
profiling because it has to be activated from the unix socket.
This patch adds a new option to be able to activate profiling
collection at start so a pcap run can get rules profiling
information.

13 months agodoc: port user install and build instruction from master-6.0.x
Lukas Sismis [Tue, 16 Jan 2024 14:27:56 +0000 (15:27 +0100)] 
doc: port user install and build instruction from master-6.0.x

Ticket: #6686

13 months agogithub-ci: add minimal build for Ubuntu and AlmaLinux
Lukas Sismis [Thu, 11 Apr 2024 20:55:22 +0000 (22:55 +0200)] 
github-ci: add minimal build for Ubuntu and AlmaLinux

13 months agogithub-ci: remove gosu from installed packages
Lukas Sismis [Thu, 11 Apr 2024 20:54:43 +0000 (22:54 +0200)] 
github-ci: remove gosu from installed packages

13 months agodoc: update eBPF compilation instructions
Lukas Sismis [Tue, 16 Jan 2024 13:47:08 +0000 (14:47 +0100)] 
doc: update eBPF compilation instructions

Ticket: #6599

13 months agodoc/userguide: document iprep isset/isnotset
Victor Julien [Thu, 6 Jun 2024 15:38:55 +0000 (17:38 +0200)] 
doc/userguide: document iprep isset/isnotset

13 months agodoc/userguide: add more operators to iprep
Victor Julien [Thu, 6 Jun 2024 15:38:34 +0000 (17:38 +0200)] 
doc/userguide: add more operators to iprep

13 months agodetect/iprep: update function naming
Victor Julien [Thu, 6 Jun 2024 15:24:20 +0000 (17:24 +0200)] 
detect/iprep: update function naming

Bring in line with new Rust code naming for FFI functions.

13 months agodetect/iprep: implement isset and isnotset
Victor Julien [Mon, 13 May 2024 12:37:51 +0000 (14:37 +0200)] 
detect/iprep: implement isset and isnotset

Implement special "isset" and "isnotset" modes.

"isset" matches if an IP address is part of an iprep category with any
value.

It is internally implemented as ">=,0", which should always be true if
there is a value to evaluate, as valid reputation values are 0-127.

"isnotset" matches if an IP address is not part of an iprep category.

Internally it is implemented outside the uint support.

Ticket: #6857.

13 months agoreputation: minor cleanup
Victor Julien [Mon, 13 May 2024 12:37:02 +0000 (14:37 +0200)] 
reputation: minor cleanup

No need to init ptrs to NULL after SCCalloc.

13 months agodetect/iprep: update keyword parser for extendibility
Victor Julien [Mon, 13 May 2024 10:33:57 +0000 (12:33 +0200)] 
detect/iprep: update keyword parser for extendibility

13 months agomisc: prefix functions with SC not Sc 11275/head
Jason Ish [Fri, 7 Jun 2024 23:28:01 +0000 (17:28 -0600)] 
misc: prefix functions with SC not Sc