]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
8 years agopcap-log: seed ring buffer on start up 2414/head
Jason Ish [Sat, 24 Sep 2016 02:46:06 +0000 (20:46 -0600)] 
pcap-log: seed ring buffer on start up

On start, look for existing pcap log files and add them to
the ring buffer. This makes pcap-log self maintaining over
restarts removing the need for external tools to clear
orphaned files.

8 years agodocumentation: fix list keywords URLs
Eric Leblond [Wed, 9 Nov 2016 19:08:07 +0000 (14:08 -0500)] 
documentation: fix list keywords URLs

Update URLs in keyword definition to point to sphinx documentation.

8 years agologging: hook the application log file into rotation
Jason Ish [Tue, 8 Nov 2016 17:02:23 +0000 (12:02 -0500)] 
logging: hook the application log file into rotation

8 years agologging: open application log file in append mode
Jason Ish [Tue, 8 Nov 2016 15:13:01 +0000 (10:13 -0500)] 
logging: open application log file in append mode

It was being open in read/write mode, which was likely
a mistake with append mode being the intention.

8 years agodns: accept a data length of 0 without marking as malformed
Jason Ish [Mon, 7 Nov 2016 15:46:45 +0000 (10:46 -0500)] 
dns: accept a data length of 0 without marking as malformed

Addresses issue:
https://redmine.openinfosecfoundation.org/issues/1924

8 years agodns-events: fix direction of malformed events + typo
Jason Ish [Mon, 7 Nov 2016 15:02:18 +0000 (10:02 -0500)] 
dns-events: fix direction of malformed events + typo

8 years agoipfw: disable more code to suppress compiler warnings
Jason Ish [Mon, 21 Nov 2016 16:24:17 +0000 (10:24 -0600)] 
ipfw: disable more code to suppress compiler warnings

Disabled code lead to unused variable warnings, so disable the
variable code as well.

8 years agocompiler warnings: fix compiler warnings in format strings
Jason Ish [Mon, 21 Nov 2016 16:16:14 +0000 (10:16 -0600)] 
compiler warnings: fix compiler warnings in format strings

8 years agodetect-lua: unify on using 'lua' name vs 'luajit'
Victor Julien [Fri, 18 Nov 2016 10:18:57 +0000 (11:18 +0100)] 
detect-lua: unify on using 'lua' name vs 'luajit'

8 years agoluajit: remove unused instance counter
Victor Julien [Fri, 18 Nov 2016 10:18:33 +0000 (11:18 +0100)] 
luajit: remove unused instance counter

8 years agoluajit: update default yaml and doc for 'states'
Victor Julien [Thu, 17 Nov 2016 13:27:41 +0000 (14:27 +0100)] 
luajit: update default yaml and doc for 'states'

8 years agolua: luajit improvements
Victor Julien [Thu, 17 Nov 2016 07:54:44 +0000 (08:54 +0100)] 
lua: luajit improvements

Luajit has a strange memory requirement, it's 'states' need to be in the
first 2G of the process' memory.

This patch improves the pool approach by moving it to the front of the
start up.

A new config option 'luajit.states' is added to control how many states
are preallocated. It defaults to 128.

Add a warning when more states are used then preallocated. This may fail
if flow/stream/detect engines use a lot of memory. Add hint at exit that
gives the max states in use if it's higher than the default.

8 years agodoc: only build pdf on dist if pdflatex is installed
Jason Ish [Fri, 18 Nov 2016 17:50:02 +0000 (11:50 -0600)] 
doc: only build pdf on dist if pdflatex is installed

8 years agodoc: fix build pdf on non gnu make platforms
Jason Ish [Fri, 18 Nov 2016 17:41:11 +0000 (11:41 -0600)] 
doc: fix build pdf on non gnu make platforms

The Makefile generated by sphinx-build is GNU Make specific
causing the PDF phase to fail. Instead call pdflatex directly
based on how the generated Makefile was doing it.

