TMAegis
Más reglas para postgres

PostgreSQL

TMA-POSTGRES-4.3

Ensure excessive administrative privileges are revoked

AltaNivel 1Revisión manualpostgres

Descripción

With respect to PostgreSQL administrative SQL commands, only superusers should have elevated privileges. PostgreSQL regular, or application, users should not possess the ability to create roles, create new databases, manage replication, or perform any other action deemed privileged.

Cómo se verifica

Método de auditoría: Revisión manual

Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --include-manual.

Run psql -c "\du+" and review role attributes (Superuser, Create role, Create DB, Replication, Bypass RLS). Only designated administrative roles may hold them; any regular role with administrative attributes is a fail.

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Revoke unneeded attributes, e.g. ALTER ROLE <role> NOSUPERUSER NOCREATEROLE NOCREATEDB NOREPLICATION NOBYPASSRLS;

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
postgresdatabaseauthorizationmanual
Referencia
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.3 Ensure excessive administrative privileges are revoked