Explore/

Database Traffic Analysis

16 public captures

Database captures show client-server communication with database systems including PostgreSQL, MySQL, Redis, and MongoDB. Traffic reveals query patterns, authentication sequences, data retrieval volumes, and potential SQL injection attempts. Analysts examine database traffic to detect unauthorised access, data exfiltration through large result sets, and exploitation of database-specific vulnerabilities.

Database packet captures showing PostgreSQL, MySQL, Redis, and MongoDB client-server communication and query patterns.

trypcaphub·7mo ago

MongoDB 7.0.31 Unauthenticated Database Access and Enumeration

3 TCP connections to MongoDB 7.0.31 on 10.99.0.22:27017 without any authentication. The wire protocol shows TLS-encrypted MongoDB sessions (MongoDB 7.0 uses TLS for wire protocol framing). Operations performed: server version query (confirmed 7.0.31), database enumeration (admin, config, local, testdb), collection creation with user credential data insertion (3 documents with username/password pairs), full collection read, cross-database collection enumeration, serverStatus admin command (revealing uptime and connection count), and cleanup. Zeek logged 6 connections and 12 protocol anomalies across the 3 sessions between 10.99.0.10 and 10.99.0.22. The database accepts all operations without requiring authentication.

24384 KB71
trypcaphub·7mo ago1

PostgreSQL 16.13 Server and User Enumeration

6 PostgreSQL sessions against PostgreSQL 16.13 on 10.99.0.22:5432. Each session begins with the PostgreSQL startup message, transitions to TLS encryption (10 TLS handshakes observed), then executes queries. Queries extract: full server version string, user list with privilege flags (usecreatedb, usesuper) from pg_user, database list with owners from pg_database, namespace enumeration from pg_namespace, server_version setting from pg_settings, and server network binding via inet_server_addr/inet_server_port. The PostgreSQL wire protocol startup and TLS negotiation are visible in cleartext before encryption begins. All sessions authenticated as labuser against 10.99.0.22 from 10.99.0.10.

28434 KB158
trypcaphub·7mo ago1

MySQL 8.0.45 User Enumeration and Privilege Discovery

6 MySQL sessions against MySQL 8.0.45 on 10.99.0.22:3306. Each session shows the MySQL greeting packet followed by TLS upgrade (6 TLS handshakes observed, as MySQL 8.0 defaults to encrypted connections). Queries extract: mysql.user table contents (usernames, hosts, authentication_string hashes), user_privileges from information_schema, GRANTS for the current user, server variables (@@version, @@datadir, @@basedir), secure_file_priv setting, and active processlist. The MySQL handshake and authentication switch are visible before TLS encryption. All sessions use the labuser account against 10.99.0.22 from 10.99.0.10.

29338 KB162
trypcaphub·7mo ago2

Database Injection Chain: MySQL and PostgreSQL Escalation

Progressive database injection across MySQL and PostgreSQL, starting with legitimate queries and escalating to data extraction: MySQL: normal SELECT, OR 1=1 tautology, UNION SELECT against information_schema.columns, mysql.user credential extraction. PostgreSQL: current user/database check, pg_tables enumeration, pg_shadow password hash extraction. Shows the full injection escalation path from initial access to credential theft.

37552 KB194
trypcaphub·7mo ago1

PostgreSQL SSL Mode Negotiation

Three PostgreSQL connections with different SSL modes: default, sslmode=require, and sslmode=disable. Shows the SSLRequest message in the startup sequence and how the server responds. The transition from plaintext to TLS handshake is visible.

30413 KB69
trypcaphub·7mo ago1

PostgreSQL CRUD Operations with Transactions

Complete CRUD lifecycle: CREATE TABLE, multiple INSERTs, cross-table JOIN, explicit BEGIN/UPDATE/COMMIT transaction, verification SELECT, and DROP TABLE. Shows PostgreSQL transaction handling and wire protocol differences between DDL and DML.

2236.4 KB30
trypcaphub·7mo ago1

PostgreSQL Error Scenarios

PostgreSQL sessions triggering various errors: querying nonexistent tables, invalid column names, connecting to nonexistent databases, failed authentication, and division by zero. Shows how PostgreSQL error codes and messages appear in the wire protocol.

18328 KB142
trypcaphub·7mo ago1

MySQL Stored Procedure Creation and Execution

CREATE PROCEDURE with multiple SELECT statements, CALL execution, and SHOW PROCESSLIST. Shows how stored procedure traffic differs from direct queries in the MySQL wire protocol, including multi-result set responses.

26318 KB79
trypcaphub·7mo ago1

MySQL Bulk INSERT, Large SELECT, and Schema Enumeration

50 sequential INSERT operations, a full table SELECT returning 50+ rows, and information_schema enumeration. Shows per-query overhead of individual INSERTs, MySQL result set serialization, and the metadata exposed through schema queries.

354322 KB1,419
trypcaphub·7mo ago1

MySQL Error Scenarios and Edge Cases

MySQL sessions triggering various error conditions: querying nonexistent tables, connecting to nonexistent databases, invalid INSERT syntax, SLEEP() function, and failed authentication. Shows how MySQL error codes and messages appear in the wire protocol.

17329 KB126
trypcaphub·7mo ago

SSH Tunnel for Database Exfiltration

SSH local port forward (-L 13306:target:3306) creating a tunnel to a MySQL server on another host, followed by database queries through the tunnel. The actual MySQL traffic is encrypted within the SSH session. Shows how SSH tunnels appear in captures and enable covert data access.

18317 KB57
trypcaphub·7mo ago2

Pre-Exfiltration Data Staging Across Multiple Databases

Attacker collecting data from three database services: MySQL (SELECT *, user enumeration, SHOW DATABASES), Redis (KEYS, GET, HGETALL), and PostgreSQL (table dump). Shows the multi-database reconnaissance pattern typical of data theft operations before exfiltration.

16331 KB139
trypcaphub·7mo ago1

MySQL Traffic with SQL Injection Patterns

MySQL wire protocol sessions including legitimate queries followed by injection attempts: OR 1=1 tautology, UNION SELECT against information_schema.columns, and SHOW VARIABLES for server enumeration. Demonstrates how SQL injection appears in database protocol traffic rather than just HTTP.

25650 KB112
trypcaphub·7mo ago1

PostgreSQL Wire Protocol: Authentication, DDL, DML, and Failed Login

PostgreSQL wire protocol sessions between psql and PostgreSQL 16.13. Contains: MD5 password authentication handshake SELECT version() returning full server identification CREATE TABLE DDL statement INSERT INTO DML operation SELECT query with result set Failed authentication attempt with wrong password PostgreSQL 16 negotiates TLS encryption after the initial startup message. Both cleartext protocol frames and subsequent TLS-encrypted traffic are visible.

22229 KB145
trypcaphub·7mo ago

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).

2727.6 KB80
trypcaphub·7mo ago1

MySQL Protocol: Authentication, Queries, and Failed Login Attempt

MySQL wire protocol traffic between a client and MySQL 8.0 server. Contains multiple sessions including: Successful authentication handshake (server greeting, auth switch, OK) SHOW DATABASES query and response SELECT queries against a test table with result sets INSERT statement execution COUNT(*) aggregate query Failed authentication attempt with incorrect credentials MySQL 8.0 uses caching_sha2_password by default, and the sessions transition to TLS-encrypted communication after initial handshake. The TLS upgrade is visible in the protocol hierarchy (62 TLS frames alongside 10 MySQL protocol frames).

21330 KB130