Skip to content

Commit e9540be

Browse files
committed
add cisco secure endpoint related analytics
1 parent d69dcf3 commit e9540be

4 files changed

+290
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Windows Cisco Secure Endpoint Related Service Stopped
2+
id: df74f45f-01c8-4fd6-bcb8-f6a9ea58307a
3+
version: 7
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` EventCode=7036 param1 IN ("Cisco AMP Orbital", "*Cisco Secure Endpoint*", "*Cisco Security Connector Monitoring*", "CiscoSAM", "CiscoAMPHeurDriver", "CiscoAMPELAMDriver", "CiscoAMPCEFWDriver", "ImmunetNetworkMonitorDriver", "ImmunetProtectDriver", "ImmunetSelfProtectDriver") param2 IN ("stopped", "arrêté") | stats count min(_time) as firstTime max(_time) as lastTime by EventCode param1 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+
tags:
34+
analytic_story:
35+
- Security Solution Tampering
36+
asset_type: Endpoint
37+
confidence: 70
38+
impact: 60
39+
message: Cisco Secure Endpoint Service $param1$ stopped on $dest$
40+
mitre_attack_id:
41+
- T1490
42+
observable:
43+
- name: dest
44+
type: Endpoint
45+
role:
46+
- Victim
47+
- name: param1
48+
type: Other
49+
role:
50+
- Attacker
51+
product:
52+
- Splunk Enterprise
53+
- Splunk Enterprise Security
54+
- Splunk Cloud
55+
required_fields:
56+
- _time
57+
- EventCode
58+
- Message
59+
- dest
60+
- Type
61+
risk_score: 42
62+
security_domain: endpoint
63+
tests:
64+
- name: True Positive Test
65+
attack_data:
66+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/service_stop.log
67+
source: XmlWinEventLog:System
68+
sourcetype: XmlWinEventLog
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Windows Cisco Secure Endpoint Stop Immunet Service Via Sfc
2+
id: 44badcb1-2e8c-4628-9537-021bbae571ad
3+
version: 1
4+
date: '2025-01-08'
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*" Processes.parent_process 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+
tags:
28+
analytic_story:
29+
- Security Solution Tampering
30+
asset_type: Endpoint
31+
confidence: 70
32+
impact: 60
33+
message: Suspicious use of `sfc.exe` stopping the Immunet Protect service on $dest$ by user $user$
34+
mitre_attack_id:
35+
- T1562
36+
- T1562.001
37+
observable:
38+
- name: user
39+
type: User
40+
role:
41+
- Victim
42+
- name: dest
43+
type: Endpoint
44+
role:
45+
- Victim
46+
- name: parent_process_name
47+
type: Process
48+
role:
49+
- Attacker
50+
product:
51+
- Splunk Enterprise
52+
- Splunk Enterprise Security
53+
- Splunk Cloud
54+
required_fields:
55+
- _time
56+
- Processes.dest
57+
- Processes.user
58+
- Processes.parent_process_name
59+
- Processes.parent_process
60+
- Processes.original_file_name
61+
- Processes.process_name
62+
- Processes.process
63+
- Processes.process_id
64+
- Processes.parent_process_path
65+
- Processes.process_path
66+
- Processes.parent_process_id
67+
risk_score: 42
68+
security_domain: endpoint
69+
tests:
70+
- name: True Positive Test
71+
attack_data:
72+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
73+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
74+
sourcetype: XmlWinEventLog
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Windows Cisco Secure Endpoint Unblock File Via Sfc
2+
id: 9a7a490c-5581-4c95-bab5-a21e351293ef
3+
version: 1
4+
date: '2025-01-08'
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 *" 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+
tags:
28+
analytic_story:
29+
- Security Solution Tampering
30+
asset_type: Endpoint
31+
confidence: 70
32+
impact: 60
33+
message: Suspicious use of `sfc.exe` unblocking a potentially harmful file on $dest$ by user $user$
34+
mitre_attack_id:
35+
- T1562
36+
- T1562.001
37+
observable:
38+
- name: user
39+
type: User
40+
role:
41+
- Victim
42+
- name: dest
43+
type: Endpoint
44+
role:
45+
- Victim
46+
- name: parent_process_name
47+
type: Process
48+
role:
49+
- Attacker
50+
product:
51+
- Splunk Enterprise
52+
- Splunk Enterprise Security
53+
- Splunk Cloud
54+
required_fields:
55+
- _time
56+
- Processes.dest
57+
- Processes.user
58+
- Processes.parent_process_name
59+
- Processes.parent_process
60+
- Processes.original_file_name
61+
- Processes.process_name
62+
- Processes.process
63+
- Processes.process_id
64+
- Processes.parent_process_path
65+
- Processes.process_path
66+
- Processes.parent_process_id
67+
risk_score: 42
68+
security_domain: endpoint
69+
tests:
70+
- name: True Positive Test
71+
attack_data:
72+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
73+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
74+
sourcetype: XmlWinEventLog
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Windows Cisco Secure Endpoint Uninstall Immunet Service Via Sfc
2+
id: ba6e7f4d-a85e-4a14-8e7d-41f4b82e3c9a
3+
version: 1
4+
date: '2025-01-08'
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 *" 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+
tags:
28+
analytic_story:
29+
- Security Solution Tampering
30+
asset_type: Endpoint
31+
confidence: 70
32+
impact: 60
33+
message: Suspicious use of `sfc.exe` to uninstall the Immunet Protect service on $dest$ by user $user$
34+
mitre_attack_id:
35+
- T1562
36+
- T1562.001
37+
observable:
38+
- name: user
39+
type: User
40+
role:
41+
- Victim
42+
- name: dest
43+
type: Endpoint
44+
role:
45+
- Victim
46+
- name: parent_process_name
47+
type: Process
48+
role:
49+
- Attacker
50+
product:
51+
- Splunk Enterprise
52+
- Splunk Enterprise Security
53+
- Splunk Cloud
54+
required_fields:
55+
- _time
56+
- Processes.dest
57+
- Processes.user
58+
- Processes.parent_process_name
59+
- Processes.parent_process
60+
- Processes.original_file_name
61+
- Processes.process_name
62+
- Processes.process
63+
- Processes.process_id
64+
- Processes.parent_process_path
65+
- Processes.process_path
66+
- Processes.parent_process_id
67+
risk_score: 42
68+
security_domain: endpoint
69+
tests:
70+
- name: True Positive Test
71+
attack_data:
72+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/cisco_secure_endpoint_tampering/sfc_tampering.log
73+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
74+
sourcetype: XmlWinEventLog

0 commit comments

Comments
 (0)