]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
6 years agoja3s-string: move unittests to tests/ 3874/head
Mats Klepsland [Mon, 13 May 2019 11:32:11 +0000 (13:32 +0200)] 
ja3s-string: move unittests to tests/

6 years agoja3s-hash: move unittests to tests/
Mats Klepsland [Mon, 13 May 2019 11:27:35 +0000 (13:27 +0200)] 
ja3s-hash: move unittests to tests/

6 years agouserguide: add documentation for ja3s.string keyword
Mats Klepsland [Fri, 16 Nov 2018 17:50:58 +0000 (18:50 +0100)] 
userguide: add documentation for ja3s.string keyword

6 years agodetect: add (mpm) keyword ja3s.string
Mats Klepsland [Fri, 16 Nov 2018 17:45:01 +0000 (18:45 +0100)] 
detect: add (mpm) keyword ja3s.string

Match on JA3S string using ja3s.string keyword, e.g:

  alert tls any any -> any any (msg:"ja3s.string test";
      ja3s.string; content:"10-11-12"; sid:1;)

6 years agouserguide: add documentation for ja3s.hash keyword
Mats Klepsland [Thu, 15 Nov 2018 22:42:45 +0000 (23:42 +0100)] 
userguide: add documentation for ja3s.hash keyword

6 years agodetect: add (mpm) keyword ja3s.hash
Mats Klepsland [Thu, 15 Nov 2018 22:36:28 +0000 (23:36 +0100)] 
detect: add (mpm) keyword ja3s.hash

Match on JA3S hash using ja3s.hash keyword, e.g:

  alert tls any any -> any any (msg:"ja3s.hash test";
      ja3s.hash; content:"b26c652e0a402a24b5ca2a660e84f9d5"; sid:1;)

6 years agouserguide: add documentation for Ja3SGetString Lua function
Mats Klepsland [Thu, 15 Nov 2018 22:04:20 +0000 (23:04 +0100)] 
userguide: add documentation for Ja3SGetString Lua function

6 years agolua: add Ja3SGetString function
Mats Klepsland [Thu, 15 Nov 2018 22:01:42 +0000 (23:01 +0100)] 
lua: add Ja3SGetString function

Add Ja3SGetString() to return the content of the JA3S string buffer from
the TLS session.

Example:

  function init (args)
      local needs = {}
      needs["protocol"] = "tls"
      return needs
  end

  function setup (args)
      filename = SCLogPath() .. "/ja3s_string.log"
      file = assert(io.open(filename, "a"))
  end

  function log (args)
      ja3s_string = Ja3SGetString()
      if ja3s_string == nil then
          return
      end

      file:write(ja3s_string .. "\n")
      file:flush()
  end

  function deinit (args)
      file:close()
  end

6 years agouserguide: add documentation for JA3SGetHash Lua function
Mats Klepsland [Thu, 15 Nov 2018 21:58:39 +0000 (22:58 +0100)] 
userguide: add documentation for JA3SGetHash Lua function

6 years agolua: add Ja3SGetHash function
Mats Klepsland [Thu, 15 Nov 2018 21:50:57 +0000 (22:50 +0100)] 
lua: add Ja3SGetHash function

Add Ja3SGetHash() to return the content of the JA3S hash buffer from
the TLS session.

Example:

  function init (args)
      local needs = {}
      needs["protocol"] = "tls"
      return needs
  end

  function setup (args)
      filename = SCLogPath() .. "/ja3s_hash.log"
      file = assert(io.open(filename, "a"))
  end

  function log (args)
      ja3s_hash = Ja3SGetHash()
      if ja3s_hash == nil then
          return
      end

      file:write(ja3s_hash .. "\n")
      file:flush()
  end

  function deinit (args)
      file:close()
  end

In the example above, each JA3S hash is logged to a log file.

6 years agouserguide: add JA3S fields to the TLS logger documentation
Mats Klepsland [Thu, 15 Nov 2018 21:44:59 +0000 (22:44 +0100)] 
userguide: add JA3S fields to the TLS logger documentation

6 years agoeve: add JA3S field to TLS JSON logger
Mats Klepsland [Thu, 15 Nov 2018 21:41:44 +0000 (22:41 +0100)] 
eve: add JA3S field to TLS JSON logger

Add JA3S object to TLS JSON logger (extended log).

