Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Egress Defend - Dangerous Attachment Detected

Back
Ida0e55dd4-8454-4396-91e6-f28fec3d2cab
RulenameEgress Defend - Dangerous Attachment Detected
DescriptionDefend has detected a user has a suspicious file type from a suspicious sender in their mailbox.
SeverityMedium
TacticsExecution
InitialAccess
Persistence
PrivilegeEscalation
TechniquesT1204
T0853
T0863
T1566
T1546
T1546
Required data connectorsEgressDefend
KindScheduled
Query frequency30m
Query period30m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Egress Defend/Analytic Rules/DangerousAttachmentReceived.yaml
Version1.0.0
Arm templatea0e55dd4-8454-4396-91e6-f28fec3d2cab.json
Deploy To Azure
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
triggerThreshold: 0
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: FullName
    columnName: Account_0_FullName
- entityType: File
  fieldMappings:
  - identifier: Name
    columnName: Attachments_name
- entityType: Mailbox
  fieldMappings:
  - identifier: MailboxPrimaryAddress
    columnName: Account_0_FullName
- entityType: IP
  fieldMappings:
  - identifier: Address
    columnName: SenderIP
requiredDataConnectors:
- dataTypes:
  - EgressDefend_CL
  connectorId: EgressDefend
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Egress Defend/Analytic Rules/DangerousAttachmentReceived.yaml
tags:
- Defend
name: Egress Defend - Dangerous Attachment Detected
alertDetailsOverride:
  alertDisplayNameFormat: Alert - {{Account_0_FullName}} has suspicious attachment.
relevantTechniques:
- T1204
- T0853
- T0863
- T1566
- T1546
- T1546
status: Available
version: 1.0.0
queryPeriod: 30m
kind: Scheduled
id: a0e55dd4-8454-4396-91e6-f28fec3d2cab
query: |
  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  
description: |
    'Defend has detected a user has a suspicious file type from a suspicious sender in their mailbox.'
queryFrequency: 30m
severity: Medium
triggerOperator: gt
tactics:
- Execution
- InitialAccess
- Persistence
- PrivilegeEscalation