LXD
TMA-LXD-TRUST-PASSWORD
Ensure core.trust_password is not set
高レベル 1自動lxd
説明
A trust password lets any client that knows it add its certificate as a fully trusted remote, and it is brute-forceable over the network. Use short-lived trust tokens (lxc config trust add) instead. The audit runs "lxc config get core.trust_password" (prints "true"/hash when set); newer LXD releases removed the key, which is reported as compliant.
チェック方法
監査方法: シェルコマンド
shell
lxc info >/dev/null 2>&1 || exit 1
v=$(lxc config get core.trust_password 2>/dev/null)
[ -z "$v" ] && echo compliant- 期待される出力
compliant
修正方法
修正方法: シェルコマンド
shell
lxc config unset core.trust_passwordプロパティ
- オペレーティングシステム
- すべて
- タグ
- lxdcontainersauthentication
- 参照
- CIS-style LXD hardening guidance - Remote client authentication (no CIS benchmark section; verify against your hardening standard)
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target lxd