Docker
TMA-DOCKER-2.10
Enable user namespace support
中レベル 2自動docker
説明
User namespace remapping maps root inside containers to an unprivileged host UID, limiting the impact of a container breakout. The audit checks that docker info lists name=userns under SecurityOptions.
チェック方法
監査方法: シェルコマンド
shell
o=$(docker info --format '{{range .SecurityOptions}}{{.}} {{end}}') || exit 1; printf '%s\n' "$o" | grep -q 'name=userns' && echo compliant || echo missing- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Ensure /etc/subuid and /etc/subgid contain a mapping, set "userns-remap": "default" in /etc/docker/daemon.json and restart the Docker daemon (existing images and volumes need to be re-created).
プロパティ
- オペレーティングシステム
- すべて
- タグ
- dockerdaemon
- 参照
- CIS Docker Benchmark v1.9.0 - 2.10 Enable user namespace support
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target docker --level 2