]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
6 years agodns: shrink per flow state by improving layout 3493/head
Victor Julien [Sun, 30 Sep 2018 07:37:24 +0000 (09:37 +0200)] 
dns: shrink per flow state by improving layout

6 years agodetect/ttl: major clean up of ttl code
Victor Julien [Sat, 29 Sep 2018 07:44:06 +0000 (09:44 +0200)] 
detect/ttl: major clean up of ttl code

Redo unittests using FAIL/PASS macros
Switch parsing to pcre_copy_substring.
Misc cleanups.

6 years agospelling: fixing minor spelling mistakes
Victor Julien [Sat, 29 Sep 2018 07:42:14 +0000 (09:42 +0200)] 
spelling: fixing minor spelling mistakes

6 years agoyaml: fix typo
Victor Julien [Fri, 28 Sep 2018 19:51:08 +0000 (21:51 +0200)] 
yaml: fix typo

6 years agoconfigure: Fixed "no" output for XDP, libnss, libnspr
Hilko Bengen [Tue, 25 Sep 2018 12:16:50 +0000 (14:16 +0200)] 
configure: Fixed "no" output for XDP, libnss, libnspr

6 years agosuricata: file existence check (bug #2615)
Danny Browning [Tue, 18 Sep 2018 16:05:03 +0000 (10:05 -0600)] 
suricata: file existence check (bug #2615)

Files and directories passed via command line option -r should be checked for
existence during command line parsing and not start additional suricata
functionality.

6 years agoconfig: added ja3 to tls custom logging example 3492/head
jason taylor [Fri, 28 Sep 2018 20:40:01 +0000 (16:40 -0400)] 
config: added ja3 to tls custom logging example

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agotlslog: don't log as "resumed" without ServerHello 3488/head
Mats Klepsland [Fri, 21 Sep 2018 06:03:26 +0000 (08:03 +0200)] 
tlslog: don't log as "resumed" without ServerHello

Don't log a session as "resumed" if a ServerHello record has not been
seen. This makes sure that incomplete TLS sessions where the ClientHello
contains a session ticket, is not logged as a session resumption.

6 years agooutput-json-tls: don't log as "resumed" without ServerHello
Mats Klepsland [Fri, 21 Sep 2018 05:57:34 +0000 (07:57 +0200)] 
output-json-tls: don't log as "resumed" without ServerHello

Don't log a session as "resumed" if a ServerHello record has not been
seen. This makes sure that incomplete TLS sessions where the ClientHello
contains a session ticket, is not logged as a session resumption.

6 years agoapp-layer-ssl: remove unnecessary length check
Mats Klepsland [Fri, 21 Sep 2018 05:25:19 +0000 (07:25 +0200)] 
app-layer-ssl: remove unnecessary length check

We already check that empty extensions are not decoded, so this length
check is not needed.

6 years agosetup-app-layer: support tests in tests/ 3487/head
Victor Julien [Wed, 19 Sep 2018 19:25:16 +0000 (21:25 +0200)] 
setup-app-layer: support tests in tests/

6 years agosetup-app-layer.py: integrate detect buffer setup
Jason Ish [Wed, 19 Sep 2018 05:51:37 +0000 (23:51 -0600)] 
setup-app-layer.py: integrate detect buffer setup

Add --detect to setup a detect buffer.

Obsoletes setup-app-layer-detect.sh.

6 years agorust: app-layer detect template for rust parsers
Jason Ish [Wed, 19 Sep 2018 17:15:47 +0000 (11:15 -0600)] 
rust: app-layer detect template for rust parsers

6 years agosetup-app-layer.py: attempt to cd into correct directory
Jason Ish [Wed, 19 Sep 2018 05:01:08 +0000 (23:01 -0600)] 
setup-app-layer.py: attempt to cd into correct directory

- If in src, cd to ..
- Error out early if the current directory does not look like a
  Suricata source directory.

6 years agorust app layer template: functions to get buffers
Jason Ish [Wed, 19 Sep 2018 04:35:20 +0000 (22:35 -0600)] 
rust app layer template: functions to get buffers

Example functions for getting the request and response buffers.
Useful for running detection on the decoded buffers.

6 years agorust template parser: sample pcap
Jason Ish [Tue, 18 Sep 2018 15:59:19 +0000 (09:59 -0600)] 
rust template parser: sample pcap

6 years agorust: app-layer template parser and logger
Jason Ish [Fri, 31 Aug 2018 05:20:21 +0000 (23:20 -0600)] 
rust: app-layer template parser and logger

The protocol is a simple request/reply based protocol that can
be hand driven with netcat.

Request  -> 12:Hello World!
Response -> 3:Byte

Its of the format <length>:<message> where length is the length
of the message, not including the length or the delimiter.

6 years agorustfmt.toml: set to 80 char line width
Jason Ish [Tue, 18 Sep 2018 02:35:14 +0000 (20:35 -0600)] 
rustfmt.toml: set to 80 char line width

The rustfmt default is 100, set to 80 to be more inline with
the Suricata C code.

6 years agorust: expose AppLayerParserStateIssetFlag to Rust.
Jason Ish [Thu, 30 Aug 2018 19:14:54 +0000 (13:14 -0600)] 
rust: expose AppLayerParserStateIssetFlag to Rust.

6 years agorust/gen-c-headers: don't attempt to split empty lines
Jason Ish [Thu, 30 Aug 2018 18:55:33 +0000 (12:55 -0600)] 
rust/gen-c-headers: don't attempt to split empty lines

6 years agotemplates: C stub output for Rust logger
Jason Ish [Thu, 30 Aug 2018 15:34:18 +0000 (09:34 -0600)] 
templates: C stub output for Rust logger

6 years agotemplates: C stub template for Rust parser
Jason Ish [Tue, 28 Aug 2018 13:12:45 +0000 (07:12 -0600)] 
templates: C stub template for Rust parser

6 years agodetect/template2: setup script
Victor Julien [Wed, 19 Sep 2018 16:49:15 +0000 (18:49 +0200)] 
detect/template2: setup script

6 years agodetect/template2: template with prefilter (copy of ttl)
Victor Julien [Wed, 19 Sep 2018 16:48:53 +0000 (18:48 +0200)] 
detect/template2: template with prefilter (copy of ttl)

6 years agodecode/template: minor updates
Victor Julien [Wed, 19 Sep 2018 15:07:01 +0000 (17:07 +0200)] 
decode/template: minor updates

6 years agosetup-app-layer-detect: update for tests/ dir
Victor Julien [Wed, 19 Sep 2018 14:34:44 +0000 (16:34 +0200)] 
setup-app-layer-detect: update for tests/ dir

6 years agosetup-simple-detect: update for new tests location
Victor Julien [Wed, 19 Sep 2018 14:17:02 +0000 (16:17 +0200)] 
setup-simple-detect: update for new tests location

6 years agoscripts/setup: remove 'ed' based setup scripts
Jason Ish [Thu, 30 Aug 2018 14:19:35 +0000 (08:19 -0600)] 
scripts/setup: remove 'ed' based setup scripts

Removes:
- setup-app-layer.sh
- setup-app-layer-logger.sh

These have been replaced by setup-app-layer.py.

6 years agosetup-app-layer: rewrite script in Python
Jason Ish [Wed, 29 Aug 2018 17:49:57 +0000 (11:49 -0600)] 
setup-app-layer: rewrite script in Python

The idea being that it is easier to read and maintain than
wrapping ed commands.

This script also merges the parser and logger setup into a single
script, but still allows just the parser, or just the logger
to be generated with flags, --logger and --parser.

6 years agoapp-layer/template: code cleanups
Victor Julien [Tue, 18 Sep 2018 12:50:59 +0000 (14:50 +0200)] 
app-layer/template: code cleanups

6 years agodetect/template: clean up packet keyword
Victor Julien [Tue, 18 Sep 2018 08:11:08 +0000 (10:11 +0200)] 
detect/template: clean up packet keyword

6 years agodetect/template: move test to own file in src/tests/
Victor Julien [Mon, 17 Sep 2018 15:26:52 +0000 (17:26 +0200)] 
detect/template: move test to own file in src/tests/

6 years agodetect/template: switch to v2 API, add MPM
Victor Julien [Mon, 17 Sep 2018 15:15:13 +0000 (17:15 +0200)] 
detect/template: switch to v2 API, add MPM

6 years agodetect/template: clean up unittest
Victor Julien [Mon, 17 Sep 2018 14:44:55 +0000 (16:44 +0200)] 
detect/template: clean up unittest

6 years agodetect/analyzer: disable automatic json output 3486/head
Jacob Masen-Smith [Fri, 11 May 2018 19:27:31 +0000 (12:27 -0700)] 
detect/analyzer: disable automatic json output

EngineAnalysisRules2 was in a strange location where it did not respect
the --engine-analysis flag. It has been moved to the same call location
as EngineAnalysisRules.

6 years agodetect/analyzer: add notes (and warnings)
Victor Julien [Tue, 11 Sep 2018 13:19:29 +0000 (15:19 +0200)] 
detect/analyzer: add notes (and warnings)

6 years agohttp: implement min size stream logic
Victor Julien [Fri, 17 Aug 2018 15:53:16 +0000 (17:53 +0200)] 
http: implement min size stream logic

Update HTTP parser to set the min inspect depth per transaction. This
allows for signatures to have their fast_pattern in the HTTP body,
while still being able to inspect the raw stream reliably with it.

The inspect depth is set per transaction as it:
- depends on the per personality config for min inspect size
- is set to the size of the actual body if it is smaller

After the initial inspection is done, it is set to 0 which disables
the feature for the rest of the transaction.

This removes the rescanning flush logic in commit
7e004f52c60c5e4d7cd8f5ed09491291d18f42d2 and provides an alternative
fix for bug #2522. The old approach caused too much rescanning of
HTTP body data leading to a performance degradation.

Bug #2522

6 years agostream: introduce min inspect depth logic
Victor Julien [Fri, 17 Aug 2018 08:41:51 +0000 (10:41 +0200)] 
stream: introduce min inspect depth logic

Some rules need to inspect both raw stream data and higher level
buffers together. When this higher level buffer is a streaming
buffer itself, the risk of mismatch exists.

This patch allows an app-layer parser to set a 'min inspect depth'.
The value is used by the stream engine to keep at least this
depth worth of data, so that the detection engine can request
all of it for inspection.

For rules that have the SIG_FLAG_FLUSH flag set, data is inspected
not from offset raw_progress, but from raw_progress minus
min_inspect_depth.

At this time this is only used for sigs that have their fast_pattern
in a HTTP body and have raw stream match as well.

6 years agodefrag: break out of loop in linux profile when able to 3479/head
Jason Ish [Fri, 14 Sep 2018 05:11:14 +0000 (23:11 -0600)] 
defrag: break out of loop in linux profile when able to

6 years agodefrag: remove fragments that have complete overlap
Jason Ish [Thu, 13 Sep 2018 19:09:20 +0000 (13:09 -0600)] 
defrag: remove fragments that have complete overlap

Instead of just marking fragments that have been completely
overlapped and won't be part of the assembled packet, remove
them from the fragment tree when detected.

6 years agodefrag: use rb tree to store fragments
Jason Ish [Mon, 3 Sep 2018 22:53:47 +0000 (16:53 -0600)] 
defrag: use rb tree to store fragments

6 years agounittests: fix format-truncation warning
Victor Julien [Thu, 13 Sep 2018 10:18:32 +0000 (12:18 +0200)] 
unittests: fix format-truncation warning

6 years agostream/segments: change packing to reduce size
Victor Julien [Thu, 30 Aug 2018 15:25:54 +0000 (17:25 +0200)] 
stream/segments: change packing to reduce size

Change the way fields are ordered to reduce TcpSegment structure
with 8 bytes.

6 years agostream/segments: keep track of tree right edge
Victor Julien [Tue, 28 Aug 2018 12:02:40 +0000 (14:02 +0200)] 
stream/segments: keep track of tree right edge

Use this in places where we need to use the outer right
edge of our sequence space.

This way we can avoid walking the tree to find this, which
is a potentially expensive operation.

6 years agostreaming/sbb: convert RB_MIN to 'head'
Victor Julien [Wed, 29 Aug 2018 13:31:39 +0000 (15:31 +0200)] 
streaming/sbb: convert RB_MIN to 'head'

6 years agostreaming: keep track of tree 'head'
Victor Julien [Wed, 29 Aug 2018 13:13:31 +0000 (15:13 +0200)] 
streaming: keep track of tree 'head'

6 years agostreaming: use rbtree for stream blocks
Victor Julien [Mon, 27 Aug 2018 06:11:54 +0000 (08:11 +0200)] 
streaming: use rbtree for stream blocks

Switch StreamBufferBlocks implementation to use RBTREE instead of
a list. This makes inserts/removals and lookups a lot cheaper if
the number of data gaps is large.

Use separate compare functions for inserts and regular lookups.
Inserts care about the offset, while lookups care about the blocks
right edge as well.

6 years agostream/sack: optimize SACK size handling
Victor Julien [Mon, 27 Aug 2018 07:01:16 +0000 (09:01 +0200)] 
stream/sack: optimize SACK size handling

Optimize by keeping count during insert/remove instead of
walking the tree per check.

6 years agostream/sack: turn SACK record list into rbtree
Victor Julien [Sun, 26 Aug 2018 08:14:18 +0000 (10:14 +0200)] 
stream/sack: turn SACK record list into rbtree

Convert to rbtree from linked list. These ranges, of which there can
be multiple per packet, are fully controlled by an attacked. The
attacker could craft a stream of packet in such a way that the list
would grow very large. This would make inserts/removals very expensive,
as well as the list walk that is done and size calculation and pruning
operations.

The RBTREE makes inserts/removals much cheaper, at a slight overhead
for 'normal' operations and slightly higher per record memory use.

6 years agostream/segments: speed up inserts
Victor Julien [Mon, 27 Aug 2018 20:55:19 +0000 (22:55 +0200)] 
stream/segments: speed up inserts

Don't try to do a 'fast path' by checking RB_MAX. RB_MAX walks the
tree which means it can be quite expensive. This cost would be paid
for virtually every data segment. The actual insert that follows would
walk the tree again.

Instead, simply insert it. There is a slight cost of the unnecessary
overlap check, but this is much less than the tree walk in a full
tree.

6 years agostream/segments: remove RB_MIN/RB_MAX
Victor Julien [Tue, 28 Aug 2018 09:50:23 +0000 (11:50 +0200)] 
stream/segments: remove RB_MIN/RB_MAX

6 years agostream/segments: optimize overlap tree operations
Victor Julien [Mon, 27 Aug 2018 10:26:11 +0000 (12:26 +0200)] 
stream/segments: optimize overlap tree operations

Now that with the RBTREE we have a properly sorted Segment tree,
where with exact SEQ matches the tree is sorted by payload_len
smallest to largest, we can avoid walking backwards when checking
for overlaps. Our direct RB_PREV either overlaps or not and that
is a reliable verdict for the rest of the tree.

6 years agostream/segments: turn linked list into rbtree
Victor Julien [Thu, 23 Aug 2018 15:27:08 +0000 (17:27 +0200)] 
stream/segments: turn linked list into rbtree

To improve worst case performance turn the segments list into a rbtree.
This greatly improves inserts, lookups and removals if the number of
segments gets very large.

The tree is sorted by the segment sequence number as its primary key.
If 2 segments have the same seq, the payload_len (segment length) is
used. Then the larger segment will be places after the smaller segment.
Exact matches are not added to the tree.

6 years agotree: add scan-build assertions to suppress FPs
Victor Julien [Tue, 11 Sep 2018 12:54:29 +0000 (14:54 +0200)] 
tree: add scan-build assertions to suppress FPs

6 years agotree: add 2-clause BSD licensed tree.h
Victor Julien [Thu, 23 Aug 2018 11:53:03 +0000 (13:53 +0200)] 
tree: add 2-clause BSD licensed tree.h

6 years agostream: expand GAP detection
Victor Julien [Thu, 30 Aug 2018 13:03:34 +0000 (15:03 +0200)] 
stream: expand GAP detection

6 years agodetect/mpm: minor code cleanup
Victor Julien [Tue, 11 Sep 2018 13:16:10 +0000 (15:16 +0200)] 
detect/mpm: minor code cleanup

6 years agodetect/file: fix minor scan-build warnings
Victor Julien [Wed, 12 Sep 2018 12:47:55 +0000 (14:47 +0200)] 
detect/file: fix minor scan-build warnings

6 years agostream/tcp: be more liberal in last_ack
Victor Julien [Sun, 2 Sep 2018 09:34:42 +0000 (11:34 +0200)] 
stream/tcp: be more liberal in last_ack

Don't set even if seq is before next_seq, as this could still be
a valid packet that was sent before the state was reached.

6 years agostream/tcp: add debug statements to state dispatcher
Victor Julien [Sun, 2 Sep 2018 09:34:22 +0000 (11:34 +0200)] 
stream/tcp: add debug statements to state dispatcher

6 years agoapp-layer-ssl: don't decode empty extensions 3478/head
Mats Klepsland [Sat, 15 Sep 2018 12:01:11 +0000 (14:01 +0200)] 
app-layer-ssl: don't decode empty extensions

6 years agodoc: add documentation for Lua function 'TlsGetVersion'
Mats Klepsland [Tue, 28 Aug 2018 20:54:07 +0000 (22:54 +0200)] 
doc: add documentation for Lua function 'TlsGetVersion'

6 years agolua: add function 'TlsGetVersion'
Mats Klepsland [Tue, 28 Aug 2018 20:46:26 +0000 (22:46 +0200)] 
lua: add function 'TlsGetVersion'

Add another function to get TLS version, since 'TlsGetCertInfo' only
works when a TLS session contains a clear text certificate, which is
not the case in TLSv1.3 or when a session is resumed.

6 years agodoc: update tls.version documentation
Mats Klepsland [Mon, 27 Aug 2018 10:43:06 +0000 (12:43 +0200)] 
doc: update tls.version documentation

6 years agodetect-tls-version: add support for 'raw' matching
Mats Klepsland [Mon, 27 Aug 2018 08:13:00 +0000 (10:13 +0200)] 
detect-tls-version: add support for 'raw' matching

Add support for matching a 'raw' TLS version using a hex string, e.g:

  tls.version:0x7f12;

The above example matches TLSv1.3 draft 16.

6 years agodetect-tls-version: add support for TLSv1.3
Mats Klepsland [Thu, 23 Aug 2018 17:31:40 +0000 (19:31 +0200)] 
detect-tls-version: add support for TLSv1.3

6 years agodetect-ssl-version: add support for TLSv1.3
Mats Klepsland [Thu, 23 Aug 2018 16:16:29 +0000 (18:16 +0200)] 
detect-ssl-version: add support for TLSv1.3

6 years agolua: use 'SSLVersionToString' in TlsGetCertInfo()
Mats Klepsland [Wed, 22 Aug 2018 20:08:35 +0000 (22:08 +0200)] 
lua: use 'SSLVersionToString' in TlsGetCertInfo()

6 years agotlslog: add support for TLSv1.3
Mats Klepsland [Wed, 22 Aug 2018 12:25:55 +0000 (14:25 +0200)] 
tlslog: add support for TLSv1.3

6 years agooutput-json-tls: add support for TLSv1.3
Mats Klepsland [Wed, 22 Aug 2018 12:24:42 +0000 (14:24 +0200)] 
output-json-tls: add support for TLSv1.3

6 years agoapp-layer-ssl: add function to get string from version
Mats Klepsland [Tue, 28 Aug 2018 20:25:50 +0000 (22:25 +0200)] 
app-layer-ssl: add function to get string from version

Add 'SSLVersionToString' to get string from version.

6 years agoapp-layer-ssl: add support for earlier TLSv1.3 drafts
Mats Klepsland [Wed, 22 Aug 2018 19:12:40 +0000 (21:12 +0200)] 
app-layer-ssl: add support for earlier TLSv1.3 drafts

Add support for TLSv1.3 draft 1 to draft 21.

6 years agoapp-layer-ssl: add support for TLSv1.3 from draft 22
Mats Klepsland [Wed, 22 Aug 2018 12:21:24 +0000 (14:21 +0200)] 
app-layer-ssl: add support for TLSv1.3 from draft 22

Add support for draft 22 to draft 28 and for the final
version (RFC8446) of TLSv1.3.

6 years agoapp-layer-ssl: add support for session tickets
Mats Klepsland [Tue, 21 Aug 2018 10:58:44 +0000 (12:58 +0200)] 
app-layer-ssl: add support for session tickets

Add support for logging a session as 'resumed' when using a non-empty
session ticket extension in the client hello record.

6 years agoapp-layer-ssl: add better session id support
Mats Klepsland [Tue, 21 Aug 2018 06:21:21 +0000 (08:21 +0200)] 
app-layer-ssl: add better session id support

Verify that the session id from both the client hello record and the
server hello record matches before marking the session as 'resumed'.

6 years agoapp-layer-ssl: decode server hello record
Mats Klepsland [Sun, 19 Aug 2018 18:49:45 +0000 (20:49 +0200)] 
app-layer-ssl: decode server hello record

Decoding server hello is needed to do a better implementation of
session resumption.

6 years agodoc: README.md minor fixes 3470/head
jason taylor [Thu, 30 Aug 2018 14:11:48 +0000 (10:11 -0400)] 
doc: README.md minor fixes

- Capitalization update
- Typo fix
- Spacing update

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agoflow/timeout: code simplification and cleanup
Victor Julien [Wed, 29 Aug 2018 19:14:28 +0000 (21:14 +0200)] 
flow/timeout: code simplification and cleanup

6 years agostream: minor code cleanup
Victor Julien [Wed, 29 Aug 2018 11:10:41 +0000 (13:10 +0200)] 
stream: minor code cleanup

6 years agorules: hide 'template' from --list-keywords
Victor Julien [Thu, 30 Aug 2018 07:11:07 +0000 (09:11 +0200)] 
rules: hide 'template' from --list-keywords

6 years agorules: hide internal keywords from --list-keywords
Victor Julien [Thu, 30 Aug 2018 07:09:49 +0000 (09:09 +0200)] 
rules: hide internal keywords from --list-keywords

6 years agoflow-manager: fix unittest initialization 3466/head
Victor Julien [Sun, 26 Aug 2018 06:56:33 +0000 (08:56 +0200)] 
flow-manager: fix unittest initialization

6 years agoapp-layer-ssl: make sure that JA3 stuff is only initialized once
Mats Klepsland [Sat, 25 Aug 2018 19:50:05 +0000 (21:50 +0200)] 
app-layer-ssl: make sure that JA3 stuff is only initialized once

Avoid possible memory leaks by making sure that JA3 buffer and
string is only initialized once.

6 years agoapp-layer-ssl: fix memleak/coredump (Bug #2603)
Mats Klepsland [Sat, 25 Aug 2018 16:47:18 +0000 (18:47 +0200)] 
app-layer-ssl: fix memleak/coredump (Bug #2603)

6 years agoaf-packet: close the socket in case of early fail
Eric Leblond [Tue, 28 Aug 2018 20:46:25 +0000 (22:46 +0200)] 
af-packet: close the socket in case of early fail

6 years agolog-filestore: fix file descriptor leak
Eric Leblond [Wed, 22 Aug 2018 22:21:51 +0000 (00:21 +0200)] 
log-filestore: fix file descriptor leak

In the case we exceed the number of simultaneously open
file we can reach a state were we will not close the file
after writing.

Thanks to Steve Grubb <sgrubb@redhat.com> for the analysis.

6 years agoprofiling/app-layer: fix TCP parsers showing UDP stats
Victor Julien [Wed, 29 Aug 2018 10:11:03 +0000 (12:11 +0200)] 
profiling/app-layer: fix TCP parsers showing UDP stats

6 years agoprofiling: add missing logger labels
Victor Julien [Wed, 29 Aug 2018 10:08:59 +0000 (12:08 +0200)] 
profiling: add missing logger labels

6 years agodetect: clean up sgh flags and add cocci check 3457/head
Victor Julien [Thu, 16 Aug 2018 20:15:09 +0000 (22:15 +0200)] 
detect: clean up sgh flags and add cocci check

6 years agostream: minor code cleanups
Victor Julien [Thu, 16 Aug 2018 19:59:37 +0000 (21:59 +0200)] 
stream: minor code cleanups

6 years agodetect/mpm: clean up setup code
Victor Julien [Thu, 16 Aug 2018 12:57:20 +0000 (14:57 +0200)] 
detect/mpm: clean up setup code

6 years agodhcp: check length of option before accessing
Jason Ish [Mon, 13 Aug 2018 04:44:02 +0000 (22:44 -0600)] 
dhcp: check length of option before accessing

Prevent Rust index out of bounds panic.

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

6 years agodhcp: remove println!() that got committed
Jason Ish [Mon, 13 Aug 2018 04:40:10 +0000 (22:40 -0600)] 
dhcp: remove println!() that got committed

6 years agodetect: fix file_data detect issue with alert ip
Victor Julien [Wed, 15 Aug 2018 10:28:52 +0000 (12:28 +0200)] 
detect: fix file_data detect issue with alert ip

Fix mpm progress being updated by irrelevant engines. Esp in the
case of file_data engines, signature can contain multiple versions
of the same engine, registered for different 'progress' values.

This would lead to signatures being considered 'can't match' even
in cases where they clearly could still match.

Only consider those progress values that apply to the protocol in
use.

6 years agodetect/parse: try to set flow direction for sigs w/o explict app proto as well
Victor Julien [Wed, 15 Aug 2018 10:15:26 +0000 (12:15 +0200)] 
detect/parse: try to set flow direction for sigs w/o explict app proto as well

6 years agoconfigure: added rust install notes
jason taylor [Tue, 17 Jul 2018 13:27:23 +0000 (09:27 -0400)] 
configure: added rust install notes

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agoconfigure: updated fedora/centos references
jason taylor [Tue, 17 Jul 2018 00:53:24 +0000 (20:53 -0400)] 
configure: updated fedora/centos references

* updated fedora yum references to dnf
* updated/added centos/rhel references

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agoeve/http: add tx->request_port_number as http_port
Maurizio Abba [Fri, 3 Aug 2018 12:51:13 +0000 (13:51 +0100)] 
eve/http: add tx->request_port_number as http_port

Add the port specified in the hostname (if any) to the http object in
eve. The port may be different from the dest_port used by the TCP flow.

6 years agoyaml: add var for DC_SERVERS (Domain Controller)
Konstantin Klinger [Mon, 23 Jul 2018 12:46:33 +0000 (14:46 +0200)] 
yaml: add var for DC_SERVERS (Domain Controller)

6 years agoyaml: add note for dns v1 not available with rust
Konstantin Klinger [Mon, 23 Jul 2018 12:50:21 +0000 (14:50 +0200)] 
yaml: add note for dns v1 not available with rust