Suspicious PowerShell Create Local User (via ps_script)

This rule detects creation of a local user via PowerShell

SigmamediumWindowsv1
sigma
title: Suspicious PowerShell Create Local User (via ps_script)
id: bcbcaac7-8bb7-5da2-b009-044cdff36a4c
status: stable
description: This rule detects creation of a local user via PowerShell
references:
    - https://attack.mitre.org/techniques/T1136/001/
    - https://attack.mitre.org/techniques/T1059/001/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1136.001/T1136.001.md
author: 'Huntrule Team'
date: 2026-05-09
tags:
    - attack.execution
    - attack.t1059.001
    - attack.persistence
    - attack.t1136.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: 'New-LocalUser'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.