- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
06-13-2023 02:49 AM
Hello all,
I find it strange that I cannot easily check the connected or previously logged in users on an endpoint. For example on Asset View or from Endpoints view I cannot see that.
There is the possibility to see it only on an incident I guess. But only then.
Do I miss something?
Thanks
06-13-2023 04:23 AM
Hi @Panagiss ,
users are shown in the endpoint administration view under the "User" column only if there is a user who is logged in to the endpoint. We do not have a view for last logged in user directly. However, you can leverage endpoint scripts to show you the list of users who were last logged in and also for current users using the "net user" commands. Example below:
net user username /<domain>| findstr “Last”
If you need to find the history of last successful logins from users, you can also leverage the same or in form of an XQL query as below:
dataset = xdr_data
| alter subjectuser = json_extract(action_evtlog_data_fields ,"$.TargetUserName")
| alter logonmethod =json_extract(action_evtlog_data_fields ,"$.AuthenticationPackageName")
| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id in (4624, 4625, 4634) and action_evtlog_description = "An account was successfully logged on."
| dedup agent_hostname , subjectuser
| fields agent_hostname , agent_ip_addresses , agent_version, subjectuser ,logonmethod , action_evtlog_description , action_evtlog_data_fields
Hope this helps!
Please mark the response as "Accept as Solution" if it answers your query.
06-13-2023 04:23 AM
Hi @Panagiss ,
users are shown in the endpoint administration view under the "User" column only if there is a user who is logged in to the endpoint. We do not have a view for last logged in user directly. However, you can leverage endpoint scripts to show you the list of users who were last logged in and also for current users using the "net user" commands. Example below:
net user username /<domain>| findstr “Last”
If you need to find the history of last successful logins from users, you can also leverage the same or in form of an XQL query as below:
dataset = xdr_data
| alter subjectuser = json_extract(action_evtlog_data_fields ,"$.TargetUserName")
| alter logonmethod =json_extract(action_evtlog_data_fields ,"$.AuthenticationPackageName")
| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id in (4624, 4625, 4634) and action_evtlog_description = "An account was successfully logged on."
| dedup agent_hostname , subjectuser
| fields agent_hostname , agent_ip_addresses , agent_version, subjectuser ,logonmethod , action_evtlog_description , action_evtlog_data_fields
Hope this helps!
Please mark the response as "Accept as Solution" if it answers your query.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!