Audit Policy Inspectors

Hello

I was wondering if one could leverage the audit policy inspectors to track user logon logoff activity. I found this on the github site

Does anyone have a example of their use? Are they expensive from a client resource perspective?

These inspectors focus on retrieving the audit policy, not the audited events.

They can’t retrieve “the last time user X logged on”, rather they retrieve “whether logon events will appear in the Event Log”.

To retrieve the audited events themselves, one would have to use the Event Log inspectors - which are indeed very slow and error-prone as the expected events may roll off the event log and be overwritten/truncated, and event log searches are inherently slow.

A better approach is to use BigFix to ensure the correct audit policies are in place, and to use a SIEM tool such as Splunk to aggregate, search, and report on the log entries themselves.

If you MUST use BigFix… you might like these Analyses (use at your own risk):

Local Accounts - Last Logon:
(name of it & " ! " & (last logon of it as string | “No Login”) & " ! " & (account disabled flag of it as string)) of users

Last Logged on - Windows:
(sid (it) as string | it ) of (string values whose (set of (“S-1-5-20”;“S-1-5-19”;“S-1-5-18”) does not contain it) of properties “sid” of items 0 of (it whose (preceding text of first “.” of string value of property “LastUseTime” of item 0 of it as integer = item 1 of it) of (select objects “* from Win32_UserProfile” of wmi, it) of (maximum of (preceding text of first “.” of string value of property “LastUseTime” of it as integer) of select objects “* from Win32_UserProfile” of wmi)))

Last Logon Time - Windows:
(sid (string value of property “sid” of it) as string | string value of property “sid” of it, time value of property “LastUseTime” of it) of (select objects “* from Win32_UserProfile” of wmi) whose (set of (“S-1-5-20”;“S-1-5-19”;“S-1-5-18”) does not contain string value of property “sid” of it)

Thank you very much. I did push back using the Splunk idea waiting to hear back.