The behavior you're observing happens because:
- Kerberos tickets are cached locally (in memory) on the client and are valid until they expire, regardless of whether the account still exists in AD.
- If the ticket is still valid, it can be used for authentication and SSO-based elevation (e.g., for
runas
, scheduled tasks, services, etc.). - In certain configurations, cached credentials (for offline login) may also allow a deleted user to appear functional temporarily, but Kerberos is the main culprit for continued privilege.
Check these domain-wide Kerberos policy settings (via GPO or Default Domain Policy
):
- Maximum lifetime for user ticket (TGT):
Default:
10 hours
- Maximum lifetime for service ticket:
Default:
600 minutes (10 hours)
- Maximum tolerance for computer clock synchronization:
Default:
5 minutes
So even after deleting the user from AD:
- If the Ticket-Granting Ticket (TGT) is still valid, it can be reused until expiration.
- The client doesn't revalidate the account's AD status unless a new TGT is requested (e.g., after logoff/logon or ticket purge).
To confirm, run the following on the computer where you're seeing this issue:
klist
You'll likely see:
- A valid TGT (krbtgt/DOMAIN)
- A ticket for the local admin task (e.g.,
cifs/machine
,host/machine
)
To remediate, you would need to purge Kerberos tickets immediately by running (on the target computer)
klist purge
This clears the Kerberos ticket cache from memory, forcing a reauthentication — which will now fail if the account is deleted.
You could also consider setting shorter ticket lifetimes (note this will not prevent the behavior you're seeing - but lower its potential impact)
In GPO:
Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Kerberos Policy
Recommendations for tighter security:
- Maximum lifetime for user ticket (TGT): 4 hours or less
- Maximum lifetime for service ticket: 2 hours
- Enforce user logoff after logon hours expire: Enabled
Lower values reduce exposure if a privileged account is deleted or compromised.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin