TMAegis
Weitere Regeln für cassandra

TMA-CASSANDRA-1.5

Ensure the Cassandra service is run as a non-root user

HochStufe 1Automatisiertcassandra

Beschreibung

Though Cassandra database may be run as root, it should run as another non-root user. FAILs when no CassandraDaemon process is running.

So wird geprüft

Prüfmethode: Shell-Befehl

shell
out=$(ps -eo user=,args= | grep '[C]assandraDaemon') || exit 1; printf '%s\n' "$out" | awk '$1 == "root" {n++} END {print n+0}'
Erwartete Ausgabe
0

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

Create a dedicated cassandra system user, chown the data, commitlog, saved_caches and log directories to it and start the service with User=cassandra.

Eigenschaften

Betriebssysteme
Beliebig
Tags
cassandraservice-account
Referenz
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.5 Ensure the Cassandra service is run as a non-root user

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target cassandra