TMA-AIX-4.6.3.3
Ensure sftp-server arguments are configured
Description
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).
Méthode de vérification
Méthode d'audit: Commande 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"- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
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
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- aixssh
- Référence
- CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.3 Ensure sftp-server arguments are configured
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
tmaegis scan --target aix