TMA-CASSANDRA-1.5
Ensure the Cassandra service is run as a non-root user
CaoCấp 1Tự độngcassandra
Mô tả
Though Cassandra database may be run as root, it should run as another non-root user. FAILs when no CassandraDaemon process is running.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
out=$(ps -eo user=,args= | grep '[C]assandraDaemon') || exit 1; printf '%s\n' "$out" | awk '$1 == "root" {n++} END {print n+0}'- Đầu ra mong đợi
0
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Create a dedicated cassandra system user, chown the data, commitlog, saved_caches and log directories to it and start the service with User=cassandra.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- cassandraservice-account
- Tham chiếu
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.5 Ensure the Cassandra service is run as a non-root user
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target cassandra