Sigma rule: PowerShell Script Run in AppData

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

Rule

Title
PowerShell Script Run in AppData
Status
test
Level
medium
Author
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
Date
2019-01-09
Modified
2022-07-14
File
rules/windows/process_creation/proc_creation_win_powershell_susp_ps_appdata.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects a suspicious command line execution that invokes PowerShell with reference to an AppData folder

Log source

product
windows
category
process_creation

Detection

selection1:
    CommandLine|contains:
        - 'powershell.exe'
        - '\powershell'
        - '\pwsh'
        - 'pwsh.exe'
selection2:
    CommandLine|contains|all:
        - '/c '
        - '\AppData\'
    CommandLine|contains:
        - 'Local\'
        - 'Roaming\'
condition: all of selection*

False positives (as the rule lists them)

  • Administrative scripts

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

Sources and licences

  • SigmaHQ

    "PowerShell Script Run in AppData" by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_susp_ps_appdata.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: PowerShell Script Run in AppData",
entity page, dataset version ref-e588d5185f5c, updated 2022-07-14T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ac175779-025a-4f12-98b0-acdaeb77ea85 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ac175779-025a-4f12-98b0-acdaeb77ea85, 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.