PowerShell Create Local User

 Original Source: [Sigma source]
Title: PowerShell Create Local User
Status: test
Description:Detects creation of a local user via PowerShell
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1136.001/T1136.001.md
Author: @ROxPinTeddy
Date: 2020-04-11
modified:2022-12-25
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:
  -Legitimate user creation
Level: medium