8 years agopcap-file: minor cleanup
Victor Julien [Wed, 23 Nov 2016 09:35:42 +0000 (10:35 +0100)] 
pcap-file: minor cleanup

8 years agochangelog: update for 3.2RC1 release suricata-3.2RC1
Victor Julien [Tue, 1 Nov 2016 12:11:18 +0000 (13:11 +0100)] 
changelog: update for 3.2RC1 release

8 years agoyaml: group ICS protocols together 2393/head
Victor Julien [Mon, 31 Oct 2016 13:11:57 +0000 (14:11 +0100)] 
yaml: group ICS protocols together

8 years agoENIP: add default ports to yaml
Victor Julien [Mon, 31 Oct 2016 13:10:53 +0000 (14:10 +0100)] 
ENIP: add default ports to yaml

8 years agoENIP: disable parser if no config found
Victor Julien [Mon, 31 Oct 2016 12:41:46 +0000 (13:41 +0100)] 
ENIP: disable parser if no config found

8 years agoDNP3: disable in case of no dnp3 config
Victor Julien [Mon, 31 Oct 2016 12:40:19 +0000 (13:40 +0100)] 
DNP3: disable in case of no dnp3 config

8 years agoreadme: Fix markdown header levels
Priit Laes [Thu, 27 Oct 2016 11:41:00 +0000 (14:41 +0300)] 
readme: Fix markdown header levels

8 years agoreadme: reformat some key points about possible security issues
Priit Laes [Thu, 27 Oct 2016 11:38:28 +0000 (14:38 +0300)] 
readme: reformat some key points about possible security issues

8 years agoreadme: Add link to up-to-date user guide and mark wiki as deprecated.
Priit Laes [Thu, 27 Oct 2016 11:37:56 +0000 (14:37 +0300)] 
readme: Add link to up-to-date user guide and mark wiki as deprecated.

8 years agodnp3: fix coverity checks; return value not checked
Jason Ish [Thu, 27 Oct 2016 17:19:05 +0000 (11:19 -0600)] 
dnp3: fix coverity checks; return value not checked

8 years agodetect: add missing break (CID 1374301)
Victor Julien [Mon, 31 Oct 2016 10:30:26 +0000 (11:30 +0100)] 
detect: add missing break (CID 1374301)

8 years agoeve: make payload printing in alerts more robust
Victor Julien [Mon, 31 Oct 2016 10:14:41 +0000 (11:14 +0100)] 
eve: make payload printing in alerts more robust

8 years agoflowint: allow / in name
Victor Julien [Fri, 28 Oct 2016 10:23:23 +0000 (12:23 +0200)] 
flowint: allow / in name

8 years agohostbits: test fixes
Victor Julien [Tue, 25 Oct 2016 19:15:44 +0000 (21:15 +0200)] 
hostbits: test fixes

8 years agopkt-var: const name
Victor Julien [Thu, 27 Oct 2016 12:56:21 +0000 (14:56 +0200)] 
pkt-var: const name

8 years agoDNP3: minor cleanup 2391/head
Victor Julien [Thu, 27 Oct 2016 09:55:28 +0000 (11:55 +0200)] 
DNP3: minor cleanup

8 years agoDNP3: don't leak memory on dnp3_obj parsing
Victor Julien [Thu, 27 Oct 2016 09:55:17 +0000 (11:55 +0200)] 
DNP3: don't leak memory on dnp3_obj parsing

8 years agoDNP3: Use directional logging.
Jason Ish [Wed, 13 Jul 2016 15:04:15 +0000 (09:04 -0600)] 
DNP3: Use directional logging.

Instead of waiting for a transaction complete, log the
request as soon as it is completes which will give it a
more accurate timestamp.

8 years agoDNP3: --afl-dnp3 entry point
Jason Ish [Fri, 15 Apr 2016 22:49:28 +0000 (16:49 -0600)] 
DNP3: --afl-dnp3 entry point

8 years agoDNP3: Lua detect support.
Jason Ish [Thu, 10 Dec 2015 17:59:48 +0000 (11:59 -0600)] 
DNP3: Lua detect support.

