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