You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust
Jeff Lucovsky 09a525659c detect/xor: support a variable key from a byte_extract or byte_math variable
Extend the xor transform to take its key either as a literal hex string
(xor:"<hex>") or as a byte_extract or byte_math variable
(xor:var <name> [<nbytes>]) resolved at inspection time.

For a variable key, setup resolves the variable to its runtime slot and
marks the signature so it stays out of prefilter. At inspection the
transform reads the value from the thread context and renders the low
<nbytes> bytes of that value big-endian, regardless of the keyword's own
endianness.

The optional <nbytes> sets the key width. For a byte_extract variable read
in the default (non-string) mode it defaults to the read width and may be
omitted. A byte_math result, or a string-mode byte_extract, has no inherent
value width, so the width is required there. The buffer-dedup id carries a
leading discriminant so static and variable keys never share an inspection
buffer.

The key option is now optionally quoted (SIGMATCH_QUOTES_OPTIONAL) so the
unquoted 'var <name>' form is accepted alongside the quoted hex key.

Issue: 7847
3 months ago
..
.cargo rust: rename .cargo/config to .cargo/config.toml 2 years ago
derive rust/ffi: move AppLayerEvent to ffi 6 months ago
ffi rust/ffi: specify sys crate dependency version 4 months ago
htp http1: limit the number of compression bombs per flow 4 months ago
src detect/xor: support a variable key from a byte_extract or byte_math variable 3 months ago
suricatactl rust: limit clap verson to 4.5.57 8 months ago
suricatasc rust: pin unicode-segmentation crate to 1.12.0 7 months ago
sys detect/transforms: disqualify variable-key transforms from prefilter 3 months ago
.gitignore rust: rename .cargo/config to .cargo/config.toml 2 years ago
Cargo.lock.in psl: update to latest version 4 months ago
Cargo.toml.in rust: feature debug in main crate enables feature debug in ffi 5 months ago
Makefile.am rust: build depends on ffi/Cargo.toml.in 5 months ago
cbindgen.toml http2: split transaction state machines 4 months ago
rustfmt.toml rustfmt: replace deprecated fn_args_layout with fn_params_layout 3 years ago