]>
git.ipfire.org Git - thirdparty/suricata.git/log
Victor Julien [Mon, 6 Aug 2012 13:44:59 +0000 (15:44 +0200)]
flow: remove unused prune-flows option
Anoop Saldanha [Sat, 7 Jul 2012 06:22:20 +0000 (11:52 +0530)]
if a sig's set as stream sig only, don't updated it as both stream and pkt sig if offset/depth's present
bug #495 - update rule analyzer to not warn on offset_depth-tcp_pkt update if sig is stream only
bug #497 - rule_warnings fixed
Anoop Saldanha [Sat, 7 Jul 2012 16:39:06 +0000 (22:09 +0530)]
Set thread name Suricata-Main for main thread and LiveRuleSwap for live swap thread
Anoop Saldanha [Wed, 11 Jul 2012 10:03:38 +0000 (15:33 +0530)]
bug 499 - update host os info enum map to use - instead of _ + add new unittests
Anoop Saldanha [Fri, 6 Jul 2012 10:44:17 +0000 (16:14 +0530)]
bug #496 - don't warn about offset/depth for packet sigs
Victor Julien [Wed, 11 Jul 2012 10:47:34 +0000 (12:47 +0200)]
Windows build and other misc fixes.
Victor Julien [Fri, 6 Jul 2012 12:52:43 +0000 (14:52 +0200)]
Update changelog for 1.3 release.
Eric Leblond [Thu, 5 Jul 2012 14:12:52 +0000 (16:12 +0200)]
Rename 'worker' running mode to 'workers'
This patch renamed the 'worker' running mode into 'workers'. Thus,
there is only one name in Suricata for the same thing. Backward
compatibility is ensured by replacing "worker" by "workers" when
the old name is used. A warning is printed in the log when the old
name is used.
Anoop Saldanha [Thu, 5 Jul 2012 12:08:58 +0000 (17:38 +0530)]
check if all packets are processed before disabling detect threads + kill all threads <= detect after FFR + other minor fixes
Victor Julien [Thu, 5 Jul 2012 10:43:14 +0000 (12:43 +0200)]
conf api: remove dead code
Victor Julien [Thu, 5 Jul 2012 10:42:38 +0000 (12:42 +0200)]
rule analyzer: fix detecting stream match
Anoop Saldanha [Thu, 5 Jul 2012 06:24:06 +0000 (11:54 +0530)]
rule analyzer updated for sigs with offset/depth set + alproto set
Anoop Saldanha [Thu, 5 Jul 2012 04:37:16 +0000 (10:07 +0530)]
Update SigValidate() to allow http keywords to be specified in the right flow direction
Eric Leblond [Thu, 5 Jul 2012 08:53:44 +0000 (10:53 +0200)]
autotools: pthread deps is needed on ubuntu.
It is weird but adding pthread in needed on ubuntu 1204.
Victor Julien [Thu, 5 Jul 2012 10:32:59 +0000 (12:32 +0200)]
Make live reloads optional and disabled by default.
Victor Julien [Thu, 5 Jul 2012 06:12:41 +0000 (08:12 +0200)]
stream: don't NULL dereference p->flow->protoctx in StreamTcpReassembleDepthReached
Victor Julien [Wed, 4 Jul 2012 11:07:02 +0000 (13:07 +0200)]
file inspection: improve logging when stream.depth limit is reached. #493.
Victor Julien [Wed, 4 Jul 2012 08:54:18 +0000 (10:54 +0200)]
Improve warning if prelude output is selected but support not compiled in. #320.
Victor Julien [Tue, 3 Jul 2012 13:15:19 +0000 (15:15 +0200)]
Improve pktvar keyword parsing and error handling.
Victor Julien [Tue, 3 Jul 2012 12:23:56 +0000 (14:23 +0200)]
Minor fixes for coverity issues.
Victor Julien [Tue, 3 Jul 2012 12:09:17 +0000 (14:09 +0200)]
Fix detect tag error handling.
Victor Julien [Tue, 3 Jul 2012 11:08:30 +0000 (13:08 +0200)]
file detect: improve cleanup
Victor Julien [Tue, 3 Jul 2012 10:59:52 +0000 (12:59 +0200)]
filemd5: free hash during cleanup
Anoop Saldanha [Tue, 3 Jul 2012 07:23:47 +0000 (12:53 +0530)]
ac-bs and ac-gfbs mem cleanup
Anoop Saldanha [Tue, 3 Jul 2012 05:30:21 +0000 (11:00 +0530)]
more mpm engine mem cleanup
Anoop Saldanha [Mon, 2 Jul 2012 16:54:37 +0000 (22:24 +0530)]
mpm engine and ac mem free fixes
Nikolay Denev [Mon, 2 Jul 2012 09:47:41 +0000 (11:47 +0200)]
Fix SCSetThreadName() macros in threads.h Add FreeBSD thread naming implementation.
Anoop Saldanha [Fri, 29 Jun 2012 17:10:02 +0000 (22:40 +0530)]
bug #455 - Warn users on signature event vars having precedence over threshold.conf ones
Victor Julien [Mon, 2 Jul 2012 12:04:30 +0000 (14:04 +0200)]
Free all sig match structs when freeing a signature.
Victor Julien [Mon, 2 Jul 2012 11:43:50 +0000 (13:43 +0200)]
Fix memleak in tag parsing.
Victor Julien [Mon, 2 Jul 2012 11:12:29 +0000 (13:12 +0200)]
Properly clean signature's ip only data.
Victor Julien [Mon, 2 Jul 2012 10:47:39 +0000 (12:47 +0200)]
Fix a reload memleak in thread local detection engine ctx.
Victor Julien [Mon, 2 Jul 2012 10:43:01 +0000 (12:43 +0200)]
Fix a reload memleak in the duplicate sig detection hash.
Victor Julien [Mon, 2 Jul 2012 10:36:47 +0000 (12:36 +0200)]
Clean up packet pool at shut down.
Victor Julien [Fri, 29 Jun 2012 15:41:21 +0000 (17:41 +0200)]
Update Changelog for 1.3rc1 release
Anoop Saldanha [Fri, 29 Jun 2012 13:57:21 +0000 (19:27 +0530)]
sc_atomic_cas replaced with sc_atomic_set
Victor Julien [Thu, 31 May 2012 09:25:53 +0000 (11:25 +0200)]
http: add unittest to test \r in header line.
Victor Julien [Thu, 31 May 2012 09:00:34 +0000 (11:00 +0200)]
htp: keep track of header line terminators so http_raw_header can reconstruct exact headers.
Victor Julien [Thu, 31 May 2012 08:59:55 +0000 (10:59 +0200)]
http_raw_header: add some debug code.
Victor Julien [Fri, 29 Jun 2012 12:38:19 +0000 (14:38 +0200)]
icmpv6: for ICMPv6 info messages set payload ptr and length to right after 4 byte hdr.
Victor Julien [Fri, 29 Jun 2012 11:15:46 +0000 (13:15 +0200)]
afpacket: fix compilation in debug mode.
Eric Leblond [Wed, 6 Jun 2012 13:17:19 +0000 (15:17 +0200)]
Update coccinelle script to match syntax evolution.
Eric Leblond [Tue, 12 Jun 2012 05:47:03 +0000 (07:47 +0200)]
cleaning: fix warning when building with clang.
clang was issuing some warnings related to unused return in function.
This patch adds some needed error treatment and ignore the rest of the
warnings by adding a cast to void.
Eric Leblond [Wed, 13 Jun 2012 18:42:04 +0000 (20:42 +0200)]
af-packet: use counter for drop and accept
This patch adds counters for kernel drops and accepts to af-packet
capture module. This information are periodically displayed in
stats.log:
capture.kernel_packets | RxAFP1 | 1792
capture.kernel_drops | RxAFP1 | 0
The statistic is fetch via a setsockopt call every 255 packets.
Eric Leblond [Mon, 11 Jun 2012 14:06:13 +0000 (16:06 +0200)]
af-packet: add support for BPF filter.
This patch adds support for BPF in AF_PACKET running
mode. The command line syntax is the same as the one
used of PF_RING.
The method is the same too: The pcap_compile__nopcap()
function is used to build the BPF filter. It is then
injected into the kernel with a setsockopt() call. If
the adding of the BPF fail, suricata exit.
Eric Leblond [Mon, 11 Jun 2012 21:23:32 +0000 (23:23 +0200)]
af-packet: get datalink for each socket creation.
This patch will allow us to use the datalink when computing the filter.
It also fixes a potential issue where an interface data type change
after the interface if going down/up.
Victor Julien [Fri, 29 Jun 2012 11:02:34 +0000 (13:02 +0200)]
http body inspection: force body inspection on stream eof.
Victor Julien [Fri, 29 Jun 2012 09:37:51 +0000 (11:37 +0200)]
default config: add engine-analysis.rules directive.
Victor Julien [Thu, 28 Jun 2012 21:19:05 +0000 (23:19 +0200)]
inline: fix unified2 alert direction selection
Victor Julien [Thu, 28 Jun 2012 21:14:21 +0000 (23:14 +0200)]
filemd5: fix compilation if libnss isn't available
Victor Julien [Thu, 7 Jun 2012 08:45:56 +0000 (10:45 +0200)]
filemd5: add support code for md5 handling for signatures.
Victor Julien [Thu, 28 Jun 2012 17:37:02 +0000 (19:37 +0200)]
Don't display a warning when log-pcap tries to remove an already removed file.
Anoop Saldanha [Tue, 26 Jun 2012 04:59:02 +0000 (10:29 +0530)]
http header won't inspect set-cookie headers. Set-cookie part of cookie keyword now. Also update the http header inspection engine
Victor Julien [Thu, 28 Jun 2012 10:50:08 +0000 (12:50 +0200)]
Free pcre study structs for classification, threshold and reference parsing.
Anoop Saldanha [Tue, 26 Jun 2012 11:38:04 +0000 (17:08 +0530)]
code cleanup for live swap
Victor Julien [Tue, 26 Jun 2012 08:42:45 +0000 (10:42 +0200)]
Fix compiler warning.
Anoop Saldanha [Mon, 25 Jun 2012 15:46:37 +0000 (21:16 +0530)]
update clean up of old detection engine contexts for live rule swap
Anoop Saldanha [Fri, 22 Jun 2012 18:26:11 +0000 (23:56 +0530)]
DetectEngineCtxFree() cleanup, also in main
Anoop Saldanha [Fri, 22 Jun 2012 18:19:44 +0000 (23:49 +0530)]
Replace the old atomic sets using cas with the new sc_atomic_set macro
Anoop Saldanha [Fri, 22 Jun 2012 18:18:06 +0000 (23:48 +0530)]
free flowvar entries in flow after live rule swap. Sync flowbits entries into packet struct to be used by alert debuglog when alert debuglog is enabled
Anoop Saldanha [Fri, 22 Jun 2012 18:09:02 +0000 (23:39 +0530)]
disable live rule swap when -s or -S option's used at startup
Anoop Saldanha [Fri, 22 Jun 2012 18:03:11 +0000 (23:33 +0530)]
Introduce util-signal.[ch]. Move our signal setup functions here
Victor Julien [Wed, 14 Mar 2012 10:18:43 +0000 (11:18 +0100)]
Simplify flow resetting on de_ctx update. Detect ctx id starts at 1. So in a flow 0 means uninitialized (thus set) and if we detect flow is not equal to detect id, we reset the sgh storage and de_state.
Anoop Saldanha [Fri, 22 Jun 2012 16:21:32 +0000 (21:51 +0530)]
If new ruleset requires any htp callbacks that aren't already set, don't load new ruleset; request user to restart suricata + disable setting fileinsepection flags unconditionally in main
Anoop Saldanha [Fri, 22 Jun 2012 16:12:57 +0000 (21:42 +0530)]
add unittest for atomic operation with void *
Anoop Saldanha [Fri, 22 Jun 2012 15:38:26 +0000 (21:08 +0530)]
live rule support added
To reload ruleset during engine runtime, send the USR2 signal to the engine, and the ruleset would be reloaded from the same yaml file supplied at engine startup
Anoop Saldanha [Fri, 22 Jun 2012 13:12:35 +0000 (18:42 +0530)]
cleanup threshold config de-init
Anoop Saldanha [Fri, 22 Jun 2012 13:07:51 +0000 (18:37 +0530)]
slot_data updated as an atomic var no
Anoop Saldanha [Fri, 22 Jun 2012 12:33:12 +0000 (18:03 +0530)]
byte_extract_id var now a non-global de_ctx specific var
Anoop Saldanha [Fri, 22 Jun 2012 12:20:15 +0000 (17:50 +0530)]
make mpm ctx container de_ctx specific. Also introduce global variable in mpm_ctx. this is a workaround for cleaning non global mpm_ctx's since we now don't supply the de_ctx around the detection engine API
Anoop Saldanha [Fri, 22 Jun 2012 10:28:03 +0000 (15:58 +0530)]
clean reference config API
Anoop Saldanha [Fri, 22 Jun 2012 10:20:13 +0000 (15:50 +0530)]
clean classification config API
Anoop Saldanha [Fri, 22 Jun 2012 09:36:55 +0000 (15:06 +0530)]
util action api returns error code if it encounters wrong values parsing wrong action conf
Anoop Saldanha [Fri, 22 Jun 2012 09:25:38 +0000 (14:55 +0530)]
variable names global vars, global no more. Moved to detection engine ctx, a place it belongs
Anoop Saldanha [Fri, 22 Jun 2012 09:09:08 +0000 (14:39 +0530)]
fix replace unittets. Re-set modified global_var to orignial value when the test completes
Anoop Saldanha [Fri, 22 Jun 2012 09:01:10 +0000 (14:31 +0530)]
Kill engine during init stage if it fails to load valid value for sgh-mpm-context
Anoop Saldanha [Fri, 22 Jun 2012 08:53:28 +0000 (14:23 +0530)]
clear root node during conf de-init. also create root_backup when the root is restored back using it
Victor Julien [Sun, 24 Jun 2012 16:17:48 +0000 (18:17 +0200)]
http: decode double decoded path and query string characters. Bug #464.
Victor Julien [Sun, 24 Jun 2012 15:31:05 +0000 (17:31 +0200)]
build: Use expanded sysconfdir to pass as CONFIG_DIR to the code.
Victor Julien [Sun, 24 Jun 2012 08:22:41 +0000 (10:22 +0200)]
http: make client and server body inspection more robust in cases where realloc fails
Victor Julien [Fri, 22 Jun 2012 08:59:55 +0000 (10:59 +0200)]
detect: Only run mpm on HTTP buffers in the proper direction. Fixes a file_data FN.
Victor Julien [Thu, 21 Jun 2012 18:35:51 +0000 (20:35 +0200)]
dcerpc/smb/smb2: more robust error checking, cosmetic code updates.
Anoop Saldanha [Wed, 20 Jun 2012 18:40:38 +0000 (00:10 +0530)]
some more mpm engine cleanup
Anoop Saldanha [Wed, 20 Jun 2012 17:56:44 +0000 (23:26 +0530)]
mpm engine cleanup. Remove unnecessary flags
Anoop Saldanha [Sat, 16 Jun 2012 08:46:10 +0000 (14:16 +0530)]
cookie header now inspects Set-Cookie headers as well
Anoop Saldanha [Sat, 16 Jun 2012 08:44:23 +0000 (14:14 +0530)]
unittests that fail, displaying the issue that we don't inspect set-cookie headers against cookie keywords
The next patch in the series will fix the issue and let the unittests pass as well.
Victor Julien [Wed, 20 Jun 2012 15:19:08 +0000 (17:19 +0200)]
pcap: make sure thread count is 1 if config is missing for a device.
Anoop Saldanha [Sat, 16 Jun 2012 05:17:30 +0000 (10:47 +0530)]
#482 - use decode_flag for all decode TMs. Use the flag as a way to retrieve decode TMs from ThreadVars
Anoop Saldanha [Thu, 14 Jun 2012 08:48:23 +0000 (14:18 +0530)]
we now support offset, depth inspection against all packet payloads and stream messages
Anoop Saldanha [Fri, 15 Jun 2012 12:36:13 +0000 (18:06 +0530)]
tests to highlight that
- suricata treates sigs with offset/depth without any packet keywords as stream sigs
- as a consequence suricata will FN on such sigs
The tests introduced here will fail, displaying the issues. The
next patch in the series would fix the said issues.
Anoop Saldanha [Mon, 28 May 2012 06:27:12 +0000 (11:57 +0530)]
stream raw reassembly fix
Anoop Saldanha [Sat, 16 Jun 2012 12:22:55 +0000 (17:52 +0530)]
fast pattern cleanup - Remove FastPatternSupportEnabledForSigMatchList() and all it's associated structures
Anoop Saldanha [Tue, 12 Jun 2012 14:21:12 +0000 (19:51 +0530)]
http user agent keyword + mpm + inspection + fast pattern support added
Victor Julien [Sun, 20 May 2012 10:12:42 +0000 (12:12 +0200)]
Add pcap workers mode.
Some cards like Napatech or Myricom support libpcap wrappers that allow for
multiple streams, queues, ringbuffers. The workers mode can be of use in
those cases.
Anoop Saldanha [Mon, 28 May 2012 08:50:02 +0000 (14:20 +0530)]
bug #471 - file_data fast pattern unittests added
Anoop Saldanha [Mon, 28 May 2012 07:16:27 +0000 (12:46 +0530)]
bug #471 - http server body fast pattern unittests added
Victor Julien [Mon, 11 Jun 2012 20:47:24 +0000 (22:47 +0200)]
rule analyzer: minor cleanups. Fix warning-only setting, allow true/yes/enabled for yaml option.
Victor Julien [Mon, 11 Jun 2012 20:46:25 +0000 (22:46 +0200)]
Fix commandline supplied yaml path being ignored.
Eileen Donlon [Mon, 30 Apr 2012 23:23:23 +0000 (19:23 -0400)]
feature 349 rule analyzer v1
Eric Leblond [Sun, 10 Jun 2012 18:23:56 +0000 (20:23 +0200)]
OpenBSD: fix tar command.