TMAegis
Thêm quy tắc cho aix

TMA-AIX-4.6.3.3

Ensure sftp-server arguments are configured

CaoCấp 1Tự độngaix

Mô tả

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ách kiểm tra

Phương pháp kiểm tra: Lệnh 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"
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
aixssh
Tham chiếu
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.3 Ensure sftp-server arguments are configured

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target aix