# 4642 Logon

{% embed url="<https://www.alteredsecurity.com/post/fantastic-windows-logon-types-and-where-to-find-credentials-in-them#viewer-52u7o>" %}
Matching malicious activity to logon types
{% endembed %}

{% embed url="<https://learn.microsoft.com/en-us/windows-server/identity/securing-privileged-access/reference-tools-logon-types>" %}
Documented use case of every logon type
{% endembed %}

{% embed url="<https://medium.com/@tareq.alkhatib/its-not-you-windows-security-logs-don-t-make-sense-4e421a0bbd0>" %}
nice blog
{% endembed %}

### Logon Types Explained:

| **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.](http://www.windowsitpro.com/Articles/Print.cfm?ArticleID=45214)                                                                                                                                                                                                                                                                                              |
| 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](http://www.ultimatewindowssecurity.com/wiki/SecurityLogEventID4648.ashx).  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)                                                                                                                                                                                                                                                                                                                                                                                                                 |

### &#x20;OPSEC Considerations:

Logon failures Event ID 4625 will log usernames. If a password is put in the username field, the plaintext password can exposed via Windows Event logs.&#x20;

<figure><img src="https://3278866189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu4e057u3LTRKJEHFetwE%2Fuploads%2FXHvnH8Ssz88ktfzk8mYF%2Fimage.png?alt=media&#x26;token=bcc5915b-d315-4915-bf12-77b0a97903a9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3278866189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu4e057u3LTRKJEHFetwE%2Fuploads%2FwEQ8raS2gy4FNopIJ6g6%2Fimage.png?alt=media&#x26;token=f365c593-6a92-4ba5-a73e-b9a6f2bc99f1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3278866189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu4e057u3LTRKJEHFetwE%2Fuploads%2Fj1HcoKO8lupIwYcVPEai%2Fimage.png?alt=media&#x26;token=4eac4af8-300b-4efe-9e6c-ab16086dec76" alt=""><figcaption></figcaption></figure>
