TMAegisベータ
mssql のその他のルール

Microsoft SQL Server

TMA-MSSQL2022-2.9

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

高レベル 1自動mssql

説明

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.

チェック方法

監査方法: SQL クエリ

sql_query
sqlcmd -b -h -1 -W -Q "SET NOCOUNT ON; SELECT COUNT(*) FROM sys.databases WHERE is_trustworthy_on = 1 AND name <> 'msdb';"
期待される出力
0

修正方法

修正方法: ガイダンスまたは IaC パッチ

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;

プロパティ

オペレーティングシステム
すべて
タグ
mssqlsqlserver-2022
参照
CIS Microsoft SQL Server 2022 Benchmark v1.3.0 - 2.9 Ensure 'Trustworthy' Database Property is set to 'Off'

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target mssql