MongoDB Falco Rules

MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc., and is published under a combination of the GNU Affero General Public License and the Apache

Unexpected inbound tcp connection mongo

Detects an inbound network connection to mongo on an unexpected port

Allowed ports:

  • 27017

Unexpected spawned process mongo

Detects an unexpected process spawned in the mongo container

Allowed processes:

  • mongod
  • mongo
  • ftdc
  • WTCheck.tThread
  • app-entrypoint
  • basename
  • dirname
  • getent
  • gosu
  • grep
  • groupadd
  • nami
  • node
  • sed
  • sh
  • sleep
  • tini
  • useradd
  • which

Unexpected file access readwrite for mongo

Detects an unexpected file accessed in readwrite mode for mongo

Allowed file prefixes for readwrite:

  • /data/db
  • /etc
  • /opt
  • /tmp
  • /root/.nami