DEV Community

Cover image for The AI Agents Aren't Smarter Than Your Attackers Were Last Year. They're Just Never Tired.
Cor E
Cor E

Posted on Edited on

The AI Agents Aren't Smarter Than Your Attackers Were Last Year. They're Just Never Tired.

Attackers are now using LLM-powered agents to steal LLM credentials so they can power more LLM-powered agents, and the whole thing works because somebody left the default password on a gateway.

Amazon's MadPot decoy servers caught what looks like a campaign of attacker-run AI agents (likely built on the open-source ARTEX pentesting tool) sweeping the internet for exposed LLM gateways and AI app builders. LiteLLM, One API, Dify. The agents grabbed stored provider API keys through default credentials, auth bypasses, SSRF, and leaked secrets, then pooled those keys and used them to fund the agents' own LLM calls. Related Cloudflare and FBI reporting describes ARTEX-assisted intrusions through over-privileged CI/CD tokens.

The line that matters most is buried in Amazon's own framing: none of the techniques were novel.

Where this fits

This is the oldest story in security. Exposed admin panel, default creds, an SSRF that reaches something it shouldn't, a secret sitting in a place secrets shouldn't sit. I've watched this movie since the days when the "AI" in the scanner was a guy named Dave with a shell script and a bad attitude.

What changed is the target class. LLM gateways and app builders are, by design, credential aggregators. Their whole job is to hold keys to a bunch of upstream providers so your apps don't have to. That makes one compromised gateway worth far more than one compromised web app. Same bug, bigger blast radius.

The hype check

Expect the "autonomous AI hackers" headlines. Some of that is deserved, and a lot of it isn't.

Overstated: the idea that agents are inventing new attack classes. Amazon says they aren't. They're running known plays. If your takeaway is "we need AI-grade defenses against AI-grade attackers," you've been sold something. The defense here is boring. Change the default password. Don't expose the admin interface to the internet. Scope your tokens.

Understated: the economics. Look at what the campaign actually did with the haul. The stolen keys paid for the attackers' own inference. That's a self-funding loop. The compute bill, which is a real constraint on running agents at scale, gets pushed onto victims. Somebody else's quota, somebody else's invoice. That's a clever bit of operational design, and it's easy to miss while everyone argues about whether the agents are "really" intelligent.

Also understated: persistence. The summary says the agents operated faster and more persistently against basic gaps. A human tester gets bored, gets pulled onto another job, goes home. An agent keeps knocking on the 40,000th door with the same enthusiasm as the first. You don't need novelty when you have stamina.

Who benefits from the narrative? Anyone selling "AI vs AI" security. And, quietly, the attackers, because mystique is free marketing.

What this means in practice

If you run any of these gateways or app builders, treat them as tier-zero infrastructure, not as a developer convenience you spun up on a Friday. They hold keys. Keys are money. Probably a lot of money, if someone's running agents against your quota.

A few things I'd actually check, none of them exciting:

  • Is the thing reachable from the public internet at all? Most of the time it shouldn't be.
  • Did anyone change the default credentials? (I'd bet a fair number of these deployments never did. Defaults survive because "we'll harden it later" has a 90% failure rate.)
  • What can the stored keys do, and what are the spend limits on them?
  • If your CI/CD tokens are over-privileged, the Cloudflare and FBI side of this story is your story too.

The uncomfortable part is that the rush to ship AI features has produced a generation of internal tooling stood up fast, by people optimizing for "does it work," with the security review deferred indefinitely. Attackers noticed before the defenders did, because noticing is cheap when you can automate the looking.

The part I keep chewing on

We spent years saying attackers only need to be right once and defenders need to be right every time. Agents sharpen that asymmetry in a specific way: the cost of probing just collapsed. If trying a default credential against ten thousand hosts is effectively free, then "nobody would bother attacking us" stops being a defensible position for anyone with an exposed login page.

So here's what I don't have a good answer to. If the techniques are old and the fixes are boring, why did this campaign have enough exposed targets to be worth running? What is it about AI tooling specifically that keeps pulling teams into skipping the basics they'd never skip on a normal web app?

— Cor, Skyblue Soft

Sources


AI-assisted draft or imaging, human-curated, reviewed and edited.

Top comments (0)