Apache Cassandra
TMA-CASSANDRA-CONFIG-PERMISSIONS
Ensure cassandra.yaml is not writable by group or readable by others
MediaNivel 1Automatizadacassandra
Descripción
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).
Cómo se verifica
Método de auditoría: Comando de 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- Salida esperada
compliant
Cómo se corrige
Método de corrección: Comando de shell
shell
chmod 640 /etc/cassandra/cassandra.yamlPropiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- cassandradatabasepermissionsfilesystem
- Referencia
- CIS Apache Cassandra Benchmark - File Permissions / Configuration Files (verify section number for your release)
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target cassandra