November 22nd, 2026
git.netbsd.club is a Gitea instance I setup in June with the goal of getting off of Github (TLDR: I dislike AI for software development). This server chugged along with the default settings, absolutely no problem. I had enabled public sign-ups to allow my friends to sign-up, un-hindered and all was well.
Suddenly on October 30th, the server was inundated with thousands of sign-up requests, to the point that it was unusable just from the volume of traffic. All of these sign-up requests seemed to have a single source. So I configured pf to block traffic from that IP. The attacker obviously realized they were getting blocked, and changed IP's. I would play whack-a-mole with blocking these IP's for a couple days. Until, unfortunately I decided to take a 2 day vacation with my family. When I returned there had been around 2500 bot sign-ups to the service.
First things first I disabled public sign-up, and moved it to a manually authorized system. Second, I cleaned up all of the new bot sign-ups. This was actually really easy, because the bot's owner decided to name them all with the same prefix. Thanks for that. I also found that one of the bots had a repo that attempted to use a bad Git hook to read /etc/passwd for some sort of privilege escalation. Based on my investigation however it seemed to never have successfully run.
After discovering this, I decided to install Anubis on the server. I then created a RC script for it, and it is now blocking seemingly 80-90% of ALL traffic the server receives. (Yay I love AI soaking up large portions of internet bandwidth, so cool!)
Don't host your Gitea server with public sign-up enabled anymore, and use some sort of bot blocking tool. Its really unfortunate that we've let AI run rampant with zero regulation across the internet, its all so tiresome. Thanks for reading.