TMAegisBeta
更多 db2 規則

IBM 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 指令

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

修補方式

修補方法: 操作指南或基礎設施修補檔

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