Understanding Process Creation Telemetry: How Security Analysts Track Executing Programs
An introduction to process creation logs, explaining how operating systems record executable activity and how security analysts use this data to spot suspicious behavior.
Whenever software runs on a computer—whether it is a web browser, a text editor, or a malicious file—the operating system starts a process.
For security analysts, understanding how processes start and run is fundamental. When an attacker compromises a computer, they almost always execute commands or programs to achieve their goals. By collecting and analyzing process creation telemetry (the log data recorded when a process starts), security teams can spot malicious activity, trace where an attack originated, and understand what the attacker tried to do.
This article covers the basic concepts of process execution, what key data points exist in process logs, and how security analysts use this information in daily operations.
Core Concepts: What is a Process?
Before looking at security logs, we need to define a few basic operating system terms:
- Executable File: A file stored on a disk that contains instructions a computer can run (for example,
notepad.exeorcmd.exe). - Process: An active, running instance of an executable file loaded into computer memory.
- Process ID (PID): A unique numerical identifier assigned by the operating system to distinguish a running process from all others. PIDs are temporary; once a process closes, its PID can be reused by a new process later.
- Parent Process: The existing process that launches a new process. When you double-click a shortcut on your desktop, the Windows graphical interface (
explorer.exe) acts as the parent process that launches the executable file you selected (the child process). - Command Line Arguments: Extra instructions passed to a program when it is started. For example, in the command
ping 127.0.0.1,pingis the executable and127.0.0.1is the command-line argument telling the program where to direct its network traffic.
Understanding the relationship between parent processes and child processes—often called the process tree—is one of the most powerful concepts in defensive security.
How Windows Records Process Creation
By default, Windows records thousands of operational events, but basic security configurations may not capture full process execution details out of the box.
Security operations teams rely on two primary log sources on Windows systems to track execution:
1. Windows Event ID 4688
Windows operating systems generate Event ID 4688 inside the Security log whenever a new process starts.
By default, Event ID 4688 captures:
- Which user ran the program.
- The location of the executable file (the Image Path).
- The Process ID (PID) of the new process.
- The Process ID of the parent process (Creator Process ID).
However, standard Event ID 4688 logging omits command-line arguments unless a specific Group Policy setting—Include command line in process creation events—is explicitly enabled. Without command-line parameters, analysts can see that a tool like powershell.exe ran, but not what script it executed.
2. Sysmon (System Monitor) Event ID 1
Sysmon is a free system monitoring utility provided by Microsoft (part of the Sysinternals suite). Security teams frequently install Sysmon on endpoints to supplement standard Windows logging.
Sysmon’s Event ID 1 is equivalent to process creation auditing, but it records additional technical details automatically, including:
- Full command-line arguments.
- Cryptographic file hashes (like SHA256) of the executable file, making it easy to identify modified or malicious binaries.
- The exact user account and session context.
- Parent process command lines.
Analyzing a Process Log
Let us look at a simplified example of a process creation log to understand what an analyst sees during an investigation.
Event ID: 4688
Keywords: Audit Success
Time: 2026-09-21 14:15:02
Subject Account Name: jdoe
New Process ID: 0x1A4C (6732 in decimal)
New Process Name: C:\Windows\System32\cmd.exe
Creator Process ID: 0x08F4 (2292 in decimal)
Creator Process Name: C:\Program Files\Microsoft Office\Office16\WINWORD.EXE
Process Command Line: cmd.exe /c powershell.exe -ExecutionPolicy Bypass -File C:\Users\jdoe\AppData\Local\Temp\script.ps1
What This Log Tells Us
- Who ran it? The user account
jdoe. - What ran? The command prompt (
cmd.exe), located inC:\Windows\System32\. - What launched it? Microsoft Word (
WINWORD.EXE). - What did it try to do? The command line reveals that
cmd.exewas used to immediately callpowershell.exe, bypass script execution restrictions, and run a PowerShell script stored in the user’s temporary folder.
Identifying the Anomaly
In a normal business environment, Microsoft Word opens document files. It rarely needs to open a command line prompt or run background PowerShell scripts.
When an analyst sees WINWORD.EXE (parent) launch cmd.exe or powershell.exe (child), this unusual parent-child relationship often indicates that the user opened a malicious email attachment containing a macro or exploit designed to run unauthorized code.
Common Patterns Defenders Monitor
Security teams write detection rules to search through thousands of daily process creation events. Here are three practical patterns defenders look for:
1. Unusual Parent-Child Execution
Certain applications should normally only launch specific child processes.
- Normal:
explorer.exelaunchingchrome.exe. - Suspicious:
sqlserver.exe(a database service) launchingcmd.exe. - Suspicious:
services.exelaunching an executable directly from a user’sDownloadsdirectory.
2. Execution from Temporary or Suspicious Locations
Legitimate system programs reside in protected folders like C:\Windows\System32\ or C:\Program Files\. Malicious software often drops files into locations where any standard user account can write data, such as:
C:\Users\<Username>\AppData\Local\Temp\C:\Users\Public\
If a process execution log shows a system tool binary (or an unknown binary) executing from AppData\Local\Temp, it warrants immediate investigation.
3. Suspicious Command-Line Flags
Attackers rely on legitimate system tools—a technique known as “Living off the Land”—to carry out tasks without downloading custom malware. However, their command-line arguments often reveal intent.
For example, powershell.exe is a legitimate administrative tool. But command-line arguments like these suggest suspicious behavior:
-EncodedCommand(used to hide code inside Base64 text).-WindowStyle Hidden(used to keep the program window invisible to the logged-in user).-ExecutionPolicy Bypass(used to override default administrative script restrictions).
Practical Recommendations for Beginners
If you are setting up a lab environment or learning defensive security operations, start with these baseline practices:
- Enable Command-Line Logging: If you are practicing in a Windows environment, ensure process creation events include command-line arguments via Windows Group Policy (
Computer Configuration -> Administrative Templates -> System -> Audit Process Creation). - Install and Experiment with Sysmon: Download Sysmon in a test virtual machine. Run common software and inspect the logs using Windows Event Viewer (
Applications and Services Logs -> Microsoft -> Windows -> Sysmon -> Operational). - Learn the Norms: Pay attention to how standard tools run on your system. Understanding what benign, normal process creation looks like makes spotting anomalies significantly easier.
Conclusion
Process creation telemetry is one of the most critical foundational data sources in threat detection and incident response. By capturing details like executable paths, process IDs, parent-child relationships, and command-line parameters, defenders gain direct visibility into software execution across an enterprise. Learning to read these logs and recognize abnormal process behavior is a fundamental skill for anyone building a career in security operations.