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/20201003/v9 #5464

Merged
merged 16 commits into from
Oct 5, 2020
Merged

Next/20201003/v9 #5464

merged 16 commits into from
Oct 5, 2020

Conversation

victorjulien
Copy link
Member

#5463 with commits squashed
#5460
#5457
#5435

PRScript output (if applicable):
Passed

#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

catenacyber and others added 16 commits September 30, 2020 15:02
It a protocol is found in a first direction, we should run the
probing parser, even if it is not in the known ports.

That can happen for HTTP2, where client magic is detected,
then server probe can be run
If a pattern matches in the other direction, after
probing parser finished without finding a protocol,
we will rerun the probing parser, which will include
the newly protocol found by its pattern
Also handles better the state so as not to revert from
HTTP2StateHalfClosedClient to HTTP2StateDataServer and not
go to final HTTP2StateClosed
And evict entries accordingly to maximum size
Fix Rust app-layer generation. Main parser file was being named
gopher.rs instead of the name of the protocol.
This commit changes the size of reporting variables to be dynamic based
on the buffer ids in use instead of a fixed value to address a SEGV when
the fixed value was less than the max buffer/type id in use.
This commit corrects a copy/paste error handling the `include-mpm-stats`
configuration setting.
This commit returns the basename of a file, if it exists
in the same way that `basename(1)` works.
This commit changes the name of the file used with threaded eve logging
to better support log rotation

Instead of using "eve.json.N" and creating potential issues with log
rotation (which also uses a ".N" suffix), the eve logs will be named
"eve.N.json" when threaded.
This avoids a potential casting to uint64_t of -1, leading to a very
high upper bound of the tx loop.
@victorjulien victorjulien requested review from jasonish, norg and a team as code owners October 5, 2020 09:18
@victorjulien victorjulien merged commit e07a439 into OISF:master Oct 5, 2020
@victorjulien victorjulien deleted the next/20201003/v9 branch October 9, 2020 08:03
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 22, 2022
The eve logs have a field alert.action that may say something like
'allowed' even if a packet gets blocked by some other rules. To make
this more clear, add a field with the final verdict of what the engine
did to a given packet in the packet event_type with the action applied
to the packet, no based on a single alert/rule.

Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 22, 2022
The eve logs have a field alert.action that may say something like
'allowed' even if a packet gets blocked by some other rules. To make
this more clear, add a field with the final verdict of what the engine
did to a given packet in the packet event_type with the action applied
to the packet, no based on a single alert/rule.

Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 23, 2022
The eve logs have a field alert.action that may say something like
'allowed' even if a packet gets blocked by some other rules. To make
this more clear, add a field with the final verdict of what the engine
did to a given packet in the packet event_type with the action applied
to the packet, no based on a single alert/rule.

Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 23, 2022
The eve logs have a field alert.action that will say something like
'allowed' even if a packet gets blocked by some other rule. To make
this less ambiguous, added a field to the alert and drop events
indicating the final verdict by the engine for a given packet.

Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jan 5, 2023
The eve logs have a field alert.action that will say something like
'allowed' even if a packet gets blocked by some other rule. To make
this less ambiguous, added a field to the alert and drop events
indicating the final verdict by the engine for a given packet.

Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jun 29, 2023
Add ability to output final verdict for packet, based on matched rules.

Related to
Task OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 6, 2023
Besides having the alert's verdict as a part of the alert event, also
offer the ability to have it as an independent event type.

Related to
Task OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 6, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 6, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 11, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 11, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 11, 2023
If packet->action is never set to 'pass', we won't know if a packet had
a 'pass' verdict.

Related to
Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
If packet->action is never set to 'pass', we won't know if a packet had
a 'pass' verdict.

Related to
Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
If packet->action is never set to 'pass', we won't know if a packet had
a 'pass' verdict.

Related to
Bug OISF#5464
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 12, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 13, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 13, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 13, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 13, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 13, 2023
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request Jul 13, 2023
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request Jul 13, 2023
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 21, 2023
Related to
Bug OISF#5464

(cherry picked from commit 53b8def)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 21, 2023
Related to
Bug OISF#5464

(cherry picked from commit 0437173)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 28, 2023
Related to
Bug OISF#5464

(cherry picked from commit 53b8def)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 28, 2023
Related to
Bug OISF#5464

(cherry picked from commit 0437173)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 28, 2023
Related to
Bug OISF#5464

(cherry picked from commit 0437173)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 31, 2023
Related to
Bug OISF#5464

(cherry picked from commit 53b8def)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jul 31, 2023
Related to
Bug OISF#5464

(cherry picked from commit 0437173)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Aug 1, 2023
Related to
Bug OISF#5464

(cherry picked from commit 53b8def)
jufajardini added a commit to jufajardini/suricata that referenced this pull request Aug 1, 2023
Related to
Bug OISF#5464

(cherry picked from commit 0437173)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants