- How do SOC analysts detect Command and Scripting Interpreter?
- Detection centers on XDR, SIEM telemetry for the execution phase of the attack. Enable PowerShell script block logging and module logging to capture the full decoded content of executed scripts, including deobfuscated payloads that may not be visible in process command line arguments alone. Monitor for command interpreter processes spawned by unusual parent processes such as Microsoft Office applications, web browsers, email clients, or PDF readers, which strongly suggests malicious document-based execution.
- What does a Command and Scripting Interpreter alert look like?
- A representative XDR detection is "Encoded PowerShell Command Execution" (high severity): PowerShell process launched with -EncodedCommand flag containing Base64-encoded payload that decodes to a download cradle fetching content from pastebin.com. Parent process is winword.exe, indicating macro-based execution. The downloaded script attempts to disable Windows Defender real-time protection before executing the second-stage payload.
- Which tools detect Command and Scripting Interpreter, and how can I practice?
- Command and Scripting Interpreter (T1059) is best surfaced with XDR, SIEM telemetry, which exposes the execution signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.