TMAegis
db2 のその他のルール

TMA-DB2-7.1.4

Ensure Audit is Enabled Within the Instance

高レベル 1自動db2

説明

Auditing is crucial for securing and discovering issues within your databases. Auditing can help trigger events for changes to data objects, table DML, and user access. 'db2audit describe' must report Audit active: "TRUE". Run as SYSADM (instance owner). Run as the instance owner (or with sqllib/db2profile sourced) so the db2 CLP reads this instance's configuration.

チェック方法

監査方法: シェルコマンド

shell
out=$(db2audit describe 2>/dev/null) || exit 1; if printf '%s\n' "$out" | grep -Eiq 'Audit active: *"TRUE'; then echo compliant; else echo noncompliant; fi
期待される出力
compliant

修正方法

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

Issue the following command to activate instance level auditing: $ db2audit start

プロパティ

オペレーティングシステム
すべて
タグ
db2databaseloggingaudit
参照
CIS IBM Db2 12.1 Benchmark v1.0.0 - 7.1.4 Ensure Audit is Enabled Within the Instance

このホストをチェック

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

shell
tmaegis scan --target db2