SQL Server runs or enables operating system commands through xp_cmdshell
What it finds
EXEC xp_cmdshell ... runs an operating system command with the rights of the SQL Server service, and sp_configure 'xp_cmdshell', 1 turns that on for the whole server. A command built from data is OS command injection; even a fixed one gives anyone who can change the procedure a shell.
From the rule's source, shell_command_procedure.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/sql:shell-command-procedure" = "error"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:shell-command-procedure shows the same in the terminal. Found a false positive? Report it.