TMAegisBeta
Más reglas para aix

IBM AIX

TMA-AIX-4.6.3.18

Ensure sshd ClientAliveInterval and ClientAliveCountMax are configured

MediaNivel 1Automatizadaaix

Descripción

Note: To clarify, the two settings described below are only meant for idle connections from a protocol perspective and are not meant to check if the user is active or not. An idle user does not mean an idle connection. SSH does not and never had, intentionally, the capability to drop idle users. In order to prevent resource exhaustion, appropriate values should be set for both ClientAliveInterval and ClientAliveCountMax. Audit: evaluates the effective configuration from `sshd -T` (Match blocks must be reviewed separately).

Cómo se verifica

Método de auditoría: Comando de shell

shell
command -v sshd >/dev/null 2>&1 || exit 1; out=$(sshd -T 2>/dev/null) || exit 1; r=compliant; for p in '^clientaliveinterval[[:blank:]]+[1-9][0-9]*$' '^clientalivecountmax[[:blank:]]+[1-9][0-9]*$'; do printf '%s\n' "$out" | grep -Eiq -- "$p" || r="not matched: $p"; done; echo "$r"
Salida esperada
compliant

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Edit the /etc/ssh/sshd_config file to set the ClientAliveInterval and ClientAliveCountMax parameters above any Include and Match entries according to site policy. Example: ClientAliveInterval 15 ClientAliveCountMax 3 Note: First occurrence of a option takes precedence, Match set statements withstanding. If Include locations are enabled, used, and order of precedence is understood in your environment, the entry may be created in a file in Include location.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
aixssh
Referencia
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.18 Ensure sshd ClientAliveInterval and ClientAliveCountMax are configured

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target aix