TMAegis
Više pravila za mongodb

TMA-MONGODB-5.1

Ensure that system activity is audited

VisokaNivo 1Automatskamongodb

Opis

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.

Kako se proverava

Metod provere: Obrazac u datoteci

Datoteka
/etc/mongod.conf
Obrazac
(?m)^auditLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog|console)\b

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

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

Svojstva

Operativni sistemi
Bilo koji
Oznake
mongodbloggingaudit
Referenca
CIS MongoDB 8 Benchmark v2.0.0 - 5.1 Ensure that system activity is audited

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target mongodb