3 min read

Windows Token Privileges: The 10 User Rights Attackers Go After

When a box has had a bad day, the first thing I want to know is what the account the attacker landed on could actually do. whoami /priv answers that in one line, and the names it prints tend to be the same handful every time. This page is the map to all of them.

Windows token privileges are the user rights in a process's access token that let it do things normal permissions wouldn't, like reading any file, loading a driver or acting as another user. Ten of them show up again and again in real attacks. The CIS Benchmark limits each one to a short list of accounts, and for two of them, no one at all.

The 10 token privileges at a glance

PrivilegePolicy nameWhat it gives an attackerCIS Windows 11 Enterprise (L1)
SeImpersonatePrivilegeImpersonate a client after authenticationA path from a compromised service to SYSTEMAdministrators, LOCAL SERVICE, NETWORK SERVICE, SERVICE, RESTRICTED SERVICES\PrintSpoolerService
SeAssignPrimaryTokenPrivilegeReplace a process level tokenNew processes started as SYSTEM from a serviceLOCAL SERVICE, NETWORK SERVICE
SeTcbPrivilegeAct as part of the operating systemA token for any user, no password neededNo One
SeCreateTokenPrivilegeCreate a token objectA forged token with any groups and privilegesNo One
SeDebugPrivilegeDebug programsAccess to LSASS memory and the credentials in itAdministrators
SeBackupPrivilegeBack up files and directoriesA copy of the SAM or NTDS.dit and every hash in itAdministrators
SeRestorePrivilegeRestore files and directoriesOverwritten system files and service settingsAdministrators
SeTakeOwnershipPrivilegeTake ownership of files or other objectsControl of any file, registry key or processAdministrators
SeLoadDriverPrivilegeLoad and unload device driversKernel code, often a vulnerable driver that kills the EDRAdministrators
SeNetworkLogonRightAccess this computer from the networkSomewhere to use stolen credentials nextAdministrators, Remote Desktop Users

All 10 live in the same place in Group Policy: Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment.

Where to start

If you only check two today, check SeTcbPrivilege and SeCreateTokenPrivilege. The baseline for both is nobody, so any name you find is a finding. After that, look at your IIS and SQL servers for SeImpersonatePrivilege and SeAssignPrimaryTokenPrivilege, since those are how a web shell turns into SYSTEM. Then look at who's in local Administrators and Backup Operators, because those groups carry SeDebug, SeBackup, SeRestore, SeTakeOwnership and SeLoadDriver with them.

How to check your own machines

  • whoami /priv shows what the current process token holds and whether each privilege is enabled. It's the fastest way to see what an account could do.
  • Local Security Policy (secpol.msc), under User Rights Assignment, shows who's assigned each right on that machine.
  • gpresult /h report.html shows which GPO set each right, which matters when the same wrong value shows up on a hundred machines.
  • secedit /export /areas USER_RIGHTS /cfg rights.inf dumps every assignment to a text file you can compare across machines.
  • Event logs. Event 4672 lists sensitive privileges at logon, and events 4704 and 4705 record a right being assigned or removed.

Why these settings drift

Nobody sets out to give a service account SeTcbPrivilege. It happens one ticket at a time. A vendor install guide asks for a right so the product works. A tech adds an account during troubleshooting and moves on to the next fire. A GPO gets copied from another environment and brings its old assignments along. A backup agent gets swapped out and its account stays on the list. Each change makes sense in the moment, and none of them shows up on the desktop, which is exactly why they're still there at the next audit.

Senteon applies compliance-aligned security configurations to Windows endpoints and servers, user rights assignments included. It flags when one of them changes and puts it back automatically. Exceptions like IIS_IUSRS or a backup service account can be added as custom SIDs on the systems that need them.

Book a demo to see how Senteon keeps user rights at your compliance baseline.

So here's my question: if you ran whoami /priv as your most exposed service account right now, would you be comfortable with what it prints?

Frequently asked questions

What is a Windows token privilege?

It's a right recorded in a process's access token that lets it do something system-wide, like back up files, debug other processes or load drivers. Privileges are assigned through User Rights Assignment in Group Policy and land in the token when the account logs on.

What's the difference between a privilege and a logon right?

A privilege, like SeDebugPrivilege, controls what an account can do once it's logged on. A logon right, like SeNetworkLogonRight, controls how an account is allowed to log on in the first place. Both are set in User Rights Assignment.

Which token privileges are the most dangerous?

SeTcbPrivilege and SeCreateTokenPrivilege, which is why CIS sets both to No One. On servers, SeImpersonatePrivilege and SeAssignPrimaryTokenPrivilege are the most commonly abused, because they turn a compromised service into SYSTEM.

Do local administrators hold these privileges?

Yes, several of them, including SeDebug, SeBackup, SeRestore, SeTakeOwnership and SeLoadDriver. Cutting down local admin membership shrinks your exposure to all of them at once.

More from the series

Who gave Excel an off switch?

Learn how to enable automatic Microsoft Office updates and prevent users from disabling them with two registry settings that strengthen endpoint...

READ MORE

Adobe AI?

Learn how to disable generative AI features in Adobe Acrobat and give your organization greater control over which AI tools are approved for business...

READ MORE

What Is Configuration Drift, and Why Is It a Problem?

Learn what configuration drift is, what causes security settings to change, and why continuous validation is essential for endpoint security and...

READ MORE