Windows API reference
CheckTokenMembership
Tests whether a token contains a specified security identifier, optionally using an impersonation token.
- Library
- Advapi32.dll
- Category
- Enumeration, Privilege Escalation
- Suspicion
- low
- MITRE ATT&CK
- T1082 System Information Discovery
Detection summary
CheckTokenMembership has no direct Sysmon or kernel ETW event; only imports, user-mode hooks and surrounding behavior expose it.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: User-mode API not logged directly by Sysmon or standard kernel ETW; detect via static import triage, sandbox API hooking, or behavioral correlation.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Task managers, EDR agents, installers, backup tools and inventory software.
Related APIs
- AllocateAndInitializeSid — Advapi32.dll