Linux distributions
TMA-ROCKY10-5.1.15
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 3 approved are: o hmac-sha2-256-etm@openssh.com o hmac-sha2-512-etm@openssh.com o hmac-sha2-256 o hmac-sha2-512
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
alt0() { o=$(bash -c 'sshd -T | grep -Pi -- '"'"'macs\h+([^#\n\r]+,)?(hmac-md5|hmac-md5-96|hmac-sha1- 96|umac-64@openssh.com|hmac-md5-etm@openssh.com|hmac-md5-96- etm@openssh\.com|hmac-sha1-etm@openssh\.com|hmac-sha1-96- etm@openssh\.com|umac-64-etm@openssh\.com|umac-128-etm@openssh\.com)\b'"'"'' 2>/dev/null); [ -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
Note: • First occurrence of an option takes precedence. • Though MACs may be configured through the MACs option in the /etc/ssh/sshd_config file, it is recommended that the MACs available to openSSH server are configured through system-wide-crypto-policy • If the recommendations in the subsection "Configure system wide crypto policy" have been followed, this Audit should be in a passing state. Please review that section before following this Remediation Procedure • By default, system-wide-crypto-policy is applied to the openSSH server. If the following defaults don't exist due to modifications or upgrade from a earlier release, the system-wide-crypto-policy may not be included by the openSSH…
Thuộc tính
- Hệ điều hành
- rocky-10
- Thẻ
- cis-convertedlinux
- Tham chiếu
- CIS Rocky Linux 10 Benchmark v1.0.0 - 5.1.15
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