Hi all, just a note to be transparent about a security issue we found on the Lemmy.nz/Piefed.nz server.
TL;DR I found a crypto miner in one of the docker containers used for the auto-mod. No evidence of any data breach, no evidence of access to the host server. It's gone now, it was there about 18 hours.
More details
Today while working on something else I found the CPU usage seeming way too high. Checking the history, this started yesterday, in the very early hours of 24th November 2026. I found the appropriate process .syscache, which was running in a redis container that is part of the stack running the auto-mod. redis is a low latency cache that allows lemmy to send all the posts and comments to the automod without the automod choking on the amount. It is in a docker container and has no volume mapped so has no access to the host system or the hard drive.
When searching up .syscache redis one of the top results is this article, which is effectively the exact situation we find ourselves in.
Basically, there is a crypto program that searches for redis containers with default ports exposed to the internet, and if they aren't password protected (which they aren't by default), they can inject a cron job through a redis command as described in the above article. The program then runs a crypto miner along with a scanner to find other targets, so we likely got infected from another infected server.
Why was redis exposed to the internet? Our automod uses the provided docker compose file that comes with the webhooks application used to feed the automod, and this file had the redis port exposed for some unexplained reason. We will be moving away from this automod anyway as the user who maintained it has left lemmy.
I have removed the exposed ports and also done a widescale sweep of the server locking down any ports that aren't absolutely necessary. I have also reviewed the server for any unusual programs or activity, including an audit of SSH logins which have come 100% from the two admins with access and came from their IP addresses, so there is nothing suspicious there.
Based on CPU activity it appears the crypto miner was running for around 18 hours before I caught it.
A reminder
Though we have no evidence of a data breach, I want to reiterate some things you can do to limit the impact if a data breach did happen. By it's nature, Lemmy and Piefed don't hold much personal information, email addresses are about all we have, and you are welcome to use a relay email service (Firefox Relay, Simple Login, Addy.io, etc) so the email provided is unique to the site. Lemmy.nz also does not require an email address, and Piefed.nz does not require you to validate the email address you provide, however, if you don't supply one you lose your only method of recovering your account if you forget your password.
Speaking of passwords, you should use a unique password stored in a password manager (Such as Keepass, Bitwarden, or just the one that comes with your browser).
We have all seen some of the largest companies in the world get breached and lose their customer data. Lemmy and Piefed developers and instances have nowhere near the resources of large companies, it's only a matter of time before an instance is breached and data lost. Treat all sites you provide data to online like a leaky sieve and you'll greatly reduce the damage when you inevitably get caught in a breach.
Please let me know if you want more info about anything or if I've used technical terms you don't understand, always happy to explain.
Cheers,
Dave