TMAegis
mongodb 관련 규칙 더 보기

TMA-MONGODB-3.4

Ensure that each role for each MongoDB database is needed and grants only the necessary privileges

보통레벨 1수동 검토mongodb

설명

Reviewing all roles periodically and eliminating unneeded roles as well as unneeded privileges from necessary roles helps minimize the privileges that each user has.

점검 방법

감사 방식: 수동 검토

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

Perform the following command to view all roles on the database on which the command runs, including both built-in and user-defined roles, as well as the privileges granted by each role. Ensure that only necessary roles are listed and only the necessary privileges are listed for each role. db.runCommand( { rolesInfo: 1, showPrivileges: true, showBuiltinRoles: true } )

조치 방법

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

To revoke specified privileges from the user-defined role on the database where the command is run. The revokePrivilegesFromRole command has the following syntax: { revokePrivilegesFromRole: "\<role\>", privileges: [ { resource: { \<resource\> }, actions: [ "\<action\>", ... ] }, ... ], }

속성

운영 체제
모두
태그
mongodbprivileges
참고 자료
CIS MongoDB 8 Benchmark v2.0.0 - 3.4 Ensure that each role for each MongoDB database is needed and grants only the necessary privileges