Splunk Search

Search limiting to objects in an AD Group

dennislevine
New Member

I need to create a search that determines if an admin users password is changed. The current search pulls the domain admins group and checks for windows event codes designating if a password is changed. However it's telling us if an admin changes someone else's password and not if an admin's password is changed only.

How do I create a search to limit the search to only admins and only if THEIR password is changed?

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

probably you could check it with CIM data models? Just deploy it to your system and ensure that your data collection is CIM compliant. Then you probably could use Change DM https://docs.splunk.com/Documentation/CIM/5.1.1/User/Change ?

r. Ismo

0 Karma

yuanliu
SplunkTrust
SplunkTrust

Splunk is just a tool.  You need to show your data (anonymize as necessary) including the makeup of the lookup, and explain what logic do YOU use to tell when an admin changed their own password based on that set of data.

0 Karma

dennislevine
New Member

This is my current search query:
index=wineventlog EventCode=4724 OR EventCode=4723 ([| inputlookup AD_Obj_User WHERE domain="mydomain" AND [| inputlookup AD_Obj_Group WHERE dn="cn=domain admins,cn=users,dc="mydomain",dc=com" | fields member | rename member as dn | table dn | format]
| fields sAMAccountName
| stats values(sAMAccountName) AS search
| table search
| format])
| fields _time,host,src_user, user, sourcetype, EventCode, signature, _raw
| stats count AS Total_Events,max(_time) as Last_Time BY EventCode, signature, src_user, user
| search ([| inputlookup AD_Obj_User WHERE domain="mydomain" AND [| inputlookup AD_Obj_Group WHERE dn="cn=domain admins,cn=users,dc="mydomain",dc=com" | fields member | rename member as dn | table dn | format]
| fields sAMAccountName
| stats values(sAMAccountName) AS user
| table user
| format])
| eval Last_Time=strftime(Last_Time, "%m/%d/%y %I:%M:%S %P")

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...