Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MicrosoftDefenderXDR: extract additional fields for Alert Evidence #1393

Merged
merged 3 commits into from
Dec 17, 2024
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
10 changes: 10 additions & 0 deletions Microsoft/microsoft-365-defender/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,11 @@ microsoft.defender.threat.detection:
name: microsoft.defender.threat.detection
type: keyword

microsoft.defender.threat.detection_status:
description: The status of the detection
name: microsoft.defender.threat.detection_status
type: keyword

microsoft.defender.threat.family:
description: Malware family that the suspicious or malicious file or process has
been classified under
Expand All @@ -815,6 +820,11 @@ microsoft.defender.threat.severity:
name: microsoft.defender.threat.severity
type: keyword

microsoft.defender.threat.suspicion_level:
description: The status of the detection
name: microsoft.defender.threat.suspicion_level
type: keyword

microsoft.defender.threat.types:
description: Verdict from the email filtering stack on whether the email contains
malware, phishing, or other threats
Expand Down
7 changes: 7 additions & 0 deletions Microsoft/microsoft-365-defender/ingest/parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ stages:
microsoft.defender.evidence.direction: "{{json_event.message.properties.EvidenceDirection}}"
microsoft.defender.threat.family: "{{json_event.message.properties.ThreatFamily}}"
microsoft.defender.threat.severity: "{{json_event.message.properties.Severity}}"
microsoft.defender.threat.detection_status: "{{parse_additional_fields.fields.DetectionStatus}}"
microsoft.defender.threat.suspicion_level: "{{parse_additional_fields.fields.SuspicionLevel}}"

- set:
email.to.address: ["{{parse_additional_fields.fields.Recipient}}"]
Expand All @@ -363,6 +365,11 @@ stages:
action.properties.AttachmentCount: "{{parse_additional_fields.fields.AttachmentCount}}"
action.properties.UrlCount: "{{parse_additional_fields.fields.UrlCount}}"

process.pid: "{{parse_additional_fields.fields.ProcessId}}"
process.name: "{{parse_additional_fields.fields.ImageFile.Name}}"
process.parent.pid: "{{parse_additional_fields.fields.ParentProcess.ProcessId}}"
process.parent.command_line: "{{parse_additional_fields.fields.ParentProcess.CommandLine}}"

set_alert_info_fields:
actions:
- set:
Expand Down
11 changes: 9 additions & 2 deletions Microsoft/microsoft-365-defender/tests/test_alert_evidence.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,22 @@
"role": "Related"
},
"threat": {
"severity": "Low"
"detection_status": "Detected",
"severity": "Low",
"suspicion_level": "Suspicious"
}
}
},
"process": {
"args": [
"8192"
],
"command_line": "splwow64.exe 8192"
"command_line": "splwow64.exe 8192",
"name": "splwow64.exe",
"parent": {
"pid": 12636
},
"pid": 19060
},
"related": {
"hash": [
Expand Down
Loading