Cassandra Enumeration
Apache Cassandra is a distributed NoSQL database that listens on port 9042 (CQL native transport) and 7199 (JMX). Many Cassandra deployments use default credentials or no authentication at all. Enumeration identifies the version, checks for default credentials, and maps keyspaces and tables containing application data.
Port Scanning
PORT STATE SERVICE VERSION 7199/tcp open java-rmi Java RMI 9042/tcp open cassandra Apache Cassandra 4.1.3 9160/tcp closed thrift
Port 9042 is CQL (main client protocol). Port 7199 is JMX (management, often unauthenticated). Port 9160 is the legacy Thrift interface (usually disabled in modern versions).
Default Credentials
Cassandra ships with default credentials cassandra:cassandra. Authentication is disabled by default, meaning any credentials (or none) will work.
Connected to Test Cluster at 10.10.10.50:9042 [cqlsh 6.1.0 | Cassandra 4.1.3 | CQL spec 3.4.6 | Native protocol v5] cqlsh>
If authentication is disabled, any username/password works. If enabled but defaults not changed, cassandra:cassandra grants superuser access.
Keyspace and Table Enumeration
system system_auth system_distributed system_schema system_traces system_views webapp analytics
Keyspaces starting with system_ are internal. Application keyspaces (webapp, analytics) contain user data.
users sessions api_keys transactions
Look for usernames, password hashes, email addresses, and API keys. The system_auth.roles table contains Cassandra user credentials.
Credential Extraction
The system_auth.roles table stores all Cassandra user accounts with their salted password hashes.
role | salted_hash -----------+-------------------------------------------------------------- cassandra | $2a$10$abcdefghijklmnopqrstuuABCDEFGHIJKLMNOPQRSTUVWXYZ01234
Password hashes use bcrypt ($2a$). Crack with hashcat -m 3200 or john --format=bcrypt.
If unauthenticated access is confirmed, continue to Cassandra exploitation for data extraction and user creation.
References
-
Cassandra: CQL ReferenceDOCS: Cassandra: CQL Reference, cassandra.apache.org/doc/latest/cassandra/cql (opens in new tab)
Official CQL documentation.
-
HackTricks: Pentesting CassandraTOOL: HackTricks: Pentesting Cassandra, hacktricks.wiki/en/network-services-pentesting/cassandra.html (opens in new tab)
Cassandra enumeration and exploitation reference.