1. Resources
  2. Detection sources
  3. Event ID 4964

Event ID 4964: Special groups have been assigned to a new logon

Written when an account that belongs to a group listed in the SpecialGroups registry value logs on: the account, its new session and the listed groups in its token. Nothing is written until you set the list on the computer.

Log source
Windows Security log
Detection value
Context
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Special Logon (Logon/Logoff, Success)
Logged on
All Windows computers
Event versions
0
Detects
Not read by our detection rules yet

When it is written

Special Groups is an auditing feature of Windows: you list group SIDs in the SpecialGroups registry value, and when a logon creates a token that contains any of them, Windows writes 4964 on the computer where the logon happened, next to the logon's 4624. The event names the account that logged on, its Logon ID and Logon GUID, and in Special Groups Assigned the listed groups it belongs to. Microsoft's purpose for it is to list critical groups (Domain Admins, Enterprise Admins, groups of service accounts) and get an event every time one of their members logs on to a computer.

The list is read on each computer: a computer whose registry has no SpecialGroups value never writes the event, so the value has to reach every computer you want to watch. The Special Logon subcategory must audit Success. Only a success form of the event exists.

How to turn it on

Advanced audit policy subcategory Audit Special Logon, Success. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Logon/Logoff > Audit Special Logon
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccessMicrosoft's general and stronger baselines both recommend Success auditing. Microsoft calls the subcategory very important because of Special Groups, which needs Success auditing to work, and notes that it also tracks logon sessions that receive sensitive privileges. It has no failure events, so there is no Failure recommendation.
Member serversSuccessMicrosoft's general and stronger baselines both recommend Success auditing. Microsoft calls the subcategory very important because of Special Groups, which needs Success auditing to work, and notes that it also tracks logon sessions that receive sensitive privileges. It has no failure events, so there is no Failure recommendation.
WorkstationsSuccessMicrosoft's general and stronger baselines both recommend Success auditing. Microsoft calls the subcategory very important because of Special Groups, which needs Success auditing to work, and notes that it also tracks logon sessions that receive sensitive privileges. It has no failure events, so there is no Failure recommendation.
Check the current setting
auditpol /get /subcategory:"Special Logon"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Special Logon" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE921B-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Besides the subcategory, the event needs the list of groups in the registry of each computer that should watch for them:

  • Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Audit, string value (REG_SZ) named SpecialGroups.
  • Data: the group SIDs separated by semicolons, for example S-1-5-32-544;S-1-5-21-1004336348-1177238915-682003330-512 (the local Administrators group and a domain's Domain Admins).

Check the current value with reg query "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Audit" /v SpecialGroups. Microsoft's Directory Services team describes deploying the value to many computers with a Group Policy Preferences registry item (Computer Configuration > Preferences > Windows Settings > Registry, action Update). Windows records the current list in event 4908 (Special Groups Logon table modified) whenever the list changes and at startup, whatever the audit policy.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID of the account that requested the logon of the new account (Subject, Security ID). Event Viewer resolves SIDs to names.v0
Account NameSubjectUserNameSubjectName of that account. For a logon requested by the local system it is the computer account, ending with $.v0
Account DomainSubjectDomainNameSubjectDomain or computer name of the subject, as a NetBIOS or DNS name in either case; NT AUTHORITY for some well-known principals.v0
Logon IDSubjectLogonIdSubjectLogon ID of the subject's own session, in hexadecimal (0x3e7 is the local system).v0
Logon GUIDLogonGuidSubjectLogon GUID shown under Subject. All zeros when it was not captured, as in Microsoft's example.v0
Security IDTargetUserSidNew LogonSID of the account that logged on (New Logon, Security ID), the member of a listed group.v0
Account NameTargetUserNameNew LogonName of the account that logged on. This, not the subject, is the account the event is about.v0
Account DomainTargetDomainNameNew LogonDomain of that account as a NetBIOS or DNS name in either case, or the computer's name for a local account.v0
Logon IDTargetLogonIdNew LogonLogon ID of the new session, in hexadecimal. The 4624 of the same logon on this computer carries the same value as its TargetLogonId, with the logon type and the source.v0
Logon GUIDTargetLogonGuidNew LogonLogon GUID of the new logon. Microsoft describes it as the value to match with 4769 on the domain controller and with 4624 and 4648 on this computer. All zeros when not captured.v0
Special Groups AssignedSidListNew LogonListed groups the account is a member of (Special Groups Assigned): only SIDs from the SpecialGroups list, not every group of the account. Microsoft's example shows one SID written as %{S-1-5-21-...-512}; how several are separated is not shown.v0

Values to know

Special Groups Assigned SidList

ValueMeaningSignal
Domain SID followed by -512Domain AdminsEvery logon of a domain administrator on a computer that has the list.Worth knowing
Forest root domain SID followed by -519Enterprise AdminsWorth knowing
S-1-5-32-544BUILTIN\AdministratorsThe computer's local Administrators group. On a domain controller it is the domain's Administrators group.Worth knowing

Account Name TargetUserName

ValueMeaningSignal
An administrator on an administrative workstation or serverAn expected logon of a watched accountExpected
An administrator on an ordinary workstation or serverA privileged account used outside its usual hostsMicrosoft's own example of what to monitor. Check how the logon happened (logon type and source in the matching 4624) and whether the administrator expected it.Attack signal

Volume and noise

The volume depends only on the list. Each logon of a member of a listed group adds one event, wherever the list is set: with administrative groups on it, that is every sign-in and network logon of an administrator, and of any service or scheduled task running as one, on every computer that has the value. Microsoft recommends monitoring every 4964, since the point of the feature is that each one is a logon of an account you chose to watch.

Keeping it manageable

  • List only groups whose every logon you want to see: Domain Admins, Enterprise Admins, Schema Admins, the local Administrators group and your other Tier 0 groups. A broad group turns the event into a copy of 4624.
  • Set the value on workstations and member servers as well as domain controllers: Microsoft's own example, a domain administrator logging on to a non-administrative workstation, is only seen on that workstation.
  • Alert on where the logon happened: compare the computer with the administrative hosts where these accounts are expected.
  • Collect event 4908 too: Windows writes it whenever the list changes, so a group removed from the list (which silences this event for it) leaves a trace.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4964</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>12548</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>WS042.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="SubjectUserSid">S-1-5-18</Data>
    <Data Name="SubjectUserName">WS042$</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x3e7</Data>
    <Data Name="LogonGuid">{00000000-0000-0000-0000-000000000000}</Data>
    <Data Name="TargetUserSid">S-1-5-21-1004336348-1177238915-682003330-1108</Data>
    <Data Name="TargetUserName">adm-alice</Data>
    <Data Name="TargetDomainName">CORP</Data>
    <Data Name="TargetLogonId">0x5d3e1a2</Data>
    <Data Name="TargetLogonGuid">{8e41c7a2-0f3b-4d65-b1e8-3c7a95d20f64}</Data>
    <Data Name="SidList">%{S-1-5-21-1004336348-1177238915-682003330-512}</Data>
  </EventData>
</Event>

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

How do I turn on event 4964?

Enable Success auditing for Audit Special Logon, then create the string value SpecialGroups under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Audit with the SIDs of the groups to watch, separated by semicolons. The value is per computer, so deploy it to every computer you want to watch, for example with a Group Policy Preferences registry item.

Why do I see no 4964 events?

Usually because the SpecialGroups value is not set on that computer: without it Windows has no groups to look for. Also check that Audit Special Logon audits Success, and that the SIDs in the list are the groups' SIDs, not their names. Event 4908 at startup shows the list a computer is using.

What should I monitor with event 4964?

Microsoft recommends monitoring every one, because each is a logon of a member of a group you chose to watch. Its example is a domain administrator logging on to a non-administrative workstation. Compare the computer in each event with the hosts where those accounts are expected to log on.

References