Skip to content
WETNav
SecurityDetailed Tracking

Event ID 4696: A primary token was assigned to process

A primary token was assigned to process.

Channel
Security
Logged by default
No
Written on
Any host
Volume
High
Audit subcategory
Process Creation
Needs a SACL
No

To have this event

  • Enable Process Creation: auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

SubjectUserNameAccount assigning the token
SubjectDomainNameDomain of the account
SubjectLogonIdLogon ID for correlation
TargetUserNameAccount associated with the new token
TargetDomainNameDomain of the target account
TargetLogonIdLogon ID of the new token
ProcessIdProcess ID receiving the token
ProcessNameProcess executable path
Have one of these events? Paste it into the decoder

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4696)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 4696 mean?
A primary token was assigned to process. It is written to the Windows Security log (Security).
Is event 4696 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Process Creation" Advanced Audit Policy subcategory (Detailed Tracking).

A primary token was assigned to process. Needs the "Process Creation" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.