Windows MSSQL xp_cmdshell Setting Change (EventID 15457)

Flags MSSQL xp_cmdshell setting changes using Windows application EventID 15457 events containing 'xp_cmdshell'.

FreeReviewedSigma · High · v2
Product
windows
Service
application
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-07-12
Updated
2026-07-31

What it detects

This rule identifies changes to the MSSQL xp_cmdshell stored procedure setting by matching Windows application events with EventID 15457 containing the text xp_cmdshell and a provider name that includes MSSQL. Attackers may alter this option to enable command execution through SQL Server for persistence and execution. It relies on application log telemetry that records the provider, the event ID, and event data containing xp_cmdshell.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.