MSSQL XPCmdshell Suspicious Execution
Detects when the MSSQL "xp_cmdshell" stored procedure is used to execute commands
Detection logic
Detection requirements
- Log source product
- windows
- Log source service
- application
Known benign triggers
- Unknown
MITRE ATT&CK mappings
Not mapped to ATT&CK.
References
| Reference | Cited by |
|---|---|
| thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/ | 10from 3 sources |
| www.netspi.com/blog/technical/network-penetration-testing/sql-server-persistence-part-1-startup-stored-procedures/ | 6from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- 7f103213-a04e-4d59-8261-213dddf22314
- Tagged by the source as
- attack.execution
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Published
- Aug 26, 2026
- Version
- 1