]> git.ipfire.org Git - people/ms/suricata.git/log
people/ms/suricata.git
3 years agodetect: Register icmpv4 header
Jeff Lucovsky [Thu, 5 Nov 2020 13:11:17 +0000 (08:11 -0500)] 
detect: Register icmpv4 header

3 years agodetect: Add icmpv4.hdr sticky buffer
Jeff Lucovsky [Wed, 4 Nov 2020 13:31:00 +0000 (08:31 -0500)] 
detect: Add icmpv4.hdr sticky buffer

This commit adds a new sticky buffer to access the ICMPv4 header.

3 years agodetect: New enum for icmpv4 header keyword
Jeff Lucovsky [Thu, 5 Nov 2020 13:10:41 +0000 (08:10 -0500)] 
detect: New enum for icmpv4 header keyword

3 years agodecode: Improved handling of ICMPv4 messages
Jeff Lucovsky [Wed, 4 Nov 2020 13:34:51 +0000 (08:34 -0500)] 
decode: Improved handling of ICMPv4 messages

This commit improves handling of ICMPv4 messages, especially those with
variable sized headers.

This commit also adds a header length variable for use by the new
sticky buffer for the header.

3 years agogithub-ci: fix debian 10 test using rustup
Victor Julien [Sun, 15 Nov 2020 07:06:17 +0000 (08:06 +0100)] 
github-ci: fix debian 10 test using rustup

3 years agodetect: Treat offset as a signed value
Jeff Lucovsky [Sat, 7 Nov 2020 14:53:20 +0000 (09:53 -0500)] 
detect: Treat offset as a signed value

This commit updates the detector to treat 'offset' as a signed value to
be compatible with Snort.

3 years agonapatech: Added comment indicating that hba will be deprecated
Phil Young [Fri, 13 Nov 2020 16:38:36 +0000 (11:38 -0500)] 
napatech: Added comment indicating that hba will be deprecated

HBA will be deprecated in Suricata 7

3 years agonapatech: Add Deprecation Warning Message for HBA
Phil Young [Fri, 13 Nov 2020 16:32:32 +0000 (11:32 -0500)] 
napatech: Add Deprecation Warning Message for HBA

Added a message that HBA will be deprecated in the future and removed
hba from default conf file.

3 years agodoc: provide eve 1 deprecation date
Jason Ish [Fri, 13 Nov 2020 19:15:40 +0000 (13:15 -0600)] 
doc: provide eve 1 deprecation date

3 years agodns: eve 1 deprecation warning
Jason Ish [Fri, 13 Nov 2020 19:15:14 +0000 (13:15 -0600)] 
dns: eve 1 deprecation warning

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4137

3 years agodns: fix leak in dns v1 logging
Jason Ish [Fri, 13 Nov 2020 19:05:48 +0000 (13:05 -0600)] 
dns: fix leak in dns v1 logging

Intermediate JsonBuilder object was not being freed.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4086

3 years agonapatech: Removed restriction on use of inline mode
Phil Young [Thu, 12 Nov 2020 18:19:12 +0000 (13:19 -0500)] 
napatech: Removed restriction on use of inline mode

Removed the unnecessary restriction on the use of inline mode only when
bypass is enabled.  Now, Inline can be used independent of bypass
functionality.

3 years agonapatech: Fix potential double release of packet
Phil Young [Wed, 11 Nov 2020 19:21:39 +0000 (14:21 -0500)] 
napatech: Fix potential double release of packet

This addresses readmine issue #4018.  There was the potential for a packet
buffer to be released twice in response to an error condition.  This
addresses this by only calling NT_NetRxRelease() when the p->ReleasePacket
is called.

3 years agofuzz: better packet recycling in sigpcap target
Philippe Antoine [Fri, 6 Nov 2020 14:56:24 +0000 (15:56 +0100)] 
fuzz: better packet recycling in sigpcap target

need especially to set datalink for every packet

3 years agofuzz: applayer target uses yaml config
Philippe Antoine [Thu, 5 Nov 2020 14:46:54 +0000 (15:46 +0100)] 
fuzz: applayer target uses yaml config

so that every app-layer protocol is enabled

3 years agoci: adds cifuzz workflow
Philippe Antoine [Thu, 5 Nov 2020 13:50:13 +0000 (14:50 +0100)] 
ci: adds cifuzz workflow

