Repository navigation
Expand file tree
/
Copy pathdetect_remote_access_software_usage_url.yml
More file actions
116 lines (108 loc) · 5.18 KB
/
Copy pathdetect_remote_access_software_usage_url.yml
File metadata and controls
116 lines (108 loc) · 5.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Detect Remote Access Software Usage URL
id: 9296f515-073c-43a5-88ec-eda5a4626654
version: 18
creation_date: '2024-03-06'
modification_date: '2026-10-08'
author: Steven Dick, Onur Mustafa Erdogan, Splunk
status: production
type: Anomaly
description: |-
The following analytic detects the execution of known remote access software within the environment.
It leverages network logs mapped to the Web data model, identifying specific URLs and user agents associated with remote access tools like AnyDesk, GoToMyPC, LogMeIn, and TeamViewer.
data_source:
- Palo Alto Network Threat
search: |-
| tstats `security_content_summariesonly`
count min(_time) as firstTime
max(_time) as lastTime
latest(Web.http_method) as http_method
latest(Web.http_user_agent) as http_user_agent
latest(Web.url) as url
latest(Web.user) as user
latest(Web.dest) as dest
FROM datamodel=Web WHERE
Web.url_domain=*
NOT Web.url_domain IN (
"-",
"unknown"
)
[
| inputlookup remote_access_software
| search domain!=""
| rename domain as Web.url_domain
| table Web.url_domain
]
BY Web.action Web.src Web.category
Web.url_domain Web.url_length
| `drop_dm_object_name("Web")`
| lookup local=t remote_access_software domain AS url_domain OUTPUT app as signature, category, reference, description
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `remote_access_software_usage_exceptions`
| `detect_remote_access_software_usage_url_filter`
how_to_implement: |
The detection is based on data that originates from network logs. These logs must be processed using the appropriate Splunk Technology Add-ons
that are specific to the network logs. The logs must also be mapped to the `Web` data model. Use the Splunk Common Information Model (CIM) to
normalize the field names and speed up the data modeling process. The "exceptions" macro leverages both an Assets and Identities lookup, as well
as a KVStore collection called "remote_software_exceptions" that lets you track and maintain device-based exceptions for this set of detections.
known_false_positives: |
It is possible that legitimate remote access software is used within the environment. Ensure that the lookup is reviewed and updated with any additional
remote access software that is used within the environment. Known false positives can be added to the remote_access_software_usage_exception.csv lookup
to globally suppress these situations across all remote access content
references:
- https://attack.mitre.org/techniques/T1219/
- https://thedfirreport.com/2022/08/08/bumblebee-roasts-its-way-to-domain-admin/
- https://thedfirreport.com/2022/11/28/emotet-strikes-again-lnk-file-leads-to-domain-wide-ransomware/
drilldown_searches:
- name: View the detection results for - "$src$" and "$user$"
search: '%original_detection_search% | search src = "$src$" user = "$user$"'
earliest_offset: $info_min_time$
latest_offset: $info_max_time$
- name: View risk events for the last 7 days for - "$src$" and "$user$"
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$src$", "$user$") | 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)`'
earliest_offset: 7d
latest_offset: "0"
- name: Investigate traffic to $url_domain$
search: '| from datamodel:Web | search src=$src$ url_domain=$url_domain$'
earliest_offset: $info_min_time$
latest_offset: $info_max_time$
intermediate_findings:
entities:
- field: src
type: system
score: 20
message: A domain for a known remote access software [$url_domain$] was contacted by [$src$].
- field: user
type: user
score: 20
message: A domain for a known remote access software [$url_domain$] was contacted by [$src$].
threat_objects:
- field: signature
type: signature
- field: url_domain
type: domain
analytic_story:
- Insider Threat
- Command And Control
- Ransomware
- CISA AA24-241A
- Remote Monitoring and Management Software
- Interlock Ransomware
- Scattered Lapsus$ Hunters
asset_type: Network
mitre_attack_id:
- T1219
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
category: web
security_domain: network
tests:
- name: True Positive Test
attack_data:
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1219/screenconnect/screenconnect_palo.log
source: not_applicable
sourcetype: pan:threat
description: PORTED MANUAL TEST - This detection uses A&I lookups from Enterprise Security.
test_type: experimental