]>
git.ipfire.org Git - thirdparty/suricata.git/log
Eric Leblond [Thu, 23 Aug 2012 15:06:39 +0000 (17:06 +0200)]
tls: suppress always true condition.
Eric Leblond [Tue, 21 Aug 2012 13:42:10 +0000 (15:42 +0200)]
detect-tls: various indent fixes.
And delete a useless FIXME.
Eric Leblond [Thu, 23 Aug 2012 07:25:15 +0000 (09:25 +0200)]
tls: store all the certificates chain in the written PEM file.
When using the tls.store command, a dump of all certificates in
the chain is now done on the disk.
Eric Leblond [Wed, 18 Jul 2012 13:13:49 +0000 (15:13 +0200)]
tls: keep pointers to all certificates in chain
When multiple certificates forming a chain are sent. A pointer to
the start of each certificate is kept. This will allow treatment
on certificates chains.
Jean-Paul Roliers [Sat, 4 Feb 2012 16:37:41 +0000 (17:37 +0100)]
tls: adding store option for TLS
This patch adds a TLS store option to save certificate in PEM format.
Each time the store action is met, a file and a metafile are created.
Reworked-by: Eric Leblond <eric@regit.org>
Jean-Paul Roliers [Thu, 2 Feb 2012 15:45:35 +0000 (16:45 +0100)]
tls: adding support for fingerprint rule matching.
Add the support for tls.fingerprint keyword in rules.
Jean-Paul Roliers [Sat, 4 Feb 2012 16:15:11 +0000 (17:15 +0100)]
tls: adding fingerprint to TLS Log information.
Improve TLS logging by adding the certificate fingerprint to TLS Log file.
Add the extending option to the tls-log entry in suricata.yaml.
Jean-Paul Roliers [Thu, 2 Feb 2012 14:07:42 +0000 (15:07 +0100)]
tls: adding fingerprint calculation.
Adding a pointer in ssl_state struct and compute fingerprint during
certificate decoding.
Eric Leblond [Thu, 5 Apr 2012 14:45:24 +0000 (16:45 +0200)]
tls: add NSS version for SHA1 computing function.
Jean-Paul Roliers [Thu, 2 Feb 2012 13:51:31 +0000 (14:51 +0100)]
tls: adding cryptographic functions.
Adding util-crypt containing cryptographic functions as SHA1 and Base64.
Jean-Paul Roliers [Wed, 1 Feb 2012 21:36:44 +0000 (22:36 +0100)]
tls: adding TLS Log support
Creation of the log-tlslog file in order to log tls message.
Need to add some information into suricata.yaml to work.
- tls-log:
enabled: yes # Log TLS connections.
filename: tls.log # File to store TLS logs.
Anoop Saldanha [Thu, 19 Jul 2012 06:26:16 +0000 (11:56 +0530)]
Don't wait for packetpool to be back to full state before continuing with the shutdown process, on received shutdown signal
Anoop Saldanha [Thu, 19 Jul 2012 05:30:42 +0000 (11:00 +0530)]
Suricata shutdown updates + minor cleanup
Anoop Saldanha [Sun, 15 Jul 2012 08:21:14 +0000 (13:51 +0530)]
rx TMs shouldn't return TM_ECODE_FAILED if engine is in shutdown mode + minor cleanup
Ignacio Sanchez [Wed, 22 Aug 2012 15:38:32 +0000 (16:38 +0100)]
Custom logging feature for log-httplog
Eric Leblond [Wed, 8 Aug 2012 14:21:27 +0000 (16:21 +0200)]
decode: decode IPv6-in-IPv6
This patch adds decoding of IPv6-in-IPv6. It also adds some events
for invalid packets.
This patch should fix #514.
Victor Julien [Thu, 23 Aug 2012 06:41:45 +0000 (08:41 +0200)]
Update version number to reflect we're working towards 1.4 now.
Eric Leblond [Wed, 22 Aug 2012 10:40:01 +0000 (12:40 +0200)]
Add teredo counter.
Eric Leblond [Fri, 27 Jul 2012 07:25:45 +0000 (09:25 +0200)]
defrag: prealloc more frags.
Eric Leblond [Fri, 27 Jul 2012 07:25:27 +0000 (09:25 +0200)]
defrag: Fix description of params
The max-frags params is not what it is.
Eric Leblond [Thu, 26 Jul 2012 19:27:29 +0000 (21:27 +0200)]
defrag: add some events relative to defragmentation
Eric Leblond [Wed, 22 Aug 2012 12:24:30 +0000 (14:24 +0200)]
defrag: Fix unittest logic.
We've linked the size of hash with trackers. Thus calling DefragInit()
after setting the configuration variable is more logic.
Eric Leblond [Thu, 26 Jul 2012 16:29:51 +0000 (18:29 +0200)]
defrag: link hash size with number of frags.
We set defrag_hash_size by using the number of trackers. This is
effective to avoid collision.
Eric Leblond [Thu, 26 Jul 2012 15:03:30 +0000 (17:03 +0200)]
defrag: fix some integer type warning.
Eric Leblond [Tue, 24 Jul 2012 12:14:43 +0000 (14:14 +0200)]
defrag: really use 'max-frags' variable.
The 'max-frags' variable was not used and the 'trackers' variable was
not documented. This patch fixes the two issues.
Eric Leblond [Mon, 16 Jul 2012 10:16:37 +0000 (12:16 +0200)]
Teredo tunnel supports
This patch should fix #480 by adding the support of Teredo tunnel.
The IPv6 content of the tunnel will be parsed in a similar way as
what is done the GRE tunnel. Signatures will then be matched on the
IPv6 content.
Eric Leblond [Mon, 16 Jul 2012 14:11:40 +0000 (16:11 +0200)]
Add support for IPv4-in-IPv6
This patch adds support for IPv4-in-IPv6 and should fix #462.
Eric Leblond [Tue, 7 Aug 2012 16:20:13 +0000 (18:20 +0200)]
nfq: implement "fail-open" support.
On linux >= 3.6, you can use the fail-open option on a NFQ queue
to have the kernel accept the packet if userspace is not able to keep
pace.
Please note that the kernel will not trigger an error if the feature is activated
in userspace libraries but not available in kernel.
This patch implements the option for suricata by adding a nfq.fail-open
configuration variable which is desactivated by default.
Eric Leblond [Thu, 5 Jul 2012 20:38:00 +0000 (22:38 +0200)]
yaml: suppress old variable in pfring section.
Eric Leblond [Thu, 5 Jul 2012 21:24:38 +0000 (23:24 +0200)]
autotools: error on autoreconf is an error
Eric Leblond [Tue, 31 Jul 2012 12:37:37 +0000 (14:37 +0200)]
autotools: fix detection with clang
This patch improve detection of type of nfq_get_payload() by only
converting to error the warning we have when using the wrong type.
Eric Leblond [Tue, 21 Aug 2012 17:12:20 +0000 (19:12 +0200)]
autotools: rename configure.in to configure.ac
configure.in is deprecated since long and will be replaced by
configure.ac. For more information, see:
http://lists.gnu.org/archive/html/automake/2012-08/msg00023.html
Eric Leblond [Thu, 9 Aug 2012 14:47:52 +0000 (16:47 +0200)]
tm-thread: exit loop if suri want to quit
Eric Leblond [Thu, 9 Aug 2012 14:24:18 +0000 (16:24 +0200)]
tm-thread: run thread init function sequentially.
On some setup you want to run each thread init function sequentially.
For example, if I use flow_cpu load balancing on AF_PACKET, my target
is to have CPU 0 (first socket in the group) to be link with the
thread 0 in detect cpu set (first thread to be initialised). A good
way to achieve this is to run only one thread init function at a time
to avoid any possible race condition.
Victor Julien [Mon, 20 Aug 2012 12:23:19 +0000 (14:23 +0200)]
Update Changelog to include 1.3.1 changes.
Victor Julien [Mon, 20 Aug 2012 06:54:45 +0000 (08:54 +0200)]
rule analyzer: make analyzer aware of http_user_agent pcre flag /V.
Victor Julien [Fri, 17 Aug 2012 15:23:39 +0000 (17:23 +0200)]
http: after path double decoding, also normalize the path again. #504.
Victor Julien [Fri, 17 Aug 2012 11:37:40 +0000 (13:37 +0200)]
Http: don't double decode URI path and query by default. Instead add per server options to enable double decoding for both cases. #464 #504.
Victor Julien [Fri, 17 Aug 2012 09:07:48 +0000 (11:07 +0200)]
Only set SIG_FLAG_REQUIRE_STREAM if signature inspects TCP.
Victor Julien [Fri, 17 Aug 2012 08:43:45 +0000 (10:43 +0200)]
rule analyzer: fix fast pattern analyzer reporting wrong filename (same as rule analyzer).
Eric Leblond [Thu, 16 Aug 2012 06:57:19 +0000 (08:57 +0200)]
stream-tcp: no checksum alert if validation is off
This patch disables checksum alert if checksum-validation is set
to no in the configuration file. Without this patch, when parsing
a pcap which checksum offloading, it was not possible to get rid
of event caused by checksum validation.
Victor Julien [Thu, 16 Aug 2012 10:41:53 +0000 (12:41 +0200)]
stream: handle case where Suricata sees 3whs-ACK but server doesn't. Bug #523.
Victor Julien [Wed, 15 Aug 2012 15:13:33 +0000 (17:13 +0200)]
stream: fix unittest broken by new flags handling.
Victor Julien [Tue, 14 Aug 2012 11:49:13 +0000 (13:49 +0200)]
http: add more decoding unittests.
Victor Julien [Thu, 9 Aug 2012 14:59:49 +0000 (16:59 +0200)]
Bug #510. Produce error if max-pending-packets is higher than 65534.
Victor Julien [Thu, 9 Aug 2012 14:07:41 +0000 (16:07 +0200)]
profiling: fix 'match' counter sometimes not incrementing. #460.
Victor Julien [Thu, 9 Aug 2012 14:02:04 +0000 (16:02 +0200)]
Use SCFree instead of free in DER decoder.
Victor Julien [Wed, 8 Aug 2012 12:29:31 +0000 (14:29 +0200)]
stream: improve TCP flags handling
Eric Leblond [Mon, 30 Jul 2012 10:11:23 +0000 (12:11 +0200)]
af-packet: fix reconnect code
Reconnect code was in a "work by luck" stage as we did not update
the socket number after reconnect.
Anoop Saldanha [Wed, 1 Aug 2012 15:30:11 +0000 (21:00 +0530)]
Update fast_pattern engine to not use negated content as fast_pattern if we have non-negated content in the sig.
Noticing a good spike in perf with et_pro ruleset.
Thanks to Will Metcalf for the suggestion.
Anoop Saldanha [Mon, 9 Jul 2012 04:31:54 +0000 (10:01 +0530)]
bug #466 - Updated getticks() to serialize execution of rdtsc with cpuid
Anoop Saldanha [Thu, 19 Jul 2012 08:02:01 +0000 (13:32 +0530)]
bug 508 - List (ack | cwr | ecn) combination to be accepted by our stream engine.
This isn't a perfect solution. More like we have patched this for the case we
are in tcp's established state. The right solution would be to accept states
based on the presence(using operator OR) of certain flags in the tcp header,
rather than list out all possible flag combinations.
Anoop Saldanha [Wed, 11 Jul 2012 14:39:24 +0000 (20:09 +0530)]
invalidate sigs if depth > content_length
Eric Leblond [Wed, 1 Aug 2012 09:04:37 +0000 (11:04 +0200)]
tls: fix keyword regular expression
Space, dash and comma are valid.
Eric Leblond [Fri, 27 Jul 2012 09:29:37 +0000 (11:29 +0200)]
af-packet: loop on ring if there is data to read.
This patch should bring some improvements by looping on the
ring when there is some data available instead of getting back
to the poll. It also fix recovery in case of drops on the ring
because the poll command will not return correctly in this case.
Eric Leblond [Fri, 27 Jul 2012 09:22:03 +0000 (11:22 +0200)]
defrag: use IP ID in hash
This patch fixes the collision issue observed on an intensive network
trafic. When there is fragmentation it is the case for all data
exchanged between two hosts. Thus using a hash func only involving
IP addresses (and protocol) was leading to a collision for all
exchanges between the hosts. At a larger scale, it was resulting in
a packet loss. By using the IP ID instead of the protocol family, we
introduce a real difference between the trackers.
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.