PostgreSQL
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.
Како се исправља
Метод исправке: Смерница или закрпа инфраструктуре
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