Event ID 4798 and 4799: local group membership enumerated

Event ID 4798, "A user's local group membership was enumerated", and 4799, "A security-enabled local group membership was enumerated", are written to the Security log when a process reads which local groups a user belongs to, or which members a local group such as Administrators has, naming the account and the process that asked.

Security logAccounts and groupsChecked 2 December 2026

What events 4798 and 4799 record

Attackers almost always check what they have: who is an administrator, which accounts exist, which groups the stolen account is in. On Windows 10, Windows 11 and Windows Server 2016 and later, reading local group membership is logged: 4798 when a user's local groups are listed, 4799 when a local group's members are listed. Both name the account that asked (Subject), the user or group that was read, and, most usefully, the process that did it.

Both belong to subcategories that log successes by default, so they are usually present. That is also the problem: Windows reads group membership all the time for its own purposes.

Separating reconnaissance from noise

In our Halden Freight lab case each workstation logged 12 to 17 events 4798 and 76 to 81 events 4799 in a few hours, almost all from Windows components. The caller process is what separates them:

Caller processUsually
lsass.exe, LogonUI.exeLogon processing; routine
svchost.exe, taskhostw.exe, SearchIndexer.exeWindows services and scheduled maintenance
VSSVC.exeVolume Shadow Copy service checking backup groups
CompatTelRunner.exe, DeviceCensus.exeWindows telemetry and compatibility checks
RuntimeBroker.exe, explorer.exeThe signed-in user's own session components
Software installers and updatersInstallation checks
net.exe, net1.exeA person or script running net user or net localgroup
powershell.exe, cmd.exe, wmic.exeInteractive or scripted enumeration
Unknown binaries in user-writable foldersReconnaissance tools

Filter out the routine callers and what remains is short enough to read in full.

Event 4798 fields

The fields an investigator reads first, what they mean, and where Arcsentry stores them.

FieldMeaningArcsentry field
Subject: Account Name, Account Domain, Logon IDThe account whose process read the membership.user_name, user_domain, event_log_logon_id
User (4798) or Group (4799)The user whose groups, or the group whose members, were read.user_target_name, user_target_domain
Security ID of the user or groupFor example S-1-5-32-544 for the local Administrators group.$targetsid
Process Information: Process ID, Process NameThe program that asked.$callerprocessid, $callerprocessname

What event 4798 proves, and what it does not

It shows

  • That this process, under this account, read this user's groups or this group's members at this time.

It does not show

  • What the person did with the answer.
  • Domain group enumeration, which is not recorded on the workstation; domain controllers record directory reads only with directory service auditing.

Attacker activity it reveals

Local administrator discovery

net localgroup administrators right after logging on, to learn whether the stolen account is an administrator and who else is. MITRE ATT&CK T1069.001

Account discovery

net user and net user <name> to list accounts and their groups before choosing one to use or create. MITRE ATT&CK T1087.001

Automated reconnaissance

Bursts of 4798 and 4799 from one unfamiliar process, as tools enumerate every account and group at once.

In a real investigation: Halden Freight office intrusion

On HF-WS02, at 22:12:14 UTC, a 4799 recorded C:\Windows\System32\net1.exe, running as m.lund, reading the members of Builtin\Administrators (S-1-5-32-544). It came seconds after the attacker arrived over Remote Desktop and ran whoami /all (PowerShell 4104 at 22:12:05). On HF-WS01 the same pattern appears at 22:07:40, again from net1.exe, after the attacker took over a.berg's session. Among roughly 80 enumerations per host from Windows components, these were the only ones from net1.exe in the attack window.

Finding event 4798 in Arcsentry

Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:

filter event_code in ("4798", "4799")
derive {proc = $callerprocessname}
filter !(proc ~= "(?i)\\\\(lsass|logonui|svchost|taskhostw|searchindexer|vssvc|compattelrunner|devicecensus|runtimebroker|explorer)\\.exe$")
select {timestamp, event_code, user_name, user_target_name, proc}
sort {timestamp}

Group and account enumeration by anything other than the routine Windows callers. On the Halden hosts this leaves the attacker's net1.exe call and a few checks by Windows setup and the Edge installer, which are easy to rule out by their time and path.

Or ask in plain English, for example "show event 4798 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.

Related event IDs

All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.

Frequently asked

What does event ID 4798 mean?

A process listed the local groups a user belongs to. The event names the account that asked, the user whose groups were read, and the process.

What does event ID 4799 mean?

A process listed the members of a security-enabled local group, such as Administrators. It names the account, the group and the process; net1.exe as the process usually means someone ran net localgroup.

Why are there so many 4799 events?

Windows components such as LSASS, the Volume Shadow Copy service, scheduled tasks and the search indexer read group membership routinely. Filter out those caller processes and look at what remains.

Sources

  • Microsoft Learn: 4798(S) A user's local group membership was enumerated; 4799(S) A security-enabled local group membership was enumerated
  • MITRE ATT&CK: T1087.001 Local Account; T1069.001 Local Groups
  • Venema Labs lab case: Halden Freight office intrusion, HF-WS01 and HF-WS02 Security logs

Checked 2 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.

Find event 4798 across every host in minutes.

Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.

Request a trial