6 years agoapp-layer-ssl: generate JA3S fingerprints
Mats Klepsland [Thu, 15 Nov 2018 18:49:11 +0000 (19:49 +0100)] 
app-layer-ssl: generate JA3S fingerprints

Generate JA3S fingerprints based on fields in the ServerHello record.

6 years agoBug #2965: fix NFQ arguments parsing 3868/head
Alexander Gozman [Mon, 6 May 2019 16:10:52 +0000 (19:10 +0300)] 
Bug #2965: fix NFQ arguments parsing

6 years agoaf-packet: fix setting block_timeout value through afpconfig
Andreas Herz [Wed, 8 May 2019 11:10:42 +0000 (13:10 +0200)] 
af-packet: fix setting block_timeout value through afpconfig

6 years agodoc: Anomaly logging documentation
Jeff Lucovsky [Wed, 8 May 2019 22:40:05 +0000 (15:40 -0700)] 
doc: Anomaly logging documentation

This changeset adds discussion of anomaly log records and
the anomaly log record format.

6 years agodetect/analyzer: Improve warning message
Jeff Lucovsky [Thu, 9 May 2019 23:11:32 +0000 (16:11 -0700)] 
detect/analyzer: Improve warning message

This changeset modifies the warning printed when a rule
is determined to detect in both directions.

6 years agoaf-packet: remove rollover reference
Eric Leblond [Sat, 11 May 2019 08:23:14 +0000 (10:23 +0200)] 
af-packet: remove rollover reference

This patch removes reference to rollover in the configuration file
and add warnings when it is used.

6 years agosignature: fix overflow in parsing
Philippe Antoine [Fri, 17 May 2019 13:33:53 +0000 (15:33 +0200)] 
signature: fix overflow in parsing

6 years agohttp: adds events for each libhtp log
Philippe Antoine [Tue, 14 May 2019 07:33:29 +0000 (09:33 +0200)] 
http: adds events for each libhtp log

Fixes #997

6 years agodetect-ssl-version: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 13:46:40 +0000 (15:46 +0200)] 
detect-ssl-version: move unittests to tests/

6 years agodetect-ssl-state: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 13:42:33 +0000 (15:42 +0200)] 
detect-ssl-state: move unittests to tests/

6 years agodetect-tls-version: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 13:38:45 +0000 (15:38 +0200)] 
detect-tls-version: move unittests to tests/

6 years agodetect-tls-cert-validity: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 12:28:30 +0000 (14:28 +0200)] 
detect-tls-cert-validity: move unittests to tests/

6 years agodetect-tls-sni: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:54:36 +0000 (13:54 +0200)] 
detect-tls-sni: move unittests to tests/

6 years agodetect-tls-ja3-string: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:35:04 +0000 (13:35 +0200)] 
detect-tls-ja3-string: move unittests to tests/

6 years agodetect-tls-ja3-hash: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:28:22 +0000 (13:28 +0200)] 
detect-tls-ja3-hash: move unittests to tests/

6 years agodetect-tls-cert-subject: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:22:46 +0000 (13:22 +0200)] 
detect-tls-cert-subject: move unittests to tests/

6 years agodetect-tls-cert-serial: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:19:36 +0000 (13:19 +0200)] 
detect-tls-cert-serial: move unittests to tests/

6 years agodetect-tls-cert-issuer: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 11:15:35 +0000 (13:15 +0200)] 
detect-tls-cert-issuer: move unittests to tests/

6 years agodetect-tls-cert-fingerprint: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 09:26:11 +0000 (11:26 +0200)] 
detect-tls-cert-fingerprint: move unittests to tests/

6 years agodetect-tls: tidy up unittests
Mats Klepsland [Tue, 14 May 2019 07:25:57 +0000 (09:25 +0200)] 
detect-tls: tidy up unittests

By doing the following:
- removing unnecessary locks
- moving variable declarations
- removing redundant function 'SigCleanSignatures'

6 years agoja3: check if JA3 is disabled on one line
Mats Klepsland [Tue, 14 May 2019 06:49:28 +0000 (08:49 +0200)] 
ja3: check if JA3 is disabled on one line

6 years agodetect-tls: remove NULL settings from keyword registration
Mats Klepsland [Tue, 14 May 2019 06:44:19 +0000 (08:44 +0200)] 
detect-tls: remove NULL settings from keyword registration

