TMAegisBeta
Thêm quy tắc cho mongodb

MongoDB

TMA-MONGODB-3.4

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

Trung bìnhCấp 1Xem xét thủ côngmongodb

Mô tả

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

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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 } )

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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\>", ... ] }, ... ], }

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
mongodbprivileges
Tham chiếu
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