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

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

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