6 years agodetect-tls: declare ssl_state as const in GetData()
Mats Klepsland [Tue, 14 May 2019 06:35:42 +0000 (08:35 +0200)] 
detect-tls: declare ssl_state as const in GetData()

6 years agodetect-tls: check return values of functions on setup
Mats Klepsland [Tue, 14 May 2019 06:12:47 +0000 (08:12 +0200)] 
detect-tls: check return values of functions on setup

Check the return values of DetectBufferSetActiveList() and
DetectSignatureSetAppProto().

6 years agodetect-tls: remove confusing underscores from variables
Mats Klepsland [Tue, 14 May 2019 05:54:03 +0000 (07:54 +0200)] 
detect-tls: remove confusing underscores from variables

Remove confusing underscore prefix from variables in GetData() for
all tls keywords.

6 years agouserguide: 'sticky' instead of 'Sticky' for all tls keywords
Mats Klepsland [Tue, 14 May 2019 05:42:16 +0000 (07:42 +0200)] 
userguide: 'sticky' instead of 'Sticky' for all tls keywords

6 years agoapp-layer-ftp: Potential memory leak fixed 3864/head
Jeff Lucovsky [Sat, 11 May 2019 17:59:16 +0000 (10:59 -0700)] 
app-layer-ftp: Potential memory leak fixed

Ensure that when handling failures during STOR command
processing, that all memory is freed on the error path.

6 years agouserguide: add documentation for tls.certs keyword 3859/head
Mats Klepsland [Tue, 13 Nov 2018 23:38:56 +0000 (00:38 +0100)] 
userguide: add documentation for tls.certs keyword

6 years agodetect: add tls.certs keyword
Mats Klepsland [Tue, 13 Nov 2018 23:31:08 +0000 (00:31 +0100)] 
detect: add tls.certs keyword

Add keyword to do "raw" matching on each of the certificates in the
TLS certificate sticky buffer.

Example:
  alert tls any any -> any any (msg:"tls.certs test"; tls.certs; \
          content:"|01 02 03 04|"; sid:1;)

6 years agodetect/ssh: fix ssh.protoversion memory leak
Victor Julien [Thu, 9 May 2019 10:11:29 +0000 (12:11 +0200)] 
detect/ssh: fix ssh.protoversion memory leak

6 years agodetect/ssh: mark old ssh keywords as deprecated
Victor Julien [Thu, 9 May 2019 10:06:50 +0000 (12:06 +0200)] 
detect/ssh: mark old ssh keywords as deprecated

6 years agodetect/parse: add flag to indicate keyword is deprecated
Victor Julien [Thu, 9 May 2019 10:06:08 +0000 (12:06 +0200)] 
detect/parse: add flag to indicate keyword is deprecated

Issue warning when it is still used.

6 years agodetect/nfs.version: minor cleanups
Victor Julien [Wed, 8 May 2019 14:50:04 +0000 (16:50 +0200)] 
detect/nfs.version: minor cleanups

6 years agodetect/nfs: add nfs.version
Victor Julien [Wed, 8 May 2019 14:49:47 +0000 (16:49 +0200)] 
detect/nfs: add nfs.version

6 years agodetect/dcerpc: add dcerpc.iface
Victor Julien [Tue, 7 May 2019 19:07:52 +0000 (21:07 +0200)] 
detect/dcerpc: add dcerpc.iface

Keep dce_iface as an alias.

6 years agodetect/dcerpc.opnum: minor code cleanups
Victor Julien [Tue, 7 May 2019 18:52:35 +0000 (20:52 +0200)] 
detect/dcerpc.opnum: minor code cleanups

6 years agodetect/dcerpc: add dcerpc.opnum as new name for dce_opnum
Victor Julien [Tue, 7 May 2019 18:52:15 +0000 (20:52 +0200)] 
detect/dcerpc: add dcerpc.opnum as new name for dce_opnum

6 years agoeve/logging: disable anomaly logging by default 3836/head
Jeff Lucovsky [Sat, 4 May 2019 14:55:50 +0000 (07:55 -0700)] 
eve/logging: disable anomaly logging by default

Disable anomaly logging by default. Networks with excessive issues may
experience packet processing degradation.

6 years agohttp: adds event for header repetition 3833/head
Philippe Antoine [Mon, 6 May 2019 10:38:17 +0000 (12:38 +0200)] 
http: adds event for header repetition

