MSSQL XPCmdshell Suspicious Execution

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects instances when the MSSQL "xp_cmdshell" stored procedure is used to execute commands.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "sa_sql_operation" AND (OBJECTNAME contains "xp_cmdshell" AND STATEMENT contains "EXEC") select Action1.USERNAME,Action1.MESSAGE,Action1.DOMAIN,Action1.HOSTNAME,Action1.STATEMENT,Action1.OBJECTNAME,Action1.SCHEMANAME,Action1.DATABASENAME,Action1.INSTANCENAME

Detection

Execution Mode

Realtime

Log Sources

SQL Server

Author

Nasreddine Bencherchali (Nextron Systems)