|
| 1 | +name: Cmdline Tool Not Executed In CMD Shell |
| 2 | +id: 6c3f7dd8-153c-11ec-ac2d-acde48001122 |
| 3 | +version: 7 |
| 4 | +date: '2025-01-24' |
| 5 | +author: Teoderick Contreras, Splunk |
| 6 | +status: deprecated |
| 7 | +type: TTP |
| 8 | +description: The following analytic identifies instances where `ipconfig.exe`, `systeminfo.exe`, |
| 9 | + or similar tools are executed by a non-standard parent process, excluding CMD, PowerShell, |
| 10 | + or Explorer. This detection leverages Endpoint Detection and Response (EDR) telemetry |
| 11 | + to monitor process creation events. Such behavior is significant as it may indicate |
| 12 | + adversaries using injected processes to perform system discovery, a tactic observed |
| 13 | + in FIN7's JSSLoader. If confirmed malicious, this activity could allow attackers |
| 14 | + to gather critical host information, aiding in further exploitation or lateral movement |
| 15 | + within the network. |
| 16 | +data_source: |
| 17 | +- Sysmon EventID 1 |
| 18 | +- Windows Event Log Security 4688 |
| 19 | +- CrowdStrike ProcessRollup2 |
| 20 | +search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) |
| 21 | + as lastTime from datamodel=Endpoint.Processes where (Processes.process_name = "ipconfig.exe" |
| 22 | + OR Processes.process_name = "systeminfo.exe" OR Processes.process_name = "net.exe" |
| 23 | + OR Processes.process_name = "net1.exe" OR Processes.process_name = "arp.exe" OR |
| 24 | + Processes.process_name = "nslookup.exe" OR Processes.process_name = "route.exe" |
| 25 | + OR Processes.process_name = "netstat.exe" OR Processes.process_name = "whoami.exe") |
| 26 | + AND NOT (Processes.parent_process_name = "cmd.exe" OR Processes.parent_process_name |
| 27 | + = "powershell*" OR Processes.parent_process_name="pwsh.exe" OR Processes.parent_process_name |
| 28 | + = "explorer.exe") by Processes.parent_process_name Processes.parent_process Processes.process_name |
| 29 | + Processes.original_file_name Processes.process_id Processes.process Processes.dest |
| 30 | + Processes.user | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` |
| 31 | + | `security_content_ctime(lastTime)` | `cmdline_tool_not_executed_in_cmd_shell_filter`' |
| 32 | +how_to_implement: The detection is based on data that originates from Endpoint Detection |
| 33 | + and Response (EDR) agents. These agents are designed to provide security-related |
| 34 | + telemetry from the endpoints where the agent is installed. To implement this search, |
| 35 | + you must ingest logs that contain the process GUID, process name, and parent process. |
| 36 | + Additionally, you must ingest complete command-line executions. These logs must |
| 37 | + be processed using the appropriate Splunk Technology Add-ons that are specific to |
| 38 | + the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` |
| 39 | + data model. Use the Splunk Common Information Model (CIM) to normalize the field |
| 40 | + names and speed up the data modeling process. |
| 41 | +known_false_positives: A network operator or systems administrator may utilize an |
| 42 | + automated host discovery application that may generate false positives. Filter as |
| 43 | + needed. |
| 44 | +references: |
| 45 | +- https://www.mandiant.com/resources/fin7-pursuing-an-enigmatic-and-evasive-global-criminal-operation |
| 46 | +- https://attack.mitre.org/groups/G0046/ |
| 47 | +- https://www.microsoft.com/en-us/security/blog/2023/05/24/volt-typhoon-targets-us-critical-infrastructure-with-living-off-the-land-techniques/ |
| 48 | +drilldown_searches: |
| 49 | +- name: View the detection results for - "$dest$" and "$user$" |
| 50 | + search: '%original_detection_search% | search dest = "$dest$" user = "$user$"' |
| 51 | + earliest_offset: $info_min_time$ |
| 52 | + latest_offset: $info_max_time$ |
| 53 | +- name: View risk events for the last 7 days for - "$dest$" and "$user$" |
| 54 | + search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$", |
| 55 | + "$user$") starthoursago=168 | stats count min(_time) as firstTime max(_time) |
| 56 | + as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk |
| 57 | + Message" values(analyticstories) as "Analytic Stories" values(annotations._all) |
| 58 | + as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" |
| 59 | + by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' |
| 60 | + earliest_offset: $info_min_time$ |
| 61 | + latest_offset: $info_max_time$ |
| 62 | +rba: |
| 63 | + message: A non-standard parent process $parent_process_name$ spawned child process |
| 64 | + $process_name$ to execute command-line tool on $dest$. |
| 65 | + risk_objects: |
| 66 | + - field: dest |
| 67 | + type: system |
| 68 | + score: 56 |
| 69 | + - field: user |
| 70 | + type: user |
| 71 | + score: 56 |
| 72 | + threat_objects: |
| 73 | + - field: parent_process_name |
| 74 | + type: parent_process_name |
| 75 | + - field: process_name |
| 76 | + type: process_name |
| 77 | +tags: |
| 78 | + analytic_story: |
| 79 | + - Volt Typhoon |
| 80 | + - Rhysida Ransomware |
| 81 | + - FIN7 |
| 82 | + - DarkGate Malware |
| 83 | + - Qakbot |
| 84 | + - CISA AA22-277A |
| 85 | + - CISA AA23-347A |
| 86 | + - Gozi Malware |
| 87 | + asset_type: Endpoint |
| 88 | + mitre_attack_id: |
| 89 | + - T1059 |
| 90 | + - T1059.007 |
| 91 | + product: |
| 92 | + - Splunk Enterprise |
| 93 | + - Splunk Enterprise Security |
| 94 | + - Splunk Cloud |
| 95 | + security_domain: endpoint |
| 96 | +tests: |
| 97 | +- name: True Positive Test |
| 98 | + attack_data: |
| 99 | + - data: |
| 100 | + https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/fin7/jssloader/sysmon.log |
| 101 | + source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational |
| 102 | + sourcetype: XmlWinEventLog |
0 commit comments