]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
13 years agounittests that fail, displaying the issue that we don't inspect set-cookie headers...
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.

13 years agopcap: make sure thread count is 1 if config is missing for a device.
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.

13 years ago#482 - use decode_flag for all decode TMs. Use the flag as a way to retrieve decode...
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

13 years agowe now support offset, depth inspection against all packet payloads and stream messages
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

13 years agotests to highlight that
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.

13 years agostream raw reassembly fix
Anoop Saldanha [Mon, 28 May 2012 06:27:12 +0000 (11:57 +0530)] 
stream raw reassembly fix

13 years agofast pattern cleanup - Remove FastPatternSupportEnabledForSigMatchList() and all...
Anoop Saldanha [Sat, 16 Jun 2012 12:22:55 +0000 (17:52 +0530)] 
fast pattern cleanup - Remove FastPatternSupportEnabledForSigMatchList() and all it's associated structures

13 years agohttp user agent keyword + mpm + inspection + fast pattern support added
Anoop Saldanha [Tue, 12 Jun 2012 14:21:12 +0000 (19:51 +0530)] 
http user agent keyword + mpm + inspection + fast pattern support added

13 years agoAdd pcap workers mode.
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.

13 years agobug #471 - file_data fast pattern unittests added
Anoop Saldanha [Mon, 28 May 2012 08:50:02 +0000 (14:20 +0530)] 
bug #471 - file_data fast pattern unittests added

13 years agobug #471 - http server body 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

13 years agorule analyzer: minor cleanups. Fix warning-only setting, allow true/yes/enabled for...
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.

13 years agoFix commandline supplied yaml path being ignored.
Victor Julien [Mon, 11 Jun 2012 20:46:25 +0000 (22:46 +0200)] 
Fix commandline supplied yaml path being ignored.

13 years agofeature 349 rule analyzer v1
Eileen Donlon [Mon, 30 Apr 2012 23:23:23 +0000 (19:23 -0400)] 
feature 349 rule analyzer v1

13 years agoOpenBSD: fix tar command.
Eric Leblond [Sun, 10 Jun 2012 18:23:56 +0000 (20:23 +0200)] 
OpenBSD: fix tar command.

13 years agoconfig: use config file in sysconfdir by default.
Eric Leblond [Sun, 10 Jun 2012 18:23:55 +0000 (20:23 +0200)] 
config: use config file in sysconfdir by default.

13 years agoAdded -T switch to suricata output.
marcos [Thu, 7 Jun 2012 17:58:31 +0000 (13:58 -0400)] 
Added -T switch to suricata output.

Simply added the -T to be printed out when suricata is run without any
arguments.  The capability to test a configuration file has been in
suricata for some time, just doesn't show up as an option right now.

13 years agofilemd5: implement negated matching.
Victor Julien [Sun, 10 Jun 2012 13:27:08 +0000 (15:27 +0200)] 
filemd5: implement negated matching.

13 years agoUpdate changelog to reflect 1.3beta2 changes. suricata-1.3beta2
Victor Julien [Fri, 8 Jun 2012 13:38:57 +0000 (15:38 +0200)] 
Update changelog to reflect 1.3beta2 changes.

13 years agoDisable dce unittests that tick off clamav. #458.
Victor Julien [Fri, 8 Jun 2012 14:07:55 +0000 (16:07 +0200)] 
Disable dce unittests that tick off clamav. #458.

13 years agobug #458 - unittest that uses clamav FPing payload disabled for now. Needs to be...
Anoop Saldanha [Thu, 7 Jun 2012 20:34:15 +0000 (02:04 +0530)] 
bug #458 - unittest that uses clamav FPing payload disabled for now. Needs to be rewritten though with new payloads

13 years agoFix compilation warning.
Victor Julien [Fri, 8 Jun 2012 07:44:30 +0000 (09:44 +0200)] 
Fix compilation warning.

13 years agotls: debug compilation fixes, new tls decoder rule for tls.error_message_encountered...
Victor Julien [Thu, 7 Jun 2012 15:33:49 +0000 (17:33 +0200)] 
tls: debug compilation fixes, new tls decoder rule for tls.error_message_encountered event.

13 years agossl connection error message event added. Remove warning log for the same error alert
Anoop Saldanha [Thu, 7 Jun 2012 13:59:04 +0000 (19:29 +0530)] 
ssl connection error message event added. Remove warning log for the same error alert

13 years agossl parser fix/updates
Anoop Saldanha [Fri, 18 May 2012 15:48:30 +0000 (21:18 +0530)] 
ssl parser fix/updates

