TMAegis
bottlerocket のその他のルール

TMA-BOTTLEROCKET-ADMIN-CONTAINER

Ensure the admin host container is disabled when not in use

高レベル 1自動bottlerocket

説明

The admin container is privileged and can obtain a root shell on the host (sheltie) and runs an SSH server. It should be enabled only for troubleshooting. The audit runs "apiclient get settings.host-containers.admin.enabled"; run it from the control container (for example via SSM: apiclient exec control ...), since running it inside the admin container proves the container is on and the rule will fail.

チェック方法

監査方法: シェルコマンド

shell
out=$(apiclient get settings.host-containers.admin.enabled 2>/dev/null) || exit 1
v=$(printf '%s' "$out" | tr -d ' \n' | sed -n 's/.*"enabled":\([a-z]*\).*/\1/p')
[ "$v" = false ] && echo compliant
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

Set in user data: [settings.host-containers.admin] enabled = false, or after troubleshooting run from the control container: apiclient set host-containers.admin.enabled=false.

プロパティ

オペレーティングシステム
すべて
タグ
bottlerockethost-containersaccess-control
参照
CIS Bottlerocket Benchmark - Host containers / administrative access (verify section number for your release)

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target bottlerocket