Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0505 — Detection Strategy for Command Obfuscation
DET0505

Detection Strategy for Command Obfuscation

3 analytic(s) · 1 technique(s) detected

Analytics

3
AN1394 Analytic 1394
Windows

Detection of command-line activity exhibiting syntactic obfuscation patterns, such as excessive escape characters, base64 encoding, command concatenation, or outlier command length and entropy.

WinEventLog:Security EventCode=4688
[CommandLineEntropyThreshold] Used to flag base64 or token-heavy command-line strings
[SuspiciousCharacterCount] Escape character and symbol frequency in command-line strings
[TimeWindow] Window between command execution and follow-up child or file write behavior
AN1395 Analytic 1395
Linux

Detection of shell commands that leverage encoded execution, command chaining, excessive piping, or unusual token patterns indicative of obfuscation.

auditd:SYSCALL execve linux:osquery process_events.command_line
[CommandLineTokenCount] Tuning value for token or argument count in shell invocations
[EncodedExecRegex] Environment-specific regex patterns for encoded or eval'd command lines
[GlobPatternAnomalies] Shell-specific globbing or directory traversal string detection
AN1396 Analytic 1396
macOS

Detection of obfuscated commands via shell, osascript, or AppleScript interpreters using unusual tokens, encoding, variable substitution, or runtime string reconstruction.

macos:unifiedlog process:spawn, process:exec macos:endpointsecurity ES_EVENT_TYPE_NOTIFY_EXEC
[InterpreterParentFilter] Limits detection scope to shell or scripting interpreters like zsh, bash, osascript
[ScriptEntropyThreshold] Minimum entropy required to consider the command or script obfuscated
[ArgumentLengthDeviation] Deviation from baseline for long or highly nested arguments

Detected Techniques

1

Details

MITRE ID
DET0505
STIX ID
x-mitre-detection-strategy--72d668ba-f4d1-43ff-b7b1-0dbad9ec6ed9
Analytics
3
Techniques Detected
1
By Tactic
Stealth
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.