TMAegis
db2 のその他のルール

TMA-DB2-DISCOVER

Ensure DISCOVER is set to DISABLE

低レベル 2自動db2

説明

DISCOVER=SEARCH lets the instance answer network discovery requests, advertising instances and databases to anyone on the network. Run as the instance owner (or with sqllib/db2profile sourced) so 'db2 get dbm cfg' reads the instance configuration.

チェック方法

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

shell
out=$(db2 get dbm cfg 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk -F= '/\(DISCOVER\)/ {v=$2; gsub(/[ \t]/, "", v); f=1} END {if (f && (v == "DISABLE")) print "compliant"; else print "noncompliant: " v}'
期待される出力
compliant

修正方法

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

db2 update dbm cfg using DISCOVER DISABLE; then db2stop && db2start

プロパティ

オペレーティングシステム
すべて
タグ
db2databasenetwork
参照
CIS IBM Db2 Benchmark - Instance Configuration / Discovery (verify section number for your release)

このホストをチェック

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

shell
tmaegis scan --target db2 --level 2