TMAegisBeta
docker için daha fazla kural

Docker

TMA-DOCKER-1.1.18

Ensure auditing is configured for Docker files and directories - /usr/bin/runc

OrtaDüzey 2Otomatikdocker

Açıklama

Auditing the runc binary /usr/bin/runc records changes and use of a security-critical Docker component, supporting incident investigation. The audit lists the loaded kernel audit rules (auditctl -l, needs root) and looks for a watch on /usr/bin/runc. Not applicable when the runc binary /usr/bin/runc is not present.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -q -e '/usr/bin/runc' && echo compliant || echo missing
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Add '-w /usr/bin/runc -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
dockerauditdhost
Referans
CIS Docker Benchmark v1.9.0 - 1.1.18 Ensure auditing is configured for Docker files and directories - /usr/bin/runc

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target docker --level 2