Security breach (Patreon)
Content
There's been a security breach. But there is no need to worry, there is no evidence that anything was stolen.
What happened
My source control server running on Gitea has been hacked. The attackers used CVE-2026-59774 to gain access to the git user on the server. This user has access to all private repositories on the system. I let Claude scrub the malware off the server. It discovered multiple Monero miners and botnets running on the server. There is no evidence that my source repositories have been tampered with: every branch that was touched since the break-in matches the copy on my own machine, and every commit since then is mine.
The biggest problem is that my devops repo is also on that server, and it contains all the certificates and API keys that Pixeldrain uses to communicate with internal and external services. Since this repo is stored in the home directory of the git user, it was fully accessible to the malware. When I discovered this, I immediately got to work rotating all my keys.
The devops repo also contained the private key to the Fornaxian.tech Root Certificate Authority. This is a big deal: this certificate is used to sign all certificates of all Pixeldrain services. Those certificates encrypt all traffic between the cache and storage nodes, and the database traffic. This means the key could have been used to gain access to all of Pixeldrain's database and storage nodes. It was not a good idea to store the root CA private key in a git repo, but when I set all this stuff up 10 years ago I didn't know better. I also never expected to be running a site with fifty million monthly users.
Spiffy!
So, no better time than now to fix all this stuff. The root CA has been replaced. It is stored in an encrypted Ansible Vault with a ridiculously long password. I also took the opportunity to polish up my cryptography. All of Pixeldrain's services now use SPIFFE.
SPIFFE is a cryptography standard which lets me fine-tune the permissions of each client. Each client gets a SPIFFE ID, for example "spiffe://pixeldrain_prod/storage". A storage node can then be limited to the tables required for pixelstore's data integrity checks, and nothing else.
I can also use it to separate different server clusters, so Nova can't accidentally log in to Pixeldrain's database, or the other way around.
Other security work
Since there's no end in sight to the barrage of CVEs coming our way, I also set up a monitoring agent which will notify me when a vulnerability is found in a service I depend on. This task runs twice a week on Monday and Thursday morning. This is yet another failsafe which should prevent an event like this from occurring again.
Impact
What could have gone wrong? Well, the attackers could have used the CA key to sign a custom client certificate which is trusted by all Pixeldrain's servers. This means both the database and the storage nodes would have trusted requests from this certificate. They could have made a full copy of the database and extracted all the files.
User passwords are hashed with bcrypt, so those can't be stolen, but e-mail addresses, account usernames and file names could be read.
There are multiple reasons why I believe this did not happen.
The malware which was running on the server was only made for mining cryptocurrency and infecting other servers. There were no traces of any malware which would have copied my git repositories. This alone is not proof though, good malware would have erased its own traces.
The database logs do not indicate any access from foreign IP addresses or new certificates. This one cannot be hidden by the malware, so this is better proof that the database was not actually compromised.
A database dump would have shown up on my server monitoring. The database is very large, and extracting it all from the servers would have caused a large traffic spike. The database nodes normally only use about 50 Mbps of bandwidth. The historical graphs do not show any spikes which cannot be explained.
Hope that clears it up.
Greetings,
Wim.