TMAegis
Weitere Regeln für postgres

TMA-POSTGRES-4.4

Lock Out Accounts if Not Currently in Use

MittelStufe 1Manuelle Prüfungpostgres

Beschreibung

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.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

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.

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
Beliebig
Tags
postgresdatabaseauthenticationmanual
Referenz
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use