TMAegis
Weitere Regeln für aix

TMA-AIX-4.6.3.3

Ensure sftp-server arguments are configured

HochStufe 1Automatisiertaix

Beschreibung

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).

So wird geprüft

Prüfmethode: Shell-Befehl

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"
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
Beliebig
Tags
aixssh
Referenz
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.3 Ensure sftp-server arguments are configured

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target aix