Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Event ID 4738

Event ID 4738: User Account Changed

A user account was changed

Log source
Security
How to enable it
Account Management > Audit User Account Management (Success)
Category
Account Management
Priority
Medium
Typical volume
Medium
MITRE ATT&CK
  • T1098 Account Manipulation
  • T1558.004 Steal or Forge Kerberos Tickets: AS-REP Roasting
  • T1134.005 Access Token Manipulation: SID-History Injection
  • T1556.005 Modify Authentication Process: Reversible Encryption

What Event ID 4738 means

4738 is written when attributes of a user account change. Most fields show a dash, which means that the attribute was not part of this change. The ones with values are the change.

Several small flags have large consequences. Turning off Kerberos pre-authentication makes the account's password hash available to anyone who asks. Storing the password with reversible encryption lets it be recovered in clear. Trusting an account for delegation lets a service impersonate users. Each is a single bit in the account control value.

OldUacValue and NewUacValue hold those bits in hexadecimal, and comparing them shows exactly what was switched. These are SAM values and differ from the userAccountControl attribute in Active Directory, so a table made for one gives wrong answers for the other.

Key fields to inspect

FieldMeaningSuspicious when
TargetUserName Account that was changed. Privileged users and service accounts.
SubjectUserName Who made the change. An account with no role in directory management.
OldUacValue Account flags before the change. Compare bit by bit with the new value.
NewUacValue Account flags after the change. 0x10000, 0x800, 0x2000 or 0x40000 newly set.
SidHistory SID history, if it changed. Any value outside a domain migration, particularly one from your own domain.
AllowedToDelegateTo Services the account may delegate to. A new entry such as cifs or ldap on a domain controller.
PrimaryGroupId RID of the primary group. 512 (Domain Admins) or any value other than 513 for a user.

SAM account control bits

BitFlagWhy it matters
0x1Account disabledEnable and disable tracking
0x4Password not requiredAllows an empty password
0x200Password does not expireCommon in backdoor accounts
0x800Reversible encryption allowedPassword can be recovered
0x2000Trusted for delegationUnconstrained delegation
0x8000Use DES keys onlyWeak Kerberos keys
0x10000Pre-authentication not requiredAS-REP roasting
0x40000Trusted to authenticate for delegationProtocol transition

Detection queries

Find accounts where pre-authentication was switched off or reversible encryption was switched on. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Security" EventCode=4738
| where NewUacValue!="-"
| eval old=tonumber(replace(OldUacValue,"0x",""),16), new=tonumber(replace(NewUacValue,"0x",""),16)
| eval preauth_off=if(bit_and(new,65536)>0 AND bit_and(old,65536)=0,1,0), reversible=if(bit_and(new,2048)>0 AND bit_and(old,2048)=0,1,0)
| where preauth_off=1 OR reversible=1
| table _time SubjectUserName TargetUserName OldUacValue NewUacValue

Microsoft Sentinel KQL

SecurityEvent
| where EventID == 4738
| where NewUacValue startswith "0x"
| extend Added = binary_and(tolong(NewUacValue), binary_not(tolong(OldUacValue)))
| where binary_and(Added, 65536) != 0 or binary_and(Added, 2048) != 0
| project TimeGenerated, SubjectUserName, TargetUserName, OldUacValue, NewUacValue

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4738; StartTime = (Get-Date).AddDays(-7) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
  Where-Object { $_.NewUacValue -like '0x*' } |
  Select-Object Time, SubjectUserName, TargetUserName, OldUacValue, NewUacValue, SidHistory | Format-Table -AutoSize

Attack scenarios

Targeted AS-REP roasting

An attacker with write access to an account clears the pre-authentication requirement, requests a ticket, cracks it offline and restores the flag. Two 4738 events minutes apart with bit 0x10000 set and cleared, and a 4768 with PreAuthType 0 between them, reveal it.

SID history injection

Adding a privileged SID to an account's history grants that privilege without group membership. Outside migrations the attribute never changes, so any value is an alert.

Password never expires on a new account

Backdoor accounts often receive bit 0x200 right after creation, so that policy does not disable them. Combined with 4720 and 4732 it completes the picture.

Investigation checklist

  1. Convert both account control values and list the bits that changed.
  2. Check whether the change was reversed shortly after.
  3. For pre-authentication changes, search 4768 for the account with PreAuthType 0.
  4. Identify how the subject obtained write access to the target.

Common benign causes

Event ID 4738 FAQ

Why are most fields a dash in 4738?

Only attributes that were part of the change are filled in. A dash means unchanged. Some directory attributes are not covered by the event at all and appear only in 5136.

Is NewUacValue the same as userAccountControl in Active Directory?

No. It uses SAM bit values, which differ. For example, pre-authentication not required is 0x10000 in the event and 0x400000 in the directory attribute.

How do I detect that pre-authentication was disabled?

Look for bit 0x10000 set in NewUacValue and clear in OldUacValue. Then check 4768 events for that account with PreAuthType 0, which show that a roastable ticket was issued.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license). Field names were checked against Microsoft documentation and provider schemas.