Adds support for access the DNP3 transaction in Lua rules.

8 years agoDNP3: Log DNP3 info with DNP3 alert.
Jason Ish [Mon, 28 Sep 2015 22:33:48 +0000 (16:33 -0600)] 
DNP3: Log DNP3 info with DNP3 alert.

8 years agoDNP3: Log DNP3 transactions.
Jason Ish [Thu, 7 May 2015 17:53:39 +0000 (11:53 -0600)] 
DNP3: Log DNP3 transactions.

8 years agoDNP3: dnp3_data, dnp3_func, dnp3_ind, dnp3_obj rule keywords
Jason Ish [Fri, 10 Apr 2015 16:22:25 +0000 (10:22 -0600)] 
DNP3: dnp3_data, dnp3_func, dnp3_ind, dnp3_obj rule keywords

8 years agoDNP3: Application layer decoder.
Jason Ish [Fri, 10 Apr 2015 15:33:20 +0000 (09:33 -0600)] 
DNP3: Application layer decoder.

Decodes TCP DNP3 and raises some DNP3 decoder alerts.

8 years agoDNP3: dnp3-gen: code generator for repetitive DNP3 code
Jason Ish [Mon, 8 Feb 2016 21:16:01 +0000 (15:16 -0600)] 
DNP3: dnp3-gen: code generator for repetitive DNP3 code

8 years agocommon: define json_boolean when not defined
Jason Ish [Mon, 25 Apr 2016 06:17:58 +0000 (00:17 -0600)] 
common: define json_boolean when not defined

Older versions of jansson in current use don't have this
macro defined.

8 years agoeve: check redis reply in non pipeline mode
fooinha [Mon, 24 Oct 2016 15:52:06 +0000 (15:52 +0000)] 
eve: check redis reply in non pipeline mode

We may lose the reply if disconnection happens.
Reconnection is needed.

8 years agoflowvar: cleanups
Victor Julien [Wed, 26 Oct 2016 14:19:13 +0000 (16:19 +0200)] 
flowvar: cleanups

8 years agofast-pattern: fix tls_sni
Jason Ish [Wed, 26 Oct 2016 21:34:43 +0000 (15:34 -0600)] 
fast-pattern: fix tls_sni

Use all 38 arguments in call to SigMatchGetLastSMFromLists

Was preventing fast_pattern from being applied to tls_sni:
https://redmine.openinfosecfoundation.org/issues/1936

8 years agodns: use new unittest macros 2386/head
Jason Ish [Tue, 25 Oct 2016 20:56:09 +0000 (14:56 -0600)] 
dns: use new unittest macros

8 years agodns: support back to back requests without a response
Jason Ish [Tue, 25 Oct 2016 06:13:07 +0000 (00:13 -0600)] 
dns: support back to back requests without a response

Address the issue where a DNS response would not be logged when
the traffic is like:
- Request 1
- Request 2
- Response 1
- Response 2
which can happen on dual stack machines where the request for A
and AAAA are sent out at the same time on the same UDP "session".

A "window" is used to set the maximum number of outstanding
responses before considering the olders lost.

8 years agotcp dns: unit test for multi-request buffer
Jason Ish [Wed, 26 Oct 2016 15:48:42 +0000 (09:48 -0600)] 
tcp dns: unit test for multi-request buffer

8 years agotcp dns: fix advancement to next request in buffer
Jason Ish [Tue, 25 Oct 2016 20:13:31 +0000 (14:13 -0600)] 
tcp dns: fix advancement to next request in buffer

The advancement through the buffer was not taking into account
the size of the length field resulting in the second request
being detected as bad data.

8 years agomulti-tenant: make less verbose 2384/head
Victor Julien [Wed, 26 Oct 2016 08:33:55 +0000 (10:33 +0200)] 
multi-tenant: make less verbose

8 years agomulti-tenants: fix minor memleak
Victor Julien [Tue, 25 Oct 2016 18:58:53 +0000 (20:58 +0200)] 
multi-tenants: fix minor memleak

