Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› CreateProcessWithLogon
Architecture & Implementation

CreateProcessWithLogon

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Architecture & Implementation

CreateProcessWithLogon is a Windows API function that starts a new process under alternate user credentials. It creates the process with a supplied username and password, rather than using the caller’s current logon token, so it is used for controlled privilege separation and run-as scenarios.

What CreateProcessWithLogon Does in Windows

CreateProcessWithLogon is a Windows API call for starting a new process under a supplied set of user credentials instead of inheriting the caller’s current logon token. That makes it useful for run-as workflows, privilege separation, and scenarios where one process needs a different security context from the parent process.

Why Alternate-Credential Process Creation Matters

Using alternate credentials changes the trust boundary around the new process. The launched program runs with a different identity, access token, profile context, and set of resource permissions, so the result can be materially different from launching the same binary under the caller’s own session.

This is why the function is often used when administrators need to isolate a task, delegate a specific operation, or avoid giving a parent application broader standing access than it needs.

Security Implications of Run-As Execution

Process creation under alternate credentials is a security control, but it also creates a sensitive handoff point. The password or equivalent logon material must be handled carefully, and the new process may gain access to resources, network locations, or local privileges that were not available to the caller.

That means the function is useful for reducing ambient privilege, but it can also widen impact if the supplied credentials are overprivileged, reused, or exposed in memory, logs, scripts, or parent-process handling.

Operational Constraints and Common Usage Patterns

In practice, CreateProcessWithLogon is usually chosen when the caller cannot or should not impersonate permanently, but still needs to start a child process with different access rights. It is a point-in-time launch mechanism, not a policy engine, so the security of the resulting process still depends on the credential quality, token scope, and downstream application behavior.

Because of that, the function fits controlled administration, delegated execution, and bounded service workflows better than broad automation patterns that need durable, unattended trust.

Risk and Threat Considerations

Alternate-credential launch points are attractive because they can bridge privilege boundaries. If an attacker reaches the calling process, steals the supplied credentials, or abuses the launched child process, they may turn a limited execution path into broader access, persistence, or lateral movement.

Failure mechanism: The security boundary fails when the credential material used to start the new process is exposed, reused, or paired with excessive permissions, allowing the child process or an attacker to inherit more access than intended.

Impact: The result can be unauthorized file, service, or network access, privilege escalation, or compromise of any accounts, sessions, or secret material accessible to the alternate logon context.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 provides the primary governance reference for this term.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCreateProcessWithLogon depends on protected credential handling for alternate-logon launches.
IA-2 — Identification and Authentication (Organizational Users)The API starts a process under a distinct authenticated user context.
AC-6 — Least PrivilegeThe function is used to separate privileges and limit what the launched process can do.
Recommendation — Protect and rotate credentials used for alternate-credential process creation. Require strong user authentication before permitting alternate-credential execution. Limit the alternate account to only the permissions the child process actually needs.

Practitioner Guidance

Why practitioners should care: Treat CreateProcessWithLogon as an access-separation mechanism that needs the same scrutiny as any privileged handoff. The main decision is not whether the API works, but whether the alternate account is sufficiently scoped for the task it will perform.

What to watch for: Review how the credentials are supplied, where they are stored or echoed, and whether the launched process inherits paths, shares, or application privileges that make the alternate logon broader than necessary.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org