PostgreSQL
TMA-POSTGRES-4.4
Lock Out Accounts if Not Currently in Use
MédiaNível 1Revisão manualpostgres
Descrição
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.
Como é verificado
Método de auditoria: Revisão manual
Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --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.
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Lock unused accounts with ALTER ROLE <role> NOLOGIN; (re-enable with LOGIN when needed) or drop them.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- postgresdatabaseauthenticationmanual
- Referência
- CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use