Skip to content

Windows Event ID 4781: The name of an account was changed

Written when an account’s name is changed. Besides legitimate renames, it carries meaning in the context of masquerading as a legitimate account or evading tracking.

Overview

The subcategory is Audit User Account Management. It is generated when a user or computer account’s name is changed, and includes the names before and after.

How it is triggered

  • An account rename in AD/locally (a rename due to a surname change, Rename-ADObject, and so on).

Security review points

  • An attacker may rename an account they created to look like a legitimate one to blend in, or rename an existing account to confuse monitoring and tracking. Check the names before and after.
  • Renaming a privileged account or a known important account may aim at confusion or masquerading, so investigate it.

Notes for log review

  • Renames are infrequent. Check the before/after names, target, and subject, and note deviations from naming convention or confusing names.
  • Together with account creation 4720 and change 4738, track the account’s history.

MITRE ATT&CK mapping

TechniqueTacticWhat this event shows
T1036.010 Masquerade Account NameStealthRenaming an attacker account to look like a legitimate one

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Detection rules

SigmaHQ has 2 public detection rules that use this event ID as a condition.

RuleTypeSeverity
New or Renamed User Account with ‘$’ CharacterSigmaMedium
Suspicious Computer Account Name Change CVE-2021-42287Sigma (threat-specific)High

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Old Account Name / New Account NameThe names before and after
Subject\Account NameThe subject that made the change

References