A SQL Server database is marked TRUSTWORTHY, which lets its code act on the whole server
What it finds
ALTER DATABASE ... SET TRUSTWORTHY ON lets code in the database act with rights on the whole server, so anyone who owns the database or can create code in it can take over the server. Module signing grants what code needs instead.
From the rule's source, trustworthy_database.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:trustworthy-database" = "error"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:trustworthy-database shows the same in the terminal. Found a false positive? Report it.