TMA-AIX-4.6.3.3
Ensure sftp-server arguments are configured
Deskripsi
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).
Cara pemeriksaan
Metode audit: Perintah 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"- Output yang diharapkan
compliant
Cara perbaikan
Metode perbaikan: Panduan atau patch infrastruktur
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
Properti
- Sistem operasi
- Apa saja
- Tag
- aixssh
- Referensi
- CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.3 Ensure sftp-server arguments are configured
Periksa host ini
Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.
tmaegis scan --target aix