MySQL captures show client-server communication using the MySQL wire protocol on TCP port 3306. Traffic reveals authentication handshakes, query execution, result sets, and error responses in cleartext (unless TLS is negotiated). Analysts examine MySQL captures to detect SQL injection exploitation, credential brute-forcing, unauthorised data access, and bulk data extraction from compromised databases.
MySQL packet captures showing wire protocol authentication, query execution, result sets, and database attack patterns.
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.
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.
MySQL Transactions with COMMIT and ROLLBACK
MySQL transaction lifecycle: START TRANSACTION, multiple INSERTs, SELECT within transaction, COMMIT. Then a second transaction with INSERT followed by ROLLBACK. Shows how transaction boundaries appear in the MySQL wire protocol and the difference between committed and rolled-back operations.
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.
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.
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.
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.
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.
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).