TMA-POSTGRES-4.4
Lock Out Accounts if Not Currently in Use
보통레벨 1수동 검토postgres
설명
If users with database accounts will not be using the database for some time, disabling the account will reduce the risk of attacks or inappropriate account usage.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Run SELECT rolname FROM pg_catalog.pg_roles WHERE rolname !~ '^pg_' AND rolcanlogin; and compare with the accounts currently in use. Inactive accounts must not appear in the output.
조치 방법
조치 방식: 가이드 또는 인프라 패치
Lock unused accounts with ALTER ROLE <role> NOLOGIN; (re-enable with LOGIN when needed) or drop them.
속성
- 운영 체제
- 모두
- 태그
- postgresdatabaseauthenticationmanual
- 참고 자료
- CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use