|
| 1 | +name: Windows Unusual SysWOW64 Process Run System32 Executable |
| 2 | +id: e4602172-db86-4315-86df-da66fb40bcde |
| 3 | +version: 1 |
| 4 | +date: '2025-02-11' |
| 5 | +author: Teoderick Contreras, Splunk |
| 6 | +status: production |
| 7 | +type: Anomaly |
| 8 | +description: The following analytic detects an unusual process execution pattern where a process running from C:\Windows\SysWOW64\ attempts to execute a binary from C:\Windows\System32\. In a typical Windows environment, 32-bit processes under SysWOW64 should primarily interact with 32-bit binaries within the same directory. However, an execution flow where a 32-bit process spawns a 64-bit binary from System32 can indicate potential process injection, privilege escalation, evasion techniques, or unauthorized execution hijacking. |
| 9 | +data_source: |
| 10 | +- Sysmon EventID 1 |
| 11 | +- Windows Event Log Security 4688 |
| 12 | +search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes |
| 13 | + where Processes.process_path = "*\\Windows\\SysWOW64\\*" AND Processes.process = "*windows\\system32\\*" |
| 14 | + by Processes.parent_process_name Processes.process_path Processes.process Processes.original_file_name Processes.dest Processes.user |
| 15 | + | `drop_dm_object_name(Processes)` |
| 16 | + | `security_content_ctime(firstTime)` |
| 17 | + | `security_content_ctime(lastTime)` |
| 18 | + | `windows_unusual_syswow64_process_run_system32_executable_filter`' |
| 19 | +how_to_implement: The detection is based on data that originates from Endpoint Detection |
| 20 | + and Response (EDR) agents. These agents are designed to provide security-related |
| 21 | + telemetry from the endpoints where the agent is installed. To implement this search, |
| 22 | + you must ingest logs that contain the process GUID, process name, and parent process. |
| 23 | + Additionally, you must ingest complete command-line executions. These logs must |
| 24 | + be processed using the appropriate Splunk Technology Add-ons that are specific to |
| 25 | + the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` |
| 26 | + data model. Use the Splunk Common Information Model (CIM) to normalize the field |
| 27 | + names and speed up the data modeling process. |
| 28 | +known_false_positives: some legitimate system processes, software updaters, or compatibility tools may trigger this behavior, occurrences involving unknown, unsigned, or unusual parent processes should be investigated for potential malware activity, persistence mechanisms, or execution flow hijacking. |
| 29 | +references: |
| 30 | +- https://www.trendmicro.com/en_nl/research/24/k/earth-estries.html |
| 31 | +drilldown_searches: |
| 32 | +- name: View the detection results for - "$dest$" |
| 33 | + search: '%original_detection_search% | search dest = "$dest$"' |
| 34 | + earliest_offset: $info_min_time$ |
| 35 | + latest_offset: $info_max_time$ |
| 36 | +- name: View risk events for the last 7 days for - "$dest$" |
| 37 | + search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") |
| 38 | + starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime |
| 39 | + values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) |
| 40 | + as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) |
| 41 | + as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` |
| 42 | + | `security_content_ctime(lastTime)`' |
| 43 | + earliest_offset: $info_min_time$ |
| 44 | + latest_offset: $info_max_time$ |
| 45 | +rba: |
| 46 | + message: a 32 bit process execute 64 bit executable on [$dest$]. |
| 47 | + risk_objects: |
| 48 | + - field: dest |
| 49 | + type: system |
| 50 | + score: 40 |
| 51 | + - field: process_path |
| 52 | + type: process_name |
| 53 | + score: 40 |
| 54 | +tags: |
| 55 | + analytic_story: |
| 56 | + - Nexus APT Threat Activity |
| 57 | + - DarkGate Malware |
| 58 | + - Earth Estries |
| 59 | + asset_type: Endpoint |
| 60 | + mitre_attack_id: |
| 61 | + - T1036.009 |
| 62 | + product: |
| 63 | + - Splunk Enterprise |
| 64 | + - Splunk Enterprise Security |
| 65 | + - Splunk Cloud |
| 66 | + security_domain: endpoint |
| 67 | +tests: |
| 68 | +- name: True Positive Test |
| 69 | + attack_data: |
| 70 | + - data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1036.009/32bit_process_execute_64bit/32bit_spawn_64bit.log |
| 71 | + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational |
| 72 | + sourcetype: XmlWinEventLog |
0 commit comments