TMAegis
Другие правила для freebsd

TMA-FREEBSD-4.2.6

Ensure sshd Ciphers are configured

ВысокийУровень 1Автоматическаяfreebsd

Описание

This variable limits the ciphers that SSH can use during communication. Note: 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-2 compliant are: 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.

Как проверяется

Метод проверки: Команда оболочки

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
Ожидаемый вывод
compliant

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

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 - above any Include entries: Example: Ciphers -3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,rijndael- cbc@lysator.liu.se

Свойства

Операционные системы
Любая
Теги
freebsdssh
Источник
CIS FreeBSD 14 Benchmark v1.0.1 - 4.2.6 Ensure sshd Ciphers are configured

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target freebsd