TMAegis
Plus de règles pour postgres

TMA-POSTGRES-4.4

Lock Out Accounts if Not Currently in Use

MoyenneNiveau 1Revue manuellepostgres

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --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.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
postgresdatabaseauthenticationmanual
Référence
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use