When it is written
Windows writes 4688 on the computer where a process starts, for every new process, when Audit Process Creation is on for Success. The subcategory has no failure events: a program that fails to start leaves nothing here.
Process Command Line (CommandLine) is empty unless the policy Include command line in process creation events is also enabled, and the rules on this page read that field. Creator Subject is the account of the process that started the new one. Target Subject (version 2) is the account the new process runs as; Microsoft says it is recorded when the creator and the new process do not share the same logon, as in Microsoft's sample, where Local System starts a program in a user's session.
How to turn it on
Advanced audit policy subcategory Audit Process Creation, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Detailed Tracking > Audit Process Creation| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success | Recommended in both baselines for forensic investigation (who ran which program, when and with which parameters) and for spotting elevated use and suspicious process names. The subcategory has no failure events. |
| Member servers | Success | Recommended in both baselines for forensic investigation (who ran which program, when and with which parameters) and for spotting elevated use and suspicious process names. The subcategory has no failure events. |
| Workstations | Success | Recommended in both baselines for forensic investigation (who ran which program, when and with which parameters) and for spotting elevated use and suspicious process names. The subcategory has no failure events. |
auditpol /get /subcategory:"Process Creation"auditpol /set /subcategory:"Process Creation" /success:enableauditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Audit Process Creation alone writes 4688 with an empty command line (Microsoft: the field is empty by default). The rules here read the command line, so also enable this Group Policy setting on the same computers:
Computer Configuration > Policies > Administrative Templates > System > Audit Process Creation > Include command line in process creation events
It takes effect only when Audit Process Creation is on. The setting is stored as ProcessCreationIncludeCmdLine_Enabled under HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit. Microsoft warns that once it is enabled, anyone who can read the Security log can read the command line of every process, and command lines can hold passwords or other private data.
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidCreator Subject | SID of the account whose process started the new one (Creator Subject). Event Viewer shows it resolved to an account name when it can. S-1-5-18 when Local System started it. | v0 |
Account NameSubjectUserNameCreator Subject | Name of that account. For Local System it is the computer account, a name that ends with $. | v0 |
Account DomainSubjectDomainNameCreator Subject | Domain of the creating account, usually as a NetBIOS name, the computer name for a local account, or NT AUTHORITY for well-known principals. | v0 |
Logon IDSubjectLogonIdCreator Subject | Hexadecimal ID of the creator's logon session. 0x3e7 is the Local System session. It matches the Logon ID of the 4624 event on the same computer. | v0 |
Security IDTargetUserSidTarget Subject | SID of the account the new process runs as (Target Subject). Microsoft says it is recorded when the creator and the new process do not share the same logon. Version 2. | v2 |
Account NameTargetUserNameTarget Subject | Name of that account. Version 2. | v2 |
Account DomainTargetDomainNameTarget Subject | Domain of that account. Version 2. | v2 |
Logon IDTargetLogonIdTarget Subject | Hexadecimal ID of the logon session the new process runs in. It matches the Logon ID of that session's 4624 event. Version 2. | v2 |
New Process IDNewProcessIdProcess Information | Hexadecimal ID of the new process. Process IDs are reused, so match them on the same computer within a short time. | v0 |
New Process NameNewProcessNameProcess InformationRead by 2 rules | Full path of the program that was started. Two rules read its end (\vssadmin.exe, \ntdsutil.exe). | v0 |
Token Elevation TypeTokenElevationTypeProcess Information | Type of token User Account Control gave the new process, as a message code. %%1936 full token, %%1937 elevated token, %%1938 limited token. | v0 |
Mandatory LabelMandatoryLabelProcess Information | SID of the integrity level given to the new process. S-1-16-4096 low, S-1-16-8192 medium, S-1-16-12288 high, S-1-16-16384 system, S-1-16-20480 protected process. Version 2. | v2 |
Creator Process IDProcessIdProcess Information | Hexadecimal ID of the process that started the new one (shown as Creator Process ID). It matches New Process ID in the 4688 event of the parent. | v0 |
Creator Process NameParentProcessNameProcess Information | Full path of the program that started the new process (shown as Creator Process Name). Version 2. | v2 |
Process Command LineCommandLineProcess InformationRead by 2 rules | Program name and arguments of the new process (shown as Process Command Line). Empty unless the Include command line in process creation events policy is enabled. Version 1 and later. | v1 |
Event versions
The template has three versions, and Microsoft's event page documents all three. Version 0 (Windows Server 2008 and Windows Vista) has 8 fields. Version 1 (Windows Server 2012 R2 and Windows 8.1) adds the process command line. Version 2 (Windows 10) adds the Target Subject section, the mandatory label and the creator process name, and renames Subject to Creator Subject.
- Version 0: 8 fields
- Version 1: 9 fields, adds
CommandLine - Version 2: 15 fields, adds
TargetUserSid,TargetUserName,TargetDomainName,TargetLogonId,ParentProcessName,MandatoryLabel
Values to know
Process Command Line CommandLine
| Value | Meaning | Signal |
|---|---|---|
Contains ntds.dit | The command works on the Active Directory database fileCopying the database out of a shadow copy names the file on the command line. Read on a domain controller. | Attack signal |
\vssadmin.exe with create shadow | A volume shadow copy is createdThe usual way to get a readable copy of the locked database file. Backup software can do the same, so check who ran it and when. | Attack signal |
\ntdsutil.exe with ifm | Install From Media output is createdWrites a copy of the database and the registry hives needed to read it. Legitimate when preparing media to promote a domain controller, which should be planned and rare. | Attack signal |
Empty | The command line is not collectedThe Include command line in process creation events policy is not enabled, and the rules on this page cannot match. | Worth knowing |
Token Elevation Type TokenElevationType
| Value | Meaning | Signal |
|---|---|---|
%%1936 | Type 1, full tokenUsed when User Account Control is off for the account, and for the built-in Administrator, service accounts and Local System. Microsoft suggests watching for it with a real user account. | Worth knowing |
%%1937 | Type 2, elevated tokenThe user chose Run as administrator, or the program always requires administrative rights. Microsoft suggests watching for it on standard workstations. | Worth knowing |
%%1938 | Type 3, limited tokenThe normal case for a user program with User Account Control on. | Expected |
Mandatory Label MandatoryLabel
| Value | Meaning | Signal |
|---|---|---|
S-1-16-8192 | Medium integrityOrdinary user programs. | Expected |
S-1-16-12288 | High integrityElevated programs. | Worth knowing |
S-1-16-16384 | System integrityServices and processes running as Local System. | Expected |
S-1-16-4096 | Low integritySandboxed programs. | Worth knowing |
Volume and noise
Microsoft rates the volume Medium to High, depending on how many processes the computer starts. Every program start writes one event: services and scheduled tasks as they run, script interpreters, and the many short-lived child processes of monitoring, backup and endpoint agents. Servers running such agents produce a steady stream around the clock.
Turning on the command line adds no events, but makes each one larger, since command lines can be long.
Keeping it manageable
- On domain controllers, do not filter 4688 by program name: one rule looks for
ntds.ditin the command line of any process. The other two readNewProcessNameending with\vssadmin.exeor\ntdsutil.exetogether with the command line. - To cut agent noise, exclude exact pairs of
ParentProcessNameandNewProcessNamethat you have checked, not whole folders, and never excludentdsutil.exe,vssadmin.exeor any event whoseCommandLinecontainsntds.dit. - The rules here are meant for domain controllers. On member servers and workstations collect 4688 for your own needs; nothing on this page depends on it there.
- Limit who can read the Security log and the SIEM index that holds these events: Microsoft warns that command lines can contain passwords and other private data, and anyone who can read the events can read them.
Sample event
Version 2, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4688</EventID>
<Version>2</Version>
<Level>0</Level>
<Task>13312</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-18</Data>
<Data Name="SubjectUserName">DC01$</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x3e7</Data>
<Data Name="NewProcessId">0x1f30</Data>
<Data Name="NewProcessName">C:\Windows\System32\cmd.exe</Data>
<Data Name="TokenElevationType">%%1937</Data>
<Data Name="ProcessId">0x1a4c</Data>
<Data Name="CommandLine">"C:\Windows\system32\cmd.exe"</Data>
<Data Name="TargetUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
<Data Name="TargetUserName">alice</Data>
<Data Name="TargetDomainName">CORP</Data>
<Data Name="TargetLogonId">0x5d3a41</Data>
<Data Name="ParentProcessName">C:\Windows\explorer.exe</Data>
<Data Name="MandatoryLabel">S-1-16-12288</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Why is the command line empty in event 4688?
Because the Group Policy setting Include command line in process creation events (Computer Configuration, Administrative Templates, System, Audit Process Creation) is not enabled. Microsoft states that the field is empty by default. It works only together with Audit Process Creation.
Does 4688 record programs that failed to start?
No. Audit Process Creation has no failure events; Microsoft's recommendation table says so for every computer role.
Which 4688 events point to theft of the Active Directory database?
On a domain controller, a command line that names ntds.dit, a volume shadow copy created with vssadmin, and ntdsutil run with the ifm (Install From Media) option. Each can be legitimate, so check the account, the parent program and whether the work was planned.
What is the difference between Creator Subject and Target Subject?
Creator Subject is the account of the process that started the new one. Target Subject, added in version 2, is the account the new process runs as; Microsoft records it when the two do not share the same logon, for example when Local System starts a program in a user's session.