Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions definitions/filters/antivirus/bitdefender_gz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ pipeline:
- origin.port
to: int

# Adding action result
- add:
function: string
params:
key: actionResult
value: "blocked"
where: 'oneOf("action", ["blocked", "quarantined", "deleted", "disinfected"])'

# Removing unused fields
- delete:
fields:
Expand Down
8 changes: 8 additions & 0 deletions definitions/filters/antivirus/deceptive-bytes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,14 @@ pipeline:
valueSplit: "="
source: log.pidStatusToKv

# Adding action result
- add:
function: string
params:
key: actionResult
value: "blocked"
where: 'exists("log.action") && oneOf("log.action", ["blocked", "prevented"])'

# Adding severity based on log.severityLabelCharacter
- add:
function: 'string'
Expand Down
23 changes: 23 additions & 0 deletions definitions/filters/antivirus/esmc-eset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pipeline:
from:
- log.event
to: actionResult
where: '!regexMatch("log.result", "(?i)\b(?:denied|blocked|failed)\b")'
- rename:
from:
- log.sourceaddress
Expand All @@ -83,6 +84,28 @@ pipeline:
from:
- log.targetport
to: target.port

# Adding action result
- add:
function: 'string'
params:
key: actionResult
value: 'denied'
where: regexMatch("log.event", "(?i)\bdenied\b")

- add:
function: 'string'
params:
key: actionResult
value: 'blocked'
where: regexMatch("log.event", "(?i)\bblocked\b")

- add:
function: 'string'
params:
key: actionResult
value: 'failed'
where: regexMatch("log.event", "(?i)\bfailed\b")

# Adding severity field based on log.severity
- add:
Expand Down
15 changes: 15 additions & 0 deletions definitions/filters/antivirus/kaspersky.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,21 @@ pipeline:
destination: target.geolocation
where: exists("target.ip")

# Adding action result
- add:
function: string
params:
key: actionResult
value: "Allow"
where: 'oneOf("action", ["Allow", "Allowed"])'

- add:
function: string
params:
key: actionResult
value: "blocked"
where: 'oneOf("action", ["Block", "Blocked", "blocked", "Redirect", "terminate", "delete", "quarantine"])'

# .......................................................................#
# Removing unused fields
# .......................................................................#
Expand Down
20 changes: 20 additions & 0 deletions definitions/filters/antivirus/sentinel-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,26 @@ pipeline:
- log.rt
to: log.ruleTime

# Adding action result
- add:
function: string
params:
key: actionResult
value: "failed"
where: 'equals("log.threatStatus", "mitigation_failed")'
- add:
function: string
params:
key: actionResult
value: "failed"
where: 'equals("log.status", "failed") && !exists("actionResult")'
- add:
function: string
params:
key: actionResult
value: "failed"
where: 'contains("log.mitigationStatus", "fail") && !exists("actionResult")'

# Removing unused fields
- delete:
fields:
Expand Down
20 changes: 20 additions & 0 deletions definitions/filters/aws/aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@ pipeline:
- log.tlsDetails.tlsVersion
to: log.tlsDetailsTlsVersion

# Adding action result
- add:
function: string
params:
key: actionResult
value: "success"
where: 'exists("log.eventName") && !exists("log.errorCode")'
- add:
function: string
params:
key: actionResult
value: "denied"
where: 'equals("log.errorCode", "AccessDenied")'
- add:
function: string
params:
key: actionResult
value: "failed"
where: 'exists("log.errorCode") && !equals("log.errorCode", "AccessDenied")'

- delete:
fields:
- log.requestParameters
Expand Down
Loading
Loading