Initial impact: the evidence request nobody could answer
Investigation: following the certificate down to the servers
- The operating system and its patch level.
- Every exposed service and port.
- The application and its plugins or dependencies.
- The database and the way the application connects to it.
- Accounts: SSH users, panel users, database users, cloud console users.
- Backups and snapshots, and where they are stored.
wp-admin is protected.
The discovery: nobody had tested the system that holds the data
Temporary mitigation: produce evidence you can collect this week
BASH
# In transit: does this client connection to MySQL/MariaDB use TLS?
# An empty Value means the session is NOT encrypted.
mysql -h db.internal.example -u audit_user -p -e "SHOW SESSION STATUS LIKE 'Ssl_cipher';"
# Server side: does the server refuse unencrypted connections?
mysql -h db.internal.example -u audit_user -p -e "SHOW GLOBAL VARIABLES LIKE 'require_secure_transport';"
# At rest: is the data volume on an encrypted (dm-crypt/LUKS) device?
# Look for TYPE 'crypt' in the device tree above the data mount.
lsblk -o NAME,TYPE,FSTYPE,MOUNTPOINT
# Details for an encrypted mapping (replace cryptdata with your mapper name)
sudo cryptsetup status cryptdatalsblk will not show it. In that case, take the evidence from the provider console or API, and record who holds the keys. Key custody matters more than most teams expect, as explained in checking who actually holds the encryption keys.
Next, check access logs. The question an auditor asks is whether anyone looks at them, and whether they go back far enough to investigate an incident:
BASH
# Successful logins with full timestamps
last -F | head -n 50
# Failed login attempts (reads /var/log/btmp, usually needs root)
sudo lastb -F | head -n 50
# SSH daemon events for the last 30 days
# Unit is 'ssh' on Debian/Ubuntu, 'sshd' on RHEL-family systems
sudo journalctl -u ssh --since '30 days ago' | grep -E 'Accepted|Failed'