Sigma rule: Powershell LocalAccount Manipulation

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-94614a1c055e, updated 2021-12-28T00:00:00.000Z.

Rule

Title
Powershell LocalAccount Manipulation
Status
test
Level
medium
Author
frack113
Date
2021-12-28
File
rules/windows/powershell/powershell_script/posh_ps_localuser.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may manipulate accounts to maintain access to victim systems.
Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains:
        - 'Disable-LocalUser'
        - 'Enable-LocalUser'
        - 'Get-LocalUser'
        - 'Set-LocalUser'
        - 'New-LocalUser'
        - 'Rename-LocalUser'
        - 'Remove-LocalUser'
condition: selection

False positives (as the rule lists them)

  • Legitimate administrative script

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.t1098

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/powershell/powershell_script/posh_ps_localuser.yml

Sources and licences

  • SigmaHQ

    "Powershell LocalAccount Manipulation" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_localuser.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 LocalAccount Manipulation",
entity page, dataset version ref-94614a1c055e, updated 2021-12-28T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4fdc44df-bfe9-4fcc-b041-68f5a2d3031c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4fdc44df-bfe9-4fcc-b041-68f5a2d3031c, 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.