Can't find logged in users from Endpoint Asset View

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Can't find logged in users from Endpoint Asset View

L1 Bithead

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

1 accepted solution

Accepted Solutions

L5 Sessionator

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.

View solution in original post

1 REPLY 1

L5 Sessionator

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.

  • 1 accepted solution
  • 719 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!