Skip to content

Commit 14b47e1

Browse files
authored
Merge pull request #14707 from SlimKQL/new-mdo-queries
added a query to detect Teams impersonation attack
2 parents 0501367 + 733278b commit 14b47e1

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
id: edd48210-532e-4560-a8fe-065240cd2f20
2+
name: Display Name - Helpdesk theme impersonation attack detection
3+
description: |
4+
This query check the external Teams UPN against known Teams impersonation domain
5+
description-detailed: |
6+
This query check the external Teams UPN against known Teams impersonation domain
7+
requiredDataConnectors:
8+
- connectorId: MicrosoftThreatProtection
9+
dataTypes:
10+
- CloudAppEvents
11+
tactics:
12+
- InitialAccess
13+
relevantTechniques:
14+
- T1566
15+
query: |
16+
let HelpdeskDomain = dynamic(["helpdesk-quick.com","helpdesk-call.com","helpdesk-service.com"]);
17+
CloudAppEvents
18+
| where Timestamp > ago(30d)
19+
| where ActionType == "TeamsImpersonationDetected"
20+
| extend ImpersonationDisplayName = tostring(parse_json(tostring(RawEventData.Sender)).DisplayName)
21+
| extend ImpersonationUPN = tostring(parse_json(tostring(RawEventData.Sender)).UPN)
22+
| extend ImpactedUserUPN = tostring(RawEventData.UserId)
23+
| where ImpersonationUPN has_any(HelpdeskDomain)
24+
| project Timestamp, AccountType, ImpactedUserUPN, ImpersonationDisplayName, ImpersonationUPN
25+
version: 1.0.0

0 commit comments

Comments
 (0)