Sigma rule: Suspicious PowerShell Encoded Command Patterns

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7facf1fb0b62, updated 2023-01-05T00:00:00.000Z.

Rule

Title
Suspicious PowerShell Encoded Command Patterns
Status
test
Level
high
Author
Florian Roth (Nextron Systems)
Date
2022-05-24
Modified
2023-01-05
File
rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd_patterns.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell command line patterns in combincation with encoded commands that often appear in malware infection chains

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'
    - OriginalFileName:
          - 'PowerShell.Exe'
          - 'pwsh.dll'
selection_flags:
    CommandLine|contains:
        - ' -e '
        - ' -en '
        - ' -enc '
        - ' -enco'
selection_encoded:
    CommandLine|contains:
        - ' JAB'
        - ' SUVYI'
        - ' SQBFAFgA'
        - ' aWV4I'
        - ' IAB'
        - ' PAA'
        - ' aQBlAHgA'
filter_gcworker:
    ParentImage|contains:
        - 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\'
        - '\gc_worker.exe'
condition: all of selection_* and not 1 of filter_*

False positives (as the rule lists them)

  • Other tools that work with encoded scripts in the command line instead of script files

Tags

  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd_patterns.yml

Sources and licences

  • SigmaHQ

    "Suspicious PowerShell Encoded Command Patterns" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd_patterns.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious PowerShell Encoded Command Patterns",
entity page, dataset version ref-7facf1fb0b62, updated 2023-01-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b9d9cc83-380b-4ba3-8d8f-60c0e7e2930c (accessed 2026-11-03).
Underlying source: SigmaHQ rule b9d9cc83-380b-4ba3-8d8f-60c0e7e2930c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.