TMAegisБета
Више правила за db2

IBM Db2

TMA-DB2-3.2.1

Specify Secure Remote Shell Command (DB2RSHCMD)

ВисокаНиво 1Аутоматскаdb2

Опис

The DB2RSHCMD registry varible specifies the remote shell command to use when starting remote database partitions and with the db2_all script to run utilities and commands on all database partitions. It is recommended that a value be used which encrypts the data sent between partitions, such as ssh. Passes when DB2RSHCMD is unset or points to ssh. Default: The default value is ssh. Run as the instance owner (or with sqllib/db2profile sourced) so the db2 CLP reads this instance's configuration.

Како се проверава

Метод провере: Команда љуске

shell
out=$(db2set -all 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '/^\[[a-zA-Z]\]/ { l = $0; sub(/^\[[a-zA-Z]\] */, "", l); k = l; sub(/=.*/, "", k); v = l; sub(/^[^=]*=/, "", v); gsub(/[ \t]/, "", v); if (!(k in r)) r[k] = v } END { if (!("DB2RSHCMD" in r) || r["DB2RSHCMD"] ~ /(^|\/)ssh$/) print "compliant"; else print "noncompliant: " r["DB2RSHCMD"] }'
Очекивани излаз
compliant

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

1. Follow the guidance on this page to create public and private keys for ssh: https://www.ibm.com/docs/en/db2/12.1?topic=installation-enabling-execution- remote-commands 2. Run the following command to set the DB2_RSHCMD registry variable to ssh: db2set DB2RSHCMD=ssh

Својства

Оперативни системи
Било који
Ознаке
db2databaseregistrynetwork
Референца
CIS IBM Db2 12.1 Benchmark v1.0.0 - 3.2.1 Specify Secure Remote Shell Command (DB2RSHCMD)

Проверите овај рачунар

Покрените ово на рачунару за који имате дозволу за проверу. Скенирање ради у режиму само за читање.

shell
tmaegis scan --target db2