Bottlerocket
TMA-BOTTLEROCKET-3.4.2.1
Ensure IPv6 default deny firewall policy
低レベル 2自動bottlerocket
説明
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).
チェック方法
監査方法: シェルコマンド
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- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Run the following commands to implement a default DROP policy: # ip6tables -P INPUT DROP # ip6tables -P OUTPUT DROP # ip6tables -P FORWARD DROP
プロパティ
- オペレーティングシステム
- すべて
- タグ
- bottlerocketnetwork
- 参照
- CIS Bottlerocket Benchmark v1.0.0 - 3.4.2.1 Ensure IPv6 default deny firewall policy
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target bottlerocket --level 2