Filter for explicit loging

Bill Burr
Bill Burr used Ask the Experts™
on
We only have access to AD logs for an exrecise to try and tie users to physical log on events:

We have filtered on successful log in events and are finding a sea of network logins and are looking specifically for signs of when a user logged in via keyboard on workstation verses other network logon events associated to regular checkins to domain controller.   Is there a simple way to filter down for only events where the user logs in explicitly verses activity that might happen in the background that is also registering as network log on events?


Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Lead Technical Architect
Commented:
That would be login type 2 in event ID 4624 in the security logs. The various login types can be found here: https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4624 along with a lot of other detail but in summary they are:


Logon Type                      Description
2                                       Interactive (logon at keyboard and screen of system)
3                                       Network (i.e. connection to shared folder on this computer from elsewhere on network)
4                                       Batch (i.e. scheduled task)
5                                       Service (Service startup)
7                                       Unlock (i.e. unnattended workstation with password protected screen saver)
8                                       NetworkCleartext (Logon with credentials sent in the clear text. Most often indicates a logon to IIS with "basic authentication") See this article for more information.
9                                         NewCredentials such as with RunAs or mapping a network drive with alternate credentials.  This logon type does not seem to show up in any events.  If you want to track users attempting to logon
                                         with alternate credentials see 4648.  MS says "A caller cloned its current token and specified new credentials for outbound connections. The new logon session has the same local identity, but uses
                                         different credentials for other network connections."
10                                       RemoteInteractive (Terminal Services, Remote Desktop or Remote Assistance)
11                                       CachedInteractive (logon with cached domain credentials such as when logging on to a laptop when away from the network)

This is a manual query that will find them (type 2):

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">
     *[System[(EventID='4624')]
     and
     EventData[Data[@Name='LogonType']='2']
     ]
    </Select>
  </Query>
</QueryList>
Bill BurrIT Admin

Author

Commented:
Thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial