Redis captures show RESP (Redis Serialization Protocol) traffic on TCP port 6379. Because Redis often runs without authentication, captures reveal command execution, key enumeration, and data retrieval in plaintext. Security analysts look for unauthorised access, CONFIG SET abuse for remote code execution, and Lua script injection in exposed Redis instances.
Redis packet captures showing RESP protocol commands, key operations, and security issues in exposed instances.
Redis 7.0.15 Unauthenticated Access and Webshell Write
15 RESP (Redis Serialization Protocol) sessions against Redis 7.0.15 running without authentication on 10.99.0.22:6379. The server accepts all commands without requiring AUTH. Commands executed include INFO server (version and configuration disclosure), CONFIG GET dir/dbfilename/requirepass/protected-mode (confirming no password and protected-mode disabled), CLIENT LIST (connected client enumeration), KEYS * (full key enumeration), CONFIG SET dir/dbfilename (changing dump path to /tmp/shell.php), SET webshell with PHP payload, SAVE (writing the webshell to disk), then CONFIG restoration and cleanup. All 150 packets are cleartext RESP between 10.99.0.10 and 10.99.0.22 across 15 separate connections. Zeek logged 30 connection records and 16 protocol anomalies (weird.log).
Redis Pub/Sub: SUBSCRIBE, PUBLISH, and Message Delivery
Subscriber listening on test-channel while a publisher sends three messages. Shows SUBSCRIBE establishing the listener, PUBLISH commands, and push notifications in cleartext RESP. Demonstrates Redis real-time messaging and how Pub/Sub differs from command-response patterns.
Redis Pipeline (Batch Commands)
Redis pipelining: multiple commands sent in a single request batch including SET, MGET, INCR, GET, EXPIRE, TTL, and DEL operations. Shows how pipelined commands reduce round-trip overhead compared to individual command-response pairs.
Redis Lua Script Execution via EVAL
Three EVAL commands executing server-side Lua scripts: key-value SET/GET via Lua and pure computation (sum of 1 to 100). Shows EVAL with the script body, key count, and arguments visible in RESP. Lua scripting can also be an attack vector on exposed Redis instances.
Concurrent Connections to Three Database Services
Simultaneous connections to MySQL, PostgreSQL, and Redis from a single client. All three database sessions run within the same time window. Shows interleaved multi-protocol traffic and how different database wire protocols can be identified in a mixed capture.
Redis Unauthorized Access and Webshell Write Attempt
Simulated attack against an unprotected Redis instance. The attacker enumerates server info, dumps all keys, reads stored data, then changes the dump directory to /tmp, sets the filename to shell.php, writes a PHP webshell payload, and triggers SAVE. This is the standard Redis webshell deployment technique. All commands visible in cleartext RESP.
Redis RESP Protocol: Commands, Key Operations, and Server Info
Redis wire protocol (RESP) session against a Redis 7.0.15 server. Demonstrates multiple command types: PING/PONG connection test SET command (string value storage) GET command (string retrieval) HSET command (hash field creation with multiple fields) HGETALL command (hash retrieval) KEYS pattern matching (listing all keys) INFO server (server metadata including version, uptime, config) DBSIZE (database size query) Each command and its response are visible in cleartext, making this an excellent reference for understanding the Redis Serialization Protocol (RESP).