13 years agoWe have a new probing parser to detect sslv2 records. todos to be covered later
Anoop Saldanha [Thu, 26 Apr 2012 11:54:39 +0000 (17:24 +0530)] 
We have a new probing parser to detect sslv2 records. todos to be covered later

13 years agofilemd5: handle case where no md5 support is compiled it.
Victor Julien [Thu, 7 Jun 2012 09:44:39 +0000 (11:44 +0200)] 
filemd5: handle case where no md5 support is compiled it.

13 years agoAdd filemd5 keyword that loads a list of md5's to match a file's md5 against.
Victor Julien [Wed, 6 Jun 2012 15:47:26 +0000 (17:47 +0200)] 
Add filemd5 keyword that loads a list of md5's to match a file's md5 against.

13 years agoAdd a new hash datatype to do speedy lookups of read only uniform data, like md5's.
Victor Julien [Wed, 6 Jun 2012 10:11:32 +0000 (12:11 +0200)] 
Add a new hash datatype to do speedy lookups of read only uniform data, like md5's.

13 years agopfring: protect pfring_set_bpf_filter with a lock as it's not thread safe.
Victor Julien [Mon, 4 Jun 2012 11:28:07 +0000 (13:28 +0200)] 
pfring: protect pfring_set_bpf_filter with a lock as it's not thread safe.

13 years agoAutotools: make 'install-full' now run 'install' too.
Eric Leblond [Sun, 3 Jun 2012 08:54:56 +0000 (10:54 +0200)] 
Autotools: make 'install-full' now run 'install' too.

13 years agounified2: minor cleanups
Victor Julien [Fri, 1 Jun 2012 07:04:07 +0000 (09:04 +0200)] 
unified2: minor cleanups

13 years agoImprove error reporting in case of syntax errors in the address and port vars.
Victor Julien [Thu, 31 May 2012 17:56:07 +0000 (19:56 +0200)] 
Improve error reporting in case of syntax errors in the address and port vars.

13 years agofile: fix file length and md5 tracking when file storing is disabled
Victor Julien [Thu, 31 May 2012 17:09:47 +0000 (19:09 +0200)] 
file: fix file length and md5 tracking when file storing is disabled

13 years ago#449: fix md5 calculation in daemon mode.
Victor Julien [Thu, 31 May 2012 17:08:46 +0000 (19:08 +0200)] 
#449: fix md5 calculation in daemon mode.

13 years agopfring: move missing timestamp handling code to PfringProcessPacket.
Victor Julien [Thu, 31 May 2012 09:33:44 +0000 (11:33 +0200)] 
pfring: move missing timestamp handling code to PfringProcessPacket.

13 years agoFix missing timestamps in some flavours of PF_RING
Chris Wakelin [Wed, 30 May 2012 20:53:21 +0000 (21:53 +0100)] 
Fix missing timestamps in some flavours of PF_RING

