TMAegis
postgres のその他のルール

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.

修正方法

修正方法: ガイダンスまたは IaC パッチ

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