TMA-DB2-DISCOVER
Ensure DISCOVER is set to DISABLE
FaibleNiveau 2Automatiséedb2
Description
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.
Méthode de vérification
Méthode d'audit: Commande 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}'- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
db2 update dbm cfg using DISCOVER DISABLE; then db2stop && db2start
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- db2databasenetwork
- Référence
- CIS IBM Db2 Benchmark - Instance Configuration / Discovery (verify section number for your release)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target db2 --level 2