13 years agohttp: add test to make sure a missing space between header name and value is not...
Victor Julien [Wed, 30 May 2012 14:43:26 +0000 (16:43 +0200)] 
http: add test to make sure a missing space between header name and value is not a problem (ref #474).

13 years agounified2: big rewrite to clean up code that deals with tcp segment logging.
Victor Julien [Wed, 30 May 2012 13:27:16 +0000 (15:27 +0200)] 
unified2: big rewrite to clean up code that deals with tcp segment logging.

13 years agoOpenBSD: introduce SCLocalTime function.
Eric Leblond [Sun, 20 May 2012 15:12:19 +0000 (17:12 +0200)] 
OpenBSD: introduce SCLocalTime function.

This function is a wrapper to localtime_r. It is needed to avoid
a compilation warning on OpenBSD. I'm forced to type the function
to a non pointer first parameter. If not we will have to use two
differents functions in OpenBSD where tv->tv_sec is a long
(different from time_t).

13 years agoAdd debug messages to HTTP error/warning handling.
Victor Julien [Fri, 10 Feb 2012 13:29:16 +0000 (14:29 +0100)] 
Add debug messages to HTTP error/warning handling.

13 years agoSupport FNAME and FCOMMENT extensions in gzip'd http content.
Victor Julien [Fri, 10 Feb 2012 13:28:50 +0000 (14:28 +0100)] 
Support FNAME and FCOMMENT extensions in gzip'd http content.

13 years agostream: improve error checking.
Victor Julien [Fri, 25 May 2012 12:54:46 +0000 (14:54 +0200)] 
stream: improve error checking.

13 years agoreplace: add missing malloc return value check.
Victor Julien [Fri, 25 May 2012 10:47:57 +0000 (12:47 +0200)] 
replace: add missing malloc return value check.

13 years agopfring: follow API change
Eric Leblond [Thu, 24 May 2012 16:38:36 +0000 (18:38 +0200)] 
pfring: follow API change

As pointed out in issue #459, pf_ring API has changed. Since
5.4.0 release pf_ring_open has one less argument.

13 years agoMake sure all fake packets have datalink type DLT_RAW. Make sure stream end packets...
Victor Julien [Fri, 25 May 2012 08:21:39 +0000 (10:21 +0200)] 
Make sure all fake packets have datalink type DLT_RAW. Make sure stream end packets set pkt size.

13 years agoOpenBSD: setup specific place for magic file.
Eric Leblond [Tue, 22 May 2012 20:23:10 +0000 (22:23 +0200)] 
OpenBSD: setup specific place for magic file.

This patch fixes the path to the default magic file on OpenBSD.

13 years agounified2: minor cleanups.
Victor Julien [Wed, 23 May 2012 11:38:18 +0000 (13:38 +0200)] 
unified2: minor cleanups.

13 years agoOpenBSD: don't close std* to avoid problem.
Eric Leblond [Tue, 22 May 2012 22:40:03 +0000 (00:40 +0200)] 
OpenBSD: don't close std* to avoid problem.

13 years agopcap: lock pcap_compile and pcap_setfilter calls as they are not thread safe. Fixes...
Victor Julien [Wed, 23 May 2012 09:57:03 +0000 (11:57 +0200)] 
pcap: lock pcap_compile and pcap_setfilter calls as they are not thread safe. Fixes issues with bpf filters and multiple interfaces.

13 years agopcap: fix double free issue with bpf filter and multiple interfaces.
Victor Julien [Wed, 23 May 2012 09:19:04 +0000 (11:19 +0200)] 
pcap: fix double free issue with bpf filter and multiple interfaces.

13 years agoalert-debuglog: add size info for stream chunks and fix a typo.
Victor Julien [Tue, 22 May 2012 11:03:47 +0000 (13:03 +0200)] 
alert-debuglog: add size info for stream chunks and fix a typo.

13 years agodebuglog now uses the new mem buffer API. Improve file ctx locking to just the file...
Anoop Saldanha [Tue, 17 Apr 2012 07:51:58 +0000 (13:21 +0530)] 
debuglog now uses the new mem buffer API. Improve file ctx locking to just the file write

13 years agopcre: print filename and line number for JIT warning.
Victor Julien [Tue, 22 May 2012 10:46:19 +0000 (12:46 +0200)] 
pcre: print filename and line number for JIT warning.

13 years agobug #454 - rebase fix. Also use better error code to indicate invalid address var...
Anoop Saldanha [Mon, 21 May 2012 19:25:02 +0000 (00:55 +0530)] 
bug #454 - rebase fix. Also use better error code to indicate invalid address var yaml entry

13 years agobug #454 - add unittests for the address/port conf var validation function
Anoop Saldanha [Mon, 21 May 2012 19:16:30 +0000 (00:46 +0530)] 
bug #454 - add unittests for the address/port conf var validation function

13 years agobug #454 - global check to see if address and port vars are properly configured
Anoop Saldanha [Thu, 17 May 2012 16:23:36 +0000 (21:53 +0530)] 
bug #454 - global check to see if address and port vars are properly configured

13 years agoNo longer pass StreamMsg to output for alert logging, instead use the same callback...
Victor Julien [Mon, 21 May 2012 11:54:45 +0000 (13:54 +0200)] 
No longer pass StreamMsg to output for alert logging, instead use the same callback code as is used for state alerts.

13 years agostream: keep segments in memory until we are sure the stream/state is inspected.
Victor Julien [Sun, 20 May 2012 15:17:57 +0000 (17:17 +0200)] 
stream: keep segments in memory until we are sure the stream/state is inspected.

13 years agoset stream_eof flag per stream, only when the stream initiates a close. Fix htp parse...
Anoop Saldanha [Thu, 17 May 2012 08:11:23 +0000 (13:41 +0530)] 
set stream_eof flag per stream, only when the stream initiates a close. Fix htp parser to close connection per direction based on this

13 years agolibhtp fix for response body processing. Increment data counter for response body...
Anoop Saldanha [Wed, 16 May 2012 13:12:26 +0000 (18:42 +0530)] 
libhtp fix for response body processing. Increment data counter for response body processing when no contentlength or chunked scheme is used but the server closes the connection

13 years agoipv6: fix an AH header parsing issue. Add decoder event for non-null reserved fields.
Victor Julien [Sun, 20 May 2012 11:41:12 +0000 (13:41 +0200)] 
ipv6: fix an AH header parsing issue. Add decoder event for non-null reserved fields.

13 years agoImprove error message for malformed urilen value.
Victor Julien [Fri, 18 May 2012 11:38:04 +0000 (13:38 +0200)] 
Improve error message for malformed urilen value.

13 years agoAdd a nice error message when we exceeded address buffer limit for a rule
Anoop Saldanha [Fri, 4 May 2012 08:36:01 +0000 (14:06 +0530)] 
Add a nice error message when we exceeded address buffer limit for a rule

13 years agobug #451 fix for parsing address. Increase buffer size
Anoop Saldanha [Fri, 4 May 2012 06:36:20 +0000 (12:06 +0530)] 
bug #451 fix for parsing address. Increase buffer size

13 years agobug #461 - http header shouldn't match on cookie header
Anoop Saldanha [Tue, 15 May 2012 16:02:47 +0000 (21:32 +0530)] 
bug #461 - http header shouldn't match on cookie header

13 years agoOpenbsd: Fix some warning related to inline usage.
Eric Leblond [Fri, 11 May 2012 17:25:55 +0000 (19:25 +0200)] 
Openbsd: Fix some warning related to inline usage.

gcc on OpenBSD does not support C99 inline functions. This patch
modify the build system to handle this. It also change the order
of declaration of some functions to avoid to use them before
declaring them as inline.

13 years agohtp OpenBSD: fix inline related warning
Eric Leblond [Fri, 11 May 2012 17:25:54 +0000 (19:25 +0200)] 
htp OpenBSD: fix inline related warning

13 years agobug 418 - update http log to escape backslashes
Anoop Saldanha [Fri, 4 May 2012 16:11:51 +0000 (21:41 +0530)] 
bug 418 - update http log to escape backslashes

13 years agofix failing rate filter unittest
Anoop Saldanha [Tue, 15 May 2012 13:50:04 +0000 (19:20 +0530)] 
fix failing rate filter unittest

13 years agofix rate filters that reset the sig ctx data and handled action timeouts wrongly
Anoop Saldanha [Tue, 15 May 2012 13:12:24 +0000 (18:42 +0530)] 
fix rate filters that reset the sig ctx data and handled action timeouts wrongly

13 years agoindentation fix
Anoop Saldanha [Tue, 15 May 2012 12:57:37 +0000 (18:27 +0530)] 
indentation fix

13 years agofix rate filter alert suppression. Log error if rate filter has count of 0. Other...
Anoop Saldanha [Sun, 6 May 2012 16:37:22 +0000 (22:07 +0530)] 
fix rate filter alert suppression. Log error if rate filter has count of 0. Other minor fixes as well

13 years agoDisable some stream rules by default, fix sid no typo.
Victor Julien [Sat, 12 May 2012 23:48:07 +0000 (01:48 +0200)] 
Disable some stream rules by default, fix sid no typo.

13 years agomore coverity fixes
Anoop Saldanha [Thu, 3 May 2012 07:05:53 +0000 (12:35 +0530)] 
more coverity fixes

13 years agocoverity fixes
Anoop Saldanha [Wed, 2 May 2012 08:10:08 +0000 (13:40 +0530)] 
coverity fixes

13 years agoAdd TLS decoder event rule file.
Victor Julien [Wed, 2 May 2012 08:16:57 +0000 (10:16 +0200)] 
Add TLS decoder event rule file.

13 years agoDon't enable UNITTESTS in AF_PACKET detection.
Victor Julien [Wed, 2 May 2012 08:16:35 +0000 (10:16 +0200)] 
Don't enable UNITTESTS in AF_PACKET detection.

13 years agodisallow pcre /P/I/U with flow:to_client/from_svr
Eileen Donlon [Mon, 30 Apr 2012 16:01:41 +0000 (12:01 -0400)] 
disallow pcre /P/I/U with flow:to_client/from_svr

13 years agodisallow http_server_body with flow:to_server
Eileen Donlon [Mon, 30 Apr 2012 15:56:09 +0000 (11:56 -0400)] 
disallow http_server_body with flow:to_server

disallow http_server_body with flow:to_server or from_client

13 years agoallow only one flow option in a rule
Eileen Donlon [Mon, 30 Apr 2012 15:54:25 +0000 (11:54 -0400)] 
allow only one flow option in a rule

13 years agodisallow file_data with flow:to_server/from_client
Eileen Donlon [Mon, 30 Apr 2012 15:52:20 +0000 (11:52 -0400)] 
disallow file_data with flow:to_server/from_client

13 years agoMinor textual update.
Victor Julien [Tue, 1 May 2012 13:52:09 +0000 (15:52 +0200)] 
Minor textual update.

13 years agobug 454 - Provide better error message when the user supplies a NULL address range
Anoop Saldanha [Tue, 24 Apr 2012 07:33:09 +0000 (13:03 +0530)] 
bug 454 - Provide better error message when the user supplies a NULL address range

13 years agobug 456 fix for byte_extract to have array of the right size to update values with
Anoop Saldanha [Tue, 1 May 2012 08:09:01 +0000 (13:39 +0530)] 
bug 456 fix for byte_extract to have array of the right size to update values with

13 years agofix failing fast pattern unittests
Anoop Saldanha [Tue, 1 May 2012 06:21:47 +0000 (11:51 +0530)] 
fix failing fast pattern unittests

13 years agoFix OpenBSD compilation.
Eric Leblond [Fri, 27 Apr 2012 14:01:58 +0000 (16:01 +0200)] 
Fix OpenBSD compilation.

13 years agoUse less queues and threads in nfq autofp mode.
Victor Julien [Tue, 3 Apr 2012 18:19:04 +0000 (18:19 +0000)] 
Use less queues and threads in nfq autofp mode.

Moved outputs from their own thread to stream/detect threads.

13 years agofix detection filter unittests to reflect recent fixes
Anoop Saldanha [Tue, 24 Apr 2012 16:51:02 +0000 (22:21 +0530)] 
fix detection filter unittests to reflect recent fixes

13 years agocode cleanup
Anoop Saldanha [Tue, 24 Apr 2012 16:08:39 +0000 (21:38 +0530)] 
code cleanup

13 years agoconsidering the tenths of a seconds in a packet, when calculating thresholds
Anoop Saldanha [Mon, 23 Apr 2012 13:33:44 +0000 (19:03 +0530)] 
considering the tenths of a seconds in a packet, when calculating thresholds

13 years agofix detection filter. Had one extra alert than normal previously, now fixed
Anoop Saldanha [Mon, 23 Apr 2012 08:16:34 +0000 (13:46 +0530)] 
fix detection filter. Had one extra alert than normal previously, now fixed

13 years agofix FNs for flow- only_stream and no_stream options
Anoop Saldanha [Mon, 23 Apr 2012 06:35:49 +0000 (12:05 +0530)] 
fix FNs for flow- only_stream and no_stream options

13 years agocode cleanup - indentation fix
Anoop Saldanha [Fri, 20 Apr 2012 05:27:11 +0000 (10:57 +0530)] 
code cleanup - indentation fix

13 years agobug 452 - fix detection bug for sigs that don't have a content but need payload inspe...
Anoop Saldanha [Fri, 20 Apr 2012 05:25:16 +0000 (10:55 +0530)] 
bug 452 - fix detection bug for sigs that don't have a content but need payload inspection

13 years agobug 452 - enable http extra callbacks for configs other than the default configs
Anoop Saldanha [Fri, 20 Apr 2012 09:21:06 +0000 (14:51 +0530)] 
bug 452 - enable http extra callbacks for configs other than the default configs

13 years agoremove unused stream ssn flag - STREAMTCP_FLAG_TOSERVER_REASSEMBLY_STARTED
Anoop Saldanha [Sat, 21 Apr 2012 07:40:59 +0000 (13:10 +0530)] 
remove unused stream ssn flag - STREAMTCP_FLAG_TOSERVER_REASSEMBLY_STARTED

13 years agoFix linking with libdag
Jason Ish [Wed, 18 Apr 2012 17:25:12 +0000 (11:25 -0600)] 
Fix linking with libdag

13 years agoIncluded Action::Syslog by default in config
Martin Holste [Sat, 21 Apr 2012 14:41:06 +0000 (09:41 -0500)] 
Included Action::Syslog by default in config

13 years agoAdded Syslog action for logging to local syslog
Martin Holste [Sat, 21 Apr 2012 14:32:58 +0000 (09:32 -0500)] 
Added Syslog action for logging to local syslog