TMAegis
Weitere Regeln für mssql

Microsoft SQL Server

TMA-MSSQL2022-2.9

Ensure 'Trustworthy' Database Property is set to 'Off'

HochStufe 1Automatisiertmssql

Beschreibung

The TRUSTWORTHY database option allows database objects to access objects in other databases under certain circumstances. Provides protection from malicious CLR assemblies or extended procedures.

So wird geprüft

Prüfmethode: SQL-Abfrage

sql_query
sqlcmd -b -h -1 -W -Q "SET NOCOUNT ON; SELECT COUNT(*) FROM sys.databases WHERE is_trustworthy_on = 1 AND name <> 'msdb';"
Erwartete Ausgabe
0

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

Execute the following T-SQL statement against the databases (replace <database_name> below) returned by the Audit Procedure: ALTER DATABASE [<database_name>] SET TRUSTWORTHY OFF;

Eigenschaften

Betriebssysteme
Beliebig
Tags
mssqlsqlserver-2022
Referenz
CIS Microsoft SQL Server 2022 Benchmark v1.3.0 - 2.9 Ensure 'Trustworthy' Database Property is set to 'Off'

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target mssql