]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: Simplified anomaly configuration settings
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 13 Aug 2019 00:01:34 +0000 (20:01 -0400)
committerJeff Lucovsky <jeff@lucovsky.org>
Thu, 12 Sep 2019 04:54:55 +0000 (21:54 -0700)
doc/userguide/output/eve/eve-json-format.rst
doc/userguide/output/eve/eve-json-output.rst

index 4bd7b8c81d688890591de1b72b64b40a140ed6c9..d5362d6a156c6d99fcae5e3e59eb5bd782f7eff2 100644 (file)
@@ -122,10 +122,10 @@ when anomaly logging is enabled.
 Fields
 ------
 
-* "type": Either "packet", "stream" or "applayer". In rare cases, type will be "unknown".
+* "type": Either "decode", "stream" or "applayer". In rare cases, type will be "unknown".
   When this occurs, an additional field named "code" will be present. Events with type
   "applayer" are detected by the application layer parsers.
-* "event" The name of the anomalous event. Events of type "packet" are prefixed
+* "event" The name of the anomalous event. Events of type "decode" are prefixed
   with "decoder"; events of type "stream" are prefixed with "stream".
 * "code" If "type" is "unknown", than "code" contains the unrecognized event code. Otherwise,
   this field is not present.
@@ -147,20 +147,25 @@ Examples
 ::
 
     "anomaly": {
-      "type": "packet",
+      "type": "decode",
       "event": "decoder.icmpv4.unknown_type"
     }
 
     "anomaly": {
-      "type": "packet",
+      "type": "decode",
       "event": "decoder.udp.pkt_too_small"
     }
 
     "anomaly": {
-      "type": "packet",
+      "type": "decode",
       "event": "decoder.ipv4.wrong_ip_version"
     }
 
+    "anomaly": {
+      "type": "stream",
+      "event": "stream.pkt_invalid_timestamp"
+    }
+
     {
       "timestamp": "1969-12-31T16:04:21.000000-0800",
       "pcap_cnt": 9262,
@@ -175,7 +180,7 @@ Examples
         "linktype": 1
       },
       "anomaly": {
-        "type": "packet",
+        "type": "decode",
         "event": "decoder.udp.pkt_too_small"
       }
     }
index bf48fd56a69d09cb0f6d8747bbfb748b053ce13d..081f4687b8011f8b229e318906045d6e273b10b0 100644 (file)
@@ -86,34 +86,43 @@ Anomalies are event records created when packets with unexpected or anomalous
 values are handled. These events include conditions such as incorrect protocol
 values, incorrect protocol length values, and other conditions which render the
 packet suspect. Other conditions may occur during the normal progression of a stream;
-these are termed ```stream``` events are include control sequences with incorrect
+these are termed ``stream`` events are include control sequences with incorrect
 values or that occur out of expected sequence.
 
+Anomalies are reported by and configured by type:
+
+- Decode
+- Stream
+- Application layer
+
 Metadata::
 
-        - anomaly:
-            # Anomaly log records describe unexpected conditions such as truncated packets, packets with invalid
-            # IP/UDP/TCP length values, and other events that render the packet invalid for further processing
-            # or describe unexpected behavior on an established stream. Networks which experience high
-            # occurrences of anomalies may experience packet processing degradation.
-            #
-            # Choose one or more of the following protocol/parser choices. Note
-            # that packethdr requires protodecode to be enabled.
-            #
-            # Enable logging of protocol decode events
-            # protodecode: no
-            #
-            # Enable dumping of packet header; requires protodecode to be enabled
-            # packethdr: no         # enable dumping of packet header
-            #
-            # Enable logging of app-layer protocol parser events
-            # protoparser: no
-            #
-            # Enable logging of app-layer protocol detection events
-            # protodetect: no
-            #
-            # Enable logging of parser events
-            # parser: no
+       - anomaly:
+               # Anomaly log records describe unexpected conditions such as truncated packets, packets
+        #  with invalid IP/UDP/TCP length values, and other events that render the packet
+        # invalid for further processing or describe unexpected behavior on an established stream.
+        # Networks which experience high occurrences of anomalies may experience packet processing
+        # degradation.
+               #
+               # Anomalies are reported for the following:
+               # 1. Decode: Values and conditions that are detected while decoding individual packets.
+        # This includes invalid or unexpected values for low-level protocol lengths as well
+        # as stream related events (TCP 3-way handshake issues, unexpected sequence number, etc).
+               # 2. Stream: This includes stream related events (TCP 3-way handshake issues, unexpected
+        # sequence number, etc).
+               # 3. Application layer: These denote application layer specific conditions that are unexpected,
+        # invalid or are unexpected given the application monitoring state.
+               #
+               # By default, anomaly logging is disabled. When anomaly logging is enabled, application-layer anomaly
+               # reporting is enabled.
+               #
+               # Choose one or both types of anomaly logging and whether to enable
+               # logging of the packet header for packet anomalies.
+               types:
+                 #decode: no
+                 #stream: no
+                 #applayer: yes
+               #packethdr: no
 
 HTTP
 ~~~~