TMAegisБета
Више правила за bottlerocket

Bottlerocket

TMA-BOTTLEROCKET-3.2.5

Ensure broadcast ICMP requests are ignored

СредњаНиво 1Аутоматскаbottlerocket

Опис

Setting net.ipv4.icmp_echo_ignore_broadcasts to 1 will cause the system to ignore all ICMP echo and timestamp requests to broadcast and multicast addresses. The audit reads the running value from /proc/sys. Run tmaegis on the host through the admin container root shell (sudo sheltie).

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

Метод провере: Команда љуске

shell
bad=0
chk() { f=/proc/sys/$(printf %s "$1" | tr . /); v=$(cat "$f" 2>/dev/null) || { echo "$1: not readable"; bad=1; return; }; [ "$v" = "$2" ] || { echo "$1 = $v (expected $2)"; bad=1; }; }
chk net.ipv4.icmp_echo_ignore_broadcasts 1
[ "$bad" -eq 0 ] && echo compliant
Очекивани излаз
compliant

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

Run the following command to set the active kernel parameter and persist the setting: # apiclient apply <<EOF [settings.kernel.sysctl] "net.ipv4.icmp_echo_ignore_broadcasts" = "1" EOF Run the following command to flush the routing cache: # sysctl -w net.ipv4.route.flush=1

Својства

Оперативни системи
Било који
Ознаке
bottlerocketnetwork
Референца
CIS Bottlerocket Benchmark v1.0.0 - 3.2.5 Ensure broadcast ICMP requests are ignored

Проверите овај рачунар

Покрените ово на рачунару за који имате дозволу за проверу. Скенирање ради у режиму само за читање.

shell
tmaegis scan --target bottlerocket