8 years agodetect: suppress debug message for reloads
Victor Julien [Wed, 26 Oct 2016 08:34:28 +0000 (10:34 +0200)] 
detect: suppress debug message for reloads

8 years agovars: small cleanups
Victor Julien [Thu, 20 Oct 2016 12:21:53 +0000 (14:21 +0200)] 
vars: small cleanups

8 years agonfq: support bypass for rebuilt fragment packets 2383/head
Victor Julien [Tue, 25 Oct 2016 12:31:41 +0000 (14:31 +0200)] 
nfq: support bypass for rebuilt fragment packets

8 years agonfq_set_mask: set mark on root pkt for tunnels
Victor Julien [Tue, 25 Oct 2016 12:25:55 +0000 (14:25 +0200)] 
nfq_set_mask: set mark on root pkt for tunnels

8 years agosource-nfq: document bypass function
Eric Leblond [Wed, 19 Oct 2016 20:05:25 +0000 (22:05 +0200)] 
source-nfq: document bypass function

8 years agosource-nfq: fix tunnel mark callback algorithm
Eric Leblond [Wed, 12 Oct 2016 20:18:12 +0000 (22:18 +0200)] 
source-nfq: fix tunnel mark callback algorithm

In case of a tunnel packet, adding a mark to the root packet will have
for consequence to bypass all the flows that are hosted in this tunnel.
This is not the attended behavior and as initial fix let's simply warn
suricata that bypass for NFQ is not possible for this kind of packets.

This patch also fixes a segfault. The root packet was accessed even if it is
NULL causing a NULL dereference:

ASAN:SIGSEGV
=================================================================
==24408==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000060 (pc 0x00000076f948 bp 0x7f435c000240 sp 0x7f435c000220 T5)
ASAN:SIGSEGV
==24408==AddressSanitizer: while reporting a bug found another one. Ignoring.
    #0 0x76f947 in NFQBypassCallback /home/victor/dev/suricata/src/source-nfq.c:510
    #1 0x4d0f02 in PacketBypassCallback /home/victor/dev/suricata/src/decode.c:395
    #2 0x7b8a95 in StreamTcpPacket /home/victor/dev/suricata/src/stream-tcp.c:4661
    #3 0x7b9ddd in StreamTcp /home/victor/dev/suricata/src/stream-tcp.c:4913
    #4 0x68fa50 in FlowWorker /home/victor/dev/suricata/src/flow-worker.c:194
    #5 0x7f0abd in TmThreadsSlotVarRun /home/victor/dev/suricata/src/tm-threads.c:128
    #6 0x7f2958 in TmThreadsSlotVar /home/victor/dev/suricata/src/tm-threads.c:585
    #7 0x7f436368e6f9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76f9)
    #8 0x7f4362802b5c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x106b5c)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/victor/dev/suricata/src/source-nfq.c:510 NFQBypassCallback
