MSSQL SPProcoption Set
Detects when the a stored procedure is set or cleared for automatic execution in MSSQL. A stored procedure that is set to automatic execution runs every time an instance of SQL Server is started
Detection logic
Detection requirements
- Log source product
- windows
- Log source service
- application
Known benign triggers
- Legitimate use of the feature by administrators (rare)
MITRE ATT&CK mappings
Not mapped to ATT&CK.
References
| Reference | Cited by |
|---|---|
| learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-procoption-transact-sql?view=sql-server-ver16 | Only this detection cites it |
| 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
- b3d57a5c-c92e-4b48-9a79-5f124b7cf964
- Tagged by the source as
- attack.persistence
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Published
- Aug 26, 2026
- Version
- 1