Port 6379/tcp: Redis
Category: Databases. Range: registered. Status: iana registered.
What runs here
The default port for the Redis in-memory key-value store's connection listener, carrying the RESP (REdis Serialization Protocol) wire protocol. IANA registers this port to Redis for TCP only; classic Redis ships with no authentication by default (a requirepass directive must be set explicitly), and older versions had no ACL system at all.
Why it matters
An unauthenticated, internet-exposed Redis instance is directly abusable for remote code execution without any separate vulnerability: an attacker can use CONFIG SET dir/dbfilename plus SAVE to write an arbitrary file (an SSH authorized_keys entry, a cron job, or a webshell) to a chosen path on disk. This exact technique has been used at scale by cryptomining worms and botnet operators to gain persistence on exposed Linux hosts.
Where you see it
Legitimately: application/cache client connections, replica synchronization from a Redis replica, and Sentinel/Cluster peer traffic. Anomalously/maliciously: CONFIG SET commands changing dir/dbfilename immediately followed by a SAVE, or connections from unfamiliar source IPs against an instance with no requirepass configured.
What to look for
| Signal | What it means |
|---|---|
| CONFIG SET dir/dbfilename + SAVE | This exact command sequence is the signature of the well-known unauthenticated-Redis-to-RCE technique. It repurposes Redis's own persistence feature to drop a file (SSH key, cron entry, webshell) at an attacker-chosen path. |
| requirepass unset | Confirming whether requirepass (or Redis 6+ ACLs) is configured is the first triage step for any Redis instance reachable outside its intended application tier. |