Windows Wermgr Alternate Data Stream in Temp Dir

 Original Source: [splunk source]
Name:Windows Wermgr Alternate Data Stream in Temp Dir
id:65222e9b-9d0b-4bfe-8da1-199b98e1d44a
version:2
date:None
author:Teoderick Contreras, Splunk
status:production
type:Anomaly
Description:The following analytic detects the wermgr.exe process creating an alternate stream in the temp directory. It leverages Sysmon EventID 15 to identify these actions. This activity is significant because wermgr.exe is typically associated with error reporting, not file creation. Such activity is significant as it may indicate RoguePlanet malware, which creates an alternate stream in the temp directory to execute malicious code. If confirmed malicious, this could lead to further malware infections, data exfiltration, or system compromise.
Data_source:
  • -Sysmon EventID 15
search:`sysmon`
EventCode=15
TargetFilename = "*\\Temp\\*"
TargetFilename = "*\\wermgr.exe:*"

| stats count min(_time) as firstTime
max(_time) as lastTime
by dest dvc file_hash file_name file_path process_exec
process_guid process_id process_name process_path
signature signature_id user_id vendor_product Contents Image

| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `windows_wermgr_alternate_data_stream_in_temp_dir_filter`


how_to_implement:To successfully implement this search, you need to be ingesting logs with the process name, parent process, and command-line executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA. Tune and filter known instances of wermgr.exe may be used.
known_false_positives:No false positives have been identified at this time.
References:
  -https://github.com/MSNightmare/RoguePlanet/tree/main
drilldown_searches:
 name:'View the detection results for - "$dest$"'
 search:'%original_detection_search% | search dest = "$dest$"'
 earliest_offset:'$info_min_time$'
 latest_offset:'$info_max_time$'
 name:'View risk events for the last 7 days for - "$dest$"'
 search:'| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$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" 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'
analytic_story:['RoguePlanet']

asset_type:Endpoint

mitre_attack_id:['T1564.004']

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

category:endpoint

security_domain:endpoint

tags:

tests:
 name:'True Positive Test'
 attack_data:
  data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1564.004/rogueplanet/rogue_15.log
  source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
  sourcetype: XmlWinEventLog
 test_type:'unit'
manual_test:None

Related Analytic Stories


RoguePlanet