Cisco Secure Endpoint - Malware Family Cloud IOC Artifact

 Original Source: [splunk source]
Name:Cisco Secure Endpoint - Malware Family Cloud IOC Artifact
id:6d2cd97c-33db-4335-86d1-09018085d578
version:1
date:None
author:Nasreddine Bencherchali, Splunk
status:production
type:TTP
Description:This analytic detects Cisco Secure Endpoint Cloud IOC alerts associated with BadRabbit, DarkSide, ProLock, or Ryuk. It uses the IOC name supplied by Secure Endpoint, excludes Ryuk alerts that only search for a ransom note, and shows the observed command and file details in the finding. These matches can indicate ransomware-related execution, persistence, or note activity on the endpoint. Review the matched activity, related Behavioral Protection alerts, and file activity to confirm the malware family and impact.
Data_source:
  • -Cisco Secure Endpoint Cloud IOC
search:`cisco_secure_endpoint`
event_type="Cloud IOC"

| spath path=cloud_ioc.short_description output=ioc_name

| where ioc_name IN ("W32.BadRabbit.ioc","W32.DarksideRansomware.ioc","W32.Ransomware.ProLock.ioc","W32.RyukRansomware.ioc")

| spath path=computer.connector_guid output=endpoint_guid
| spath path=computer.hostname output=dest
| spath path=cloud_ioc.description output=ioc_description
| spath path=command_line.arguments output=process_command
| spath path=file.file_name output=file_name
| spath path=file.file_path output=file_path
| spath path=file.identity.sha256 output=file_sha256

| eval event_time=tonumber(coalesce(start_timestamp,timestamp))

| where ioc_name!="W32.RyukRansomware.ioc"
OR lower(coalesce(file_name,""))="ryukreadme.lnk"
OR match(lower(coalesce(process_command,"")),"(echo|copy|move|set-content|out-file|new-item).{0,200}ryukreadme[.]html")

| where isnotnull(endpoint_guid)
AND isnotnull(event_time)

| eval ioc_family=case(
ioc_name="W32.BadRabbit.ioc","BadRabbit",
ioc_name="W32.DarksideRansomware.ioc","DarkSide",
ioc_name="W32.Ransomware.ProLock.ioc","ProLock",
ioc_name="W32.RyukRansomware.ioc","Ryuk"),
evidence_type=case(
ioc_name="W32.BadRabbit.ioc","task or file pattern",
ioc_name="W32.DarksideRansomware.ioc","DLL worker command",
ioc_name="W32.Ransomware.ProLock.ioc","task XML creation",
ioc_name="W32.RyukRansomware.ioc","ransom-note artifact"),
dest_short=mvindex(split(dest,"."),0),
evidence=if(len(coalesce(process_command,""))>0,process_command,coalesce(file_path,file_name)),
firstTime=event_time,
lastTime=event_time

| table dest dest_short endpoint_guid ioc_family ioc_name evidence_type evidence
process_command file_name file_path file_sha256 ioc_description
firstTime lastTime
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `cisco_secure_endpoint___malware_family_cloud_ioc_artifact_filter`


how_to_implement:This search requires Cisco Secure Endpoint Cloud IOC alerts, which include event_type="Cloud IOC". This search uses an input macro named `cisco_secure_endpoint`. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Cisco Secure Endpoint Cloud IOC alerts. Replace the macro definition with configurations for your Splunk environment. The cloud_ioc.short_description field identifies the matched IOC used by this search. The search also uses a post-filter macro designed to filter out known false positives. The logs are to be ingested using the Cisco Security Cloud App for Splunk (https://splunkbase.splunk.com/app/7404).
known_false_positives:A matching command or filename can be reproduced without malware, including during security testing. The Ryuk IOC can match a command searching for its ransom note; this analytic excludes that case. A DarkSide-style rundll32 command can be observed even when the DLL fails to load. The Cloud IOC file path and hash may identify the process that raised the alert rather than a malware payload. Confirm the file or command context, approved testing, and independent ransomware activity before declaring an infection.
References:
  -https://docs.amp.cisco.com/en/SecureEndpoint/Secure%20Endpoint%20User%20Guide.pdf
  -https://attack.mitre.org/techniques/T1486/
  -https://attack.mitre.org/techniques/T1053/005/
  -https://attack.mitre.org/techniques/T1218/011/
drilldown_searches:
 name:'View BP Activity for - $dest$'
 search:'`cisco_secure_endpoint` event_type="Threat Detection" | spath path=computer.connector_guid output=endpoint_guid | search endpoint_guid="$endpoint_guid$" | spath path=bp_data.details.sig_id output=sig_id | spath path=bp_data.remediated output=remediated | spath path=bp_data.audit output=bp_audit | spath path=bp_data.details.actions{}.action output=bp_action | spath path=bp_data.details.actions{}.status output=bp_action_status | spath path=bp_data.details.matched_activity.events{0}.process:start.cmd_line output=process_command | spath path=bp_data.details.matched_activity.events{0}.script:execution.cmd_line output=script_command | eval observed_command=coalesce(process_command,script_command) | table _time detection severity sig_id bp_audit bp_action bp_action_status remediated observed_command _raw | sort - _time'
 earliest_offset:'7d'
 latest_offset:'0'
 name:'View Cloud IOC Activity for - $dest$'
 search:'`cisco_secure_endpoint` event_type="Cloud IOC" | spath path=computer.connector_guid output=endpoint_guid | search endpoint_guid="$endpoint_guid$" | spath path=cloud_ioc.short_description output=ioc_name | spath path=cloud_ioc.description output=ioc_description | spath path=command_line.arguments output=process_command | spath path=file.file_name output=file_name | spath path=file.file_path output=file_path | spath path=file.identity.sha256 output=file_sha256 | table _time ioc_name severity process_command file_name file_path file_sha256 ioc_description _raw | sort - _time'
 earliest_offset:'7d'
 latest_offset:'0'
 name:'View risk events for the last 7 days for - "$dest$"'
 search:'| from datamodel Risk.All_Risk | search normalized_risk_object="$dest$" | 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" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'
 earliest_offset:'7d'
 latest_offset:'0'
analytic_story:['Compromised Windows Host', 'Cisco Secure Endpoint - Correlated Threat Activity']

asset_type:Endpoint

mitre_attack_id:['T1486', 'T1053.005', 'T1218.011']

product:['Splunk Enterprise', 'Splunk Enterprise Security', 'Splunk Cloud']

category:endpoint

security_domain:endpoint

tags:

tests:
 name:'True Positive Test - Cisco Secure Endpoint Cloud IOC'
 attack_data:
  data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/cisco_secure_endpoint/cloud_ioc/malware_family_artifact/cisco_se.log
  source: not_applicable
  sourcetype: cisco:se
 test_type:'unit'
manual_test:None