]>
git.ipfire.org Git - thirdparty/suricata.git/log
Pierre Chifflier [Thu, 6 Jun 2019 08:24:20 +0000 (10:24 +0200)]
rust/snmp: fix libc deprecation warnings for int types
Pierre Chifflier [Thu, 6 Jun 2019 08:06:03 +0000 (10:06 +0200)]
rust/snmp: use snake_case when logging PDU types
Victor Julien [Thu, 23 May 2019 04:49:23 +0000 (06:49 +0200)]
snmp: fix 'defined but not used' warning
Remove HAVE_RUST guards as well.
Pierre Chifflier [Wed, 22 May 2019 14:59:55 +0000 (16:59 +0200)]
snmp.version: move unittests to tests/
Pierre Chifflier [Wed, 22 May 2019 14:55:59 +0000 (16:55 +0200)]
snmp.pdu_type: move unittests to tests/
Pierre Chifflier [Wed, 22 May 2019 12:45:21 +0000 (14:45 +0200)]
snmp.community: move unittests to tests/
Pierre Chifflier [Wed, 22 May 2019 12:38:34 +0000 (14:38 +0200)]
detect/snmp: convert snmp.community keyword to v2, and MPM
Pierre Chifflier [Tue, 21 May 2019 19:10:02 +0000 (21:10 +0200)]
rust/snmp: fix missing IPPROTO_* declarations (use core)
Pierre Chifflier [Mon, 13 May 2019 12:14:48 +0000 (14:14 +0200)]
detect/snmp: rename keywords to snmp.<name>, and make rust mandatory
Pierre Chifflier [Thu, 14 Feb 2019 16:11:50 +0000 (17:11 +0100)]
rust/snmp: fix selection of v1/v2c parser
Pierre Chifflier [Tue, 11 Dec 2018 16:21:44 +0000 (17:21 +0100)]
SNMP: add the "snmp.pdu_type" detection keyword
Pierre Chifflier [Tue, 11 Dec 2018 07:54:17 +0000 (08:54 +0100)]
SNMP: add the "snmp.community" detection keyword
Pierre Chifflier [Mon, 10 Dec 2018 12:48:00 +0000 (13:48 +0100)]
SNMP: add the "snmp.version" detection keyword
Pierre Chifflier [Wed, 5 Dec 2018 08:46:16 +0000 (09:46 +0100)]
SNMP: add missing case for profiling enum
Pierre Chifflier [Tue, 4 Dec 2018 16:40:28 +0000 (17:40 +0100)]
SNMP: use explicit references to support build with old rust compiler
Pierre Chifflier [Mon, 8 Oct 2018 08:37:01 +0000 (10:37 +0200)]
SNMP: start looking for transactions from end of list
Pierre Chifflier [Mon, 8 Oct 2018 08:36:39 +0000 (10:36 +0200)]
SNMP: add logger
Pierre Chifflier [Wed, 8 Aug 2018 13:35:31 +0000 (15:35 +0200)]
Add SNMP (v1/v2c/v3) application layer
Pierre Chifflier [Sat, 21 Apr 2018 14:05:33 +0000 (16:05 +0200)]
Rust: expose function AppLayerParserRegisterGetTxIterator
Victor Julien [Mon, 3 Jun 2019 07:47:23 +0000 (09:47 +0200)]
rust: fix warnings about wrong type of comments
"rustdoc does not generate documentation for macro expansions"
Victor Julien [Mon, 3 Jun 2019 07:40:57 +0000 (09:40 +0200)]
rust: fix libc deprecation warnings for int types
Victor Julien [Fri, 31 May 2019 12:10:46 +0000 (14:10 +0200)]
ikev2: clean up c glue code
Victor Julien [Thu, 30 May 2019 19:54:28 +0000 (21:54 +0200)]
tftp: c glue code cleanup
Victor Julien [Thu, 30 May 2019 18:21:01 +0000 (20:21 +0200)]
ikev2: remove excess new lines
Victor Julien [Thu, 30 May 2019 18:20:33 +0000 (20:20 +0200)]
tftp: properly implement tx handling
Victor Julien [Thu, 30 May 2019 08:24:10 +0000 (10:24 +0200)]
output: get rid of BUG_ONs
Victor Julien [Tue, 28 May 2019 13:45:37 +0000 (15:45 +0200)]
pool: don't call Cleanup after failed Init
Stream reassembly memcap is regulated by the Init and Cleanup
callbacks. If Init fails due to memcap reached, Cleanup had no
way of knowing and it would decrease the memcap even if it hadn't
been increased by Init. This could lead to too much memory use and
memcap counter underflow.
This patch fixes the issue by not calling Cleanup in this case. It's
fair to see a failed Init the responsibility of Init.
Victor Julien [Tue, 28 May 2019 13:32:27 +0000 (15:32 +0200)]
pool/thread: clean up tests
Victor Julien [Tue, 28 May 2019 13:21:25 +0000 (15:21 +0200)]
pool/thread: remove old grow function
Victor Julien [Tue, 28 May 2019 13:16:50 +0000 (15:16 +0200)]
stream: simplify segment and ssn pool inits
Victor Julien [Tue, 28 May 2019 13:14:20 +0000 (15:14 +0200)]
pool/thread: introduce simpler way to grow thread pool
Victor Julien [Tue, 28 May 2019 13:01:41 +0000 (15:01 +0200)]
pool/thread: minor code cleanups
Victor Julien [Mon, 27 May 2019 19:47:04 +0000 (21:47 +0200)]
app-layer: minor cleanups
Victor Julien [Mon, 27 May 2019 13:46:18 +0000 (15:46 +0200)]
capture: check for flow packets on capture timeout
The capture threads can receive packets from the flow manager in their
Threadvars::stream_pq packet queue. This mechanism makes sure the packets
the flow manager injects into the engine are processed by the correct
worker thread.
If the capture thread(s) would not receive packets for a long time, the
Threadvars::stream_pq would not be checked and processed. This could
lead to packet pool depletion in the flow manager. It would also lead
to flows not being timed out/logged until either packets started flowing
again or until the engine was shut down.
The scenario is more likely to happen in a test (e.g. replay) but could
also delay logging on low traffic sensors.
Victor Julien [Sun, 26 May 2019 19:09:05 +0000 (21:09 +0200)]
app-layer: mandatory tx registration checks
All protocols now implement the TX API, so the runtime checks for
whether or not a protocol supports the TX API can be removed.
Victor Julien [Mon, 27 May 2019 07:46:41 +0000 (09:46 +0200)]
app-layer: make tests tx aware
Make tests minimally TX-aware so we can asume all parsers use
the tx API.
Victor Julien [Mon, 27 May 2019 07:38:55 +0000 (09:38 +0200)]
ssh: test cleanup
Remove explicit locks. Set ALPROTO_SSH in all tests.
Victor Julien [Sat, 25 May 2019 18:56:27 +0000 (20:56 +0200)]
packetpool: move return stack to pool earlier
If waiting for N packets move the return stack to the main
stack every time we take the return stack lock.
Make sure we consider enough packets when setting the pending pool
flush logic. This should at least make sure to have the 9 packets
the flow manager requires per run.
jason taylor [Wed, 15 May 2019 18:03:29 +0000 (14:03 -0400)]
detect/content: clean up logging output
Signed-off-by: jason taylor <jtfas90@gmail.com>
Eric Leblond [Mon, 27 May 2019 09:12:10 +0000 (11:12 +0200)]
suricatasc: fix reconnect
Jeff Lucovsky [Wed, 22 May 2019 23:34:32 +0000 (16:34 -0700)]
doc: http keyword update
This changeset updates the keyword type for http.location and http.server
Jeff Lucovsky [Tue, 21 May 2019 23:52:41 +0000 (16:52 -0700)]
detect/analyzer Add missing HTTP values
This changeset adds recognition of missing HTTP values
- Raw host
- Header names
- Server body
- User agent
Philippe Antoine [Mon, 20 May 2019 08:06:25 +0000 (10:06 +0200)]
signature: fix memory leak in DetectBytejumpSetup
Philippe Antoine [Fri, 17 May 2019 11:16:27 +0000 (13:16 +0200)]
http: adds an event for double encoded uri
Philippe Antoine [Fri, 17 May 2019 11:08:26 +0000 (13:08 +0200)]
http: fixes double-encode configuration keywords
Victor Julien [Tue, 21 May 2019 09:37:29 +0000 (11:37 +0200)]
travis: move checks into script
This makes error handling easier and more robust:
https://docs.travis-ci.com/user/job-lifecycle#complex-build-commands
Victor Julien [Tue, 21 May 2019 08:08:19 +0000 (10:08 +0200)]
travis: add sphinx to trigger doc build
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.