Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› Secondary Logon Service
Governance, Ownership & Risk

Secondary Logon Service

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Governance, Ownership & Risk

Secondary Logon Service is a Windows service that lets a user start a programme under different credentials. It underpins runas-style elevation and separate logon sessions, so administrators can launch administrative tools without logging off, while also creating a credential exposure point if passwords are reused or cached.

What the Secondary Logon Service does

Secondary Logon Service is the Windows component that lets a user start a program under different credentials. In practice, it is what supports runas-style execution and separate logon sessions, so an administrator can open administrative tools without signing out of the current desktop.

This matters because the service changes which security context launches a process, not just which window is active. That distinction is important in day-to-day administration, because the same workstation can host ordinary user work and elevated work at the same time.

Why separate credentials matter for Windows administration

Secondary Logon exists to solve a common operational problem: a person may need standard-user access most of the time, but still need an occasional privileged task. Using separate credentials reduces the need to stay logged in as an all-powerful account, and it makes the launch point for the privileged action more explicit.

That convenience also creates a trust boundary. When a process is launched with alternate credentials, Windows must handle those credentials, create the new logon context, and let the program inherit that context. The service is therefore part of the path that turns a typed password into an active session and a usable process token.

Where credential exposure and account misuse arise

The security concern is not the feature itself, but how it is used. If an administrator reuses a password, leaves credentials cached longer than necessary, or allows privileged work to become routine on an interactive desktop, the service can become a convenient path for credential exposure or privilege misuse. The risk is especially clear on shared systems, where one person’s elevated launch context can outlive the immediate task.

Secondary Logon also intersects with account governance, because the account used for the alternate session must be trustworthy, current, and appropriately scoped. If that account is over-privileged, poorly monitored, or widely known, then the service can amplify the impact of compromise rather than limit it.

For background on how Windows logon events expose these execution contexts, see Windows Logon Types and Authentication Events.

How to think about safe use and verification

In practice, Secondary Logon should be treated as an administrative convenience, not as a substitute for sound access design. The safest pattern is to keep routine work in a low-privilege account and use the alternate-credential launch only for bounded administrative tasks. Organisations should also know which service and administrative accounts are being used on endpoints and servers, because that inventory is what lets them separate normal use from risky use.

Detection matters as much as configuration. If alternate credentials are being used to launch tools unexpectedly, or if privileged sessions appear in places they should not, that is often a sign of either misuse or weak account boundaries. For a practical approach to spotting those patterns, How to detect interactive logons by service accounts is a useful companion, and so is How to find Windows services running as domain accounts when you need to separate normal service execution from human-driven use.

Risk and Threat Considerations

Secondary Logon can become risky when privileged credentials are repeatedly entered on endpoints, because that increases the chance of password capture, reuse, or abuse. The feature is also attractive to attackers if they can coerce an operator into launching something with higher privileges or if they can observe which credentials are being used for alternate sessions.

Failure mechanism: Alternate-credential launches create a usable privileged context on the local system, and that context can be abused if the account is over-privileged, the password is reused, or session boundaries are poorly controlled.

Impact: An attacker or careless user may gain access to administrative functions, expand lateral movement options, or expose credentials that should have remained tightly scoped.

Standards & Framework Alignment

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

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSecondary Logon relies on handling alternate credentials safely.
AC-6 — Least PrivilegeThe service is used to separate routine work from elevated execution.
AU-2 — Event LoggingAlternate-credential launches should be observable through host and logon events.
Recommendation — Manage alternate credentials so runas-style use does not encourage reuse or exposure. Limit elevated use to narrowly scoped tasks and accounts. Log privileged launches and investigate unexpected alternate-credential activity.
CIS Controls v8CIS-5 — Account ManagementThe term materially depends on managing who can use privileged and service accounts.
Recommendation — Inventory privileged accounts and remove unnecessary alternate-access paths.
MITRE ATT&CKT1078 — Valid AccountsSecondary Logon can be abused when legitimate credentials are used to obtain elevated access.
Recommendation — Monitor for legitimate credentials being used to gain access beyond their intended scope.

Practitioner Guidance

Why practitioners should care: Secondary Logon is a legitimate admin tool, but it should be governed as a privileged access path. The operational question is not whether to ban it outright, but whether its use is limited to clearly owned accounts and well-defined tasks.

Common misunderstanding: Many teams treat “run as different user” as harmless because it is familiar and built into Windows. In reality, it still establishes a distinct authentication and privilege context, which means it deserves the same scrutiny as other elevated access paths.

Practitioner takeaway: Keep the feature for occasional administrative work, but pair it with account inventory, logging, and a clear rule that privileged credentials are never used casually on everyday desktops.

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 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org