Writing / note

Six days with an unauthenticated Redis server on the internet: zero exploits, 117 scanners

· led in Wazuh T1595 T1046

Summary

Conventional wisdom says an unauthenticated Redis server on the public internet gets compromised in minutes—either via CONFIG SET dir / dbfilename to drop a cron job or SSH key, or via SLAVEOF replication and MODULE LOAD.

I tested that on a fresh Debian 12 virtual machine on Google Cloud from 2026-11-27 20:07 UTC to 2026-12-03 21:10 UTC (six days, 145 hours). The first probe arrived 11 minutes after port 6379 opened. Over six days, the server recorded 976 events from 117 unique source IPs, and zero exploitation attempts: no CONFIG SET, no SLAVEOF/REPLICAOF, no MODULE LOAD, no EVAL, and no SET/SAVE writes.

Instead, 74% of the logged lines were non-Redis protocols hitting port 6379, and the remaining 26% were pure reconnaissance.

Setup and visibility

The victim VM (web01) ran Debian 12's packaged redis-server 7.0 bound to 0.0.0.0:6379 with protected-mode no and no password. Public SSH was closed, the redis user had no sudo rights or login shell, and all outbound traffic was blocked at the host and cloud firewall layers so the machine could never be used to attack a third party.

Two design choices mattered for visibility:

  1. Passive wiretap instead of redis-cli MONITOR. Redis intentionally hides administrative commands such as CONFIG, SLAVEOF, and MODULE from MONITOR—the exact commands attackers use to gain code execution. An attacker running CLIENT LIST can also spot and kill a MONITOR session. Instead, I ran a small passive packet capture (redis-wiretap) with CAP_NET_RAW that parses RESP and inline commands directly from port 6379 traffic and writes them in MONITOR format for Wazuh to ingest.
  2. Dedicated Wazuh detection rules (100219–100224). Every captured command logged at level 3 (100219), while high-signal attack steps triggered level 10–13 alerts (CONFIG SET dir/dbfilename, writes targeting cron/.ssh/shell profiles, external SLAVEOF/REPLICAOF, MODULE LOAD, and FLUSHALL/FLUSHDB). All rules were verified end-to-end against Microsoft Sentinel before opening port 6379.

What actually hit port 6379

Across the full six-day window (using the Wazuh gateway's complete local archives):

Day (UTC) Captured events (100219) High-severity alerts (level ≥10)
2026-11-27 (last 4 h) 5 0
2026-11-28 220 0
2026-11-29 130 0
2026-11-30 132 0
2026-12-01 209 0
2026-12-02 151 0
2026-12-03 (first 21 h) 129 0
Total 976 0

Breaking those 976 lines down reveals three distinct traffic patterns:

1. Pure Redis reconnaissance (256 lines, 26%, from 96 IPs)

Every genuine Redis command was read-only:

Command Count Notes
INFO 95 Version, OS, memory, and role fingerprinting
PING 70 Liveness check
NONEXISTENT 31 Deliberately invalid command used by scanners to verify a Redis error response
QUIT 31 Clean disconnect paired with PING / INFO / NONEXISTENT
CONFIG GET bind 6 Paired with CLIENT LIST (see below)
CLIENT LIST 6 Paired with CONFIG GET bind
PUBSUB 6 Channel discovery
CLUSTER 6 Cluster topology check
GET 4 Read-only key probe (excluding HTTP GET)
VERSION 1 Banner probe

2. Daily CONFIG GET bind + CLIENT LIST survey scans

Once a day from November 28 through December 3, a rotating IP in Google Cloud's 35[.]206[.]0[.]0/16 and 35[.]210[.]0[.]0/16 ranges connected, ran exactly two commands—CONFIG GET bind followed immediately by CLIENT LIST—and disconnected. No follow-up write or second connection ever came from those hosts. The cadence and two-command footprint match automated internet-wide exposure mapping rather than opportunistic exploitation.

3. Non-Redis protocol noise (720 lines, 74%)

Because redis-wiretap logs inline text and binary payloads sent to TCP/6379, it also captured generic port-agnostic scanners throwing other protocols at an open port:

Why nobody exploited it

Six days is not forever, and a lack of exploitation does not mean unauthenticated Redis is safe—it only takes one botnet to find the IP. Still, three practical factors likely explain why nothing escalated in week one:

  1. Ephemeral IP cold start. The VM received a fresh GCP ephemeral IP. Internet-wide scanners found port 6379 within 11 minutes, but weaponized botnets often lag behind public search indexes (Shodan, Censys, FOFA) or target specific cloud/ISP ranges in waves.
  2. Scanner filtering on INFO output. Ninety-five probes ran INFO. The server replied as Redis 7.0 on Debian with 0 keys, 64 MB maxmemory, and enable-protected-configs no (Debian's default). Automated exploit kits that check for older Redis versions (where CONFIG SET is unrestricted) or populated databases may simply skip an empty Redis 7.0 instance.
  3. Reconnaissance far outweighs exploitation. Even on a completely open service, the overwhelming majority of internet background radiation is census scanning, security research, and multi-protocol sweeps—not active intrusion.

Operational lesson: catching a telemetry blind spot

The most useful finding from this experiment was actually in my own pipeline, not from an attacker.

On November 29 at 07:27 UTC, my uploader from the Wazuh gateway to Microsoft Sentinel hit its 20 MB daily cap, leaving a 16-hour gap in Sentinel for low-severity alerts (including Redis 100219 commands; high-severity level ≥10 alerts are never dropped). Checking the breakdown showed that four repetitive google-guest-agent commands (getconf CLK_TCK and three ip route list table local calls) were consuming 84% of my daily Sentinel ingestion.

Filtering those four exact benign commands in the uploader dropped daily volume from >20 MB to ~8 MB without losing security visibility, and the gateway's local Wazuh archives preserved every single November 29 Redis event so the six-day dataset above is complete.

Takeaways for defenders