Pcornel
Security · Windows Security

UAC

Cheat sheet · https://pcornel.dk/topic.php?topic=4550

Back to the Topic

Answer

User Account Control (UAC) makes administrators run with a standard-user token until they explicitly approve elevation. It stops programs from silently getting admin rights, but Microsoft does not treat it as a security boundary against an admin who is already compromised.

Remember

  • UAC prompt ≠ administrator authentication in every configuration.
  • UAC ≠ sandbox or boundary against a local administrator.
  • Configured or assigned policy ≠ resultant policy and effective runtime state.
  • Feature healthy ≠ protected workload or absence of compromise.

First checks

  • Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System | fl EnableLUA,ConsentPromptBehaviorAdmin,FilterAdministratorToken — UAC settings
  • whoami /groups | findstr /i "Mandatory" — integrity level
  • Local admin membership — users who can elevate

Verify in this order

process → filtered token → elevation prompt → full token

Where it usually breaks

First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.

Windows Security → UAC proof map

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4550

Confirmation

Confirm action

Continue?