6 years agofilestore: remove jansson ifdefs
Jason Ish [Sat, 4 May 2019 14:03:52 +0000 (08:03 -0600)] 
filestore: remove jansson ifdefs

Jansson is now required.

6 years agoeve/file: remove rust and jansson ifdefs.
Jason Ish [Sat, 4 May 2019 14:03:22 +0000 (08:03 -0600)] 
eve/file: remove rust and jansson ifdefs.

Both Rust and Jansson are required now.

6 years agofilestore: fix leak in contructing json
Jason Ish [Sat, 4 May 2019 13:48:46 +0000 (07:48 -0600)] 
filestore: fix leak in contructing json

Use json_array_append_new instead of json_array_append to transfer
ownership of the integer object to jansson so it gets freed.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2961

6 years agodetect/engine: make DetectAppLayerMpmRegister decprecated 3826/head
Victor Julien [Fri, 3 May 2019 12:21:04 +0000 (14:21 +0200)] 
detect/engine: make DetectAppLayerMpmRegister decprecated

6 years agodetect/dnp3: add dnp3.data with v2 api support
Victor Julien [Fri, 3 May 2019 12:02:46 +0000 (14:02 +0200)] 
detect/dnp3: add dnp3.data with v2 api support

Adds MPM support as well. Add TxDetectFlags support to the parser
to avoid duplicate matches.

