IBM AIX
TMA-AIX-4.6.3.6
Ensure sshd Ciphers are configured
Mô tả
This variable limits the ciphers that SSH can use during communication. Notes: Some organizations may have stricter requirements for approved ciphers. Ensure that ciphers used are in compliance with site policy. The only "strong" ciphers currently FIPS 140 compliant are: o aes256-gcm@openssh.com o aes128-gcm@openssh.com o aes256-ctr o aes192-ctr o aes128-ctr Audit: the effective `ciphers` list from `sshd -T` must not contain any weak algorithm listed by CIS.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
command -v sshd >/dev/null 2>&1 || exit 1; out=$(sshd -T 2>/dev/null) || exit 1; line=$(printf '%s\n' "$out" | grep -i '^ciphers '); [ -n "$line" ] || exit 1; printf '%s\n' "$line" | grep -Eiq -- '(^|[ ,])((3des|blowfish|cast128|aes(128|192|256))-cbc|arcfour(128|256)?|rijndael-cbc@lysator\.liu\.se)(,|$)' && echo "weak: $line" || echo compliant- Đầ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 file and add/modify the Ciphers line to contain a comma separated list of the site unapproved (weak) Ciphers preceded with a -: Example: Ciphers -3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,chacha20- poly1305@openssh.com Re-cycle the sshd daemon to pick up the configuration changes: stopsrc -s sshd 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.6 Ensure sshd Ciphers 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.
tmaegis scan --target aix