]>
git.ipfire.org Git - thirdparty/suricata.git/log
Anoop Saldanha [Wed, 11 Jan 2012 18:33:13 +0000 (00:03 +0530)]
support flow q handler schedulers active_flows and active_packets. Support new yaml option autofp_scheduler. Support for printing q handler stats as well
Anoop Saldanha [Tue, 27 Dec 2011 12:26:13 +0000 (17:56 +0530)]
support for custom flow qhandlers - round robin support added
Pierre Chifflier [Tue, 13 Mar 2012 21:08:39 +0000 (22:08 +0100)]
TLS: add variable to store the error code in the decoder
Use a variable to store the decoding error code if required, and remove
the calls to SCLogInfo and SCLogDebug.
Pierre Chifflier [Sat, 3 Mar 2012 13:11:38 +0000 (14:11 +0100)]
TLS app layer: misc fixes, reorder some fields to same memory
Pierre Chifflier [Tue, 28 Feb 2012 14:08:43 +0000 (15:08 +0100)]
Add TLS decode events
Pierre Chifflier [Mon, 27 Feb 2012 16:23:24 +0000 (17:23 +0100)]
TLS: replace SigMatchAppendAppLayer with SigMatchAppendSMToList
Eric Leblond [Mon, 19 Dec 2011 10:14:21 +0000 (11:14 +0100)]
tls-handshake: add sanity checks.
Eric Leblond [Mon, 19 Dec 2011 09:22:06 +0000 (10:22 +0100)]
tls-handshake: Add some missing free in error handling.
When DecodeAsn1BuildValue function fails, it may be necessary to
do some clean-up in the calling functions.
Eric Leblond [Mon, 19 Dec 2011 09:20:50 +0000 (10:20 +0100)]
tls-handshake: DecodeAsn1BuildValue should return -1 for error
This patch modifies DecodeAsn1BuildValue to have it return -1 when
there is a too big number of bytes announced in the ASN.1 message.
Eric Leblond [Mon, 28 Nov 2011 09:14:28 +0000 (10:14 +0100)]
TLS parser: add sanity checks on loop
It was possible in some loop to read data placed after the buffer
resulting in invalid/unpredictable value. This patch fixes two of
this issues.
Eric Leblond [Sun, 27 Nov 2011 11:28:36 +0000 (12:28 +0100)]
TLS parser: add sanity check
Eric Leblond [Fri, 25 Nov 2011 17:40:34 +0000 (18:40 +0100)]
TLS parser: modify OCTETSTRING
This patch does on over allocation of 1 for the OCTETSTRING
to be able to add a 0 at the end. This will then
allow us to use the string in printf.
Pierre Chifflier [Sat, 3 Mar 2012 14:18:23 +0000 (15:18 +0100)]
TLS parser: add handing of UTF8STRING
Some certificate contains UTF8STRING which is a subset of
OCTETSTRING. This patch adds support for this type of string.
Pierre Chifflier [Sat, 3 Mar 2012 14:18:07 +0000 (15:18 +0100)]
TLS keywords: fix match regex (remove extra space)
Pierre Chifflier [Sat, 3 Mar 2012 14:17:14 +0000 (15:17 +0100)]
TLS app layer: rewrite decoder to handle multiple messages in records
Since we now parse the content of the TLS messages, we need to handle
the case multiple messages are shipped in a single TLS record, and
taking care of the multiple levels of fragmentation (message, record,
and TCP).
Additionally, fix a bug where the parser state was not reset after an
empty record.
Pierre Chifflier [Thu, 24 Nov 2011 16:50:47 +0000 (17:50 +0100)]
TLS app layer: fix number of bytes processed on SERVER_CERTIFICATE message.
Change the function to return the number of bytes processed, and fix a bug
where the input buffer was wrong.
Signed-off-by: Pierre Chifflier <pierre.chifflier@ssi.gouv.fr>
Eric Leblond [Wed, 9 Nov 2011 14:55:43 +0000 (15:55 +0100)]
tls app layer: add missing free
issuerdn was not freed at exit.
Eric Leblond [Wed, 9 Nov 2011 14:14:21 +0000 (15:14 +0100)]
tls app layer: handle negation on subject and issuerdn.
This patch adds negation support for tls.subject and tls.issuerdn
matches.
Eric Leblond [Wed, 9 Nov 2011 10:37:12 +0000 (11:37 +0100)]
TLS app layer: Add tls.issuerdn keyword.
Eric Leblond [Tue, 8 Nov 2011 14:46:59 +0000 (15:46 +0100)]
decode ASN.1: Factorize value reading
This patch factorizes the reading of integer value and fix some
indentation. By convention, a value of 0xffffffff is returned
if the size of the integer is too big. In this case, the hexadecimal
value (which is also read) must be used.
Pierre Chifflier [Fri, 4 Nov 2011 17:18:46 +0000 (18:18 +0100)]
TLS handshake: get TLS ciphersuite and compression
Decode the SERVER_HELLO message to extract the ciphersuite and compression
chosen by the server.
Signed-off-by: Pierre Chifflier <pierre.chifflier@ssi.gouv.fr>
Pierre Chifflier [Fri, 4 Nov 2011 17:18:45 +0000 (18:18 +0100)]
TLS handshake: decode the SERVER_CERTIFICATE message
Add a decoder for the SERVER_CERTIFICATE during a TLS handshake, extracts the
certificates and keep the subject name.
Add the tls.subject keyword for substring match in rules (TLS layer).
Signed-off-by: Pierre Chifflier <pierre.chifflier@ssi.gouv.fr>
Pierre Chifflier [Fri, 4 Nov 2011 17:18:44 +0000 (18:18 +0100)]
Add ASN.1 parser for X509 certificates (in DER format)
Signed-off-by: Pierre Chifflier <pierre.chifflier@ssi.gouv.fr>
Victor Julien [Mon, 19 Mar 2012 10:50:50 +0000 (11:50 +0100)]
Make list-app-layer-protos option name match the help explanation. Make sure it works w/o passing a config.
Anoop Saldanha [Mon, 19 Mar 2012 03:36:16 +0000 (09:06 +0530)]
Add new command line option --list-app-layer-protocols to list supported app layer protocols in sigs
Anoop Saldanha [Tue, 13 Mar 2012 11:35:53 +0000 (17:05 +0530)]
Add BUG_ON to avoid overruning AppLayerDetectDirection map array
Eileen Donlon [Mon, 12 Mar 2012 22:41:53 +0000 (18:41 -0400)]
reject rules with duplicate content modifiers
reject rules that have multiple depths, offsets, distances, fast_patterns, nocases, or rawbytes for the same content.
Eileen Donlon [Tue, 13 Mar 2012 19:31:13 +0000 (15:31 -0400)]
added null checks for init_hash to all ac mpms
Eileen Donlon [Tue, 13 Mar 2012 00:31:58 +0000 (20:31 -0400)]
reject http_client_body with inconsistent flow dir
reject http_client_body with flow: to_client or from_server
Victor Julien [Mon, 19 Mar 2012 09:42:40 +0000 (10:42 +0100)]
Clean up error message.
Eileen Donlon [Wed, 14 Mar 2012 16:43:38 +0000 (12:43 -0400)]
disallow-use-of-configuration-file-with-unittests
Victor Julien [Mon, 19 Mar 2012 09:28:34 +0000 (10:28 +0100)]
profiling: add per lock location profiling
Add profiling per lock location in the code. Accounts how often a
lock is requested, how often it was contended, the max number of
ticks spent waiting for it, avg number of ticks waiting for it and
the total ticks for that location.
Added a new configure flag --enable-profiling-locks to enable this
feature.
Victor Julien [Thu, 15 Mar 2012 15:22:47 +0000 (16:22 +0100)]
Profile pcap file callback.
Victor Julien [Thu, 15 Mar 2012 11:04:26 +0000 (12:04 +0100)]
Make sure stream debug code is only used in debug mode.
Victor Julien [Thu, 15 Mar 2012 11:01:09 +0000 (12:01 +0100)]
Small http.log improvement: bail out early if there is nothing to log. Make output locking more fine grained.
Victor Julien [Wed, 14 Mar 2012 18:19:02 +0000 (19:19 +0100)]
Fix 2 compilation issues.
Victor Julien [Wed, 14 Mar 2012 18:12:59 +0000 (19:12 +0100)]
Move over src and dst thresholding to use host table. Fix a bug in threshold 'both' handling.
Victor Julien [Wed, 14 Mar 2012 06:56:11 +0000 (07:56 +0100)]
Introduce host table, make tag use it
Add a host table similar to the flow table. A hash using fine grained
locking. Flow manager for now takes care of book keeping / garbage
collecting.
Tag subsystem now uses this for host based tagging instead of the
global tag hash table. Because the latter used a global lock and the
new code uses very fine grained locking this patch should improve
scalability.
Victor Julien [Mon, 12 Mar 2012 11:36:49 +0000 (12:36 +0100)]
Undo changes from
88b8f15663076560b2237e6d8b8cae7e23d92bb6 . Atomic stack implementation had a-b-a problem.
Victor Julien [Sat, 10 Mar 2012 12:31:12 +0000 (13:31 +0100)]
Add atomic stack implementation. Convert flow spare queue to use this stack. Remove now unused flow-queue code.
Victor Julien [Fri, 9 Mar 2012 17:50:23 +0000 (18:50 +0100)]
Fix invalid declaration of enable_nss and enable_nspr in configure.in.
Victor Julien [Fri, 9 Mar 2012 16:45:09 +0000 (17:45 +0100)]
Add way to profile mutex/spin locks per thread module.
Victor Julien [Fri, 9 Mar 2012 12:19:02 +0000 (13:19 +0100)]
Implement stream memcap enforcements using atomics instead of spinlocked counters.
Victor Julien [Fri, 9 Mar 2012 17:36:07 +0000 (18:36 +0100)]
Misc fixes.
Victor Julien [Fri, 9 Mar 2012 17:34:25 +0000 (18:34 +0100)]
Remove trailing zero's from some counters output.
Victor Julien [Fri, 9 Mar 2012 17:31:46 +0000 (18:31 +0100)]
flow engine: improve scalability
Major redesign of the flow engine. Remove the flow queues that turned
out to be major choke points when using many threads. Flow manager now
walks the hash table directly. Simplify the way we get a new flow in
case of emergency.
Victor Julien [Thu, 8 Mar 2012 15:36:14 +0000 (16:36 +0100)]
Fix broken unittest.
Eileen Donlon [Tue, 6 Mar 2012 00:50:12 +0000 (19:50 -0500)]
add null checks to fix bugs in StreamTcpTest23
Eileen Donlon [Tue, 6 Mar 2012 00:31:26 +0000 (19:31 -0500)]
fix more invalid content unittests
fix invalid unittests with mixed relative and non-relative content modifiers and other issues; DetectContentParse19 still contains some failing dce_stub tests which are commented out.
Eileen Donlon [Mon, 13 Feb 2012 15:45:29 +0000 (10:45 -0500)]
fix invalid unittests with mixed content modifiers
Fixed some unittests that were incorrectly mixing relative and non-relative content modifiers.
Eileen Donlon [Thu, 26 Jan 2012 18:06:03 +0000 (13:06 -0500)]
reject mixed relative and non-relative keywords
reject signatures using relative and non-relative positional keywords for the same content (depth or offset with distance or within)
Eileen Donlon [Tue, 6 Mar 2012 22:03:29 +0000 (17:03 -0500)]
reject invalid combinations of pcre modifiers
don't allow /B with normalized buffers, and don't mix modifiers for normalized and raw buffers
Victor Julien [Mon, 5 Mar 2012 13:51:28 +0000 (14:51 +0100)]
Add libnss/libnspr support output to configure. Clean up configure.in.
Victor Julien [Mon, 5 Mar 2012 08:03:26 +0000 (09:03 +0100)]
Do not assume the include dir for nss to be nss. On F16 it's nss3.
Victor Julien [Mon, 5 Mar 2012 08:00:00 +0000 (09:00 +0100)]
Do not assume the include dir for nspr to be nspr. On F16 it's nspr4.
Victor Julien [Sat, 3 Mar 2012 13:10:49 +0000 (14:10 +0100)]
Fix json output typo.
Victor Julien [Fri, 2 Mar 2012 15:17:58 +0000 (16:17 +0100)]
Fix issue discovered by Anoop. Passing u32 ptr to a size_t can caused badness.
Victor Julien [Fri, 2 Mar 2012 11:13:16 +0000 (12:13 +0100)]
Fix minor memleak in case af-packet init fails.
Victor Julien [Fri, 2 Mar 2012 10:08:06 +0000 (11:08 +0100)]
Fix UTHBuildFlow setup using wrong address.
Victor Julien [Fri, 2 Mar 2012 10:05:49 +0000 (11:05 +0100)]
Improve http filename parsing.
Victor Julien [Fri, 2 Mar 2012 09:43:02 +0000 (10:43 +0100)]
Fix compilation with profiling enabled. Minor unittest fixes.
Victor Julien [Fri, 2 Mar 2012 08:28:00 +0000 (09:28 +0100)]
Fix minor fgetc issue.
Victor Julien [Fri, 2 Mar 2012 08:23:29 +0000 (09:23 +0100)]
Move PACKET_RECYCLE outside of flow lock in FlowForceReassemblyForQ as it confuses static code checkers.
Victor Julien [Fri, 2 Mar 2012 07:36:44 +0000 (08:36 +0100)]
file extract: improve multipart parsing and set events on some error conditions.
Victor Julien [Fri, 2 Mar 2012 07:39:09 +0000 (08:39 +0100)]
flow: Refactor how FlowPrune deals with forced timeouts, improving locking logic.
Victor Julien [Thu, 1 Mar 2012 09:46:34 +0000 (10:46 +0100)]
Another batch of minor fixed for issues found by Coverity.
Victor Julien [Wed, 29 Feb 2012 13:32:32 +0000 (14:32 +0100)]
Various improvements to error handling found by Coverity.
Anoop Saldanha [Tue, 28 Feb 2012 13:30:27 +0000 (19:00 +0530)]
code cleanup
Victor Julien [Wed, 29 Feb 2012 10:52:59 +0000 (11:52 +0100)]
Various fixes and improvements based on feedback by Coverity analyzer.
Victor Julien [Tue, 28 Feb 2012 09:29:13 +0000 (10:29 +0100)]
Add line number to warning about mangled yaml parameters. Limit number of warnings to 10.
Nikolay Denev [Sun, 26 Feb 2012 19:37:25 +0000 (21:37 +0200)]
Consistently use dashes instead of underscores in the sample config file.
Nikolay Denev [Sun, 26 Feb 2012 19:37:25 +0000 (21:37 +0200)]
Consistently use dashes instead of underscores in the sample config file.
Nikolay Denev [Sun, 26 Feb 2012 19:35:34 +0000 (21:35 +0200)]
Convert underscores to dashes in thread affinity type names.
Nikolay Denev [Fri, 24 Feb 2012 20:36:38 +0000 (22:36 +0200)]
Fix some warning message still using underscored config vars.
Nikolay Denev [Fri, 24 Feb 2012 20:18:12 +0000 (22:18 +0200)]
Do not use underscored config vars internally.
Nikolay Denev [Fri, 24 Feb 2012 19:45:40 +0000 (21:45 +0200)]
Remove the underscored "sguil_base_dir" compatibility option.
Nikolay Denev [Fri, 24 Feb 2012 13:50:43 +0000 (15:50 +0200)]
Convert config entries using underscores to dashes and emit deprecation warnings.
Martin Holste [Mon, 27 Feb 2012 16:54:44 +0000 (10:54 -0600)]
Added Shadowserver plugin.
Victor Julien [Fri, 24 Feb 2012 19:24:54 +0000 (20:24 +0100)]
file-inspection: split 'file' output module into file-store and file-log. Store stores files. Log logs json records.
Victor Julien [Fri, 24 Feb 2012 15:07:08 +0000 (16:07 +0100)]
Add more flow lock assertions to the debug validation code.
Victor Julien [Thu, 23 Feb 2012 17:40:47 +0000 (18:40 +0100)]
Fix locking error in filestore handling. Add debug validate check for asserting a flow is locked.
Martin Holste [Thu, 23 Feb 2012 15:24:18 +0000 (09:24 -0600)]
Added license.
Martin Holste [Wed, 22 Feb 2012 20:29:39 +0000 (14:29 -0600)]
Added some installation instructions to file_processor REAMDE.
Martin Holste [Wed, 22 Feb 2012 18:17:46 +0000 (12:17 -0600)]
Added contrib folder with file_processor utility which is a plugin framework for reading the files-json.log and processing and taking action based on the files observed.
Victor Julien [Thu, 23 Feb 2012 16:43:53 +0000 (17:43 +0100)]
Fix compiler warning and silence complaining unittests.
Victor Julien [Thu, 23 Feb 2012 15:29:41 +0000 (16:29 +0100)]
Misc afpacket changes.
Victor Julien [Thu, 23 Feb 2012 15:27:39 +0000 (16:27 +0100)]
Fix NULL dereference in PacketPatternSearchWithStreamCtx code.
Eric Leblond [Thu, 16 Feb 2012 16:08:54 +0000 (17:08 +0100)]
af-packet: Implement zero copy
This patch adds support for zero copy to AF_PACKET running mode.
This requires to use the 'worker' mode which is the only one where
the threading architecture is simple enough to permit this without
heavy modification.
Eric Leblond [Thu, 16 Feb 2012 16:46:53 +0000 (17:46 +0100)]
decode: add PacketSetData funtion
This patch adds a function which can be used to set the payload
of a packet when a zero copy mode is used.
Eric Leblond [Mon, 2 Jan 2012 13:47:17 +0000 (14:47 +0100)]
af-packet: mmap support
This patch adds mmap support for af-packet. Suricata now makes
use of the ring buffer feature of AF_PACKET if 'use-mmap' variable
is set to yes on an interface.
Victor Julien [Thu, 23 Feb 2012 10:23:52 +0000 (11:23 +0100)]
Config should be set up in sysconfdir/suricata. Add reference to oinkmaster guide.
Victor Julien [Thu, 16 Feb 2012 08:34:07 +0000 (09:34 +0100)]
Improve config details overview at the end of configure.
Eric Leblond [Wed, 8 Feb 2012 16:10:23 +0000 (17:10 +0100)]
build: enable af-packet by default
Eric Leblond [Wed, 8 Feb 2012 15:56:54 +0000 (16:56 +0100)]
Add sexy information messages to configure output.
Eric Leblond [Wed, 8 Feb 2012 15:56:37 +0000 (16:56 +0100)]
Fix PCRE-JIT message
Eric Leblond [Wed, 8 Feb 2012 14:14:59 +0000 (15:14 +0100)]
Remove autogen.sh generated files.
Eric Leblond [Wed, 8 Feb 2012 17:13:07 +0000 (18:13 +0100)]
Improve output
Eric Leblond [Wed, 8 Feb 2012 17:04:22 +0000 (18:04 +0100)]
del rules file deleted
Eric Leblond [Wed, 21 Sep 2011 17:55:03 +0000 (19:55 +0200)]
Add install-conf command to build system.
This patch adds support for customisation of suricata.yaml and
automatic download of emerging threat GPL rules. By running
'make install-full' after 'make install', files necessary to run
suricata are copied in the configuration directory and the latest
ruleset is downloaded and installed. Suricata can then be run
without files edition.
This patch has a special treatment for the windows build which
requires some different paths.
suricata.yaml is also updated to load all rules files provided by
emergingthreat ruleset.
Victor Julien [Wed, 22 Feb 2012 16:55:24 +0000 (17:55 +0100)]
file-inspection: support POST requests that do not use multipart.