You are reviewing a Splunk Enterprise Security alert mapped to the MITRE ATT&CK technique 'T1059.001 (PowerShell)'. Which search command would best identify the use of obfuscated PowerShell commands?
Trap 1: search sourcetype=sysmon | rename command as powershell.
Renaming a field does not help identify malicious patterns.
Trap 2: | inputlookup mitre_tactics | where process=powershell.
This queries a lookup, not the actual process data.
Trap 3: index=main | lookup mitre_attack_id.
This is not a valid search command.
- A
search sourcetype=sysmon | rename command as powershell.
Why it fails: Renaming a field does not help identify malicious patterns.
- B
| inputlookup mitre_tactics | where process=powershell.
Why it fails: This queries a lookup, not the actual process data.
- C
index=main | lookup mitre_attack_id.
Why it fails: This is not a valid search command.
- D
tstats count from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe.
This is the most efficient way to query endpoint process data for specific commands.