3 years agofuzz: adds fuzzing status badge in README
Philippe Antoine [Thu, 5 Nov 2020 10:05:13 +0000 (11:05 +0100)] 
fuzz: adds fuzzing status badge in README

3 years agoeve: do not access flow storage in packet context
Sascha Steinbiss [Sun, 8 Nov 2020 12:08:28 +0000 (13:08 +0100)] 
eve: do not access flow storage in packet context

We must make sure not to access the flow storage (e.g. keeping a
MacSet) before making sure we have a flow to begin with, We can,
for example, run into an alert without a flow with `ip` rules,
in which case the flow might be NULL. See Redmine issue #4109.

3 years agogithub-ci: Improve body parsing
Jeff Lucovsky [Sat, 7 Nov 2020 12:55:19 +0000 (07:55 -0500)] 
github-ci: Improve body parsing

This commit improves handling of the PR body parsing to eliminate
unneeded characters.

3 years agodetect/file-data: Improved support for share bufs
Jeff Lucovsky [Sun, 8 Nov 2020 15:06:19 +0000 (10:06 -0500)] 
detect/file-data: Improved support for share bufs

This commit improves support for shared buffer usage, i.e., when
multiple rules share the file data (http) buffer and apply different
combinations of transforms and fast_patterns (or none).

3 years agogithub-ci: remove deprecated set-env and add-path
Jason Ish [Tue, 13 Oct 2020 21:42:05 +0000 (15:42 -0600)] 
github-ci: remove deprecated set-env and add-path

Use the new methods for setting an environment variable and
updating the PATH.

3 years agomingw: fix format string warnings
Victor Julien [Sat, 31 Oct 2020 19:57:38 +0000 (20:57 +0100)] 
mingw: fix format string warnings

3 years agogithub-ci: add windows build with suricata-verify
Victor Julien [Thu, 29 Oct 2020 07:02:50 +0000 (08:02 +0100)] 
github-ci: add windows build with suricata-verify

Initial attempt with a few hacks:
- npcap dlls are extracted from the installer and placed in cwd
- cbindgen is installed system wide desipte a preinstalled copy

This does not yet hook into the "prep" build from build.yaml or
support using custom support PRs/branches (SV, SU).

3 years agoappveyor: remove in favor of github-ci
Victor Julien [Wed, 28 Oct 2020 17:00:37 +0000 (18:00 +0100)] 
appveyor: remove in favor of github-ci

3 years agodetect/mpm: fix id confusion in mpm_ctx sharing
Victor Julien [Tue, 27 Oct 2020 07:16:25 +0000 (08:16 +0100)] 
detect/mpm: fix id confusion in mpm_ctx sharing

Mixing of dynamic id's and hardcoded config values could possibly
lead to the settings not getting applied properly.

3 years agodetect/mpm: improve transforms handling
Victor Julien [Mon, 26 Oct 2020 20:14:43 +0000 (21:14 +0100)] 
detect/mpm: improve transforms handling

Make sure keywords with transforms get their own mpm ctx, instead of
sharing it with the 'pure' version of the keyword.

3 years agodetect/mpm: rename variable to ease code review
Victor Julien [Mon, 26 Oct 2020 13:27:13 +0000 (14:27 +0100)] 
detect/mpm: rename variable to ease code review

3 years agodcerpc/udp: add missing tx free logic
Victor Julien [Fri, 23 Oct 2020 09:11:03 +0000 (11:11 +0200)] 
dcerpc/udp: add missing tx free logic

3 years agodcerpc: fix stream flag handling
Victor Julien [Fri, 23 Oct 2020 08:26:42 +0000 (10:26 +0200)] 
dcerpc: fix stream flag handling

Only hardcoded direction flags were passed to the parser, not the
full range.

Handle receiving an EOF flag w/o data.

Bug: #3856

3 years agodcerpc/tcp: fix compile warning
Victor Julien [Fri, 23 Oct 2020 05:45:50 +0000 (07:45 +0200)] 
dcerpc/tcp: fix compile warning

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1036:42
     |
