NGINX
TMA-NGINX-2.3.1
Ensure NGINX directories and files are owned by root
高レベル 1自動nginx
説明
The NGINX configuration directory and all contained files must be owned by the root user and group to prevent unauthorized modification. Counts files and directories under /etc/nginx not owned by root:root; expects 0. Evaluated on the merged configuration printed by `nginx -T` (all included files; needs permission to read them). CIS marks this recommendation Manual; the automated check implements its audit procedure.
チェック方法
監査方法: シェルコマンド
shell
[ -d /etc/nginx ] || exit 1; find /etc/nginx \( ! -user root -o ! -group root \) -print 2>/dev/null | wc -l- 期待される出力
0
修正方法
修正方法: ガイダンスまたは IaC パッチ
chown -R root:root /etc/nginx
プロパティ
- オペレーティングシステム
- すべて
- タグ
- nginxpermissions
- 参照
- CIS NGINX Benchmark v3.0.0 - 2.3.1 Ensure NGINX directories and files are owned by root
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target nginx