jogga.fit is a fitness app I've been building on the AT Protocol. It is meant for posting your runs, rides and other workouts, using the protocol to keep all of that data closer, under your own control. Part of that is a PDS, the server that actually holds your posts, comments and such. I happen to also run a PDS for people who sign up to the at-proto ecosystem through jogga

Last week I found out that 126 accounts had shown up on the PDS. Yay, users! ...no?

I'd spent the past week stress testing the app, hunting for whatever would break once real people showed up. Turns out some people had already shown up, just not the kind I was planning for 😅

Party poopers 💩

The first account of the lot showed up on the 30th of October. After that, four to six new ones arrived every day, continuously for three weeks. The handles were awkwardly named, what you'd expect from a script, cyrus-martinez, dafykysawygaxype, walrus-79, iterohijytigegojod. Every one of them signed up with a throwaway email address, and none of those was ever verified.

Out of 127 signup requests, 97 came through the Tor network. The rest came from proxies in more than a dozen other countries, each with a different fake browser user agent. Once the accounts existed, an indigo-sdk client on two servers from Finland logged into them 4,340 times. God knows who owns them, but I hope someone has a word with them.

Most of the accounts never posted. They just sat there, or put up a profile and a few lines of generated filler, gibberish like "Soul loops with cornhole undertones…", because that's how real humans write bios on the internet now?

Then a handful of them got busy. Two alone posted almost 450 times. Here's what they posted:

  • strike claims from the Russian Ministry of Defence, and posts credited to the Telegram channel Rybar

  • links to the Pravda network, Sputnik, RT and SouthFront

  • 50 posts in Norwegian, some aimed at Finland and NATO

  • 10 links to qr.nspk.ru, QR codes for Russia's fast-payment system, sitting right next to the war content. That looks like fundraising.

...a bit of spam on the side too, things like a casino, a business-data site, an 18+ music link. They gotta pay some bills, I guess.

The weird part...

Every account that followed anyone followed the same account: ap.brid.gy, Bridgy Fed. That's the bridge that carries Bluesky posts over to the fediverse (Mastodon and friends). 58 accounts, 150 follows, one target.

My guess is that the aim was never Bluesky. Bluesky's AppView seemed to be already ignoring these accounts. When I checked, it showed zero posts for the ones it knew about. The fediverse has no central AppView to filter anything, so the bridge was probably their way in. A small, quiet PDS with no gate had become the perfect launch pad.

So how exactly did they get in?

This part is on me. My PDS had createAccount open to the whole internet and invite codes turned off. I never advertised the route, but I didn't have to. Anyone who knows the AT Protocol can call com.atproto.server.createAccount on any PDS that allows it.

There was no exploit and nothing clever. I left the door open and someone walked in.

Cleaning up...

Admittedly I noticed this oversight a bit late, on the 20th of November 😬

I am not a sec-ops guy, but here is a gist of what I have done in response:

  1. 1.

    Shut the door. The proxy in front of the PDS now answers 403 for all createAccount requests, from anywhere except jogga's own auth gateway.

  2. 2.

    Took down all 126 accounts as an admin instruction to the PDS. The relay too picked it up and now marks them as takendown.

  3. 3.

    Saved everything, every record, the blob metadata(), and the access logs. Researchers can request the anonymised dataset by email.

I have since rebuilt the PDS from scratch, so the accounts and all are gone for good.

Signups to the PDS work differently now:

  • The PDS only makes an account with an invite code, and only jogga's server can create invites, one per signup.

  • jogga creates an account only after you prove your email, either with a code it sends you or by signing in with SSO.

  • Account creation, email changes and password resets are no longer reachable on the PDS from the internet. jogga does them for you, after its own email check. This might be overkill, and I'll probably rewire it once I learn how to handle this better.

For a few days I also blocked password logins on the PDS from other ATProto apps. Since an account can now only exist after an email check, I've opened password logins again. Your jogga account works in any AT Protocol app again.

What I'd tell anyone running a PDS...

  • Watch the account count. A query a day keeps the doo-doo away...

  • We need better door locks. Bluesky and other PDS hosts probably have really good abuse mitigation systems in place, but if you are like me, we are better off keeping the backdoor locked, until we can collectively come up with a way to improve the account creation flow.

If you run a PDS too, go run a check. You might also be hosting some unwanted guests :P