A process enumerated local group membership of a user. CallerProcessName identifies the enumerating process.
Reconnaissance. BloodHound and PowerView generate characteristic bursts of 4798 events across many accounts rapidly during domain enumeration. High volume from a single non-SYSTEM process is the key indicator.
Alert: >20 instances from single non-SYSTEM CallerProcessName within 5 min. Alert: CallerProcessName is PowerShell, cmd, or network tools. BloodHound signature: rapid enumeration across many accounts and machines.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Discovery | Permission Groups Discovery: Local Groups (T1069.001) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Bulk Local Group Membership Enumeration
status: experimental
description: Rapid local group enumeration typical of BloodHound or PowerView
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: security
detection:
selection:
EventID: 4798
filter_system:
CallerProcessName|startswith: 'C:\\Windows\\System32\\'
condition: selection and not filter_system | count() by CallerProcessName > 20
falsepositives:
- Legitimate admin scripts
- IT asset management tools
level: medium
tags:
- attack.discovery
- attack.t1069.001
SecurityEvent
| where EventID == 4798 // A user's local group membership was enumerated
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4798
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A user's local group membership was enumerated — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A user's local group membership was enumerated. A process enumerated local group membership of a user. CallerProcessName identifies the enumerating process.
Event 4798 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Account Management' subcategory (Success and/or Failure).
Event 4798 is associated with: Permission Groups Discovery: Local Groups (T1069.001).
Alert: >20 instances from single non-SYSTEM CallerProcessName within 5 min. Alert: CallerProcessName is PowerShell, cmd, or network tools. BloodHound signature: rapid enumeration across many accounts and machines.