You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: detections/cloud/o365_exfiltration_via_file_download.yml
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,15 @@ type: Anomaly
8
8
description: The following analytic detects when an excessive number of files are downloaded from o365 by the same user over a short period of time. O365 may bundle these files together as a ZIP file, however each file will have it's own download event. This behavior may indicate an attacker staging data for exfiltration or an insider threat removing organizational data. Additional attention should be taken with any Azure Guest (#EXT#) accounts.
9
9
data_source:
10
10
- Office 365 Universal Audit Log
11
-
search: '`o365_management_activity` Operation IN ("filedownloaded")
12
-
| eval user = replace(mvindex(split(lower(UserId),"#ext#"),0),"_","@"), user_flat = replace(UserId, "[^A-Za-z0-9]","_")
13
-
| stats values(user) as user, latest(ClientIP) as src values(ZipFileName) as file_name, values(Operation) as signature, values(UserAgent) as http_user_agent, dc(SourceFileName) as count, min(_time) as firstTime, max(_time) as lastTime by Workload,UserId,SiteUrl
14
-
| rename SiteUrl as file_path,Workload as app
15
-
| where count > 50
16
-
| `security_content_ctime(firstTime)`
17
-
| `security_content_ctime(lastTime)`
18
-
| `o365_exfiltration_via_file_download_filter`'
11
+
search: |-
12
+
`o365_management_activity` Operation IN ("filedownloaded")
13
+
| eval user = replace(mvindex(split(lower(UserId),"#ext#"),0),"_","@"), user_flat = replace(UserId, "[^A-Za-z0-9]","_")
14
+
| stats values(user) as user, latest(ClientIP) as src values(ZipFileName) as file_name, values(Operation) as signature, values(UserAgent) as http_user_agent, dc(SourceFileName) as count, min(_time) as firstTime, max(_time) as lastTime by Workload,UserId,SiteUrl
15
+
| rename SiteUrl as file_path,Workload as app
16
+
| where count > 50
17
+
| `security_content_ctime(firstTime)`
18
+
| `security_content_ctime(lastTime)`
19
+
| `o365_exfiltration_via_file_download_filter`
19
20
how_to_implement: You must install the Splunk Microsoft Office 365 Add-on and ingest Office 365 management activity events.
20
21
known_false_positives: It is possible that certain file download scenarios may trigger this alert, specifically OneDrive syncing. Adjust threshold and filtering as needed.
0 commit comments