]>
git.ipfire.org Git - thirdparty/suricata.git/log
Mats Klepsland [Mon, 13 May 2019 11:32:11 +0000 (13:32 +0200)]
ja3s-string: move unittests to tests/
Mats Klepsland [Mon, 13 May 2019 11:27:35 +0000 (13:27 +0200)]
ja3s-hash: move unittests to tests/
Mats Klepsland [Fri, 16 Nov 2018 17:50:58 +0000 (18:50 +0100)]
userguide: add documentation for ja3s.string keyword
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;)
Mats Klepsland [Thu, 15 Nov 2018 22:42:45 +0000 (23:42 +0100)]
userguide: add documentation for ja3s.hash keyword
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;)
Mats Klepsland [Thu, 15 Nov 2018 22:04:20 +0000 (23:04 +0100)]
userguide: add documentation for Ja3SGetString Lua 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
Mats Klepsland [Thu, 15 Nov 2018 21:58:39 +0000 (22:58 +0100)]
userguide: add documentation for JA3SGetHash Lua 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.
Mats Klepsland [Thu, 15 Nov 2018 21:44:59 +0000 (22:44 +0100)]
userguide: add JA3S fields to the TLS logger documentation
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).
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.
Alexander Gozman [Mon, 6 May 2019 16:10:52 +0000 (19:10 +0300)]
Bug #2965: fix NFQ arguments parsing
Andreas Herz [Wed, 8 May 2019 11:10:42 +0000 (13:10 +0200)]
af-packet: fix setting block_timeout value through afpconfig
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.
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.
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.
Philippe Antoine [Fri, 17 May 2019 13:33:53 +0000 (15:33 +0200)]
signature: fix overflow in parsing
Philippe Antoine [Tue, 14 May 2019 07:33:29 +0000 (09:33 +0200)]
http: adds events for each libhtp log
Fixes #997
Mats Klepsland [Tue, 14 May 2019 13:46:40 +0000 (15:46 +0200)]
detect-ssl-version: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 13:42:33 +0000 (15:42 +0200)]
detect-ssl-state: move unittests to tests/
Mats Klepsland [Tue, 14 May 2019 13:38:45 +0000 (15:38 +0200)]
detect-tls-version: 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/
Mats Klepsland [Tue, 14 May 2019 11:54:36 +0000 (13:54 +0200)]
detect-tls-sni: 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/
Mats Klepsland [Tue, 14 May 2019 11:28:22 +0000 (13:28 +0200)]
detect-tls-ja3-hash: 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/
Mats Klepsland [Tue, 14 May 2019 11:19:36 +0000 (13:19 +0200)]
detect-tls-cert-serial: 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/
Mats Klepsland [Tue, 14 May 2019 09:26:11 +0000 (11:26 +0200)]
detect-tls-cert-fingerprint: move unittests to tests/
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'
Mats Klepsland [Tue, 14 May 2019 06:49:28 +0000 (08:49 +0200)]
ja3: check if JA3 is disabled on one line
Mats Klepsland [Tue, 14 May 2019 06:44:19 +0000 (08:44 +0200)]
detect-tls: remove NULL settings from keyword registration
Mats Klepsland [Tue, 14 May 2019 06:35:42 +0000 (08:35 +0200)]
detect-tls: declare ssl_state as const in GetData()
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().
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.
Mats Klepsland [Tue, 14 May 2019 05:42:16 +0000 (07:42 +0200)]
userguide: 'sticky' instead of 'Sticky' for all tls keywords
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.
Mats Klepsland [Tue, 13 Nov 2018 23:38:56 +0000 (00:38 +0100)]
userguide: add documentation for 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;)
Victor Julien [Thu, 9 May 2019 10:11:29 +0000 (12:11 +0200)]
detect/ssh: fix ssh.protoversion memory leak
Victor Julien [Thu, 9 May 2019 10:06:50 +0000 (12:06 +0200)]
detect/ssh: mark old ssh keywords as 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.
Victor Julien [Wed, 8 May 2019 14:50:04 +0000 (16:50 +0200)]
detect/nfs.version: minor cleanups
Victor Julien [Wed, 8 May 2019 14:49:47 +0000 (16:49 +0200)]
detect/nfs: add nfs.version
Victor Julien [Tue, 7 May 2019 19:07:52 +0000 (21:07 +0200)]
detect/dcerpc: add dcerpc.iface
Keep dce_iface as an alias.
Victor Julien [Tue, 7 May 2019 18:52:35 +0000 (20:52 +0200)]
detect/dcerpc.opnum: minor code cleanups
Victor Julien [Tue, 7 May 2019 18:52:15 +0000 (20:52 +0200)]
detect/dcerpc: add dcerpc.opnum as new name for dce_opnum
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.
Philippe Antoine [Mon, 6 May 2019 10:38:17 +0000 (12:38 +0200)]
http: adds event for header repetition
Jason Ish [Sat, 4 May 2019 14:03:52 +0000 (08:03 -0600)]
filestore: remove jansson ifdefs
Jansson is now required.
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.
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
Victor Julien [Fri, 3 May 2019 12:21:04 +0000 (14:21 +0200)]
detect/engine: make DetectAppLayerMpmRegister decprecated
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.
magenbluten [Wed, 27 Feb 2019 09:14:17 +0000 (09:14 +0000)]
filestore: fix dropping of unwanted files (Issue #2853)
Victor Julien [Fri, 3 May 2019 10:10:14 +0000 (12:10 +0200)]
files: open files with track id only
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.
Victor Julien [Fri, 3 May 2019 08:16:38 +0000 (10:16 +0200)]
detect/inspect: add flags to inspect buffer
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.
Victor Julien [Fri, 3 May 2019 07:47:59 +0000 (09:47 +0200)]
detect/dce_stub_data: minor cleanups
Victor Julien [Fri, 3 May 2019 07:47:23 +0000 (09:47 +0200)]
detect/dcerpc: move endian handling from pointer to flags
Victor Julien [Fri, 3 May 2019 07:18:47 +0000 (09:18 +0200)]
detect/krb5: add krb5.sname and krb5.cname
Victor Julien [Fri, 3 May 2019 07:06:09 +0000 (09:06 +0200)]
detect/nfs: remove HAVE_RUST guards
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
Victor Julien [Thu, 2 May 2019 18:31:57 +0000 (20:31 +0200)]
afl: fix compilation
Victor Julien [Wed, 1 May 2019 14:36:50 +0000 (16:36 +0200)]
ftp: fix realloc handling to avoid valgrind warning
Bug #2951
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.
Victor Julien [Thu, 2 May 2019 14:30:57 +0000 (16:30 +0200)]
detect/thread: ctx info is allowed to have NULL data
Victor Julien [Thu, 2 May 2019 10:01:20 +0000 (12:01 +0200)]
detect/smb: clean up keywords
Victor Julien [Thu, 2 May 2019 09:45:46 +0000 (11:45 +0200)]
detect/file: add file.data, small cleanups
Victor Julien [Thu, 2 May 2019 09:26:34 +0000 (11:26 +0200)]
detect/ssh: minor --list-keywords improvements
Victor Julien [Thu, 2 May 2019 08:54:39 +0000 (10:54 +0200)]
detect/http.header.raw: minor cleanups
Victor Julien [Thu, 2 May 2019 08:48:15 +0000 (10:48 +0200)]
detect/http.host.raw: minor cleanups
Victor Julien [Thu, 2 May 2019 08:43:46 +0000 (10:43 +0200)]
detect/http.method: minor cleanups
Victor Julien [Thu, 2 May 2019 08:31:19 +0000 (10:31 +0200)]
detect/http.start: modernize name and code
Victor Julien [Wed, 1 May 2019 19:53:44 +0000 (21:53 +0200)]
detect/http: cleanup http stat *
Victor Julien [Wed, 1 May 2019 19:29:29 +0000 (21:29 +0200)]
detect/http.host: rename file for consistency
Victor Julien [Wed, 1 May 2019 19:27:49 +0000 (21:27 +0200)]
detect/http.host: fix --list-keywords output
Victor Julien [Wed, 1 May 2019 10:53:13 +0000 (12:53 +0200)]
detect/http.uri: fix up --list-keywords output
Victor Julien [Wed, 1 May 2019 10:49:57 +0000 (12:49 +0200)]
detect/http: request/response line keyword modernization
Victor Julien [Tue, 30 Apr 2019 19:06:03 +0000 (21:06 +0200)]
detect/http.header_names: use v2 api and new name
Victor Julien [Mon, 29 Apr 2019 17:55:55 +0000 (19:55 +0200)]
changelog: update for 5.0.0-beta1
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.
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
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.
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
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
Jason Ish [Wed, 20 Mar 2019 12:45:49 +0000 (06:45 -0600)]
rules: add mpls packet too small decoder rule
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
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
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
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.
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.
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.
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.
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.
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
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.