TMAegis
Mais regras para mongodb

TMA-MONGO-SYSTEM-LOG-DESTINATION

Ensure system activity is logged to a file or syslog

MédiaNível 1Automatizadamongodb

Descrição

systemLog.destination file or syslog keeps server logs persistently instead of only on stdout. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).

Como é verificado

Método de auditoria: Padrão de arquivo

Arquivo
/etc/mongod.conf
Padrão
(?m)^systemLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog)\b

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Set systemLog.destination: file and systemLog.path: /var/log/mongodb/mongod.log in /etc/mongod.conf and restart mongod

Propriedades

Sistemas operacionais
Qualquer
Tags
mongodbdatabaselogging
Referência
CIS MongoDB Benchmark - Audit Logging / System Log (verify section number for your release)

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target mongodb