Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 6b5b4d9

Browse files
authored
Merge pull request #236 from pawp81/patch-5
Create WhenZAPed.md
2 parents 7c245f5 + 5bd4d56 commit 6b5b4d9

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Initial access/WhenZAPed.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
# When email was ZAPed.
3+
4+
This query allows to verify when email matching your search condition (by default based on presence of the URL) were ZAPed and compare it with original delivery time.
5+
6+
## Query
7+
8+
```
9+
let URL=""; // Put your URL here
10+
EmailUrlInfo
11+
| where Url matches regex URL
12+
| join (EmailEvents | where DeliveryAction == "Delivered" and EmailDirection == "Inbound") on NetworkMessageId
13+
| project Timestamp, NetworkMessageId, Url, SenderFromAddress, SenderIPv4, RecipientEmailAddress, Subject,DeliveryAction, DeliveryLocation
14+
| join (EmailPostDeliveryEvents | where ActionType has "ZAP") on NetworkMessageId,RecipientEmailAddress
15+
| extend DeliveryTime=(Timestamp)
16+
| extend ZAPTime=(Timestamp1)
17+
| project DeliveryTime, ZAPTime, NetworkMessageId, SenderFromAddress, SenderIPv4,RecipientEmailAddress, Subject, DeliveryAction, DeliveryLocation
18+
| sort by DeliveryTime asc
19+
```
20+
## Category
21+
22+
This query can be used to detect the following attack techniques and tactics ([see MITRE ATT&CK framework](https://attack.mitre.org/)) or security configuration states.
23+
24+
| Technique, tactic, or state | Covered? (v=yes) | Notes |
25+
|------------------------|----------|-------|
26+
| Initial access | x | |
27+
| Execution | | |
28+
| Persistence | | |
29+
| Privilege escalation | | |
30+
| Defense evasion | | |
31+
| Credential Access | | |
32+
| Discovery | | |
33+
| Lateral movement | | |
34+
| Collection | | |
35+
| Command and control | | |
36+
| Exfiltration | | |
37+
| Impact | | |
38+
| Vulnerability | | |
39+
| Misconfiguration | | |
40+
| Malware, component | | |
41+
42+
43+
## Contributor info
44+
45+
**Contributor:** Pawel Partyka
46+
47+
**GitHub alias:** pawp81
48+
49+
**Organization:** Microsoft
50+
51+
**Contact info:** @pawp81

0 commit comments

Comments
 (0)