Apache Cassandra
TMA-CASSANDRA-CONFIG-PERMISSIONS
Ensure cassandra.yaml is not writable by group or readable by others
MoyenneNiveau 1Automatiséecassandra
Description
cassandra.yaml can contain keystore and truststore passwords; restrict it to mode 640 or stricter. Checks /etc/cassandra/cassandra.yaml (SKIP when it does not exist; tarball installs keep it under $CASSANDRA_HOME/conf).
Méthode de vérification
Méthode d'audit: Commande shell
shell
p=$(stat -c %a /etc/cassandra/cassandra.yaml 2>/dev/null) || exit 1; if [ $((0$p & 037)) -eq 0 ]; then echo compliant; else echo "mode $p"; fi- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Commande shell
shell
chmod 640 /etc/cassandra/cassandra.yamlPropriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- cassandradatabasepermissionsfilesystem
- Référence
- CIS Apache Cassandra Benchmark - File Permissions / Configuration Files (verify section number for your release)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target cassandra