Splunk · READ-ONLY / EVENT SEARCH · v1.0.0
Find AD group member additions in Splunk
Filter Windows Security event 4728 to watched global security groups using a lookup keyed by group SID.
Lab validation pending
Verify the query with known events in an authorized Splunk lab. Nothing runs in this browser.
What you’ll need
- Splunk search access to Windows Security events. Confirm sourcetype and XML field extraction in your deployment.
- Read access to an approved lookup: one row per exact group SID and a nonempty label.
Set up the lookup
Replace the fictional index and CSV lookup filename in the search. Start with the example lookup schema below, then paste the complete SPL into your authorized Splunk Search view.
group_sid,watch_label
S-1-5-21-10-20-30-1201,Example review groupRead the results
| Field | Meaning |
|---|---|
_time / host | Splunk event time and reporting host. |
group_sid / watch_label | The group SID and label from your lookup. |
TargetUserName | Group name in the event. |
MemberSid / SubjectUserName | Added principal SID and actor name, when extracted. |
- This query covers event 4728 only: additions to security-enabled global groups.
- Confirm the field mapping on a known lab event. A zero-result search does not prove there were no changes.
- The query does not change the index, lookup, or directory. Keep lookup data and results in your authorized Splunk environment.
Keep the output in an authorized, access-controlled location.
Complete source
The display, clipboard copy, download and GitHub link refer to the same pinned source.
Find-SwpADGroupMemberAdditions.splSPL / READ ONLY
index=example_windows_security sourcetype="XmlWinEventLog:Security" EventCode=4728 earliest=-24h latest=now
| rename TargetSid AS group_sid
| where isnotnull(group_sid)
| lookup example_ad_group_watchlist.csv group_sid OUTPUT watch_label
| where isnotnull(watch_label) AND len(watch_label)>0
| table _time host group_sid watch_label TargetUserName MemberSid SubjectUserName