Skip to content

Commit 31621ad

Browse files
authored
Add files via upload
1 parent be3ab3c commit 31621ad

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: O365 SharePoint Suspicious Search Behavior
2+
id: 6ca919db-52f3-4c95-a4e9-7b189e8a043d
3+
version: 1
4+
date: '2024-12-11'
5+
author: Steven Dick
6+
status: production
7+
type: Anomaly
8+
description: The following analytic identifies when the O365 SharePoint users search for suspicious keywords or have an excessive number of queries within a limited timeframe. This behavior may indicate malicious actor enumeration of SharePoint based data within O365.
9+
data_source:
10+
- Office 365 Universal Audit Log
11+
search: '`o365_management_activity` Workload=SharePoint Operation="SearchQueryPerformed" SearchQueryText=* EventData=*search*
12+
| where NOT (match(SearchQueryText, "\*") OR match(SearchQueryText,"(\*)"))
13+
| eval signature_id = CorrelationId, signature=Operation, src = ClientIP, user = UserId, object_name='EventData', command = SearchQueryText, -time = _time
14+
| bin _time span=1hr
15+
| stats values(object_name) as object_name values(command) as command, values(src) as src, dc(command) as count, min(-time) as firstTime, max(-time) as lastTime by user,signature,_time
16+
| where count > 20 OR match(command, "(?i)password|credential|passwd|shadow|active directory|account|username|network|computer|access|MFA|bank|deposit|payroll|EFT|Electonic Funds|routing")
17+
| `security_content_ctime(firstTime)`
18+
| `security_content_ctime(lastTime)`
19+
| `o365_sharepoint_suspicious_search_behavior_filter`'
20+
how_to_implement: You must install the Splunk Microsoft Office 365 Add-on and ingest Office 365 management activity events. The thresholds and match terms set within the analytic are initial guidelines and should be customized based on the organization's user behavior and risk profile. Security teams are encouraged to adjust these thresholds to optimize the balance between detecting genuine threats and minimizing false positives, ensuring the detection is tailored to their specific environment.
21+
known_false_positives: Users searching excessively or possible false positives related to matching conditions.
22+
references:
23+
- https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-320a
24+
- https://attack.mitre.org/techniques/T1213/002/
25+
drilldown_searches:
26+
- name: View the detection results for - "$user$"
27+
search: '%original_detection_search% | search user = "$user$"'
28+
earliest_offset: $info_min_time$
29+
latest_offset: $info_max_time$
30+
- name: View risk events for the last 7 days for - "$user$"
31+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$") starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'
32+
earliest_offset: $info_min_time$
33+
latest_offset: $info_max_time$
34+
- name: Investigate search behavior by $user$
35+
search: '`o365_management_activity` Workload=SharePoint Operation="SearchQueryPerformed" SearchQueryText=* EventData=*search* AND UserId = $user|s$'
36+
earliest_offset: $info_min_time$
37+
latest_offset: $info_max_time$
38+
tags:
39+
analytic_story:
40+
- Azure Active Directory Persistence
41+
- Office 365 Account Takeover
42+
- CISA AA22-320A
43+
asset_type: O365 Tenant
44+
confidence: 50
45+
impact: 50
46+
message: The SharePoint Online was searched suspiciously by $user$
47+
mitre_attack_id:
48+
- T1213.002
49+
- T1552
50+
observable:
51+
- name: user
52+
type: User
53+
role:
54+
- Victim
55+
product:
56+
- Splunk Enterprise
57+
- Splunk Enterprise Security
58+
- Splunk Cloud
59+
required_fields:
60+
- Workload
61+
- Operation
62+
- SearchQueryText
63+
- EventData
64+
- UserId
65+
- _time
66+
risk_score: 25
67+
security_domain: threat
68+
tests:
69+
- name: True Positive Test
70+
attack_data:
71+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1213.002/o365_sus_sharepoint_search/o365_sus_sharepoint_search.log
72+
source: o365
73+
sourcetype: o365:management:activity

0 commit comments

Comments
 (0)