Windows API reference
LsaGetLogonSessionData
Returns information about a logon session, including the user SID and name, domain, logon type, authentication package and logon time.
- Library
- Advapi32.dll
- Category
- Enumeration
- Suspicion
- high
- MITRE ATT&CK
- T1033 System Owner/User Discovery
Detection summary
LsaGetLogonSessionData is not directly logged; detect it through LSASS access telemetry and the surrounding session-reconnaissance chain.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate with LsaEnumerateLogonSessions, LsaOpenPolicy and token operations. Sysmon 10 can show LSASS access when ProcessAccess is enabled; the LSA query itself requires EDR or LSASS-side telemetry.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1033: System Owner/User Discovery
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Windows logon UI, audit/policy tools, RMM, EDR and identity-management agents.
Related APIs
- LsaEnumerateLogonSessions — Advapi32.dll