Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Event 4672: special privileges assigned to a new logon

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Event 4672 is written in the Security log of a Windows computer when a new sign-in session is given one of the sensitive privileges Microsoft's page lists, and the page says many appear because every logon of the SYSTEM account triggers it. Its title is "Special privileges assigned to new logon." It is not an error, and nothing is broken when it appears. It is a note that a new sign-in session was given rights that Microsoft counts as sensitive, so the event is useful once you know which accounts it should name.

What follows explains the event, the thirteen privileges it can list and what each allows, why the volume is high, and how to decide whether a particular 4672 is expected. Nothing before the Fix section changes anything.

What the error means

Microsoft's page is titled "4672(S): Special privileges assigned to new logon." The "S" is, as general knowledge, the mark of a success event, and the page lists no failure form. The page puts it in the subcategory Audit Special Logon and describes it: "This event generates for new account logons if any of the following sensitive privileges are assigned to the new logon session". It then names the privileges and says: "You typically will see many of these events in the event log, because every logon of SYSTEM (Local System) account triggers this event."

The fields are the Subject, with its Security ID, Account Name, Account Domain and Logon ID, and a Privileges field. The page describes the Privileges field as "the list of sensitive privileges, assigned to the new logon". Its example event is for dadmin in CONTOSO, with a list that begins SeTcbPrivilege SeSecurityPrivilege SeTakeOwnershipPrivilege and runs to ten names in all.

The Logon ID is a hexadecimal value that can help correlate this event with recent events that might contain the same Logon ID, for example event 4624, "An account was successfully logged on." Event 4672 and the matching 4624 for the same sign-in share that ID.

Microsoft's page for the Audit Special Logon subcategory says the volume is "Low on a client computer. Medium on a domain controllers or network servers." That page also says "This subcategory doesn’t have Failure events, so there is no recommendation to enable Failure auditing for this subcategory." The subcategory has one other event in its list, 4964, "Special groups have been assigned to a new logon", which belongs to a feature where a list of group SIDs is set in the registry and the subcategory logs when one of them is in a token at sign-in.

The page does not say whether a 4672 is good or bad. It says to watch for accounts that are neither the well-known service principals nor administrators expected to hold the privileges.

Likely causes

A 4672 is written whenever a sign-in carries one of the privileges, so the cause is simply who signed in. The page's list of privileges and what each allows:

Privilege User right it belongs to What the page says it allows
SeTcbPrivilege Act as part of the operating system Identifies the holder as part of the trusted computer base; lets a process impersonate any user without authentication
SeSecurityPrivilege Manage auditing and security log Controls and views audit events; a holder "can also view and clear the security log"
SeTakeOwnershipPrivilege Take ownership of files or other objects Take ownership of any securable object without being granted access
SeLoadDriverPrivilege Load and unload device drivers Load or unload drivers and other code into kernel mode
SeBackupPrivilege Back up files and directories Bypass file, folder and registry permissions to read for backup
SeRestorePrivilege Restore files and directories Bypass permissions to write on restore; set any valid user or group as owner
SeDebugPrivilege Debug programs Attach a debugger to any process or to the kernel
SeSystemEnvironmentPrivilege Modify firmware environment values Modify the nonvolatile RAM that stores configuration on some systems
SeEnableDelegationPrivilege Enable computer and user accounts to be trusted for delegation Mark user and computer accounts as trusted for delegation
SeImpersonatePrivilege Impersonate a client after authentication Impersonate other accounts
SeAssignPrimaryTokenPrivilege Replace a process-level token Assign the primary token of a process
SeCreateTokenPrivilege Create a token object Create a token that gives access to any local resource
SeAuditPrivilege Generate security audits Add entries to the security log

The third column paraphrases the page, which gives longer descriptions. On two of them the page adds advice. For SeCreateTokenPrivilege it says that when a process requires it, "we recommend using the LocalSystem account (which already includes the privilege), rather than creating a separate user account and assigning this privilege to it." For SeDebugPrivilege: "We recommend that SeDebugPrivilege always be granted to Administrators, and only to Administrators."

So the causes sort into three groups, which are our own reading:

  • The system itself: SYSTEM, NETWORK SERVICE and LOCAL SERVICE sessions, which the page leaves out of its monitoring advice.
  • Administrators signing in to do administrative work.
  • A service or scheduled task running under an account that was given one of these rights, for backup, restore or driver reasons for example.

