Cis Cassandra5 1.4
DevOps & Securitycis-cassandra5-1.4Cis Cassandra5 1.4 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Ensure latest version of Cassandra is installed
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Apache_Cassandra/CIS_Apache_Cassandra_5.0_Benchmark_v1.1.0/cis-cassandra5-1.4/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-cassandra5-1-4, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ensure latest version of Cassandra is installed (Automated)
Profile Applicability
- Level 1 - Cassandra on Linux
Description
The Cassandra installation version, along with the patches, should be the most recent that is compatible with organizational needs. When obtaining and installing software packages (typically via apt-get or you can compile the source code), it's imperative that packages (or the source code, tarball) are sourced only from valid and authorized repositories.
For Cassandra, a short list of valid repositories may include:
- The official apache cassandra website: http://cassandra.apache.org/
- DataStax Enterprise: https://www.datastax.com/
Rationale
Using the most recent version of Cassandra can help limit the possibilities for vulnerabilities in the software, the installation version applied during setup should be established according to the needs of the organization. Ensure you are using a release that is covered by a level of support which includes regular updates to address vulnerabilities.
Impact
None
Audit Procedure
To verify the version of Cassandra you have installed:
cassandra -v
4.0.3 (a/o 2022-03-29)
Released on 2022-02-17 Maintained until 4.3.0 release (May-July 2024)
If an old/unsupported version of Cassandra is installed this is a finding.
Remediation
Upgrade to the latest version of the Cassandra software:
For each node in the cluster:
- Using the nodetool drain command to push all memtables data to SSTables.
- Stop Cassandra services.
- Backup the data set and all of your Cassandra configuration files.
- Download/Update Java if needed.
- Download/Update Python if needed.
- Download the binaries for the latest Cassandra revision from the Cassandra Download Page.
- Install new version of Cassandra.
- Configure new version of Cassandra, taking into account all of your previous settings in your config files (
cassandra.yml,cassandrea-env.sh, etc). - Start Cassandra services.
- Check logs for warnings, errors.
- Using the nodetool to upgrade your SSTables.
- Using the nodetool command to check status of cluster.
Default Value
No default value - depends on installation.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 16.5 Use Up-to-Date and Trusted Third-Party Software ComponentsUse up-to-date and trusted third-party software components. When possible, choose established and proven frameworks and libraries that provide adequate security. Acquire these components from trusted sources or evaluate the software for vulnerabilities before use. | ● | ● | |
| v7 | 18.4 Only Use Up-to-date And Trusted Third-Party ComponentsOnly use up-to-date and trusted third-party components for the software developed by the organization. | ● | ● |