Thread T5 (W#04) created by T0 (Suricata-Main) here:
    #0 0x7f4364ff2253 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
    #1 0x7f9c48 in TmThreadSpawn /home/victor/dev/suricata/src/tm-threads.c:1843
    #2 0x8da7c0 in RunModeSetIPSAutoFp /home/victor/dev/suricata/src/util-runmodes.c:519
    #3 0x73e3ff in RunModeIpsNFQAutoFp /home/victor/dev/suricata/src/runmode-nfq.c:74
    #4 0x7503fa in RunModeDispatch /home/victor/dev/suricata/src/runmodes.c:382
    #5 0x7e5cb3 in main /home/victor/dev/suricata/src/suricata.c:2547
    #6 0x7f436271c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

8 years agotls-rules: install on 'make install-full' 2381/head
Victor Julien [Tue, 25 Oct 2016 06:58:32 +0000 (08:58 +0200)] 
tls-rules: install on 'make install-full'

8 years agodetect: fix multi-tenant loaders
Victor Julien [Sat, 22 Oct 2016 20:14:10 +0000 (22:14 +0200)] 
detect: fix multi-tenant loaders

8 years agoflow-timeout: fix memory errors on flow bypass 2367/head
Victor Julien [Wed, 19 Oct 2016 10:52:46 +0000 (12:52 +0200)] 
flow-timeout: fix memory errors on flow bypass

For flow bypass, the flow timeout handling is triggered which may
create up to 3 pseudo packets that hold a reference to the flow.
However, in the bypass case the code signaled to the timeout logic
that the flow can be freed unconditionally by returning 1. This
lead to packets going through the engine with a pointer to a now
freed/recycled flow.

This patch fixes the logic by removing the special bypass case,
which seemed redundant anyway. Effectively reverts 68d9677.

Bug #1928.

8 years agoflow-manager: cleanups and comment improvements
Victor Julien [Wed, 19 Oct 2016 10:50:47 +0000 (12:50 +0200)] 
flow-manager: cleanups and comment improvements

8 years agoflow-timeout: don't leak flow reference in error path
Victor Julien [Wed, 19 Oct 2016 09:11:10 +0000 (11:11 +0200)] 
flow-timeout: don't leak flow reference in error path

8 years agodoc: add rate_filter 2364/head
Victor Julien [Tue, 18 Oct 2016 16:33:11 +0000 (18:33 +0200)] 
doc: add rate_filter

8 years agoalert: fix rate_filter issues
Victor Julien [Tue, 18 Oct 2016 16:09:39 +0000 (18:09 +0200)] 
alert: fix rate_filter issues

Fix rate_filter issues: if action was modified it wouldn't be logged
in EVE. To address this pass the PacketAlert structure to the threshold
code so it can flag the PacketAlert as modified. Use this in logging.

Update API to use const where possible. Fix a timout issue that this
uncovered.

8 years agoconf: cleanup compiler warning (unintialized vars)
Jason Ish [Mon, 17 Oct 2016 18:56:35 +0000 (12:56 -0600)] 
conf: cleanup compiler warning (unintialized vars)

8 years agodoc: flow: update and add new keywords
Jason Ish [Thu, 13 Oct 2016 19:53:27 +0000 (13:53 -0600)] 
doc: flow: update and add new keywords

8 years agodetect-flow: no_frag and only_frag keyword support
Jason Ish [Thu, 13 Oct 2016 17:31:21 +0000 (11:31 -0600)] 
detect-flow: no_frag and only_frag keyword support

Support flow:no_frag and flow:only_frag keywords from Snort.

8 years agodefrag: set flag on packets reassembled from fragments
Jason Ish [Thu, 13 Oct 2016 18:08:40 +0000 (12:08 -0600)] 
defrag: set flag on packets reassembled from fragments

Set the PKT_REBUILT_FRAGMENT on packets that are re-assembled
from fragments.

8 years agodetect-flow: support flow:not_established
Jason Ish [Tue, 11 Oct 2016 17:11:26 +0000 (11:11 -0600)] 
detect-flow: support flow:not_established

8 years agodetect-flow: use new unit test macros
Jason Ish [Tue, 11 Oct 2016 16:43:34 +0000 (10:43 -0600)] 
detect-flow: use new unit test macros

8 years agofile-hashing: Fixed line parsing code
Duarte Silva [Sat, 15 Oct 2016 14:53:03 +0000 (16:53 +0200)] 
file-hashing: Fixed line parsing code

8 years agodoc: initial app-layer keywords 2360/head
Victor Julien [Fri, 14 Oct 2016 15:28:34 +0000 (17:28 +0200)] 
doc: initial app-layer keywords

Document app-layer-protocol and make a start with app-layer-event.

8 years agodetect-app-layer-protocol: improve rule validation
Victor Julien [Fri, 14 Oct 2016 08:23:44 +0000 (10:23 +0200)] 
detect-app-layer-protocol: improve rule validation

Also add tests for PD-only conditions

8 years agodetect-app-layer-protocol: implement prefilter
Victor Julien [Fri, 14 Oct 2016 08:11:56 +0000 (10:11 +0200)] 
detect-app-layer-protocol: implement prefilter

Introduce 'Protocol detection'-only rules. These rules will only be
fully evaluated when the protocol detection completed. To allow
mixing of the app-layer-protocol keyword with other types of matches
the keyword can also inspect the flow's app-protos per packet.

Implement prefilter for the 'PD-only' rules.

8 years agodetect-app-layer-protocol: convert to pkt match
Victor Julien [Thu, 13 Oct 2016 21:33:06 +0000 (23:33 +0200)] 
detect-app-layer-protocol: convert to pkt match

8 years agoeve: print app_proto_ts/app_proto_tc
Victor Julien [Sat, 8 Oct 2016 21:08:04 +0000 (23:08 +0200)] 
eve: print app_proto_ts/app_proto_tc

8 years agologging: return string for ALPROTO_FAILED
Victor Julien [Sat, 8 Oct 2016 21:07:32 +0000 (23:07 +0200)] 
logging: return string for ALPROTO_FAILED

8 years agoapp-layer counters: count failed protocol detect
Victor Julien [Sat, 8 Oct 2016 20:54:19 +0000 (22:54 +0200)] 
app-layer counters: count failed protocol detect

8 years agoproto-detect: clean up UDP handling
Victor Julien [Mon, 10 Oct 2016 10:06:48 +0000 (12:06 +0200)] 
proto-detect: clean up UDP handling

Set FAILED instead of using a flow flag. Flag packets in both
sides when detection is done. Detection is only done in one
direction.

8 years agoproto detect: improve error case handling
Victor Julien [Sun, 9 Oct 2016 21:49:09 +0000 (23:49 +0200)] 
proto detect: improve error case handling

Improve flags logic, update tests.

8 years agodetect-app-layer-protocol: improve error handling
Victor Julien [Sun, 9 Oct 2016 09:23:49 +0000 (11:23 +0200)] 
detect-app-layer-protocol: improve error handling

Redo tests.

8 years agoproto-detect: update mismatch handling
Victor Julien [Sat, 8 Oct 2016 16:00:37 +0000 (18:00 +0200)] 
proto-detect: update mismatch handling

Improve protocol mismatch handling. Preserve both protos. Use otherdir
if already sent to parser, use toclient otherwise.

8 years agoapp-layer-protocol: improve detection
Victor Julien [Sat, 8 Oct 2016 17:31:38 +0000 (19:31 +0200)] 
app-layer-protocol: improve detection

Add negated matches to match list instead of amatch.

Allow matching on 'failed'.

Introduce per packet flags for proto detection. Flags are used to
only inspect once per direction. Flag packet on PD-failure too.

8 years agoproto detect: remove flow data tracking
Victor Julien [Sat, 8 Oct 2016 10:02:25 +0000 (12:02 +0200)] 
proto detect: remove flow data tracking

The Flow::data_al_so_far was used for tracking data already
parsed when protocol for the current direction wasn't known yet. As
this behaviour has changed the tracking can be removed.

8 years agoproto detect: update behavior on partial detection
Victor Julien [Sat, 8 Oct 2016 09:47:35 +0000 (11:47 +0200)] 
proto detect: update behavior on partial detection

When the current direction doesn't get a protocol detection, but the
opposing direction did, previously we would send the current data to
the parser. Then when we'd be invoked again (until the protocol
detection finally failed) we'd get the same data + the new data. To
make sure we'd not send the same data to the parser again, the flow
kept track of how much was already sent to the app-layer using
data_al_so_far.

