TMAegis
Mais regras para db2

IBM Db2

TMA-DB2-DISCOVER

Ensure DISCOVER is set to DISABLE

BaixaNível 2Automatizadadb2

Descrição

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.

Como é verificado

Método de auditoria: Comando 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}'
Saída esperada
compliant

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

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

Propriedades

Sistemas operacionais
Qualquer
Tags
db2databasenetwork
Referência
CIS IBM Db2 Benchmark - Instance Configuration / Discovery (verify section number for your release)

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target db2 --level 2