Sigma rule: Execution of Powershell Script in Public Folder

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c64c706cf460, updated 2022-07-14T00:00:00.000Z.

Rule

Title
Execution of Powershell Script in Public Folder
Status
test
Level
high
Author
Max Altgelt (Nextron Systems)
Date
2022-04-06
Modified
2022-07-14
File
rules/windows/process_creation/proc_creation_win_powershell_public_folder.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

This rule detects execution of PowerShell scripts located in the "C:\Users\Public" folder

Log source

product
windows
category
process_creation

Detection

selection:
    Image|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    CommandLine|contains:
        - '-f C:\Users\Public'
        - '-f "C:\Users\Public'
        - '-f %Public%'
        - '-fi C:\Users\Public'
        - '-fi "C:\Users\Public'
        - '-fi %Public%'
        - '-fil C:\Users\Public'
        - '-fil "C:\Users\Public'
        - '-fil %Public%'
        - '-file C:\Users\Public'
        - '-file "C:\Users\Public'
        - '-file %Public%'
condition: selection

False positives (as the rule lists them)

  • Unlikely

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_public_folder.yml

Sources and licences

  • SigmaHQ

    "Execution of Powershell Script in Public Folder" by Max Altgelt (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_public_folder.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: Execution of Powershell Script in Public Folder",
entity page, dataset version ref-c64c706cf460, updated 2022-07-14T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/fb9d3ff7-7348-46ab-af8c-b55f5fbf39b4 (accessed 2026-11-03).
Underlying source: SigmaHQ rule fb9d3ff7-7348-46ab-af8c-b55f5fbf39b4, 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.