Encoding, Obfuscation & Evasion

Detects obfuscated payloads, encoded commands, and evasion techniques designed to bypass security scanners

10 rules in obfuscation_evasion.yml

HIGH: 9 | MEDIUM: 1

Rule IDSeverityTitleDescriptionRefs
base32_encoded_payloadHIGHBase32/Base16 Encoded Payloadbase32 / base16 -d output is piped into sh/bash/python/perl. Encoding hides the payload from string-based detection until it reaches the interpreter.
curl_output_executionHIGHDownloaded File ExecutionDownloads a file and immediately executes it, bypassing inspection
env_var_constructed_commandHIGHEnvironment Variable Constructed CommandConstructs a command from multiple environment variables to evade detection
gzip_compressed_payloadHIGHCompressed Payload ExecutionDecompresses and executes a payload to evade pattern detection
hex_encoded_payloadHIGHHex-Encoded Payload ExecutionDecodes and executes hex-encoded payloads to evade pattern detection
inline_env_var_secret_launderingHIGHInline Environment Variable Secret LaunderingA shell statement assigns a secret-named variable inline (SECRET=value cmd) immediately before invoking an interpreter with -c / -e. The assignment scopes the secret to the child process so it never appears in argv (where it would be caught by argv-shape detectors and visible in ps); the interpreter then reads it back from os.environ. This shape moves a tainted value past argv-based taint tracking and into a sub-interpreter where downstream usage is opaque to static analysis.
perl_obfuscated_execHIGHObfuscated Perl Code Executionperl -e expression mixes eval with pack/unpack/chr or MIME::Base64::decode_base64. The shape decodes a hidden payload at runtime - a textbook AV evasion idiom.
python_obfuscated_execHIGHObfuscated Python Code ExecutionExecutes obfuscated Python code using exec(), compile(), or import tricks
variable_indirection_evasionHIGHVariable Indirection for Command EvasionUses shell variable concatenation or indirection to construct commands at runtime, evading static detection
rev_string_evasionMEDIUMReversed String EvasionUses the rev command to reverse obfuscated strings at runtime