Skip to content

Commit bdb7959

Browse files
authored
Merge branch 'develop' into 8_million_requests
2 parents d0b24c6 + 32c10de commit bdb7959

13 files changed

+566
-7
lines changed

detections/endpoint/exchange_powershell_abuse_via_ssrf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Exchange PowerShell Abuse via SSRF
22
id: 29228ab4-0762-11ec-94aa-acde48001122
3-
version: 5
4-
date: '2024-11-13'
3+
version: 6
4+
date: '2025-02-19'
55
author: Michael Haag, Splunk
66
status: experimental
77
type: TTP
@@ -14,7 +14,7 @@ description: The following analytic detects suspicious behavior indicative of Pr
1414
If confirmed malicious, this could lead to unauthorized access, privilege escalation,
1515
or persistent control over the Exchange environment.
1616
data_source: []
17-
search: '`exchange` c_uri="*//autodiscover*" cs_uri_query="*PowerShell*" cs_method="POST"
17+
search: '`windows_exchange_iis` c_uri="*//autodiscover*" cs_uri_query="*PowerShell*" cs_method="POST"
1818
| stats count min(_time) as firstTime max(_time) as lastTime by dest, cs_uri_query,
1919
cs_method, c_uri | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
2020
| `exchange_powershell_abuse_via_ssrf_filter`'
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Windows Cisco Secure Endpoint Related Service Stopped
2+
id: df74f45f-01c8-4fd6-bcb8-f6a9ea58307a
3+
version: 1
4+
date: '2024-12-09'
5+
author: Nasreddine Bencherchali, Splunk
6+
status: production
7+
type: Anomaly
8+
description: The following analytic detects the suspicious termination of known services commonly targeted by ransomware before file encryption. It leverages Windows System Event Logs (EventCode 7036) to identify when critical services such as Volume Shadow Copy, backup, and antivirus services are stopped. This activity is significant because ransomware often disables these services to avoid errors and ensure successful file encryption. If confirmed malicious, this behavior could lead to widespread data encryption, rendering files inaccessible and potentially causing significant operational disruption and data loss.
9+
data_source:
10+
- Windows Event Log System 7036
11+
search: '`wineventlog_system` `normalized_service_binary_field` | rename param1 as display_name | rename param2 as status | search EventCode=7036 display_name IN ("Cisco AMP Orbital", "*Cisco Secure Endpoint*", "*Cisco Security Connector Monitoring*", "CiscoSAM", "CiscoAMPHeurDriver", "CiscoAMPELAMDriver", "CiscoAMPCEFWDriver", "ImmunetNetworkMonitorDriver", "ImmunetProtectDriver", "ImmunetSelfProtectDriver") status IN ("stopped", "arrêté") | stats count min(_time) as firstTime max(_time) as lastTime by EventCode display_name normalized_service_name status dest | `security_content_ctime(lastTime)` | `security_content_ctime(firstTime)` | `windows_cisco_secure_endpoint_related_service_stopped_filter`'
12+
how_to_implement: To successfully implement this search, you need to be ingesting logs with the 7036 EventCode ScManager in System audit Logs from your endpoints.
13+
known_false_positives: Administrator or troubleshooting activities may trigger this alert. Investigate the process performing this action to determine if its a legitimate activity.
14+
references:
15+
- https://krebsonsecurity.com/2021/05/a-closer-look-at-the-darkside-ransomware-gang/
16+
- https://www.mcafee.com/blogs/other-blogs/mcafee-labs/mcafee-atr-analyzes-sodinokibi-aka-revil-ransomware-as-a-service-what-the-code-tells-us/
17+
- https://news.sophos.com/en-us/2020/04/24/lockbit-ransomware-borrows-tricks-to-keep-up-with-revil-and-maze/
18+
- https://blogs.vmware.com/security/2022/10/lockbit-3-0-also-known-as-lockbit-black.html
19+
drilldown_searches:
20+
- name: View the detection results for - "$dest$"
21+
search: '%original_detection_search% | search dest = "$dest$"'
22+
earliest_offset: $info_min_time$
23+
latest_offset: $info_max_time$
24+
- name: View risk events for the last 7 days for - "$dest$"
25+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$")
26+
starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime
27+
values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories)
28+
as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic)
29+
as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)`
30+
| `security_content_ctime(lastTime)`'
31+
earliest_offset: $info_min_time$
32+
latest_offset: $info_max_time$
33+
rba:
34+
message: Cisco Secure Endpoint Service $display_name$ stopped on $dest$
35+
risk_objects:
36+
- field: dest
37+
type: system
38+
score: 60
39+
threat_objects:
40+
- field: display_name
41+
type: service
42+
tags:
43+
analytic_story:
44+
- Security Solution Tampering
45+
asset_type: Endpoint
46+
mitre_attack_id:
47+
- T1490
48+
product:
49+
- Splunk Enterprise
50+
- Splunk Enterprise Security
51+
- Splunk Cloud
52+
security_domain: endpoint
53+
tests:
54+
- name: True Positive Test
55+
attack_data:
56+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/service_stop.log
57+
source: XmlWinEventLog:System
58+
sourcetype: XmlWinEventLog
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Windows Cisco Secure Endpoint Stop Immunet Service Via Sfc
2+
id: 44badcb1-2e8c-4628-9537-021bbae571ad
3+
version: 1
4+
date: '2025-02-19'
5+
author: Nasreddine Bencherchali, Splunk
6+
status: production
7+
type: Anomaly
8+
description: The following analytic detects the use of the `sfc.exe` utility, in order to stop the Immunet Protect service. The Sfc.exe utility is part of Cisco Secure Endpoint installation. This detection leverages telemetry from the endpoint, focusing on command-line executions involving the `-k` parameter. This activity is significant as it indicates potential tampering with defensive mechanisms. If confirmed malicious, attackers could partially blind the EDR, enabling further compromise and lateral movement within the network.
9+
data_source:
10+
- Sysmon EventID 1
11+
- Windows Event Log Security 4688
12+
- CrowdStrike ProcessRollup2
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name="sfc.exe" Processes.process="* -k*" AND NOT Processes.process_path IN ("*:\\Windows\\System32\\*", "*:\\Windows\\SysWOW64\\*", ":\\Windows\\WinSxS\\*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.parent_process_name Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_cisco_secure_endpoint_stop_immunet_service_via_sfc_filter`'
14+
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
15+
known_false_positives: It is possible that this action is executed during troubleshooting activity. Activity needs to be confirmed on a case by case basis.
16+
references:
17+
- https://www.cisco.com/c/en/us/support/docs/security/amp-endpoints/213690-amp-for-endpoint-command-line-switches.html
18+
drilldown_searches:
19+
- name: View the detection results for - "$user$" and "$dest$"
20+
search: '%original_detection_search% | search user = "$user$" dest = "$dest$"'
21+
earliest_offset: $info_min_time$
22+
latest_offset: $info_max_time$
23+
- name: View risk events for the last 7 days for - "$user$" and "$dest$"
24+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$", "$dest$") 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)`'
25+
earliest_offset: $info_min_time$
26+
latest_offset: $info_max_time$
27+
rba:
28+
message: Suspicious use of `sfc.exe` stopping the Immunet Protect service on $dest$ by user $user$.
29+
risk_objects:
30+
- field: user
31+
type: user
32+
score: 56
33+
- field: dest
34+
type: system
35+
score: 56
36+
threat_objects:
37+
- field: parent_process_name
38+
type: parent_process_name
39+
- field: process_name
40+
type: process_name
41+
tags:
42+
analytic_story:
43+
- Security Solution Tampering
44+
asset_type: Endpoint
45+
mitre_attack_id:
46+
- T1562.001
47+
product:
48+
- Splunk Enterprise
49+
- Splunk Enterprise Security
50+
- Splunk Cloud
51+
security_domain: endpoint
52+
tests:
53+
- name: True Positive Test
54+
attack_data:
55+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
56+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
57+
sourcetype: XmlWinEventLog
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Windows Cisco Secure Endpoint Unblock File Via Sfc
2+
id: 9a7a490c-5581-4c95-bab5-a21e351293ef
3+
version: 1
4+
date: '2025-02-19'
5+
author: Nasreddine Bencherchali, Splunk
6+
status: production
7+
type: Anomaly
8+
description: The following analytic detects the use of the sfc.exe utility with the "-unblock" parameter, a feature within Cisco Secure Endpoint. The "-unblock" flag is used to remove system blocks imposed by the endpoint protection. This detection focuses on command-line activity that includes the "-unblock" parameter, as it may indicate an attempt to restore access to files or processes previously blocked by the security software. While this action could be legitimate in troubleshooting scenarios, malicious actors might use it to override protective measures, enabling execution of blocked malicious payloads or bypassing other security mechanisms.
9+
data_source:
10+
- Sysmon EventID 1
11+
- Windows Event Log Security 4688
12+
- CrowdStrike ProcessRollup2
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name="sfc.exe" Processes.process="* -unblock *" AND NOT Processes.process_path IN ("*:\\Windows\\System32\\*", "*:\\Windows\\SysWOW64\\*", ":\\Windows\\WinSxS\\*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.parent_process_name Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_cisco_secure_endpoint_unblock_file_via_sfc_filter`'
14+
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
15+
known_false_positives: It is possible that this action is executed during troubleshooting activity. Activity needs to be confirmed on a case by case basis.
16+
references:
17+
- https://www.cisco.com/c/en/us/support/docs/security/amp-endpoints/213690-amp-for-endpoint-command-line-switches.html
18+
drilldown_searches:
19+
- name: View the detection results for - "$user$" and "$dest$"
20+
search: '%original_detection_search% | search user = "$user$" dest = "$dest$"'
21+
earliest_offset: $info_min_time$
22+
latest_offset: $info_max_time$
23+
- name: View risk events for the last 7 days for - "$user$" and "$dest$"
24+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$", "$dest$") 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)`'
25+
earliest_offset: $info_min_time$
26+
latest_offset: $info_max_time$
27+
rba:
28+
message: Suspicious use of `sfc.exe` unblocking a potentially harmful file on $dest$ by user $user$
29+
risk_objects:
30+
- field: user
31+
type: user
32+
score: 56
33+
- field: dest
34+
type: system
35+
score: 56
36+
threat_objects:
37+
- field: parent_process_name
38+
type: parent_process_name
39+
- field: process_name
40+
type: process_name
41+
tags:
42+
analytic_story:
43+
- Security Solution Tampering
44+
asset_type: Endpoint
45+
mitre_attack_id:
46+
- T1562.001
47+
product:
48+
- Splunk Enterprise
49+
- Splunk Enterprise Security
50+
- Splunk Cloud
51+
security_domain: endpoint
52+
tests:
53+
- name: True Positive Test
54+
attack_data:
55+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
56+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
57+
sourcetype: XmlWinEventLog
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Windows Cisco Secure Endpoint Uninstall Immunet Service Via Sfc
2+
id: ba6e7f4d-a85e-4a14-8e7d-41f4b82e3c9a
3+
version: 1
4+
date: '2025-02-19'
5+
author: Nasreddine Bencherchali, Splunk
6+
status: production
7+
type: Anomaly
8+
description: The following analytic detects the use of the sfc.exe utility with the "-u" parameter, which is part of the Cisco Secure Endpoint installation. The "-u" flag allows the uninstallation of Cisco Secure Endpoint components. This detection leverages endpoint telemetry to monitor command-line executions that include the "-u" parameter. The use of this flag is significant as it could indicate an attempt to disable or remove endpoint protection, potentially leaving the system vulnerable to further exploitation. If identified as malicious, this action may be part of a broader effort to disable security mechanisms and avoid detection.
9+
data_source:
10+
- Sysmon EventID 1
11+
- Windows Event Log Security 4688
12+
- CrowdStrike ProcessRollup2
13+
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name="sfc.exe" Processes.process="* -u*" NOT Processes.process="* -unblock *" AND NOT Processes.process_path IN ("*:\\Windows\\System32\\*", "*:\\Windows\\SysWOW64\\*", ":\\Windows\\WinSxS\\*") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.parent_process_name Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `windows_cisco_secure_endpoint_uninstall_immunet_service_via_sfc_filter`'
14+
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
15+
known_false_positives: It is possible that this action is executed during troubleshooting activity. Activity needs to be confirmed on a case by case basis.
16+
references:
17+
- https://www.cisco.com/c/en/us/support/docs/security/amp-endpoints/213690-amp-for-endpoint-command-line-switches.html
18+
drilldown_searches:
19+
- name: View the detection results for - "$user$" and "$dest$"
20+
search: '%original_detection_search% | search user = "$user$" dest = "$dest$"'
21+
earliest_offset: $info_min_time$
22+
latest_offset: $info_max_time$
23+
- name: View risk events for the last 7 days for - "$user$" and "$dest$"
24+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$", "$dest$") 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)`'
25+
earliest_offset: $info_min_time$
26+
latest_offset: $info_max_time$
27+
rba:
28+
message: Suspicious use of `sfc.exe` to uninstall the Immunet Protect service on $dest$ by user $user$.
29+
risk_objects:
30+
- field: user
31+
type: user
32+
score: 56
33+
- field: dest
34+
type: system
35+
score: 56
36+
threat_objects:
37+
- field: parent_process_name
38+
type: parent_process_name
39+
- field: process_name
40+
type: process_name
41+
tags:
42+
analytic_story:
43+
- Security Solution Tampering
44+
asset_type: Endpoint
45+
mitre_attack_id:
46+
- T1562.001
47+
product:
48+
- Splunk Enterprise
49+
- Splunk Enterprise Security
50+
- Splunk Cloud
51+
security_domain: endpoint
52+
tests:
53+
- name: True Positive Test
54+
attack_data:
55+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
56+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
57+
sourcetype: XmlWinEventLog

0 commit comments

Comments
 (0)