Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/170/20231116/v1 #9816

Merged
merged 20 commits into from Nov 17, 2023
Merged

Conversation

catenacyber and others added 20 commits November 16, 2023 21:36
Ticket: OISF#6164

flow.pkts_toclient
flow.pkts_toserver
flow.bytes_toclient
flow.bytes_toserver
This commit adds the null output device; to use, set the filetype
to "nullsink" for each output that should discard and never persist
logs/alerts/etc.

This is implemented as an "internal eve output plugin" just like the
syslog eve output type.
Issue: 1520

This commit adds the tenant id for context to rule and .config file
loads.
Add the constants for the to_lowercase and to_uppercase transforms

Issue: 6439
This commit adds the implementation for the case changing transforms:
to_lowercase and to_uppercase

Issue: 6439
Issue: 6439

Clarify the transform validation step. When a transform indicates that
the content/byte-array is not compatible, validation will stop.

Content is incompatible is some cases -- e.g., following the
to_lowercase transform with content containing uppercase characters.
An alert is not possible since the content contains uppercase and the
transform has converted the buffer into all lowercase.
Ticket: OISF#6426

as per RFC 9113
":authority" MUST NOT include the deprecated userinfo subcomponent
for "http" or "https" schemed URIs.
Until now the implementation would scan the stream, fallback to the
packet payload in exception cases, then keep track of where the match
was and in the flow match logic reject the match if it was in the wrong
buffer.

This patch simplifies this logic, by refusing to inspect the packet
payload when `only_stream` is set.

To do this the `only_stream`/`no_stream` options are now translated
to the pseudo protocols `tcp-stream` and `tcp-pkt` at parsing, so that
the `flow` keyword doesn't have to evaluate these conditions anymore.
Use proper inspect engine codes instead of bool.
Update SigTest17 which left a dangling pointer.
Minor optimization that could lead to a reduction in host table
lookups if more than one host feature is in use.
Remove unused thread ctx' from AC variants

Use single thread store in detection.

Minor cleanups.
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Merging #9816 (68a2fca) into master (2f4027c) will decrease coverage by 0.02%.
The diff coverage is 84.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9816      +/-   ##
==========================================
- Coverage   82.37%   82.35%   -0.02%     
==========================================
  Files         968      971       +3     
  Lines      273866   273906      +40     
==========================================
- Hits       225585   225575      -10     
- Misses      48281    48331      +50     
Flag Coverage Δ
fuzzcorpus 64.17% <48.46%> (-0.05%) ⬇️
suricata-verify 61.03% <76.66%> (+0.04%) ⬆️
unittests 62.88% <55.70%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 16571

@victorjulien victorjulien merged commit 68a2fca into OISF:master Nov 17, 2023
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants