TMA-MONGODB-2.1
Ensure Authentication is configured
심각레벨 1자동mongodb
설명
This setting ensures that all clients, users, servers are required to authenticate before being granted access to the MongoDB database. Authentication is the process of verifying the identity of a client. When access control, i.e. authorization, is enabled, MongoDB requires all clients to authenticate themselves in order to determine their access. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
점검 방법
감사 방식: 파일 패턴
- 파일
/etc/mongod.conf- 패턴
(?m)^[ \t]*authorization:[ \t]*['\x22]?enabled\b
조치 방법
조치 방식: 가이드 또는 인프라 패치
Create a user administrator first (use admin; db.createUser({user: '<admin>', pwd: passwordPrompt(), roles: [{role: 'userAdminAnyDatabase', db: 'admin'}]})), then set 'security: authorization: enabled' in /etc/mongod.conf and restart mongod.
속성
- 운영 체제
- 모두
- 태그
- mongodbauthentication
- 참고 자료
- CIS MongoDB 8 Benchmark v2.0.0 - 2.1 Ensure Authentication is configured
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target mongodb