Skip to main content

Wolfcore Cyber Security

Windows Event ID 4688 (process creation): what it records and how to make it useful

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 19 November 2026.

In one sentence: Event ID 4688 is the Windows record that says “this program just started, run by this account, launched by that other program”, and it is only really useful once you also switch on command line logging.

What it is

A process is a running program. Every time one starts, from a user opening Notepad to a scheduled task launching a script, Windows can write event 4688 to the Security log. Microsoft’s documentation says this event generates every time a new process starts (Microsoft Learn, event 4688).

The record names the account that asked for the program to run, the new program and its folder, the program that started it (the “creator process”) and how much privilege it was given. Microsoft notes that on Windows 10 and later the event gained a Creator Process Name field and a Mandatory Label field.

The catch is the field most people want. Microsoft states that the Process Command Line field is empty by default. Without it you can see that powershell.exe ran, but not what it was told to do.

How it works

  1. Someone or something starts a program.
  2. If the Audit Process Creation setting (under Detailed Tracking in Advanced Audit Policy) is enabled, Windows writes 4688 to the Security log.
  3. The record carries a Logon ID. You can match it to the sign-in event 4624 to see how that session began.
  4. The record carries a Process ID and the creator’s Process ID, so you can build a tree: who started what, and what that started next.
  5. The Token Elevation Type tells you whether the program ran with a full, elevated or limited token. Microsoft’s table: type 1 is a full token, type 2 is elevated (for example “Run as administrator”), type 3 is limited.

What it does not do: it does not record what a program did while it ran, any file hashes, or network connections.

Parent programe.g. a document app New programe.g. powershell.exe Event 4688account, parent, child,elevation, command line* *Command line is empty until you enable the extra Group Policy setting

Who it affects and how badly

Any business running Windows PCs or servers has these events available. The risk is not the event itself. The risk is having no record of what ran when you need it.

  • Sole trader to 10 staff: usually no central logging. After an incident there may be nothing to show what a suspicious program did. Worst case: you cannot tell a client or insurer what was touched.
  • 10 to 50 staff (accountancy, legal, recruitment, estate agents): an MSP may collect logs, but command lines are often missing. Worst case: days of investigation to scope one infected laptop.
  • 50 to 250 and regulated firms (fintech, insurance, healthcare): regulators and clients expect you to show what happened. Missing process records slow breach reporting and lengthen downtime.

What we check on a test

This is the method, not a finding.

  • Whether Audit Process Creation is set to Success on workstations and servers, not just domain controllers.
  • Whether the “Include command line in process creation events” setting is applied through Group Policy.
  • Whether the records reach a central place, or sit only on the PC that might be wiped.
  • Whether the programs we run during an authorised test show up with a readable parent and command line, so your team can see what a tester’s activity looked like.

Rules and regulators

  • UK: the NCSC’s logging guidance says your logs should include detail on process execution or crashes with parent process, user, machine and failure codes. It recommends keeping the logs that answer incident questions for a minimum of 6 months (NCSC, Introduction to logging for security purposes).
  • US: CISA’s small and medium business page advises you to centralise your logs and set up alerts for high-risk events such as failed login attempts and privilege escalation (CISA, Use Logging on Business Systems). It points to NIST SP 800-92 Rev. 1 as a log management planning guide.
  • EU: NIS2 Article 21 requires essential and important entities to take appropriate and proportionate technical, operational and organisational measures, which include incident handling (NIS2 Article 21 text). The Directive does not name event 4688. Logs like this are evidence that you can handle incidents.

A worked example (illustration only)

A 25-person accountancy firm’s bookkeeper opens an email attachment. Soon after, the firm’s MSP is told a PC is behaving oddly. Command line logging was never switched on, so the logs show only that powershell.exe started. The MSP cannot tell whether it downloaded anything. They rebuild the PC and reset the bookkeeper’s passwords to be safe, which costs a day of work and leaves the question open. With the command line field populated, the same record would have shown what the shell was asked to do, and the decision would take minutes.

How to detect it

  • Open Event Viewer, go to Windows Logs, Security, and filter for Event ID 4688. If nothing appears, auditing is off.
  • Read parent and child together. Microsoft suggests watching for a new or creator process not in a standard folder such as System32 or Program Files, or in a restricted folder such as Temporary Internet Files.
  • Microsoft also suggests checking process names against a list of known tool names you never expect to see, and noting that it can be unusual for a process to run under a local account.
  • Watch Token Elevation Type. Microsoft says to monitor type 2 on standard workstations when a real user account is shown, because it means a user ran a program using administrative privileges.
  • MITRE ATT&CK’s detection strategy for creating local accounts describes a sequence where an account creation event (4720) follows process creation of a suspicious executable such as powershell.exe or net.exe. That is exactly the pairing 4688 lets you see.

How to fix or prevent it

  1. Set Audit Process Creation to Success under Advanced Audit Policy, Detailed Tracking, on every PC and server.
  2. Turn on Administrative Templates, System, Audit Process Creation, “Include command line in process creation events” in Group Policy.
  3. Send the Security log to one central place, so an attacker on a PC cannot simply delete the evidence.
  4. Make the Security log large enough that events are not overwritten within days. The NCSC suggests at least six months of retention for the logs that answer incident questions.
  5. Write down a short list of programs and folders that should never start processes in your environment, and alert on them.
  6. Review the events after any change of IT supplier, so logging does not quietly stop.

To see the PowerShell code itself, not just the process that started, read about Event ID 4104 script block logging.

Related terms

windows event id 4624 successful logon, windows event id 4672 special privileges assigned, windows event id 4648 explicit credential logon, windows event id 4720 user account created, windows event id 7045 service installed, indicators of compromise, CVE-2023-0669 GoAnywhere MFT Flaw: What to Check Now, Sysmon Event ID 1: Process Creation Logging Explained

Back to the Detection and response hub.

FAQ

Is the command line recorded by default? No. Microsoft says the Process Command Line field is empty by default, and you must enable a Group Policy setting to include it.

Which Windows versions add the parent program name? Windows 10 and later add the Creator Process Name field, according to Microsoft’s version notes.

How do I link a 4688 record to the sign-in? Use the Logon ID. Microsoft says it can be matched with event 4624.

Sources opened for this entry

See also: Port 4444 Open: Why It Is Flagged and How to Respond, Event ID 4732: Member Added to a Local Group Explained, Event ID 5140 and 5145: Network Share Access Explained, Mimikatz: What It Is, How It Works and How to Defend.

How Wolfcore helps

Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring. For a hands-on view, see our penetration testing service.

A stolen or phished password is one way an attacker gets a valid account. Phishy, our phishing simulation software, lets you test whether your staff would hand one over, safely. You can also start the Phishy free trial.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call