Splunk Enterprise

Who added user x to a specific AD Security Group?

itsmevic70
Explorer

Hi, I'm curious if anyone has a query that can help provide some insight into something I am trying to figure out.  The issue is regarding a user that was not a member of the Admin's security group on 5/6/22 but did on 6/2/22.  For the life of me, I cannot find out who added this user to that group.  I'm using the following query, but it's not providing anything meaningful.  Any help is solving this mystery is greatly appreciated.

eventtype=wineventlog_security (EventCode=4727 OR EventCode=4730 OR EventCode=4731 OR EventCode=4734 OR EventCode=4735 OR EventCode=4737 OR EventCode=4744 OR EventCode=4745 OR EventCode=4748 OR EventCode=4749 OR EventCode=4750 OR EventCode=4753 OR EventCode=4754 OR EventCode=4755 OR EventCode=4758 OR EventCode=4759 OR EventCode=4760 OR EventCode=4763 OR EventCode=4764)
| stats count by _time,Security_ID,EventCodeDescription,member_dn
| rename member_dn as Change_Made_By

 

 

 

 

0 Karma

johnhuang
Motivator
source=WinEventLog:Security EventCode IN (4728, 4732, 4746, 4751, 4756, 4761, 4729, 4733, 4747, 4752, 4757, 4762, 4786, 4788) earliest=-7d@d
| eval changed_by=mvindex(Security_ID, 0)
| eval member_id=mvindex(Security_ID, 1)
| eval group_id=mvindex(Security_ID, 2)
| rex "A member was (?<change_type>(added|removed))"
| eval host_name=coalesce(src_nt_host, dvc_nt_host, host) 
| rename EventCode as event_code EventCodeDescription AS event_desc
| table _time host_name changed_by change_type group_id member_id event_code event_desc

richgalloway
SplunkTrust
SplunkTrust

Have you tried event code 4728 or 4732?

As I understand it, the Subject.Account_Name field contains the name of the user added to the group.  The user who made the change is in the Member.Account_Name field.  I don't see the member_dn field documented.

---
If this reply helps you, Karma would be appreciated.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...