]>
git.ipfire.org Git - thirdparty/suricata.git/log
Victor Julien [Wed, 28 Nov 2018 09:02:57 +0000 (10:02 +0100)]
detect/parse: error out on unused sticky buffers
Victor Julien [Tue, 27 Nov 2018 15:09:54 +0000 (16:09 +0100)]
detect/prefilter: add closing debug return statement
Victor Julien [Mon, 10 Dec 2018 20:24:38 +0000 (21:24 +0100)]
yaml: add missing eve pcap-file comment
Victor Julien [Mon, 10 Dec 2018 19:43:37 +0000 (20:43 +0100)]
capture: fix mtu plus sign names for non-netmap
Bug #2502.
Victor Julien [Sat, 8 Dec 2018 17:51:23 +0000 (18:51 +0100)]
stats: more accurate interval handling
In the stats loop sleep for a time period more closely matching
the stats.interval setting. Fix an off by one that would make
the loop wake up ~1 second early.
Bug #2716
Jason Ish [Fri, 7 Dec 2018 23:59:35 +0000 (17:59 -0600)]
check-setup: fix script names for .sh to .py
Jason Ish [Fri, 7 Dec 2018 16:42:40 +0000 (10:42 -0600)]
travis: update rust version to 1.24.1 and 1.31.0.
1.24.1 is now the oldest version we test support for. All major
distributions appear to be at this version or new.
With the release of 1.31.0 just out, test that as the most
recent version.
Jason Ish [Fri, 7 Dec 2018 15:26:31 +0000 (09:26 -0600)]
dns json v2 (C) - log rrtype in response
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2723
Jason Ish [Fri, 7 Dec 2018 15:25:56 +0000 (09:25 -0600)]
rust/dns/v2 - log rrtype in response
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2723
Jason Ish [Fri, 7 Dec 2018 15:08:16 +0000 (09:08 -0600)]
dns/rust - if let Some over options instead of loop.
Except in one case where the loop makes more sense for easy break
out.
Also remove one line of non-conforming debug logging.
Jason Ish [Thu, 6 Dec 2018 17:16:00 +0000 (11:16 -0600)]
rust/dns/lua - fix call convention to match C.
Also, when requesting the query, if the request doesn't exist,
return the query from the response. This makes it behave
more like C implementation.
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2730
Jason Ish [Mon, 3 Dec 2018 16:34:36 +0000 (10:34 -0600)]
rust/dns: add v1 dns logging
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2704
Victor Julien [Sun, 9 Dec 2018 08:05:44 +0000 (09:05 +0100)]
unix: fix deadlock in unix runmode on many cores
Same issue as in
7f8795c7563827f090d8679cb35847af0085fc56 , with the
solution now also applied to the unix socket runmode.
Bug #2734
Victor Julien [Fri, 7 Dec 2018 12:18:37 +0000 (13:18 +0100)]
output/tx: fix multi-instance logger output
Fix transactions not being logged after the first tx logger had
logged.
Victor Julien [Thu, 6 Dec 2018 14:35:40 +0000 (15:35 +0100)]
app-layer: improve transaction cleanup handling
The app layers with a custom iterator would skip a tx if during
the ..Cleanup() pass a transaction was removed.
Address this by storing the current index instead of the next
index. Also pass in the next "min_tx_id" to be incremented from
the last TX. Update loops to do this increment.
Also make sure that the min_id is properly updated if the last
TX is removed when out of order.
Finally add a SMB unittest to test this.
Reported by: Ilya Bakhtin
Victor Julien [Wed, 5 Dec 2018 21:09:15 +0000 (22:09 +0100)]
app-layer: fix tx tracking updates in tx cleanup
Fix min_id not getting updated in all cases.
Reported by: Ilya Bakhtin
Victor Julien [Wed, 5 Dec 2018 21:07:53 +0000 (22:07 +0100)]
app-layer: add debug statements to tx cleanup logic
Victor Julien [Wed, 5 Dec 2018 21:05:49 +0000 (22:05 +0100)]
unittests/app-layer: add helper to get app tx trackers
jason taylor [Tue, 4 Dec 2018 20:01:55 +0000 (15:01 -0500)]
userguide: updated hyperscan version reference
Signed-off-by: jason taylor <jtfas90@gmail.com>
Travis Green [Mon, 3 Dec 2018 22:51:10 +0000 (15:51 -0700)]
Updated link for Prelude SIEM
Updated link for Prelude SIEM to https://www.prelude-siem.org/
Eric Leblond [Mon, 12 Nov 2018 22:09:11 +0000 (23:09 +0100)]
detect-depth: remove semi coma from desc
It was breaking the CSV export.
Eric Leblond [Sun, 11 Nov 2018 17:49:39 +0000 (18:49 +0100)]
doc: fix some links in list-keywords command
Eric Leblond [Tue, 4 Dec 2018 16:08:40 +0000 (17:08 +0100)]
suricata.yaml: fix path to XDP doc
Eric Leblond [Mon, 3 Dec 2018 17:06:16 +0000 (18:06 +0100)]
util-bpf: workaround OpenBSD old libpcap
OpenBSD is not using a pcap_compile_* function so we can just
comment the code for OpenBSD users.
Eric Leblond [Thu, 22 Nov 2018 14:00:11 +0000 (15:00 +0100)]
af-packet: remove unused field in AFPThreadVars
Eric Leblond [Tue, 23 Oct 2018 04:39:18 +0000 (06:39 +0200)]
configure.ac: better llc binary detection
llc is needed to build the ebpf files and current autoconf code
was not working properly on Debian.
Eric Leblond [Fri, 12 Oct 2018 17:34:43 +0000 (19:34 +0200)]
af-packet: remove years old todos
Eric Leblond [Wed, 10 Oct 2018 22:17:59 +0000 (00:17 +0200)]
netmap: use custom BPF compile function
Eric Leblond [Wed, 10 Oct 2018 22:12:00 +0000 (00:12 +0200)]
af-packet: use the new BPF compilation function
Eric Leblond [Wed, 10 Oct 2018 22:10:54 +0000 (00:10 +0200)]
util-bpf: introduce custom BPF compile functions
We can't get error from pcap_compile_nopcap() so let's get our
own function and output message.
Eric Leblond [Wed, 10 Oct 2018 17:26:29 +0000 (19:26 +0200)]
af-packet: micro optimization
Use a else if instead of two chained if constructs.
Eric Leblond [Mon, 8 Oct 2018 21:51:37 +0000 (23:51 +0200)]
af-packet: improve error handling
Stress condition in Suricata could lead to interface to disconnect
when it is not necessary. This patch updates the error handling
code to try to continue reading when such a case occurs.
jason taylor [Tue, 27 Nov 2018 19:35:35 +0000 (14:35 -0500)]
bypass:added new documentation reference
Documentation didn't previously exist for the bypass keyword
Signed-off-by: jason taylor <jtfas90@gmail.com>
Eric Urban [Mon, 12 Nov 2018 18:38:50 +0000 (12:38 -0600)]
debug/log: add log level for JSON type
resolves #2671
Jason Ish [Sun, 25 Nov 2018 15:03:22 +0000 (09:03 -0600)]
configure: allow for --disable-suricata-update
This is to prevent suricata-update from being installed if it
would otherwise be installed based on in being bundled, and
its dependencies being available.
Warn the user that Suricata-Update will not be installed if it
is bundled, but python-yaml is missing (this will also cover
the case where Python is missing).
Add "Install suricata-update" to the build summary. For consistency,
relable "Suricatasc install" as "Install suricatasc".
Jason Ish [Sat, 24 Nov 2018 18:06:46 +0000 (12:06 -0600)]
configure: check for python-yaml
Don't install suricata-update if python-yaml does not
exist.
Jason Ish [Fri, 16 Nov 2018 18:32:01 +0000 (10:32 -0800)]
configure: print datarootdir
This is relevant now as its where Suricata engine rules
get installed.
Victor Julien [Sat, 1 Dec 2018 09:06:54 +0000 (10:06 +0100)]
detect/mpm: fix fast_pattern handling of len >255
The fast pattern selection logic would truncate a patterns len to
255 leading to assigning the same pid to different patterns.
This in turn would be caught by the hyperscan setup code which would
abort.
Bug #2714.
Victor Julien [Fri, 30 Nov 2018 10:59:17 +0000 (11:59 +0100)]
rust/filetracker: remove reachable panic
Remove reachable panic condition when an existing file chunk is not
completed. Instead trunc the file and reset.
Related to bug #2717
Victor Julien [Fri, 30 Nov 2018 10:38:04 +0000 (11:38 +0100)]
nfs: improve file tracking under packet loss
In case of packet loss during an in-progress chunk the file tracker
could loose track of a file because it couldn't map the XID to a
file handle.
The file tracker would then panic if a new file was opened, as
it noticed the last chunk wasn't yet complete.
This patch tracks the file handle for a in-progress chunk in the
state, just like the tracking of the size that is left.
Bug #2717
Victor Julien [Fri, 30 Nov 2018 10:37:46 +0000 (11:37 +0100)]
rust/nfs: improve debug output
Victor Julien [Thu, 22 Nov 2018 09:34:57 +0000 (10:34 +0100)]
iprep: small cleanups
Victor Julien [Thu, 22 Nov 2018 09:34:49 +0000 (10:34 +0100)]
iprep: improve error checking of path handling
Victor Julien [Wed, 18 Apr 2018 13:25:40 +0000 (15:25 +0200)]
detect: improve inspect buffer handling
Fix and Optimize cleanup. For the simple single inspect buffer optimize
the cleanup by keeping track of the actually used buffers. This avoid
looping over unused buffers.
Fix the case of cleaning not being done after a tx if the next tx is
also inspected in the context of the same packet.
Fix cleanup of the multi-inspect buffers. Optimize in 2 ways. First
like with single keep track of which multi-inspect buffers have been
used. Second, keep a max of the buffers within a multi-inspect buffer.
Use this max to limit (nested) looping.
jason taylor [Thu, 15 Nov 2018 04:18:52 +0000 (23:18 -0500)]
profiling: set loop limit to match array size
Signed-off-by: jason taylor <jtfas90@gmail.com>
Victor Julien [Tue, 20 Nov 2018 11:31:01 +0000 (12:31 +0100)]
prelude: fix potential uninitialized value use
Victor Julien [Tue, 20 Nov 2018 11:28:16 +0000 (12:28 +0100)]
detect: suppress coverity deadcode warnings
Suppress as scan-build-7 relies on this 'dead' code to not issue
a warning.
Victor Julien [Tue, 20 Nov 2018 11:25:04 +0000 (12:25 +0100)]
filestore: suppress coverity toctou warning
Victor Julien [Tue, 20 Nov 2018 11:22:47 +0000 (12:22 +0100)]
detect: fix coverity memory leak warnings
Victor Julien [Mon, 19 Nov 2018 21:00:33 +0000 (22:00 +0100)]
file: use u32 file id everywhere
Victor Julien [Tue, 13 Nov 2018 00:45:05 +0000 (16:45 -0800)]
detect/distance: improve value parsing and fix broken test
Victor Julien [Tue, 13 Nov 2018 00:27:27 +0000 (16:27 -0800)]
detect/within: clean up option value parsing
Victor Julien [Mon, 12 Nov 2018 23:48:45 +0000 (15:48 -0800)]
detect/within: test cleanups
Victor Julien [Mon, 12 Nov 2018 23:35:46 +0000 (15:35 -0800)]
eve/dns: improve version warning message
Victor Julien [Mon, 12 Nov 2018 23:33:39 +0000 (15:33 -0800)]
detect/offset: improve value parsing
Mats Klepsland [Tue, 13 Nov 2018 19:06:50 +0000 (20:06 +0100)]
app-layer-ssl: fix coverty error (RESOURCE_LEAK)
Bug #2677
Victor Julien [Tue, 6 Nov 2018 08:54:10 +0000 (09:54 +0100)]
changelog: update for 4.1
Victor Julien [Tue, 30 Oct 2018 15:10:33 +0000 (16:10 +0100)]
smtp/mime: fix null ptr deref on bad traffic
Due to missing error handling, a bad mime message could put the
mime parser in an error state, without the SMTP layer taking this
into account. So the SMTP layer would continue to pass data to the
mime parser, even though it was in an error state.
When the parser would be fed a very long line while in this state,
it would try to set an error flag in the state. However, due to
the error state, this setting of the flag would dereference a null
pointer.
This patch fixes this issue by updating the mime parser to check
the state it is in when receiving new input. It will refuse to
process futher data while in the error state. It will also return
a new error code to indicate to the SMTP layer that the parser
was in an error state.
Victor Julien [Fri, 2 Nov 2018 15:59:40 +0000 (16:59 +0100)]
ipv6: disable zero len padN rule by default
jason taylor [Tue, 23 Oct 2018 23:23:11 +0000 (19:23 -0400)]
doc: Remove gulp references
Signed-off-by: jason taylor <jtfas90@gmail.com>
jason taylor [Wed, 17 Oct 2018 19:52:59 +0000 (15:52 -0400)]
doc: add bypass keyword documentation
Signed-off-by: jason taylor <jtfas90@gmail.com>
Jason Ish [Wed, 31 Oct 2018 22:41:07 +0000 (16:41 -0600)]
filestore: fix compiler truncation warnings
And error out if the constructed filename is truncated.
Mats Klepsland [Tue, 30 Oct 2018 20:35:25 +0000 (21:35 +0100)]
app-layer-ssl: add Facebook TLSv1.3 draft versions
Add draft versions for Facebooks custom TLSv1.3 implementation "fizz"
to SSLVersionToString().
Mats Klepsland [Tue, 30 Oct 2018 19:18:05 +0000 (20:18 +0100)]
app-layer-ssl: change how TLSv1.3 drafts are logged
Change from logging TLSv1.3 drafts as "TLS 1.3 (draft 28)" to
"TLS 1.3 draft-28" instead.
Mats Klepsland [Mon, 29 Oct 2018 22:03:08 +0000 (23:03 +0100)]
userguide: add documentation for ssl_version keyword
Victor Julien [Mon, 29 Oct 2018 09:31:52 +0000 (10:31 +0100)]
pfring: default to runmode workers
Now that threads:auto is implemented workers is a better default
as it generally performs better.
Victor Julien [Mon, 29 Oct 2018 08:56:40 +0000 (09:56 +0100)]
pfring: implement 'threads: auto'
If threads is set to auto, first try the CPU count. If that would
fail, fall back to RSS queue count.
Victor Julien [Mon, 29 Oct 2018 08:37:11 +0000 (09:37 +0100)]
pfring: support checking/disabling offloading
Victor Julien [Mon, 29 Oct 2018 08:29:58 +0000 (09:29 +0100)]
pfring: fix bypass counter print uninitialized values
If the option was disabled in the config the value would be uninitialized.
Victor Julien [Fri, 26 Oct 2018 14:03:05 +0000 (16:03 +0200)]
storage: don't leak memory for unittests
Victor Julien [Fri, 26 Oct 2018 14:15:58 +0000 (16:15 +0200)]
radix: fix a memleak when removing the last node
Victor Julien [Thu, 25 Oct 2018 15:31:49 +0000 (17:31 +0200)]
detect/address: minor memory handling cleanups
Victor Julien [Thu, 25 Oct 2018 15:02:43 +0000 (17:02 +0200)]
detect: suppress scan-build warnings
Victor Julien [Thu, 25 Oct 2018 10:30:12 +0000 (12:30 +0200)]
detect/flags: cleanup parsing to not alloc temp strings
Victor Julien [Thu, 25 Oct 2018 09:55:05 +0000 (11:55 +0200)]
mpm: fix minor scan-build warning
Victor Julien [Thu, 25 Oct 2018 09:44:53 +0000 (11:44 +0200)]
pool: avoid possible double free in error path
Should be impossible as a double free, but scan-build-7 thinks it
is possible.
Victor Julien [Thu, 25 Oct 2018 09:44:15 +0000 (11:44 +0200)]
pool: small code cleanups
Victor Julien [Thu, 25 Oct 2018 06:27:22 +0000 (08:27 +0200)]
stream: don't assume malformed TCP packets
This deep in the stream engine packets are valid, so don't check
for the tcph header in a packet as it confuses scan-build.
Do add a DEBUG_VALIDATE_BUG_ON so in QA we double check.
Victor Julien [Wed, 24 Oct 2018 09:05:21 +0000 (11:05 +0200)]
decode/tcp: rewrite options decoding to assist scan-build
Victor Julien [Wed, 24 Oct 2018 08:58:58 +0000 (10:58 +0200)]
smb/c: don't accept null input
Victor Julien [Tue, 23 Oct 2018 14:17:26 +0000 (16:17 +0200)]
htp: fix potential (but unlikely) memleak in uri normalization
Victor Julien [Tue, 23 Oct 2018 13:10:56 +0000 (15:10 +0200)]
thresholds: remove dead code in parsing
Victor Julien [Tue, 23 Oct 2018 13:08:05 +0000 (15:08 +0200)]
radix: fix memory leak in error path
Victor Julien [Tue, 23 Oct 2018 13:01:42 +0000 (15:01 +0200)]
coverity: suppress warnings
Victor Julien [Tue, 23 Oct 2018 12:59:15 +0000 (14:59 +0200)]
host/os/info: fix lookup memleak
Victor Julien [Tue, 23 Oct 2018 12:54:17 +0000 (14:54 +0200)]
debug/log: suppress coverity checked_return warning
Victor Julien [Tue, 23 Oct 2018 12:53:28 +0000 (14:53 +0200)]
bpf: suppress coverity toctou warning
Victor Julien [Tue, 23 Oct 2018 12:51:25 +0000 (14:51 +0200)]
pcap: fix buffer size validation logic
Victor Julien [Tue, 23 Oct 2018 12:43:35 +0000 (14:43 +0200)]
uricontent: move debug func into unittests
Cleanup header, which lead to the app-layer-htp.h header needing to
be added in a few other places.
Victor Julien [Tue, 23 Oct 2018 12:37:05 +0000 (14:37 +0200)]
detect/replace: fix mem leak in error path
Victor Julien [Tue, 23 Oct 2018 12:34:08 +0000 (14:34 +0200)]
isdataat: fix mem leak in error path
Victor Julien [Tue, 23 Oct 2018 12:29:59 +0000 (14:29 +0200)]
bits: avoid memory leak in case of adding types
Victor Julien [Tue, 23 Oct 2018 12:10:18 +0000 (14:10 +0200)]
ipproto: fix memleak in error case
Victor Julien [Tue, 23 Oct 2018 11:56:50 +0000 (13:56 +0200)]
bytetest: don't leak memory in error condition
Victor Julien [Tue, 23 Oct 2018 11:53:13 +0000 (13:53 +0200)]
yaml: fix potential memleak and suppress coverity issue
Victor Julien [Tue, 23 Oct 2018 11:49:37 +0000 (13:49 +0200)]
outputs: fix memleaks in the error paths reported by coverity
Victor Julien [Tue, 23 Oct 2018 11:23:09 +0000 (13:23 +0200)]
coverity: suppress warning for intentional code
Victor Julien [Tue, 23 Oct 2018 11:21:08 +0000 (13:21 +0200)]
rust/dns: don't compile unused C code if Rust is enabled
Victor Julien [Tue, 23 Oct 2018 11:06:42 +0000 (13:06 +0200)]
coverity: fix filestore v2 memleak
Victor Julien [Tue, 23 Oct 2018 11:01:53 +0000 (13:01 +0200)]
log-pcap: fix coverity memleak warning