1036 |                     let tx = if let Some(mut tx) = self.get_tx_by_call_id(current_call_id, core::STREAM_TOCLIENT) {
     |                                          ----^^
     |                                          |
     |                                          help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1061:30
     |
1061 |                         Some(mut tx) => {
     |                              ----^^
     |                              |
     |                              help: remove this `mut`

3 years agodcerpc/tcp: add missing detect state cleanup
Victor Julien [Fri, 23 Oct 2020 05:44:28 +0000 (07:44 +0200)] 
dcerpc/tcp: add missing detect state cleanup

3 years agodetect/magic: fix crash on rule reloading
Angelo Mirabella [Tue, 26 May 2020 17:00:06 +0000 (18:00 +0100)] 
detect/magic: fix crash on rule reloading

This changseset fixes a bug causing a segmentation fault.
When rules are reloaded and a rule using libmagic matches, suricata
crashes due to an improper reinitialization of the thread contexts.

Bug: #3726

3 years agounix-socket: fix alert metadata logging
Angelo Mirabella [Wed, 11 Mar 2020 15:11:19 +0000 (15:11 +0000)] 
unix-socket: fix alert metadata logging

This changeset fixes a bug that was preventing suricata to dump
alert metadata info when running in unix-socket mode.
When running in unix-socket mode, suricata was skipping the
initialization of the output modules and, as a consequence,
the metadata output module was never invoked.

3 years agoalert/syslog: fix minor compile warning
Victor Julien [Thu, 22 Oct 2020 14:10:14 +0000 (16:10 +0200)] 
alert/syslog: fix minor compile warning

3 years agostream: harden data size handling
Victor Julien [Wed, 21 Oct 2020 18:22:50 +0000 (20:22 +0200)] 
stream: harden data size handling

Handle edge cases around ACKs and last_ack getting below
'app_progress', which can happen during shutdown of a flow
with multiple GAPs.

3 years agostream: bail early if no data after a gap
Victor Julien [Wed, 21 Oct 2020 18:27:18 +0000 (20:27 +0200)] 
stream: bail early if no data after a gap

3 years agostream: harden data size handling
Victor Julien [Wed, 21 Oct 2020 18:22:50 +0000 (20:22 +0200)] 
stream: harden data size handling

3 years agostream: don't send STREAM_START multiple times
Victor Julien [Wed, 21 Oct 2020 17:58:23 +0000 (19:58 +0200)] 
stream: don't send STREAM_START multiple times

3 years agodetect/content: add more negation tests
Victor Julien [Wed, 21 Oct 2020 13:46:58 +0000 (15:46 +0200)] 
detect/content: add more negation tests

3 years agodnp3: reword warning message
Victor Julien [Tue, 20 Oct 2020 09:58:14 +0000 (11:58 +0200)] 
dnp3: reword warning message

3 years agodefrag: fix pthread warning on OpenBSD
Victor Julien [Tue, 20 Oct 2020 09:57:56 +0000 (11:57 +0200)] 
defrag: fix pthread warning on OpenBSD

3 years agoconfigure: remove left over reference to unified2
Victor Julien [Fri, 9 Oct 2020 12:48:40 +0000 (14:48 +0200)] 
configure: remove left over reference to unified2

3 years agodoc/rules: document config rule option
Victor Julien [Thu, 24 Sep 2020 09:33:07 +0000 (11:33 +0200)] 
doc/rules: document config rule option

3 years agoversion: start development towards 6.0.1
Victor Julien [Fri, 9 Oct 2020 11:30:15 +0000 (13:30 +0200)] 
version: start development towards 6.0.1

3 years agoversion: update to 6.0.0, require libhtp 0.5.35
Victor Julien [Wed, 7 Oct 2020 11:30:16 +0000 (13:30 +0200)] 
version: update to 6.0.0, require libhtp 0.5.35

3 years agochangelog: update for 6.0.0 final
Victor Julien [Wed, 7 Oct 2020 11:29:37 +0000 (13:29 +0200)] 
changelog: update for 6.0.0 final

3 years agologrotate: reindent to 4 spaces
Jason Ish [Wed, 23 Sep 2020 16:51:58 +0000 (10:51 -0600)] 
logrotate: reindent to 4 spaces

4 spaces seems to be the norm on Linux, so reindent from a mix
of 8 spaces and tabs to 4 spaces.

3 years agosignature: checks protocol for file.name keyword
Philippe Antoine [Thu, 17 Sep 2020 13:22:49 +0000 (15:22 +0200)] 
signature: checks protocol for file.name keyword

By setting the flags as for the filename keyword (not sticky version)

3 years agodnp3: more precise probing for banners
Philippe Antoine [Wed, 30 Sep 2020 20:04:32 +0000 (22:04 +0200)] 
dnp3: more precise probing for banners

3 years agodnp3: fix probing test not using final null in string
Philippe Antoine [Tue, 6 Oct 2020 11:46:47 +0000 (13:46 +0200)] 
dnp3: fix probing test not using final null in string

3 years agohttp2: asymetric sizes for headers tables
Philippe Antoine [Tue, 6 Oct 2020 07:46:14 +0000 (09:46 +0200)] 
http2: asymetric sizes for headers tables

The headers table from client to server
and the one from server to client
may have different maximum sizes
(even if both endpoints have to keep both tables)

3 years agossl: do not reuse struct session_id_length
Philippe Antoine [Fri, 31 Jul 2020 11:33:01 +0000 (13:33 +0200)] 
ssl: do not reuse struct session_id_length

As it can be confused between SSLv2 and TLSv13
In SSLv2, this variable is not used after the function scope, so
we can use a temporary variable.

3 years agosmb: resistance against padding evasions
Philippe Antoine [Tue, 14 Apr 2020 12:24:22 +0000 (14:24 +0200)] 
smb: resistance against padding evasions

Scenario is use of dummy padding in write AndX request
or other similar commands using a data offset.

Parsing skips now these dummy bytes, and generates one event

3 years agosmb: adds file overlap event against evasions
Philippe Antoine [Tue, 14 Apr 2020 08:30:33 +0000 (10:30 +0200)] 
smb: adds file overlap event against evasions

Evasion scenario is
- a first dummy write of one byte at offset 0 is done
- the second full write of EICAR at offset 0 is then done
and does not trigger detection

The last write had the final value, and as we cannot "cancel"
the previous write, we set an event which is then transformed into
an app-layer decoder alert

3 years agordp: fix incomplete result
Philippe Antoine [Thu, 1 Oct 2020 07:54:13 +0000 (09:54 +0200)] 
rdp: fix incomplete result

Aggregating the consumed bytes

3 years agodetect: fix use of uninit memory in DetectDatarepParse
Philippe Antoine [Thu, 1 Oct 2020 13:21:47 +0000 (15:21 +0200)] 
detect: fix use of uninit memory in DetectDatarepParse

By initializing to empty string

3 years agoutil: fix warning about format string for integer
Philippe Antoine [Thu, 24 Sep 2020 13:28:58 +0000 (15:28 +0200)] 
util: fix warning about format string for integer

3 years agoutil: THashInitConfig limits hash size when fuzzing
Philippe Antoine [Thu, 17 Sep 2020 08:51:29 +0000 (10:51 +0200)] 
util: THashInitConfig limits hash size when fuzzing

3 years agoutil: THashInitConfig does not exit but return error
Philippe Antoine [Thu, 17 Sep 2020 08:18:39 +0000 (10:18 +0200)] 
util: THashInitConfig does not exit but return error

3 years agoenip: set unidirection transaction flag
Jason Ish [Mon, 5 Oct 2020 21:05:41 +0000 (15:05 -0600)] 
enip: set unidirection transaction flag

3 years agodhcp: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:47:17 +0000 (13:47 -0600)] 
dhcp: set unidirection transaction flag

3 years agoikev2: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:47:10 +0000 (13:47 -0600)] 
ikev2: set unidirection transaction flag

