LsaConnectUntrusted is a Windows Local Security Authority function that opens an untrusted connection to LSA. It allows a process to call a limited set of LSA functions without registering as a trusted logon process, so it gets less privileged access to authentication services.
What LsaConnectUntrusted Does
LsaConnectUntrusted opens an untrusted connection to the Windows Local Security Authority, which means a process can access a limited set of LSA functions without being registered as a trusted logon process. The practical distinction is privilege: the caller gets authenticated-service access, but not the broader trust that a logon process receives.
Why This Matters for Windows Security Design
This API sits on a trust boundary inside Windows authentication. LSA is a privileged authority for logon and security policy, so the choice between trusted and untrusted connection paths affects which security operations a process can perform and how much the platform must trust it.
That matters when software needs to interact with authentication-related services but should not inherit logon-process privileges. It is one of the mechanisms Windows uses to separate ordinary consumers of authentication services from components that are allowed to participate more deeply in the logon flow.
How Untrusted LSA Access Is Typically Used
Developers use an untrusted connection when an application or service needs a constrained interface to LSA rather than elevated status. The function is a control point, not a grant of broad authority, so the caller still has to operate within the privileges already available to its process and token.
In practice, that means the API is relevant to components that query or consume security information, yet should avoid becoming part of the trusted authentication path itself. This keeps the design closer to least privilege and reduces the chance that a non-essential component becomes security-critical by accident.
Security Consequences and Operational Caution
Because LSA is highly sensitive, even limited access deserves careful review. A process that reaches authentication services may still become a useful foothold for an attacker if it is compromised, especially if the surrounding service architecture also exposes credentials, tokens, or other security material.
Developers should treat any code using this API as security-relevant code: it interacts with a privileged subsystem, can influence authentication-adjacent behaviour, and may become a useful target for abuse if the process itself is not well isolated.
Risk and Threat Considerations
Untrusted LSA access is lower privilege than a trusted logon process, but it still touches a high-value authentication boundary. If a process that uses this API is compromised, the attacker may gain a path to inspect, influence, or misuse authentication-related state without needing full logon-process trust.
Failure mechanism: An attacker targets the process that holds the LSA connection, then uses its limited but legitimate access to reach security-sensitive operations or to pivot into adjacent authentication material.
Impact: The result can be credential exposure, authentication abuse, or expanded reach into Windows security services, especially when the calling process has more surrounding privileges than the API itself suggests.
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, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-2 — Identification and Authentication (Organizational Users) | LSA connection handling directly affects how Windows authenticates trusted components. |
| AC-6 — Least Privilege | The function exists to permit limited LSA access without trusted logon-process authority. | |
| AU-6 — Audit Record Review, Analysis, and Reporting | LSA interactions are security-relevant events that merit monitoring for misuse and compromise signs. | |
| Recommendation — Enforce strong identification and authentication for components that interact with LSA. Limit LSA-facing processes to the minimum access needed for their task. Review audit data for unusual use of LSA-facing authentication services. | ||
| NIST CSF 2.0 | PR.AA-01 — Identities and Credentials | The term concerns access to a privileged Windows authentication authority. |
| PR.AA-05 — Least Privilege | Untrusted LSA access is explicitly a constrained privilege boundary. | |
| Recommendation — Map LSA-facing components to identity and credential governance. Apply least-privilege design to any process that connects to LSA. | ||
| CIS Controls v8 | CIS-5 — Account Management | Windows authentication surfaces are governed through controlled identity and access assignment. |
| Recommendation — Restrict and review accounts that can run LSA-interacting services. | ||
Practitioner Guidance
Why practitioners should care: This function is often safe only when the caller is tightly scoped and well understood. The main judgement is not whether it works, but whether the process that uses it should be trusted to sit near authentication services at all.
What to watch for: Review any service that calls into LSA for unnecessary privilege, broad process rights, or weak isolation. If the component does not truly need authentication-adjacent access, redesign it so the LSA interaction is removed or constrained to the smallest possible surface.
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org