Database

MongoDB Shell Configuration

MongoDB shell startup files can contain connection logic, credentials, or commands executed when the shell starts.

Metadata

  • id: database.mongodb-shell-config
  • category: database
  • sensitivity: high
  • subcategory: mongodb
  • artifact types: credential, configuration, database
  • tags: mongodb

Path Matchers

PathKindPlatforms
$HOME/.mongorc.jsfilelinux, macos
$HOME/.mongoshrc.jsfilelinux, macos

Content Indicators

Literal strings:

  • Mongo
  • password

Credential Types

  • password

Impact

  • credential_access
  • discovery

References

On this page