TMA-MONGODB-5.1
Ensure that system activity is audited
높음레벨 1자동mongodb
설명
Track access and changes to database configurations and data. MongoDB Enterprise includes a system auditing facility that can record system events (e.g. user operations, connection events) on a MongoDB instance. These audit records permit forensic analysis and allow administrators to verify proper controls. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist). Auditing requires MongoDB Enterprise or Percona Server for MongoDB.
점검 방법
감사 방식: 파일 패턴
- 파일
/etc/mongod.conf- 패턴
(?m)^auditLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog|console)\b
조치 방법
조치 방식: 가이드 또는 인프라 패치
Add 'auditLog: {destination: file, format: JSON, path: /var/log/mongodb/auditLog.json}' (or destination: syslog) to /etc/mongod.conf and restart mongod.
속성
- 운영 체제
- 모두
- 태그
- mongodbloggingaudit
- 참고 자료
- CIS MongoDB 8 Benchmark v2.0.0 - 5.1 Ensure that system activity is audited
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target mongodb