TMAegis
mongodb 관련 규칙 더 보기

TMA-MONGODB-3.1

Ensure least privilege for database accounts

높음레벨 1수동 검토mongodb

설명

MongoDB grants access to data and commands through "role-based" approach, MongoDB is shipped with built-in roles that provide the different levels of access commonly needed in a database system. In addition, you can create custom-roles.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

In mongosh run db.getSiblingDB("admin").system.users.find({"roles.role": {$in: ["dbOwner", "userAdmin", "userAdminAnyDatabase"]}, "roles.db": "admin"}, {user: 1, roles: 1}). Any account returned holds a built-in dbOwner/userAdmin/userAdminAnyDatabase role scoped to the admin database and must be justified or dropped.

조치 방법

조치 방식: 가이드 또는 인프라 패치

If any accounts were listed with built in-roles: dbOwner userAdmin userAdminAnyDatabase in "admin" database role then drop them.

속성

운영 체제
모두
태그
mongodbprivileges
참고 자료
CIS MongoDB 8 Benchmark v2.0.0 - 3.1 Ensure least privilege for database accounts