T-SQL calls OLE Automation or registry procedures, which act with the server's rights

tx0/sql:automation-procedurestrictwarningsecurity/authn-authzdepth fastsecurity, cwe-250

What it finds

sp_OACreate and the other OLE Automation procedures, and the registry procedures such as xp_regwrite, let T-SQL drive COM objects and the Windows registry with the server's rights, a common way from SQL injection to the operating system.

From the rule's source, automation_procedure.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:automation-procedure" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:automation-procedure shows the same in the terminal. Found a false positive? Report it.