Skip to content

Ensure 'scan for startup procs' Server Configuration Option is set to '0'

Description

The scan for startup procs option, if enabled, causes SQL Server to scan for and automatically run all stored procedures that are set to execute upon service startup.

Rationale

Enforcing this control reduces the threat of an entity leveraging these facilities for malicious purposes.

Applies To

  • Databases

Tags

This rule is applied when the following tags are present:

Tag With Value
secureclouddb/provider aws
secureclouddb/service rds
secureclouddb/engine sqlserver

Default Rule

const { checkServerSetting } = module
/**
 * @param {Object} databaseSettings - database settings object
 * @returns {boolean} true if 'scan for startup procs' is set to 0
 */
function validate(databaseSettings) {
    const success = checkServerSetting(databaseSettings, 'scan for startup procs', "0")

    return {
        success,
    }
}

validate(databaseSettings)