|

A Bot Signed In As My Customer at 3 AM. It Had the Right Password.

Right password, wrong person: a bot signed in to a customer account from a hosting company in Bulgaria, and Stattery banned it about one second later.

At 3:20 in the morning on November 17, one of my customers signed in to their account on texasmetalworks.com.

Except they didn’t. They were asleep. The thing that signed in was a rented server in Bulgaria, and it had their password. Typed it right the first time, too. The next morning it came back from a server in India and did it again.

WordPress didn’t blink. Why would it? Right username, right password, welcome back, valued customer. That’s the whole problem with a stolen password: it works.

Worryingly, this is almost certainly happening on your site too, and you have no idea. Neither does your customer. Nobody does. Let me show you how we caught it, and why basically nothing else on the market would have.

We Were Hunting Our Own Mistakes

Stattery’s Edge Observers sit in front of my sites on Cloudflare and ban bots the instant they misbehave. Automatic banning is fantastic right up until you ban a paying customer. So on November 18 I had Claude set up a report that runs every six hours and goes through every single ban asking one question: did we screw this up?

The very first run didn’t find a wrong ban.

It found a hijacked account.

One of my real customers, somebody who’s actually bought from us, had been signed in to from two hosting companies in two countries in about 31 hours:

  • November 17, 3:20 AM Central: a server farm in Bulgaria.
  • November 18, 10:37 AM Central: a server farm in India.

Nobody shops for our products from a data center. People shop from the couch, the office or the truck. Data centers are where the bots live. And they damn sure don’t jump from Bulgaria to India overnight.

Two Seconds Of Nothing But Guilty Behavior

It wasn’t one clue. It was the whole routine, and it was identical both times:

  • Straight to the login page. No browsing. No looking at a single product. Hi, I’m here to sign in, thanks.
  • Password right on the first try. Real humans fat-finger their passwords. Robots replaying a stolen one don’t.
  • Within two seconds, it went rummaging. The WordPress admin area. The order pages. The theme editor. The plugin list. The page that spills the signed-in account’s own details.

A customer account can’t open any of that, so WordPress said no to every page. But think about what that sweep actually is. No human signs in to buy some steel and then, two seconds later, checks whether they can edit the website’s code. That’s a burglar walking through your house trying every door handle to see what’s unlocked.

Reconstructed session replay: a login page visit, a correct password, then five refused admin pages in under a second before Auto-ban banned the address, while the session cookie stayed valid.
The first two seconds, rebuilt from the Edge Observer’s records. Banned at one second. Still signed in.

My best read, and it’s an inference, not something I can prove: this customer reused a password that leaked from some other website, and a credential-stuffing bot (a program that tries leaked username and password pairs on thousands of sites) tried it on mine. That’s how nearly all of these work. Somebody else gets breached, and suddenly your customers’ passwords are everybody’s passwords.

Banned In One Second. Still Signed In.

Here’s the good news. Stattery had already banned both of those addresses all by itself, about one second after each sign-in. That admin sweep is exactly what Auto-ban hunts for, so the Edge Observer slammed the door while the bot was still in the hallway. Nobody had to be awake. Nobody was.

Here’s the bad news. Banning an address doesn’t sign anybody out.

Once you sign in, WordPress hands your browser a session cookie, basically a hall pass that says “this one’s signed in, let it through.” Both of those hall passes were still valid when we found them, good until November 19 and November 20. Switch to a different server, bring the cookie along, and you’re right back in. We’d towed the burglar’s car. He still had the house key.

Changing The Locks

I gave the go at 6:01 that evening. A few minutes later:

  • Both sessions were killed. Every browser signed in as that customer got kicked out, bots included.
  • The password was replaced with a random one, so the stolen one became worthless on my site.
  • WordPress sent the customer its own password reset email so they could pick a new one.
  • We’re contacting the customer directly to tell them what happened, and that their password has almost certainly leaked from somewhere else and needs changing everywhere they use it.

That last one is the one that matters. Locking the account protects my store. Telling the person protects their email, their bank and every other place they used that same password. If you only do one of these, do that one.

Then It Got Worse

One break-in is an anecdote. So we replayed the last 30 days of sign-ins across every site running an Edge Observer.

It wasn’t one. It was eleven.

Eleven bot sign-ins on texasmetalworks.com from October 22 to November 18, all from hosting companies in seven countries; the last two were caught and locked.
Eleven break-ins in four weeks. Nine of them we found too late to trace.

Eleven bot sign-ins on texasmetalworks.com between October 22 and November 18, from hosting companies in Brazil, the Netherlands, the US, Italy, Germany, Bulgaria and India. Same toolkit every single time: one hit on the login page, a password that works first try, an admin sweep inside two seconds. Same burglar, different getaway cars.

Two of them were the account we’d just locked. The other nine had come and gone weeks earlier. Their sessions had expired, and there was nothing left to tell us whose accounts they were. That one stings. Nine of my customers have a password floating around out there, and I can’t warn them.

My other sites? Only real people signed in. So this isn’t a WordPress thing. It’s a “you have customers worth robbing” thing.

Why Nobody Else Sees This

