Appearance
Event and log fields Since v0.1
This page lists the fields of a security event, of a traffic log record and of a SIEM message. The management API, waap events, waap traffic and the web console return the same JSON names. Fields marked Since v0.2 were added in v0.2.
Module names, rule ID ranges and the action and mode values are on Modules, rule IDs and values.
How to read the tables
- When present: fields marked "omitted when empty" are left out of the JSON when they hold no value (empty string,
0,false, empty list or no object). - Masked under
pci: "yes" means the value is masked when the application setspolicy.logging.mask: pci. Theviewerrole sees the same fields masked on read, whatever the application's mask setting. Themaskedfield says which treatment applies. For details, see Full logging and masking. - Cut values: a value cut at its size bound ends with
…[truncated: N bytes], where N is the full length. See Truncation markers.
Security event
A security event records one inspected request that produced at least one reason, or an inspection failure. The event is stored as one JSON document and returned unchanged by the API.
Event fields
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
time | string (RFC 3339 time) | When the request was inspected. | always | no |
transaction_id | string | The request ID. It joins the event to its traffic record and to the data plane's access log. | always | no |
node | string | The node that inspected the request. | omitted when empty | no |
application | string | The application the request matched. | always | no |
server_pool Since v0.2 | string | The server pool of the application. | omitted when empty | no |
policy_version | string | The configuration version that inspected the request. | omitted when empty | no |
client_ip | string | The client address after trusted-proxy evaluation. | always | no |
country | string | Country of the client address, from the geo database. | omitted when empty | no |
method | string | HTTP method. | always | no |
host | string | Host header. | always | no |
path | string | Path and query as received. | always | yes, query values |
action | string | What the pipeline did: allow, log, challenge or block. | always | no |
mode | string | The application's mode: detect or block. | always | no |
would_block | boolean | In detect mode, the request would have been blocked in block mode. | omitted when false | no |
status | integer | HTTP status of the product's own answer. | omitted when 0 | no |
anomaly_score | integer | Sum of the signature anomaly scores. | omitted when 0 | no |
duration_us | integer | Inspection time in microseconds. | always | no |
reasons | list of reason | Every match that contributed. | omitted when empty | yes, see reason |
error | string | An inspection failure that the failure policy handled. | omitted when empty | no |
trace | trace | What each module did with the request. | omitted when no trace was kept | no |
capture | capture | The request kept for investigation. | omitted when no capture was kept | yes |
bot | bot | Bot mitigation's view of the client. | when the bot module ran | partly, see bot |
user | string | The user that the session belongs to. | omitted when empty | yes: under pci the first character and six hex digits of a keyed hash; for a viewer, the first character only |
identity Since v0.2 | identity | Who the client was, from client identity. | omitted when no identity was resolved | yes, the label |
soap Since v0.2 | soap | The SOAP operation of the request. | when an XML contract matched | no |
asn Since v0.2 | integer | Autonomous system number of the client. | omitted when 0 | no |
as_org Since v0.2 | string | Organisation of that autonomous system. | omitted when empty | no |
city Since v0.2 | string | City of the client address. | omitted when empty | no |
ja4 Since v0.2 | string | TLS fingerprint of an HTTPS request. | omitted when empty | no |
attack Since v0.2 | attack | The attack score. | when the signature module scored the request | no |
masked Since v0.2 | string | pci when recorded under masking, role when masked on read for the reader's role. | omitted when values are in full | not applicable |
upstream Since v0.2 | upstream | The data plane's half of the request. | after the access log arrives | no |
traffic_id Since v0.2 | string | The ID of the request's traffic record. | set on read, never stored; omitted when no record exists | no |
Reason
Each entry in reasons explains one match. A block without a reason is a bug, so every blocked event has at least one.
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
module | string | The module that matched. See module names. | always | no |
rule_id | string | The rule that matched. See rule ID ranges. | always | no |
message | string | What the rule found, in words. | omitted when empty | yes, clipped to 160 bytes |
variable | string | The request part that matched, for example ARGS or REQUEST_HEADERS. | omitted when empty | no |
key | string | The parameter or header name inside the variable. | omitted when empty | no |
snippet | string | The matched value. | omitted when empty | yes |
severity | string | The rule's severity. | omitted when empty | no |
mode | string | The module's effective mode: detect or block. | omitted when empty | no |
staged | boolean | The rule is staged and only logs until its date. | omitted when false | no |
enforced | boolean | The rule blocks although its module is in detect mode (a virtual patch set to enforce: block). | omitted when false | no |
tags | list of strings | The rule's tags. | omitted when empty | no |
truncated Since v0.2 | boolean | snippet was cut at its size bound. | omitted when false | cleared by masking |
full_bytes Since v0.2 | integer | The full length of the cut snippet in bytes. | omitted when 0 | cleared by masking |
Trace
trace holds one step per module and phase. Records in the traffic log carry the same object.
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
exceptions | list of strings | Names of the exceptions that applied. | omitted when empty | no |
steps | list of steps | The steps, in the order the modules ran. | always | no |
steps[].module | string | The module, or limits for the limit check. | always | no |
steps[].phase | string | request, response or response_stream. | always | no |
steps[].mode | string | The effective mode of the module. | always | no |
steps[].action | string | allow, log, challenge, block, error or skipped. | always | no |
steps[].reasons | integer | How many reasons the step produced. | omitted when 0 | no |
steps[].duration_us | integer | Time spent in microseconds. | always | no |
steps[].note | string | The error text, or why the step was skipped. | omitted when empty | no |
steps[].changes | list of strings | Changes the module made to the request or response. | omitted when empty | no |
steps[].would_change | list of strings | Changes the module would make in block mode. | omitted when empty | no |
Capture
capture is the request (in an event) or the request and the response (in the traffic log) as kept for investigation.
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
headers | object (name to value) | The headers kept. | omitted when empty | yes, sensitive headers become [redacted], others are masked and clipped to 256 bytes |
body | string | The first bytes of the body, escaped. | omitted when empty | yes; left out for uploaded files |
body_bytes | integer | Size of the inspected body. | always | no |
body_omitted | string | Why no body was kept, for example files. | omitted when empty | set to files by masking |
body_truncated Since v0.2 | boolean | body holds only the first bytes of body_bytes. | omitted when false | cleared by masking |
body_files Since v0.2 | boolean | The body carries uploaded files. | omitted when false | no |
headers_truncated Since v0.2 | object (name to bytes) | Each header cut at its bound, with its full length. | omitted when empty | cleared by masking |
headers_omitted Since v0.2 | integer | How many headers beyond the kept number were left out. | omitted when 0 | no |
Bot
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
score | integer | The client's bot score. | always | no |
step | string | The ladder action reached. | omitted when below the first step | no |
step_at | integer | The score of that step. | omitted when 0 | no |
signals | list | Each signal in the score: rule, weight (its decayed share) and seen (time). | omitted when empty | no |
ja3, ja4, ja4h | string | The client's fingerprints. | omitted when empty | no |
user_agent | string | The user agent, truncated. | omitted when empty | yes |
known_client | string | The known client the request matched. | omitted when empty | no |
bot | string | The bot catalog entry that the user agent claims. | omitted when empty | no |
category | string | That entry's category. | omitted when empty | no |
verification | string | How the claim was checked: ranges or dns (verified), failed, pending or none. | omitted when empty | no |
verified_name | string | The DNS name that verified, or failed to verify, the claim. | omitted when empty | no |
token | string | The client's challenge token state: js or captcha (valid), expired or invalid. | omitted when no token | no |
scored_by | string | token when a token holder is scored by its token instead of its address. | omitted when empty | no |
login | string | The watched login endpoint of the attempt. | omitted when empty | no |
username | string | The username of the login attempt. | omitted when empty | yes, first character and a keyed hash |
class Since v0.2 | string | Automation class: automated, likely_automated or likely_human. | omitted when empty | no |
norm_score Since v0.2 | integer | Normalised score from 1 to 99. | omitted when 0 | no |
tags Since v0.2 | list of strings | Tags of the signals' families. | omitted when empty | no |
Identity and SOAP
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
identity.kind | string | The kind of identity, for example ip or ip_ja4. | always in the object | no |
identity.key | string | The identity key. | always in the object | no |
identity.label | string | A readable label. | omitted when empty | yes, except for ip and ip_ja4 labels |
soap.version | string | The SOAP version. | always in the object | no |
soap.operation | string | The first element of the SOAP body, bounded. | always in the object | no |
soap.contract | string | The name of the configured contract. | omitted when empty | no |
Attack score
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
score | integer | The attack score from 1 to 99. | always in the object | no |
class | string | attack (75 to 99), likely_attack (50 to 74), unlikely_attack (2 to 49) or clean (1). | always in the object | no |
raw | integer | The raw anomaly score. | omitted when 0 | no |
threshold | integer | The threshold the score is scaled by. | omitted when 0 | no |
sqli, xss, cmd, file, other | integer | Sub-scores per attack class, each 1 to 99. | omitted when 0 (not computed) | no |
Upstream
upstream is the data plane's half of the request. Times are in microseconds. The same object is in the traffic log.
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
local_address | string | The address and port the client connected to. | omitted when empty | no |
listener | string | The virtual server. | omitted when empty | no |
vip | string | The VIP the virtual server uses. | omitted when empty | no |
client_address | string | The client address and port as the data plane saw them. | omitted when empty | no |
peer_address | string | The TCP peer, a proxy or the client. | omitted when empty | no |
tls_version, tls_cipher, sni | string | The TLS session. | omitted when empty | no |
http_version | string | The HTTP version. | omitted when empty | no |
route | string | The route (application) the data plane chose. | omitted when empty | no |
pool | string | The server pool; empty for a block page. | omitted when empty | no |
member | string | The pool member that served the request. | omitted when empty | no |
upstream_start_us | integer | When the request started going to the member. | omitted when 0 | no |
upstream_first_byte_us | integer | The member's time to its first response byte. | omitted when 0 | no |
upstream_total_us | integer | Time from the first byte sent to the last byte received. | omitted when 0 | no |
attempts | integer | Connection attempts to members. | omitted when 0 | no |
response_flags | list of strings | The data plane's response flags. | omitted when empty | no |
response_details | string | The data plane's response details. | omitted when empty | no |
status | integer | The status sent to the client. | omitted when 0 | no |
bytes_received, bytes_sent | integer | Request and response sizes. | always | no |
duration_us | integer | Total request duration. | always | no |
upstream_failure | string | The data plane's reason a connection to the member failed. | omitted when empty | no |
Traffic log record
A traffic log record is one request, allowed or not. It joins the inspection half and the data plane's half by request ID. For how records are selected and stored, see Traffic log.
All fields below are Since v0.2.
Request and verdict
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
id | string | The request ID, equal to the event's transaction_id. | always | no |
node | string | The node that stored the record. | omitted when empty | no |
time | string (RFC 3339 time) | When the request arrived. | always | no |
application | string | The application. | omitted when empty | no |
listener | string | The virtual server. | omitted when empty | no |
vip | string | The VIP of the virtual server. | omitted when empty | no |
client_ip | string | The client address. | omitted when empty | no |
client_port | integer | The client port. | omitted when 0 | no |
country | string | Country of the client address. | omitted when empty | no |
method | string | HTTP method. | omitted when empty | no |
scheme | string | http or https. | omitted when empty | no |
host | string | Host header. | omitted when empty | no |
url | string | Path and query. | omitted when empty | yes, query values |
http_version | string | The HTTP version. | omitted when empty | no |
request | capture | Request headers and body, bounded by traffic.body. | omitted when none | yes |
user | string | The user that the session belongs to. | omitted when empty | yes |
bot_class | string | The bot catalog category, or the known client. | omitted when empty | no |
bot_name | string | The bot catalog entry. | omitted when empty | no |
action | string | allow, log, challenge or block. | omitted when empty | no |
mode | string | detect or block. | omitted when empty | no |
would_block | boolean | The request would have been blocked in block mode. | omitted when false | no |
anomaly_score | integer | The signature anomaly score. | omitted when 0 | no |
rule_ids | list of strings | The distinct rule IDs of the reasons. | omitted when empty | no |
block_status | integer | The status of the product's own answer. | omitted when 0 | no |
error | string | An inspection failure that the failure policy handled. | omitted when empty | no |
has_event | boolean | A security event exists for this request. | omitted when false | no |
event_id | string | The event's ID. | omitted when empty | no |
trace | trace | Request and response steps. | omitted when none | no |
inspection_us | integer | Time from the request's arrival at inspection to its end. | omitted when 0 | no |
Response and join state
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
response_status | integer | The status inspection saw. | omitted when 0 | no |
response | capture | Response headers, and the body when inspection received it. | omitted when no response | yes |
response_body_note | string | Why there is no response body. | omitted when empty | no |
upstream | upstream | The data plane's half. | omitted until it arrives | no |
partial | boolean | One half never arrived within the join window. | omitted when false | no |
missing | string | The missing half: data_plane or inspection. | omitted when partial is false | no |
masked | string | pci or role, as in the event. | omitted when values are in full | not applicable |
response_body_note holds one of these texts:
| Text | Cause |
|---|---|
response body logging is off for this application | The application does not log response bodies. |
the response was not in the response scope (type, size, stream or path skipped) | No module read the body and logging did not ask for it. |
the request was answered by the product itself | A block page or challenge was the answer. |
the body's content-encoding is not decoded | The body uses a content encoding that inspection does not decode. |
Enrichment and scores
The traffic writer adds these before it stores the record.
| Field | Type | Meaning | When present | Masked under pci |
|---|---|---|---|---|
asn, as_org | integer, string | Autonomous system number and organisation. | omitted when empty | no |
continent, region, city | string | Location of the client address. | omitted when empty | no |
device, browser, os | string | Parsed from the user agent. | omitted when empty | no |
user_agent | string | The user agent, at most 256 bytes. | omitted when empty | no |
referer_host | string | Host of the Referer header. | omitted when empty | no |
ext | string | File extension of the path. | omitted when empty | no |
requested_with | string | The X-Requested-With header. | omitted when empty | no |
ja3, ja4 | string | TLS fingerprints of an HTTPS request. | omitted when empty | no |
ja4h | string | HTTP fingerprint, when the bot module ran. | omitted when empty | no |
endpoint | string | The API endpoint template the request matched. | omitted when empty | no |
api_spec | string | The API specification of that endpoint. | omitted when empty | no |
api_label | string | The endpoint's risk label. | omitted when empty | no |
attack | attack | The attack score. | omitted when not scored | no |
automation | object | score (1 to 99), class, detections (IDs of contributing signals), tags, token and verified (a verified catalog bot). | omitted when not scored | no |
WARNING
user_agent, referer_host and requested_with are request values. The masking code does not change them, so they are escaped and bounded but not masked.
SIEM export formats
A SIEM destination sends each record as an RFC 5424 syslog message. The header carries the priority, the time, the node's host name, the application name waap and the stream (security or audit). The body is in the format that the destination sets. For how to add a destination, see SIEM export.
| Format | Body | Fields carried |
|---|---|---|
json | One JSON object with type set to security or audit. | A security event with all event fields except trace and capture, which a destination adds with include_capture. |
cef | CEF:0 header and key-value extensions. | The fields in the next table. |
leef | LEEF:1.0 header and tab-separated attributes. | The fields in the next table. |
In cef and leef, an empty value is left out. Both formats cut their fields to the 64 KiB message limit as described in SIEM export.
Name mapping for security events
| Event field | CEF key | LEEF key |
|---|---|---|
time | rt (milliseconds since the epoch) | devTime (UTC, with devTimeFormat) |
action | act | action |
client_ip | src | src |
method | requestMethod | method |
path | request | url |
host | dhost | dstHost |
node | dvchost | node |
transaction_id | externalId | transactionId |
application | cs1 (label application) | application |
| rule IDs of all reasons, comma separated | cs2 (label rules) | rules |
mode | cs3 (label mode) | mode |
country | cs4 (label country) | country |
first reason's variable and key, joined by : | cs5 (label matched) | not carried |
anomaly_score | cn1 (label anomalyScore), when above 0 | not carried |
first reason's rule_id | signature ID in the header | event ID in the header |
first reason's message | name in the header | not carried |
| severity | header severity 0 to 10 | sev |
| not applicable | not applicable | cat is security |
Without reasons, the CEF signature ID is request and the name is Request followed by the action. The LEEF event ID is request. Other event fields, such as reasons[].snippet, are in the json format only.
The severity follows the action: block is 7, log and would_block are 5, everything else is 3. The syslog severity is warning for block, notice for log or would_block, and informational otherwise.
Name mapping for audit records
| Audit field | CEF key | LEEF key |
|---|---|---|
time | rt | devTime |
actor | suser | usrName |
action | act | action |
result | outcome | result |
detail | msg | detail |
seq | externalId | sequence |
target | cs1 (label target) | target |
role | cs2 (label role) | role |
source | cs3 (label source) | source |
kind | cs4 (label kind) | not carried |
The CEF signature ID of an audit record is audit and its name is the action. The json format carries all audit fields.