TMAegis
Weitere Regeln für postgres

TMA-POSTGRES-4.3

Ensure excessive administrative privileges are revoked

HochStufe 1Manuelle Prüfungpostgres

Beschreibung

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.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

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.

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
Beliebig
Tags
postgresdatabaseauthorizationmanual
Referenz
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.3 Ensure excessive administrative privileges are revoked