6 years agofilestore: fix dropping of unwanted files (Issue #2853)
magenbluten [Wed, 27 Feb 2019 09:14:17 +0000 (09:14 +0000)] 
filestore: fix dropping of unwanted files (Issue #2853)

6 years agofiles: open files with track id only
Victor Julien [Fri, 3 May 2019 10:10:14 +0000 (12:10 +0200)] 
files: open files with track id only

6 years agodetect/dce_stub_data: add dcerpc.stub_data
Victor Julien [Fri, 3 May 2019 08:36:15 +0000 (10:36 +0200)] 
detect/dce_stub_data: add dcerpc.stub_data

Also use v2 API for inspect and mpm registration.

6 years agodetect/inspect: add flags to inspect buffer
Victor Julien [Fri, 3 May 2019 08:16:38 +0000 (10:16 +0200)] 
detect/inspect: add flags to inspect buffer

6 years agodetect/content-inspect: turn void arg into Packet
Victor Julien [Fri, 3 May 2019 08:00:09 +0000 (10:00 +0200)] 
detect/content-inspect: turn void arg into Packet

Replace the 'void *data' argument by a 'Packet *p' as this was
the only user left of the data pointer.

6 years agodetect/dce_stub_data: minor cleanups
Victor Julien [Fri, 3 May 2019 07:47:59 +0000 (09:47 +0200)] 
detect/dce_stub_data: minor cleanups

6 years agodetect/dcerpc: move endian handling from pointer to flags
Victor Julien [Fri, 3 May 2019 07:47:23 +0000 (09:47 +0200)] 
detect/dcerpc: move endian handling from pointer to flags

6 years agodetect/krb5: add krb5.sname and krb5.cname
Victor Julien [Fri, 3 May 2019 07:18:47 +0000 (09:18 +0200)] 
detect/krb5: add krb5.sname and krb5.cname

6 years agodetect/nfs: remove HAVE_RUST guards
Victor Julien [Fri, 3 May 2019 07:06:09 +0000 (09:06 +0200)] 
detect/nfs: remove HAVE_RUST guards

6 years agovalgrind: support hyperscan warning
Victor Julien [Fri, 3 May 2019 05:13:00 +0000 (07:13 +0200)] 
valgrind: support hyperscan warning

Issue on Ubuntu 19.04.

==18655== Conditional jump or move depends on uninitialised value(s)
==18655==    at 0x5454603: hs_alloc_scratch (in /usr/lib/x86_64-linux-gnu/libhs.so.5.1.0)
==18655==    by 0x3D5C9A: SCHSPreparePatterns (util-mpm-hs.c:707)
==18655==    by 0x215FEC: DetectMpmPrepareBuiltinMpms (detect-engine-mpm.c:364)
==18655==    by 0x20813A: SigGroupBuild (detect-engine-build.c:1932)
==18655==    by 0x21287B: SigLoadSignatures (detect-engine-loader.c:366)
==18655==    by 0x35A702: LoadSignatures (suricata.c:2419)
==18655==    by 0x35B0DD: PostConfLoadedDetectSetup (suricata.c:2574)
==18655==    by 0x35C827: main (suricata.c:2986)

https://github.com/intel/hyperscan/issues/148

6 years agoafl: fix compilation
Victor Julien [Thu, 2 May 2019 18:31:57 +0000 (20:31 +0200)] 
afl: fix compilation

6 years agoftp: fix realloc handling to avoid valgrind warning
Victor Julien [Wed, 1 May 2019 14:36:50 +0000 (16:36 +0200)] 
ftp: fix realloc handling to avoid valgrind warning

Bug #2951

6 years agodetect/file.magic: add sticky buffer
Victor Julien [Thu, 2 May 2019 11:02:07 +0000 (13:02 +0200)] 
detect/file.magic: add sticky buffer

Add sticky buffer to inspect file magic. Includes mpm support.

6 years agodetect/thread: ctx info is allowed to have NULL data
Victor Julien [Thu, 2 May 2019 14:30:57 +0000 (16:30 +0200)] 
detect/thread: ctx info is allowed to have NULL data

6 years agodetect/smb: clean up keywords
Victor Julien [Thu, 2 May 2019 10:01:20 +0000 (12:01 +0200)] 
detect/smb: clean up keywords

6 years agodetect/file: add file.data, small cleanups
Victor Julien [Thu, 2 May 2019 09:45:46 +0000 (11:45 +0200)] 
detect/file: add file.data, small cleanups

6 years agodetect/ssh: minor --list-keywords improvements
Victor Julien [Thu, 2 May 2019 09:26:34 +0000 (11:26 +0200)] 
detect/ssh: minor --list-keywords improvements

6 years agodetect/http.header.raw: minor cleanups
Victor Julien [Thu, 2 May 2019 08:54:39 +0000 (10:54 +0200)] 
detect/http.header.raw: minor cleanups

6 years agodetect/http.host.raw: minor cleanups
Victor Julien [Thu, 2 May 2019 08:48:15 +0000 (10:48 +0200)] 
detect/http.host.raw: minor cleanups

6 years agodetect/http.method: minor cleanups
Victor Julien [Thu, 2 May 2019 08:43:46 +0000 (10:43 +0200)] 
detect/http.method: minor cleanups

6 years agodetect/http.start: modernize name and code
Victor Julien [Thu, 2 May 2019 08:31:19 +0000 (10:31 +0200)] 
detect/http.start: modernize name and code

6 years agodetect/http: cleanup http stat *
Victor Julien [Wed, 1 May 2019 19:53:44 +0000 (21:53 +0200)] 
detect/http: cleanup http stat *

6 years agodetect/http.host: rename file for consistency
Victor Julien [Wed, 1 May 2019 19:29:29 +0000 (21:29 +0200)] 
detect/http.host: rename file for consistency

6 years agodetect/http.host: fix --list-keywords output
Victor Julien [Wed, 1 May 2019 19:27:49 +0000 (21:27 +0200)] 
detect/http.host: fix --list-keywords output

6 years agodetect/http.uri: fix up --list-keywords output
Victor Julien [Wed, 1 May 2019 10:53:13 +0000 (12:53 +0200)] 
detect/http.uri: fix up --list-keywords output

6 years agodetect/http: request/response line keyword modernization
Victor Julien [Wed, 1 May 2019 10:49:57 +0000 (12:49 +0200)] 
detect/http: request/response line keyword modernization

6 years agodetect/http.header_names: use v2 api and new name
Victor Julien [Tue, 30 Apr 2019 19:06:03 +0000 (21:06 +0200)] 
detect/http.header_names: use v2 api and new name

6 years agochangelog: update for 5.0.0-beta1 suricata-5.0.0-beta1
Victor Julien [Mon, 29 Apr 2019 17:55:55 +0000 (19:55 +0200)] 
changelog: update for 5.0.0-beta1

6 years agonfs: fix integer underflow
Victor Julien [Tue, 2 Apr 2019 13:32:33 +0000 (15:32 +0200)] 
nfs: fix integer underflow

Fix int underflow that leads to Rust panic in NFS3 readdirplus
parsing.

Reported-by: Sirko Höer -- Code Intelligence for DCSO.
6 years agossl : SSLProbingParser overflow fix
Philippe Antoine [Wed, 27 Mar 2019 21:56:15 +0000 (22:56 +0100)] 
ssl : SSLProbingParser overflow fix

Found by fuzzing
Fixes ssl detection evasion by packet splitting

6 years agoparse/ip: fix potential oob write in ipv4 validation
Victor Julien [Mon, 15 Apr 2019 12:52:38 +0000 (14:52 +0200)] 
parse/ip: fix potential oob write in ipv4 validation

Found using AFL.

6 years agodhcp: verify client id len before parsing data
Jason Ish [Tue, 26 Mar 2019 22:46:27 +0000 (16:46 -0600)] 
dhcp: verify client id len before parsing data

Verify that the client id length is at least 2 per the DHCP
protocol rfc before parsing the data.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2902

6 years agorust/ftp: validate port components in passive reponse
Jason Ish [Tue, 26 Mar 2019 22:24:34 +0000 (16:24 -0600)] 
rust/ftp: validate port components in passive reponse

Make sure they are valid 8 bit integers before combining the
two parts into a u16 to prevent an overflow of the u16
return value.

Add unit tests to check parsing of invalid ports.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2904

6 years agorules: add mpls packet too small decoder rule
Jason Ish [Wed, 20 Mar 2019 12:45:49 +0000 (06:45 -0600)] 
rules: add mpls packet too small decoder rule

6 years agompls: check buffer length before peeking at next header
Jason Ish [Fri, 15 Mar 2019 23:13:00 +0000 (17:13 -0600)] 
mpls: check buffer length before peeking at next header

Check that we have enough bytes before peaking into the MPLS
packet payload.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2884

6 years agoethernet: fix next packet size on DCE packet
Jason Ish [Mon, 18 Mar 2019 06:47:30 +0000 (00:47 -0600)] 
ethernet: fix next packet size on DCE packet

Missing parans on the DCE length caused the length update
for the next call to DecodeEthernet to be wrong.

Tests added.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2887

6 years agossh: fix banner overflow issue
Victor Julien [Fri, 15 Mar 2019 13:01:40 +0000 (14:01 +0100)] 
ssh: fix banner overflow issue

Reported-by: Sirko Höer - Code Intelligence
6 years agorunmodes: for test runmodes, clean up properly
Victor Julien [Mon, 29 Apr 2019 08:47:50 +0000 (10:47 +0200)] 
runmodes: for test runmodes, clean up properly

For conf test and engine analysis, clean up memory correctly.

This helps valgrind tests for leaks.

6 years agologging: display base64 decoded string for packet
Jeff Lucovsky [Sat, 20 Apr 2019 12:05:30 +0000 (05:05 -0700)] 
logging: display base64 decoded string for packet

This changeset changes the packet display to be base64, rather than hex.

6 years agologging: Ensure all anomalous events have an event_type
Jeff Lucovsky [Tue, 16 Apr 2019 23:27:51 +0000 (16:27 -0700)] 
logging: Ensure all anomalous events have an event_type

This change ensures that each anomaly is tagged with an
event type to support querying.

Each anomalous event will include `"event_type": "anomaly"`
in the log record.

6 years agoeve/alert: Remove unused results from PrintRawLineHexBuf
Jeff Lucovsky [Mon, 8 Apr 2019 22:37:45 +0000 (15:37 -0700)] 
eve/alert: Remove unused results from PrintRawLineHexBuf

This changeset removes the call to `PrintRawLineHexBuf`. The
return values were never used.

6 years agologging: Anomaly logging
Jeff Lucovsky [Tue, 2 Apr 2019 23:14:36 +0000 (16:14 -0700)] 
logging: Anomaly logging

This changeset adds anomaly logging to suricata for issue 2282.

Anomaly logging is controlled via the `anomaly` section within eve-log.
There is a single option -- `packethdr` -- for including the packet header
in the anomaly.

6 years agohttp: new event for auth unrecognized 3818/head
Philippe Antoine [Wed, 6 Mar 2019 07:56:47 +0000 (08:56 +0100)] 
http: new event for auth unrecognized

activates libhtp auth parsing
Fixes #984

6 years agodocumentation: Correct rst for ssh-keywords
Jeff Lucovsky [Mon, 8 Apr 2019 22:53:47 +0000 (15:53 -0700)] 
documentation: Correct rst for ssh-keywords

This changeset corrects an error in the ssh-keywords
where 3 "`" characters were used instead of 2 "`" characters.