TMAegis
postgres için daha fazla kural

TMA-POSTGRES-4.4

Lock Out Accounts if Not Currently in Use

OrtaDüzey 1Manuel incelemepostgres

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Manuel inceleme

Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.

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.

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
postgresdatabaseauthenticationmanual
Referans
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.4 Lock Out Accounts if Not Currently in Use