This patch changes the behaviour. Instead of sending the data for
the current direction right away, we only do this when protocol
detection is complete. This way we won't have to track anything.

8 years agoproto detect: TCP cleanup
Victor Julien [Sat, 8 Oct 2016 08:22:35 +0000 (10:22 +0200)] 
proto detect: TCP cleanup

Split function into multiple smaller ones.

8 years agoapp-layer: clean up counters registration
Victor Julien [Mon, 10 Oct 2016 09:18:06 +0000 (11:18 +0200)] 
app-layer: clean up counters registration

8 years agodoc: app-layer tls including no-reassemble 2353/head
Victor Julien [Wed, 12 Oct 2016 10:30:19 +0000 (12:30 +0200)] 
doc: app-layer tls including no-reassemble

8 years agotls: change 'no-reassemble' option to default off
Victor Julien [Wed, 12 Oct 2016 09:21:28 +0000 (11:21 +0200)] 
tls: change 'no-reassemble' option to default off

This option was broken so there should be no visible change to
actual deployments.

8 years agoprelude: add IPv6 support
Thomas Andrejak [Mon, 16 May 2016 10:56:50 +0000 (12:56 +0200)] 
prelude: add IPv6 support

8 years agoprelude: add missing TCP header to additional data
Thomas Andrejak [Mon, 16 May 2016 10:56:12 +0000 (12:56 +0200)] 
prelude: add missing TCP header to additional data