Let’s go down the list of things that are supposed to be watching.

  • Your analytics? Google Analytics and every tool like it count visitors by running a little script in the browser. Bots that sign in don’t run your scripts. As far as your analytics knows, these sign-ins never happened.
  • Your security plugin? It sees a sign-in with the right password. That’s not an attack, that’s a success. Gold star, come on in.
  • Your logs? If you’re behind Cloudflare like I am, WordPress was writing down Cloudflare’s address as the visitor, not the bot’s. Go looking for the attacker and the trail leads straight to… Cloudflare. Super helpful.

So the owner doesn’t know. The customer doesn’t know. The analytics doesn’t know. The only evidence is a perfectly normal sign-in sitting in a pile of thousands of other perfectly normal sign-ins.

The Edge Observer saw it because it’s the only thing standing in the doorway. It sees where the sign-in really came from, and it watches what that session does in the two seconds after.

The same sign-in seen four ways: analytics saw nothing, the security plugin saw a success, WordPress recorded a Cloudflare address, and the Stattery Edge Observer saw the whole attack.
Same sign-in, four points of view. Only one of them saw a burglar.

So We Built The Alarm

Catching this because a report happened to be looking at bans was luck. I don’t want my customers’ safety riding on luck, and I don’t want yours to either. So that same night we built Sign-In Alerts, and it’s live on every Stattery plan:

  • Every sign-in gets checked. The Edge Observer watches each WordPress and WooCommerce sign-in for the tells: a data center, a country your site doesn’t sell to, a country or network this account has never used before, and that tell-tale admin sweep right after.
  • You hear about it in about 30 seconds. On the Stattery bell, on your phone and by email.
  • You know exactly who got hit. The alert names the account: the username, the email address, what kind of account it is, and every request that session made in the next 10 minutes. No digging through logs. You know who to call before you’ve finished reading.
  • One click changes the locks. Every session killed, a random password set, and WordPress’s own reset email sent to the person. Everything we did by hand that night, minus the hand.
Mockup of a Stattery Sign-In Alert for a customer account, with masked username and email, the hosting company and country, red minus signs for each warning sign, and Lock, See requests and This was them buttons.
What a Sign-In Alert looks like. Mockup with example data; account details masked.

Real people sometimes sign in through a VPN or Apple’s iCloud Private Relay, which can look like a data center from the outside. So by default it alerts instead of blocking, and there’s a “This was them” button that teaches it that account’s normal network.

And Bolted The Door

An alarm is great. Not letting them in at all is better. On texasmetalworks.com we also turned on, or built outright:

  • Refuse data center sign-ins. A sign-in from a cloud server outside the US gets refused at Cloudflare before WordPress ever sees the password. Ten of the eleven break-ins came from exactly that. Customers on a normal VPN or Private Relay still get in.
  • Instant bans on attack paths. Ask for a backdoor, a web shell, a config file or an admin panel, and you’re banned on the first request. No waiting around to see what it tries next.
  • Slow swarms get caught. A pack of addresses that show up together, look alike and don’t act like people? Banned together. Bots that spread out to stay under the radar now just get banned in bulk.
  • Country bans for bots. My store sells to the US and Canada. Bots from the 28 countries that sent me the most garbage last month get banned on sight. People from those countries can still shop, and real search engines are never touched.
  • A Cloudflare challenge for one especially stubborn fake-browser pattern, so those requests have to prove they’re human before they reach the server at all.

Where This Goes Next

Sign-In Alerts still waits for you to click the button. That’s version one. Here’s where we’re taking it. These are plans, not shipped features, and I’ll tell you when each one goes live:

  • Lock it in real time, automatically. An opt-in setting that kills the hijacked session the moment Stattery is sure, instead of waiting for you to read an email. At 3 AM, that’s the difference between one second and six hours.
  • Tell your customer for you. A plain-English note to the person whose account it was: somebody signed in as you, here’s when and where from, we’ve locked it, and your password has leaked, so change it everywhere you use it. Sent from your site, under your name.
  • Warn them before it happens. Checking sign-ins against known password breaches, so a customer can hear that their password is out there before a bot ever gets around to trying it.
  • More than WordPress. WordPress and WooCommerce came first because that’s where we caught it. Other platforms are next.

Your customers shouldn’t find out their account was hijacked when a weird order shows up. Or worse, never. They should hear it from you, the same day, with the locks already changed.

What You Should Take From This

  • A stolen password looks exactly like a real one. If all your security asks is “is the password right?”, the answer for the attacker is yes. Every time.
  • Banning the address isn’t the finish line. If they got a session first, they’re still signed in. Kill the session.
  • Tell the person. Your site is almost certainly not the only place they used that password.
  • Your customers’ accounts are your problem, even when the leak happened somewhere else. They trusted you with them.

If you run WordPress behind Cloudflare, put an Edge Observer in front of it and turn on Sign-In Alerts. It takes a few minutes. Then the next time a server farm signs in as one of your customers at 3 AM, you’ll know who, from where, and what it tried, before your coffee’s done brewing.

The burglars already have the keys. Might as well know when they use them.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *