← Back to Explore
kqlHunting
Sign Ins by UserAgent
This query can be used to detect rare UserAgents that are used to sign into your tenant. Those rare UserAgents can be used for malicious acces into your tenant.
Detection Query
AADSignInEventsBeta
| summarize count() by UserAgent
| sort by count_Data Sources
AADSignInEventsBeta
Platforms
azure-adazure-sentinelmicrosoft-defender
Tags
azure-active-directory
Raw Content
# Sign Ins by UserAgent
## Query Information
#### Description
This query can be used to detect rare UserAgents that are used to sign into your tenant. Those rare UserAgents can be used for malicious acces into your tenant.
The query can be extended by filtering on succesful and failed sign ins.
## Defender XDR
```KQL
AADSignInEventsBeta
| summarize count() by UserAgent
| sort by count_
```
## Sentinel
```KQL
SigninLogs
| summarize count() by UserAgent
| sort by count_
```