3 years agomqtt: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:43:53 +0000 (13:43 -0600)] 
mqtt: set unidirection transaction flag

3 years agosip: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:32:13 +0000 (13:32 -0600)] 
sip: set unidirection transaction flag

3 years agordp: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:31:56 +0000 (13:31 -0600)] 
rdp: set unidirection transaction flag

3 years agokrb5: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:30:46 +0000 (13:30 -0600)] 
krb5: set unidirection transaction flag

3 years agontp: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:05:09 +0000 (13:05 -0600)] 
ntp: set unidirection transaction flag

3 years agosnmp: set unidirectional transaction flag
Jason Ish [Tue, 18 Aug 2020 16:40:00 +0000 (10:40 -0600)] 
snmp: set unidirectional transaction flag

3 years agoapp-layer: handle unidirectional transactions
Jason Ish [Tue, 18 Aug 2020 16:39:42 +0000 (10:39 -0600)] 
app-layer: handle unidirectional transactions

3 years agossl: adds safety checks
Philippe Antoine [Tue, 16 Jun 2020 11:54:46 +0000 (13:54 +0200)] 
ssl: adds safety checks

Ensure the client version is valid by checking hello flags

Ensure no integer underflow occurs in SSLv3ParseHandshakeType

3 years agodetect/transform: Validator for compress-ws
Jeff Lucovsky [Tue, 8 Sep 2020 13:38:13 +0000 (09:38 -0400)] 
detect/transform: Validator for compress-ws

This commit adds a buffer validator for compress whitespace. Buffers
containing two or more consecutive whitespace characters are invalid
with this transform.

3 years agodetect: Correct typo
Jeff Lucovsky [Thu, 7 May 2020 13:18:02 +0000 (09:18 -0400)] 
detect: Correct typo

3 years agodetect/file-data: Apply transforms on file_data
Jeff Lucovsky [Thu, 7 May 2020 13:17:05 +0000 (09:17 -0400)] 
detect/file-data: Apply transforms on file_data

This commit cause transforms to be applied on the sticky buffer.

3 years agohttp: error check htp_list_size
Victor Julien [Mon, 5 Oct 2020 06:17:19 +0000 (08:17 +0200)] 
http: error check htp_list_size

This avoids a potential casting to uint64_t of -1, leading to a very
high upper bound of the tx loop.

3 years agodoc/eve: Update threaded filename examples
Jeff Lucovsky [Mon, 28 Sep 2020 12:24:17 +0000 (08:24 -0400)] 
doc/eve: Update threaded filename examples

3 years agooutput/json: Update threaded filename example
Jeff Lucovsky [Sat, 26 Sep 2020 12:29:43 +0000 (08:29 -0400)] 
output/json: Update threaded filename example

3 years agolog/eve: Threaded filename change: eve.N.json
Jeff Lucovsky [Fri, 25 Sep 2020 11:47:53 +0000 (07:47 -0400)] 
log/eve: Threaded filename change: eve.N.json

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.

3 years agopath: SCBasename - function to return basename
Jeff Lucovsky [Wed, 30 Sep 2020 11:30:34 +0000 (07:30 -0400)] 
path: SCBasename - function to return basename

This commit returns the basename of a file, if it exists
in the same way that `basename(1)` works.

3 years agodetect/rules: Fix copy/paste error
Jeff Lucovsky [Wed, 23 Sep 2020 12:15:41 +0000 (08:15 -0400)] 
detect/rules: Fix copy/paste error

This commit corrects a copy/paste error handling the `include-mpm-stats`
configuration setting.

3 years agodetect: Apply clang-format updates
Jeff Lucovsky [Sat, 19 Sep 2020 14:06:59 +0000 (10:06 -0400)] 
detect: Apply clang-format updates

3 years agodetect/rules: Increase array size to remove SEGV
Jeff Lucovsky [Sat, 19 Sep 2020 12:47:56 +0000 (08:47 -0400)] 
detect/rules: Increase array size to remove SEGV

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.

3 years agoscripts/setup-app-layer: fix rust generation
Jason Ish [Wed, 30 Sep 2020 17:18:46 +0000 (11:18 -0600)] 
scripts/setup-app-layer: fix rust generation

Fix Rust app-layer generation. Main parser file was being named
gopher.rs instead of the name of the protocol.

3 years agohttp2: complete parsing of priority frames
Philippe Antoine [Thu, 1 Oct 2020 13:10:27 +0000 (15:10 +0200)] 
http2: complete parsing of priority frames

3 years agohttp2: keep track of dynamic headers table size
Philippe Antoine [Wed, 30 Sep 2020 21:29:36 +0000 (23:29 +0200)] 
http2: keep track of dynamic headers table size

And evict entries accordingly to maximum size

3 years agohttp2: variable size integers decoded everywhere
Philippe Antoine [Wed, 30 Sep 2020 19:41:24 +0000 (21:41 +0200)] 
http2: variable size integers decoded everywhere

3 years agohttp2: StreamIdReuse frame types exceptions
Philippe Antoine [Wed, 30 Sep 2020 12:23:11 +0000 (14:23 +0200)] 
http2: StreamIdReuse frame types exceptions

Also handles better the state so as not to revert from
HTTP2StateHalfClosedClient to HTTP2StateDataServer and not
go to final HTTP2StateClosed

