PowerShell Create Local User
Detects creation of a local user via PowerShell
Detection logic
selection
ScriptBlockText|contains: New-LocalUserCondition
selectionRaw YAML
title: PowerShell Create Local User
id: 243de76f-4725-4f2e-8225-a8a69b15ad61
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: mediumFalse positives
- Legitimate user creation
References
Similar rules
PowerShell Web Access Installation - PsScript
highwindows · Shares T1059
Change PowerShell Policies to an Insecure Level - PowerShell
mediumwindows · Shares T1059
DSInternals Suspicious PowerShell Cmdlets - ScriptBlock
highwindows · Shares T1059
ESXi Account Creation Via ESXCLI
mediumlinux · Shares T1136, T1059