TMAegisBeta
bottlerocket için daha fazla kural

Bottlerocket

TMA-BOTTLEROCKET-3.4.1.2

Ensure IPv4 loopback traffic is configured

DüşükDüzey 2Otomatikbottlerocket

Açıklama

Configure the loopback interface to accept traffic. Configure all other interfaces to deny traffic to the loopback network (127.0.0.0/8). The audit runs iptables -S and requires the INPUT lo ACCEPT, INPUT 127.0.0.0/8 DROP and OUTPUT lo ACCEPT rules (rule order is not verified). Run tmaegis on the host through the admin container root shell (sudo sheltie).

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
in=$(iptables -S INPUT 2>/dev/null) || exit 1
out=$(iptables -S OUTPUT 2>/dev/null) || exit 1
bad=0
printf '%s\n' "$in" | grep -Eq -- '^-A INPUT -i lo( .*)? -j ACCEPT' || { echo 'missing: -A INPUT -i lo -j ACCEPT'; bad=1; }
printf '%s\n' "$in" | grep -Eq -- '^-A INPUT -s 127.0.0.0/8( .*)? -j DROP' || { echo 'missing: -A INPUT -s 127.0.0.0/8 -j DROP'; bad=1; }
printf '%s\n' "$out" | grep -Eq -- '^-A OUTPUT -o lo( .*)? -j ACCEPT' || { echo 'missing: -A OUTPUT -o lo -j ACCEPT'; bad=1; }
[ "$bad" -eq 0 ] && echo compliant
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Run the following commands to implement the loopback rules: # iptables -A INPUT -i lo -j ACCEPT # iptables -A OUTPUT -o lo -j ACCEPT # iptables -A INPUT -s 127.0.0.0/8 -j DROP

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
bottlerocketnetwork
Referans
CIS Bottlerocket Benchmark v1.0.0 - 3.4.1.2 Ensure IPv4 loopback traffic is configured

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target bottlerocket --level 2