3 years agohttp2: use variable integer for headers lengths
Philippe Antoine [Thu, 17 Sep 2020 20:48:52 +0000 (22:48 +0200)] 
http2: use variable integer for headers lengths

3 years agoprotodetect: rerun probing parser if pattern matched
Philippe Antoine [Fri, 18 Sep 2020 12:44:40 +0000 (14:44 +0200)] 
protodetect: rerun probing parser if pattern matched

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

3 years agoprotodetect: runs probing parser on protocol found
Philippe Antoine [Thu, 17 Sep 2020 14:52:13 +0000 (16:52 +0200)] 
protodetect: runs probing parser on protocol found

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

3 years agoapplayer: fix a leak in protocol change
Philippe Antoine [Mon, 28 Sep 2020 08:27:20 +0000 (10:27 +0200)] 
applayer: fix a leak in protocol change

TCPProtoDetect can either set f->alproto, change f->alstate
and return error.

When the original alstate gets freed, we shall set the pointer
to NULL, as it can get reused.

3 years agodcerpc: fix gap handling
Shivani Bhardwaj [Wed, 23 Sep 2020 04:50:56 +0000 (10:20 +0530)] 
dcerpc: fix gap handling

This patch addresses issues discovered by redmine ticket 3896. With the
approach of finding latest record, there was a chance that no record was
found at all and consumed + needed became input length.

e.g.
input_len = 1000
input = 01 05 00 02 00 03 a5 56 00 00 .....

There exists no |05 00| identifier in the rest of the record. After
having parsed |05 00|, there was a search for another record with the
leftover data. Current data length at this point would be 997. Since the
identifier was not found in the data, we calculate the consumed bytes at
this point i.e. consumed = current_data.len() - 1 which would be 996.
Needed bytes still stay at a constant of 2. So, consumed + needed = 996
+ 2 = 998 which is lesser than initial input length of 1000 and hence
the assertion fails.

There could be two fixes to this problem.
1. Finding the latest record but making use of the last found record in
   case no new record was found.
2. Always use the earliest record.

This patch takes the approach (2). It also makes sure that the gap and
current direction are the same.

3 years agofuzz: better configure checks for MSAN building
Philippe Antoine [Thu, 17 Sep 2020 10:07:29 +0000 (12:07 +0200)] 
fuzz: better configure checks for MSAN building

More compatible check for rust nightly
Checks for CARGO_BUILD_TARGET
Builds release or debug mode independently

3 years agolog/anomaly: Move metadata out of anomaly section
Jeff Lucovsky [Fri, 18 Sep 2020 11:53:10 +0000 (07:53 -0400)] 
log/anomaly: Move metadata out of anomaly section

This commit moves the metadata from the anomaly object where it was
incorrectly located.

3 years agodoc/userguide: add info about --set and lists
Jason Ish [Wed, 16 Sep 2020 16:50:05 +0000 (10:50 -0600)] 
doc/userguide: add info about --set and lists

3 years agoapp-layer: improve depth handling
Victor Julien [Mon, 21 Sep 2020 19:44:36 +0000 (21:44 +0200)] 
app-layer: improve depth handling

Consider txs inspected and done for a direction after depth is reached for
that direction.

3 years agostream: make sure to call app-layer in case of depth reached
Victor Julien [Mon, 21 Sep 2020 07:12:55 +0000 (09:12 +0200)] 
stream: make sure to call app-layer in case of depth reached

3 years agodcerpc: implement tx free function
Victor Julien [Sat, 19 Sep 2020 18:57:35 +0000 (20:57 +0200)] 
dcerpc: implement tx free function

3 years agodcerpc/tcp: implement trunc logic
Victor Julien [Sat, 19 Sep 2020 18:44:40 +0000 (20:44 +0200)] 
dcerpc/tcp: implement trunc logic

When one side of the connection reaches the STREAM_DEPTH condition the
parser should be aware of this. Otherwise transactions will forever be
waiting for data in that direction.

3 years agoapplayer/rust: expose truncate callback
Victor Julien [Sat, 19 Sep 2020 18:25:05 +0000 (20:25 +0200)] 
applayer/rust: expose truncate callback

3 years agoapp-layer: don't check tx detect flags if detect is disabled
Victor Julien [Sat, 19 Sep 2020 13:50:47 +0000 (15:50 +0200)] 
app-layer: don't check tx detect flags if detect is disabled