Skip to main content
CUI

Documentation - V-271302

V-271302

Microsoft SQL Server 2022 Instance Security Technical Implementation Guide

CAT II

Title

Access to xp_cmdshell must be disabled unless specifically required and approved.

Description

<VulnDiscussion>Information systems are capable of providing a wide variety of functions and services. Some of the default functions and services may not be necessary to support essential organizational operations (e.g., key missions, functions). It is detrimental for applications to provide, or install by default, functionality exceeding requirements or mission objectives. Applications must adhere to the principles of least functionality by providing only essential capabilities. SQL Se...

Fix Text (Documentation Requirement)

Disable use of or remove any external application executable object definitions that are not approved. To disable the use of xp_cmdshell, from the query prompt: EXEC SP_CONFIGURE 'show advanced options', 1; RECONFIGURE WITH OVERRIDE; EXEC SP_CONFIGURE 'xp_cmdshell', 0; RECONFIGURE WITH OVERRIDE; EXEC SP_CONFIGURE 'show advanced options', 0; RECONFIGURE WITH OVERRIDE;

Documentation Status

Cancel
CUI