TMAegis
Más reglas para postgres

PostgreSQL

TMA-POSTGRES-4.4

Lock Out Accounts if Not Currently in Use

MediaNivel 1Revisión manualpostgres

Descripción

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.

Cómo se verifica

Método de auditoría: Revisión manual

Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --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.

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Lock unused accounts with ALTER ROLE <role> NOLOGIN; (re-enable with LOGIN when needed) or drop them.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
postgresdatabaseauthenticationmanual
Referencia
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use