TMAegisBeta
Thêm quy tắc cho mongodb

MongoDB

TMA-MONGODB-5.1

Ensure that system activity is audited

CaoCấp 1Tự độngmongodb

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Mẫu tệp

Tệp
/etc/mongod.conf
Mẫu khớp
(?m)^auditLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog|console)\b

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Add 'auditLog: {destination: file, format: JSON, path: /var/log/mongodb/auditLog.json}' (or destination: syslog) to /etc/mongod.conf and restart mongod.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
mongodbloggingaudit
Tham chiếu
CIS MongoDB 8 Benchmark v2.0.0 - 5.1 Ensure that system activity is audited

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target mongodb