Query Details
## Rule : Web shell Detection on exchange servers with ASR ### Description This query detects events where a web shell on a server has been audited by the Advanced Security Audit Policy (ASR). Web shells are malicious scripts that enable remote administration on web servers, often used by attackers for persistent access and to execute arbitrary commands. - [Microsoft documentation on ASR](https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/advanced-security-audit-policy-settings) ### Detection Logic Monitors `DeviceEvents` for occurrences where the `ActionType` is `'AsrWebShellOnServerAudited'`. ### Tags - ASR - Web Shell - Server Security - Auditing ### Search Query ```kql DeviceEvents | where ActionType == 'AsrWebShellOnServerAudited' ```
This query is designed to detect web shells on Exchange servers by leveraging the Advanced Security Audit Policy (ASR).
ActionType is 'AsrWebShellOnServerAudited'.Web shells are malicious scripts used by attackers to gain persistent access and execute commands on web servers. Detecting these can help in identifying and mitigating potential security breaches.
DeviceEvents
| where ActionType == 'AsrWebShellOnServerAudited'
ActionType is 'AsrWebShellOnServerAudited'.This query helps in identifying potential security threats by detecting web shells on Exchange servers using ASR auditing.

Ali Hussein
Released: July 18, 2024
Tables
Keywords
Operators