Skip to content
WETNav

PersistenceHigh

Local account creation

Also known as Rogue local admin, Backdoor account

Creating a local account and adding it to Administrators for durable access. Security 4720 and 4732 record creation and group add.

Signals in the logs

  1. 01Security4720A user account was createdAny host

    A local user account was created.

    TargetUserName
    the new account name
    SamAccountName
    the new account SAM name
    SubjectUserName
    account that created it
  2. 02Security4732A member was added to a security-enabled local groupAny host

    A member was added to a security-enabled local group, especially Administrators.

    TargetUserName
    the group name (e.g. Administrators)
    MemberSid
    SID of the account added
    SubjectUserName
    account that made the change
  3. 03Security4724An attempt was made to reset an account's passwordAny host

    A password reset was performed on the account, often right after creation.

    TargetUserName
    the account whose password was reset

What happens

A new local account gives an intruder a credential of their own that survives password resets of the accounts they first compromised. The operator creates it with net user <name> <pass> /add or the New-LocalUser cmdlet, then adds it to a privileged group, usually with net localgroup Administrators <name> /add, so the account can log on and administer the host. These actions are audited under Account Management: Security 4720 records the account creation, 4722 its enabling, and 4724 a password set, while 4732 records a member being added to a security-enabled local group such as Administrators (SID S-1-5-32-544). Because these events are on by default in most configurations, a new local admin on a host that should not have one is usually plainly visible.

Logging you need

  • 4720, 4722, 4724, and 4732 are in the Audit User Account Management and Security Group Management subcategories, enabled for Success by default in most configurations; confirm per environment.
  • On a domain controller these same events reflect domain accounts; local account creation is most meaningful on member servers and workstations.
  • Correlating the command needs Security 4688 with command-line auditing for net.exe, or Sysmon 1.

Hunt queries

Starting points. Tune thresholds and exclusions to your environment before alerting on them.

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4720}

Benign look-alikes

  • Legitimate break-glass or service accounts created by administrators.
  • Software installers that create dedicated local service accounts.
  • Imaging and provisioning workflows that add local accounts to new hosts.

Notes

  • A 4720 immediately followed by a 4732 adding the same account to Administrators is a tight, high-confidence sequence.
  • Watch for creation times outside business hours and creation by accounts that are not normally used for administration.

References