Detectionmediumtest

Suspicious XOR Encoded PowerShell Command

Detects presence of a potentially xor encoded powershell command

Convert In Phoenix Studio

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

Launch
Sami Ruohonen, Harish Segar, Tim Shelton, Teymur Kheirkhabarov, Vasiliy Burov, oscd.community, Nasreddine Bencherchali (Nextron Systems)Created Wed Sep 05Updated Mon Jan 30bb780e0c-16cf-4383-8383-1e5471db6cf9windows
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 Logic3 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
        - Description: 'Windows PowerShell'
        - Product: 'PowerShell Core 6'
    selection_cli_xor:
        CommandLine|contains: 'bxor'
    selection_cli_other:
        CommandLine|contains:
            - 'ForEach'
            - 'for('
            - 'for '
            - '-join '
            - "-join'"
            - '-join"'
            - '-join`'
            - '::Join'
            - '[char]'
    condition: all of selection_*
False Positives
Unknown

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

Related Rules
Similar

5b572dcf-254b-425c-a8c5-d9af6bea35a6

Rule not found
Rule Metadata
Rule ID
bb780e0c-16cf-4383-8383-1e5471db6cf9
Status
test
Level
medium
Type
Detection
Created
Wed Sep 05
Modified
Mon Jan 30
Path
rules/windows/process_creation/proc_creation_win_powershell_xor_commandline.yml
Raw Tags
attack.defense-evasionattack.executionattack.t1059.001attack.t1140attack.t1027
View on GitHub