A 4672 for an account outside those groups is the one to ask about.

Prove the cause before changing anything

Everything in this section only reads.

  1. In Event Viewer on the computer that logged the event, open Windows Logs and then Security and find event ID 4672. Expect many. Filter by the account name you care about rather than reading them in order (general practice).
  2. Read the Subject, and then the Privileges list. As general advice, a list with SeDebugPrivilege, SeTcbPrivilege or SeBackupPrivilege on an account that is not an administrator needs an explanation.
  3. Find the sign-in. In the same log, look for event 4624 with the same Logon ID, as the page suggests, and read what that sign-in shows about how and where it happened (general practice).
  4. Compare the Subject with the list you hold of who is meant to be an administrator on that machine. Microsoft's page words it as: "Monitor for this event where “Subject\Security ID” is not one of these well-known security principals: LOCAL SYSTEM, NETWORK SERVICE, LOCAL SERVICE, and where “Subject\Security ID” is not an administrative account that is expected to have the listed Privileges."
  5. If you have privileges that should never be given, or only to a few accounts, search for those names in the Privileges field. The page gives SeDebugPrivilege as its example.
  6. Check the audit policy is on. The auditpol command page gives auditpol /get /category:* for all categories; it only reads, and it needs Read permission on the policy or the Manage auditing and security log right. Look for Special Logon among the results.
auditpol /get /category:*

Example (illustrative): on a file server, event 4672 appears a few hundred times a day, nearly all for SYSTEM and the two service accounts that Windows provides. On one afternoon there is a 4672 for jchan, a bookkeeper, with SeBackupPrivilege and SeRestorePrivilege in the list. The 4624 with the same Logon ID shows a Remote Desktop sign-in from her own desk. Nobody gave her a backup right on purpose, so the next question is which group put her token there, a question for whoever manages that server's user rights.

Fix

The event is not a fault, and the page gives no step that changes anything. What follows are decisions, and the page gives no command for any of them:

  • If the Subject is a well-known service principal or an administrator who should hold the rights, nothing needs to change. The volume of these events is the page's own description of normal.
  • If an ordinary user or an unexpected service account holds a sensitive privilege, find out how it got there before you remove it. Rights come from the user rights policy and from group membership; removing one is a change to the machine's security policy that deserves its own record of the current state and a way back.
  • If you need one account to keep a right, such as a backup service account with SeBackupPrivilege and SeRestorePrivilege, keep the account separate from everyday sign-ins. That is general advice.
  • If the volume itself is the problem, filter it in the tool you use to read events rather than switching the audit setting off. The setting belongs to the Audit Special Logon subcategory, and the page says to enable it for Success audit if you use the Special Groups feature.

Confirm the fix

  • You can name the accounts that should appear in a 4672 on this machine, and the 4672 events from the last week match that list.
  • The odd one has an explanation, or a change record, or a ticket.
  • Any account that was holding a right it should not have shows no new 4672 with that privilege after its rights were changed.
  • The audit setting for Special Logon is still on.

What to watch afterwards

The page's monitoring advice is the core of it:

  • A Subject that is not a well-known principal and not an administrator expected to hold the listed privileges.
  • Specific privileges that should never be assigned, or only to a few accounts. The page names SeDebugPrivilege.
  • If you are required to monitor any of the sensitive privileges in the event description, the page says to search for those specific privileges in the event.

The Appendix A page adds the general kinds of watch: high-value accounts, accounts that should never be used, an allowlist of accounts that may perform the action, and use outside working hours.

The relation to the log-clearing event matters too. The right to manage the security log is on the privilege list, and a sign-in carrying SeSecurityPrivilege is a sign-in that could clear it. Event 1102, "The audit log was cleared", is the record if it did.

Risks and limits

These steps have not been run or lab-tested. The event page sits in Microsoft's previous-versions area, is dated 2021-09-07, and its example is timestamped 2015, so the privilege names and the shape of the field in your own Event Viewer may differ. The page defines the privileges and says whom to watch but does not tell the reader how to list who holds a right, or how to remove one. The causes grouping and the decisions in the Fix section are our own reading and general advice. Going by the page, many 4672 events are expected, so as general advice a log full of them is not by itself a sign of an attack.

Sources