TMAegis
Más reglas para aix

TMA-AIX-4.6.3.3

Ensure sftp-server arguments are configured

AltaNivel 1Automatizadaaix

Descripción

The sftp-server is started by the sshd server after authentication has been completed successfully. The process runs with the euid of the authenticated user. The sftp- server does not inherit the logging levels from sshd and they must be configured manually. SFTP provides several logging levels with varying amounts of verbosity. 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 '^subsystem[[:blank:]]+sftp[[:blank:]]+(/usr/sbin/sftp-server|internal-sftp)[[:blank:]]+-u[[:blank:]]+027[[:blank:]]+-f[[:blank:]]+AUTH[[:blank:]]+-l[[:blank:]]+(INFO|VERBOSE)[[:blank:]]*$'; 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 and set the sftp arguments to one of the following: Subsystem sftp /usr/sbin/sftp-server -u 027 -f AUTH -l INFO - OR - Subsystem sftp /usr/sbin/sftp-server -u 027 -f AUTH -l VERBOSE - OR - Subsystem sftp internal-sftp -u 027 -f AUTH -l INFO - OR - Subsystem sftp internal-sftp -u 027 -f AUTH -l VERBOSE Re-cycle the sshd daemon to pick up the configuration changes: # /usr/bin/stopsrc -s sshd; /usr/bin/sleep 5; /usr/bin/startsrc -s sshd

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
aixssh
Referencia
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.3 Ensure sftp-server arguments 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