Linux distributions
TMA-ALMA9-5.1.7
Ensure sshd MACs are configured
Mô tả
This variable limits the types of MAC algorithms that SSH can use during communication. Notes: • Some organizations may have stricter requirements for approved MACs. • Ensure that MACs used are in compliance with site policy. • The only "strong" MACs currently FIPS 140 approved are: o HMAC-SHA1 o HMAC-SHA2-256 o HMAC-SHA2-384 o HMAC-SHA2-512
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
alt0() { o=$(bash -c '#!/usr/bin/env bash
{
a_weak=(hmac-md5 hmac-md5-96 hmac-ripemd160 hmac-sha1-96 umac- 64@openssh.com hmac-md5-etm@openssh.com hmac-md5-96-etm@openssh.com hmac- ripemd160-etm@openssh.com hmac-sha1-96-etm@openssh.com umac-64- etm@openssh.com)
l_offered="$(sshd -T | awk '"'"'$1=="macs"{print $2}'"'"' | tr '"'"','"'"' '"'"'\n'"'"')"
for l_alg in "${a_weak[@]}"; do
grep -Fxq -- "$l_alg" <<< "$l_offered" && printf '"'"'%s\n'"'"' "$l_alg"
done
}' 2>&1); [ -z "$o" ] || { echo "step1: $o" | head -c 300; return 1; }; }; if alt0; then echo compliant; fi- Đầ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
The MAC algorithms available to the SSH server are governed by the system-wide crypto policy. Disable the weak MACs by configuring the system-wide crypto policy as described in the "Configure system wide crypto policy" section. - IF - CVE-2023-48795 (Terrapin) has not been reviewed and addressed, the Encrypt- then-MAC (EtM) MACs should also be disabled through the system-wide crypto policy. Once the crypto policy has been updated, reload the SSH daemon: # systemctl reload-or-restart sshd
Thuộc tính
- Hệ điều hành
- almalinux-9
- Thẻ
- cis-convertedlinux
- Tham chiếu
- CIS AlmaLinux OS 9 Benchmark v3.0.0 - 5.1.7
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 linux