Query Details
# 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 For Endpoint ``` AADSignInEventsBeta | summarize count() by UserAgent | sort by count_ ``` ## Sentinel ``` SigninLogs | summarize count() by UserAgent | sort by count_ ```
This query is used to count the number of sign-ins by UserAgent, which helps detect any uncommon UserAgents that may be used for malicious access to your system. The query can be modified to filter for successful or failed sign-ins. In Defender for Endpoint, the query is written as "AADSignInEventsBeta | summarize count() by UserAgent | sort by count_". In Sentinel, the query is written as "SigninLogs | summarize count() by UserAgent | sort by count_".

Bert-Jan Pals
Released: June 7, 2023
Tables
Keywords
Operators