Defender-DeviceLogonEvents
4 ActionTypes
| ActionType | Title |
|---|---|
| any | Logon activity (any) |
| LogonSuccess | Logon succeeded |
| LogonFailed | Logon failed |
| LogonAttempted | Logon attempted (no result yet) |
any: Logon activity (any)
#Description
Logon activity (any)
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
ActionType | |
LogonType | Logon type code (2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials, 10=RemoteInteractive, 11=CachedInteractive). |
AccountName | |
AccountDomain | |
AccountSid | |
RemoteIP | |
RemotePort | |
IsLocalAdmin | |
InitiatingProcessFileName | |
FailureReason |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
Protocol | eq | NTLM | 1 rule | kusto |
user | ends_with | $ | 1 rule | elastic, kusto |
Detection Rules #
View all rules referencing this event →Kusto #
If NTLM Relaying is done towards a Linux machine, this query won't detect that. The attacker must have access to a Linux device in that case though.
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicelogonevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicelogonevents/
LogonSuccess: Logon succeeded
#Description
Logon succeeded
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
LogonType | Logon type code (2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials, 10=RemoteInteractive, 11=CachedInteractive). |
AccountName | |
AccountDomain | |
RemoteIP | |
RemotePort | |
IsLocalAdmin |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
EventType | eq | LogonSuccess | 3 rules | kusto |
EventType | eq | PowerShellCommand | 1 rule | kusto |
LogonType | eq | Network | 2 rules | elastic, kusto, sigma, splunk |
RemoteIPType | ne | Loopback | 2 rules | kusto |
DestinationPort | in | 445 | 1 rule | elastic, kusto |
DestinationPort | in | 80 | 1 rule | elastic, kusto, splunk |
Protocol | eq | NTLM | 1 rule | kusto |
TargetDomainName | in | PUT YOUR AD DOMAINS HERE! | 1 rule | kusto |
TargetDomainName | in | contoso | 1 rule | kusto |
TargetDomainName | in | contoso.local | 1 rule | kusto |
parent_process_name | eq | wsmprovhost.exe | 1 rule | elastic, kusto, splunk |
subnet | is_null | | 1 rule | kusto |
Detection Rules #
View all rules referencing this event →Kusto #
Show 2 more (5 total)
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicelogonevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicelogonevents/
LogonFailed: Logon failed
#Description
Logon failed
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
LogonType | Logon type code (2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials, 10=RemoteInteractive, 11=CachedInteractive). |
AccountName | |
AccountDomain | |
RemoteIP | |
FailureReason |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
RemoteIPType | ne | Loopback | 1 rule | kusto |
Detection Rules #
View all rules referencing this event →Kusto #
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicelogonevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicelogonevents/
LogonAttempted: Logon attempted (no result yet)
#Description
Logon attempted (no result yet)
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
LogonType | Logon type code (2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials, 10=RemoteInteractive, 11=CachedInteractive). |
AccountName | |
RemoteIP |
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicelogonevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicelogonevents/