Bottlerocket
TMA-BOTTLEROCKET-3.4.2.1
Ensure IPv6 default deny firewall policy
BajaNivel 2Automatizadabottlerocket
Descripción
A default deny all policy on connections ensures that any unconfigured network usage will be rejected. The audit runs ip6tables -L -n and requires DROP or REJECT policy on INPUT, FORWARD and OUTPUT. Run tmaegis on the host through the admin container root shell (sudo sheltie).
Cómo se verifica
Método de auditoría: Comando de shell
shell
out=$(ip6tables -L -n 2>/dev/null) || exit 1
bad=0
for c in INPUT FORWARD OUTPUT; do
p=$(printf '%s\n' "$out" | sed -n "s/^Chain $c (policy \([A-Z]*\).*/\1/p")
case "$p" in DROP|REJECT) ;; *) echo "$c policy ${p:-unknown}"; bad=1 ;; esac
done
[ "$bad" -eq 0 ] && echo compliant- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
Run the following commands to implement a default DROP policy: # ip6tables -P INPUT DROP # ip6tables -P OUTPUT DROP # ip6tables -P FORWARD DROP
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- bottlerocketnetwork
- Referencia
- CIS Bottlerocket Benchmark v1.0.0 - 3.4.2.1 Ensure IPv6 default deny firewall policy
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target bottlerocket --level 2