Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may create a local account to maintain access to victim systems.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-18 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 274% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 421% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 290% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 257% | 0% |
> Sub-technique of: T1136
Adversaries may create a local account to maintain access to victim systems. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service.
For example, with a sufficient level of access, the Windows <code>net user /add</code> command can be used to create a local account. In Linux, the useradd command can be used, while on macOS systems, the <code>dscl -create</code> command can be used. Local accounts may also be added to network devices, often via common Network Device CLI commands such as <code>username</code>, to ESXi servers via esxcli system account add, or to Kubernetes clusters using the kubectl utility.
Adversaries may also create new local accounts on network firewall management consoles – for example, by exploiting a vulnerable firewall management system, threat actors may be able to establish super-admin accounts that could be used to modify firewall rules and gain further access to the network.
Such accounts may be used to establish secondary credentialed access that do not require persistent remote access tools to be deployed on the system.
Platforms: Linux, macOS, Windows, Network Devices, Containers, ESXi
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Create a user via useradd
Supported Platforms: linux Elevation Required: Yes
bashuseradd -M -N -r -s /bin/bash -c evil_account #{username}
Create a user via pw
Supported Platforms: linux Elevation Required: Yes
bashpw useradd #{username} -s /usr/sbin/nologin -d /nonexistent -c evil_account
Creates a user on a MacOS system with dscl
Supported Platforms: macos Elevation Required: Yes
bashdscl . -create /Users/#{username} dscl . -create /Users/#{username} UserShell /bin/zsh dscl . -create /Users/#{username} RealName "#{realname}" dscl . -create /Users/#{username} UniqueID "1010" dscl . -create /Users/#{username} PrimaryGroupID 80 dscl . -create /Users/#{username} NFSHomeDirectory /Users/#{username}
Creates a new user in a command prompt. Upon execution, "The command completed successfully." will be displayed. To verify the new account, run "net user" in powershell or CMD and observe that there is a new user named "T1136.001_CMD"
Supported Platforms: windows Elevation Required: Yes
cmdnet user /add "#{username}" "#{password}"
Creates a new user in PowerShell. Upon execution, details about the new account will be displayed in the powershell session. To verify the new account, run "net user" in powershell or CMD and observe that there is a new user named "T1136.001_PowerShell"
Supported Platforms: windows Elevation Required: Yes
powershellNew-LocalUser -Name "#{username}" -NoPassword
If Atomic Red Team tests are not applicable, manually verify the technique by:
Use multi-factor authentication for user and privileged accounts.
Limit the number of accounts permitted to create other accounts. Limit the usage of local administrator accounts to be used for day-to-day operations that may expose them to potential adversaries.
| Finding | Severity | Impact | | ---------------------------------- | -------- | ----------- | | Local Account technique applicable | High | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.