TMAegis베타
bottlerocket 관련 규칙 더 보기

Bottlerocket

TMA-BOTTLEROCKET-4.1.2

Ensure permissions on journal files are configured

보통레벨 1자동bottlerocket

설명

The journal is stored in /var/log/journal, and contains logged information from all services on the system. The audit lists files under /var/log/journal with group write/execute or any other permission and requires none. Run tmaegis on the host through the admin container root shell (sudo sheltie).

점검 방법

감사 방식: 셸 명령

shell
[ -d /var/log/journal ] || { echo '/var/log/journal not found'; exit 1; }
out=$(find /var/log/journal -type f -perm /g+wx,o+rwx 2>/dev/null) || exit 1
[ -z "$out" ] && echo compliant || { printf '%s\n' "$out" | head -n 20; echo 'journal files with group write/execute or other permissions'; }
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Run the following commands to set permissions on all existing log files: # find /var/log/journal -type f -perm /g+wx,o+rwx -exec chmod g-wx,o-rwx "{}" +

속성

운영 체제
모두
태그
bottlerocketlogging
참고 자료
CIS Bottlerocket Benchmark v1.0.0 - 4.1.2 Ensure permissions on journal files are configured

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target bottlerocket