MSSQL sp_procoption Startup Execution Set/Clear via Application Log EventID 33205

Alerts on MSSQL sp_procoption being set or cleared for automatic startup execution via EXEC (EventID 33205).

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

What it detects

This rule identifies MSSQL changes to stored procedure startup execution by matching application log events for sp_procoption statements executed with the EXEC keyword. Setting a procedure to automatic execution causes it to run on SQL Server startup, which can provide persistence for malicious code. It relies on Windows application log telemetry with MSSQL provider naming and EventID 33205 that includes object_name:sp_procoption and statement:EXEC.

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.