Docker
TMA-DOCKER-1.1.16
Ensure auditing is configured for Docker files and directories - /usr/bin/containerd-shim-runc-v1
보통레벨 2자동docker
설명
Auditing /usr/bin/containerd-shim-runc-v1 records changes to and use of a security-relevant Docker/containerd component, supporting incident investigation. The audit lists the loaded kernel audit rules (auditctl -l, needs root) and looks for a watch or path rule on /usr/bin/containerd-shim-runc-v1. Not applicable when /usr/bin/containerd-shim-runc-v1 is not present.
점검 방법
감사 방식: 셸 명령
shell
out=$(auditctl -l 2>/dev/null) || exit 1; printf '%s\n' "$out" | grep -Eq -e '[ =]/usr/bin/containerd\-shim\-runc\-v1/?( |$)' && echo compliant || echo missing- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Add '-w /usr/bin/containerd-shim-runc-v1 -k docker' to /etc/audit/rules.d/docker.rules, then load it with 'augenrules --load' (or restart auditd).
속성
- 운영 체제
- 모두
- 태그
- dockerauditdhost
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 1.1.16 Ensure auditing is configured for Docker files and directories - /usr/bin/containerd-shim-runc-v1
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker --level 2