↳ GitHub sourceAnalytics ruleMedium

KnowBe4 Defend - Dangerous Attachment Detected

Description

'Defend has detected a user has a suspicious file type from a suspicious sender in their mailbox.'
Rule type
Scheduled
Version
1.0.0
Declared status
Available
Query frequency
30m
Query period
30m
Trigger
gt 0

Declared MITRE coverage

Declared sources

Metadata from the source file. No dependencies inferred from KQL.

Connectors

KQL query

Original query, unchanged.

DefendAuditData
| where ThreatLevel == "suspicious" or ThreatLevel == "dangerous"
| mv-expand todynamic(Attachments)
| where Attachments.name matches regex @"(?i)^.*\.(doc|docx|docm|pdf|xls|xlsx|xlsm|html|zip)$(?-i)"
| summarize attachmentCount=count() by TimeGenerated, tostring(Attachments.name), Subject, From, Account_0_FullName = trim(@"[^@.\w]+",Recipients), timesClicked = LinksClicked, SenderIP

Declared entities

AccountFileMailboxIP

Related content

Links established from declared identifiers and solution manifests.

Source provenance

GitHub

Displayed values come from files in Azure/Azure-Sentinel. They describe the published template, not your workspace configuration.

Source identifier
b75a4a7a-dedb-47be-b7e6-344f4d50af19
Additional source files 2Solutions/KnowBe4 Defend/Analytic Rules/KnowBe4DangerousAttachmentReceived.yamlsource ↗Solutions/KnowBe4 Defend/Data/Solution_KnowBe4Defend.jsonsolution-membership ↗
GSTEP / CATALOG TRACKING

Added to catalog : 16 Sept 2026 · 05:49 UTC
Last change observed : 16 Sept 2026 · 05:49 UTC

GSTEP sync dates, separate from the source content’s publication dates.