Windows API reference

DuplicateTokenEx

Duplicates an existing access token and creates a new primary or impersonation token with the requested access rights.

Library
Advapi32.dll
Suspicion
high

Detection summary

DuplicateTokenEx is not directly logged; correlate token-handle telemetry with impersonation or process creation that uses the duplicate.

Sources and documentation

Last reviewed: . Page metadata generated .

Legitimate use

Windows services, IIS, SQL Server, scheduled tasks, runas, backup tools, debuggers and security products.

Open DuplicateTokenEx in the interactive atlas