8 years agoprelude: update URL
Thomas ANDREJAK [Thu, 7 Apr 2016 20:54:56 +0000 (22:54 +0200)] 
prelude: update URL

8 years agoprelude: coding style, it's better to use macro
Thomas Andrejak [Mon, 16 May 2016 10:55:32 +0000 (12:55 +0200)] 
prelude: coding style, it's better to use macro

8 years agoprelude: Add other actions than just ACTION_DROP when packet drop
Thomas Andrejak [Mon, 16 May 2016 10:36:29 +0000 (12:36 +0200)] 
prelude: Add other actions than just ACTION_DROP when packet drop

8 years agoprelude: Add log when failed to create assessment or impact object
Thomas Andrejak [Mon, 16 May 2016 10:35:17 +0000 (12:35 +0200)] 
prelude: Add log when failed to create assessment or impact object

8 years agoAdd macro for TCP and UDP header access
Thomas Andrejak [Mon, 16 May 2016 10:37:38 +0000 (12:37 +0200)] 
Add macro for TCP and UDP header access

8 years agoapp-layer-tls: stop detection if no reassembly
Eric Leblond [Fri, 7 Oct 2016 07:51:22 +0000 (16:51 +0900)] 
app-layer-tls: stop detection if no reassembly

It no-reassembly is asked in TLS conf then we can stop inspection
after handshake and cause bypass to be triggered on the flow.

8 years agostream-tcp: bypass encrypted when both side ready
Eric Leblond [Thu, 6 Oct 2016 05:10:13 +0000 (14:10 +0900)] 
stream-tcp: bypass encrypted when both side ready

Suricata should not completely bypass a flow before both end of it
have reached the stream depth or have reached a certain state.
Justification is that suricata need the ACK to treat the other side
so we can't really decide to cut only one side.

8 years agodoc: add SCPacketTimestamp Lua function
Nicolas Thill [Tue, 11 Oct 2016 15:16:33 +0000 (17:16 +0200)] 
doc: add SCPacketTimestamp Lua function

Signed-off-by: Nicolas Thill <ntl@p1sec.com>
8 years agolua: add an SCPacketTimestamp function
Nicolas Thill [Fri, 5 Feb 2016 10:40:08 +0000 (11:40 +0100)] 
lua: add an SCPacketTimestamp function

The SCPacketTimestamp function returns packet timestamps as 2 real
numbers (seconds & microseconds).

Example:

  local sec, usec = SCPacketTimestamp()

Signed-off-by: Nicolas Thill <ntl@p1sec.com>
8 years agofile: register filedata loggers before file
Victor Julien [Fri, 7 Oct 2016 17:02:32 +0000 (19:02 +0200)] 
file: register filedata loggers before file

This fixes the issue that 'stored' remained false even if the file
was stored.

Reported-by: Chris Wakelin
8 years agodoc: small eve update: add dns
Victor Julien [Fri, 7 Oct 2016 15:45:12 +0000 (17:45 +0200)] 
doc: small eve update: add dns