← All posts

AI Is Hacking Websites Now. Here's How to Fight Back

For years, "AI hacking" mostly meant slightly better phishing emails. Annoying, sure, but nothing that kept me up at night. 2026 changed that. We now have real, documented cases of AI agents breaking into websites with barely any human help, and honestly, the speed of it is what gets me.

I already wrote about the constant bot traffic I deal with. This post is about the newer, smarter stuff, and what you can actually do about it.

What the Attacks Look Like Now

A few incidents from this year really stood out to me.

Patches turned into exploits automatically. Google's threat intel team found an exposed server running a framework literally called exploit_agent. It watched popular web apps for security patches, compared the code before and after the fix, worked out what the bug was, wrote an exploit and fired it at real websites. No human in the loop. Google said it's the first time they've seen an AI agent go from patch to working exploit completely on its own.

Over 1,200 company websites targeted. In October, researchers found a criminal crew that had pointed autonomous AI agents at company websites and basically let them loose. The agents tried more than 1,200 sites and got into ones belonging to over 100 companies, including some very big household names. The funny part is how they got caught: the attackers left their own control panels exposed on the internet.

Government systems mapped in days. In Taiwan, a coordinated group of AI agents mapped 21 government systems, cracked 85 accounts and pulled out thousands of personnel records over about four days. That's the kind of job that used to take a skilled team weeks.

Humans open the door, AI does the rest. Security researchers tracking more than ten agent-driven campaigns this year saw the same pattern again and again. A human drops a web shell on a vulnerable internet-facing app, then hands the keys to an AI agent that does the poking around, privilege escalation and data grabbing.

The scary bit isn't that AI invented some brand-new hacking technique. It's that the boring, tedious parts of hacking are now automated and cheap. The window between "patch released" and "exploit in the wild" keeps getting shorter, and zero-day exploits roughly tripled compared to last year's monthly average.

Your AI Features Are a Target Too

If you've bolted an AI assistant or agent onto your product (and who hasn't), there's a second problem: prompt injection.

The idea is simple. An AI model can't reliably tell the difference between your instructions and text it reads along the way. So an attacker hides instructions in a GitHub issue, a log line, a web page or a support ticket, and your AI happily follows them.

This year that went from "neat research demo" to real incidents:

  • A single prompt injection hidden in a pull request tricked several popular AI coding agents into leaking secrets. The agent did something it was allowed to do (post a comment), but the comment contained stolen data.
  • A malicious instruction in a GitHub issue title fooled an AI triage bot. Combined with some cache trickery, it ended with a poisoned package being published to npm.
  • An observability tool's AI assistant read crafted log entries as commands, then leaked data through a sneaky image URL in its markdown output.

The common thread is that the AI had more access than it needed, and nobody treated what it read as untrusted input.

Don't Forget the Human Side

AI isn't just attacking code. Voice cloning has made phone scams way more convincing. Voice-based social engineering is now one of the top ways attackers get in, ahead of plain old phishing emails. One European bank lost tens of millions after an executive got WhatsApp messages and calls from a cloned "CEO."

For most of us, the realistic version is a call to your help desk or hosting provider pretending to be you, asking for a password or MFA reset. If someone can talk their way into your account, your firewall doesn't matter.

How to Protect Your Sites and Services

Here's what I'm actually doing, roughly in order of bang for buck.

Patch faster than you used to. This is the big one. If AI can turn a patch into an exploit in hours, "we'll update next sprint" doesn't cut it anymore. Turn on automatic security updates where you can, subscribe to advisories for the frameworks and plugins you use, and treat critical CVEs on internet-facing apps as same-day work. Tools like Dependabot or Renovate make this way less painful.

Shrink what's exposed. Every admin panel, staging server and forgotten test box is a target for an agent that never gets tired of scanning. Put admin tools behind a VPN, SSO or an access proxy. Bind internal services to localhost. Shut down anything you're not using. Ironically, attackers keep getting caught because they left stuff exposed. Don't make the same mistake.

Assume something will get in, and limit the blast radius. Since the usual pattern is "web shell first, AI agent second," make that second step hard:

  • Run apps as non-root users and in containers with minimal permissions
  • Keep your kernel and OS patched, not just your app (several of these campaigns escalated through a Linux kernel bug)
  • Use separate credentials per service, and scope API keys and cloud roles tightly
  • Don't keep secrets lying around in .env files on servers where they don't need to be

Watch for the weird stuff. AI agents are fast and noisy. Thousands of requests, unusual outbound connections, new processes spawning from your web server. Set up alerts for things like a web process running a shell, file changes in your web root, or outbound traffic to places your app never talks to. File integrity monitoring is boring and really useful.

Lock down your AI integrations. If your app uses an LLM:

  • Treat everything the model reads (user input, emails, docs, web pages, logs) as untrusted
  • Give the AI the smallest set of tools and permissions possible. A summarizer doesn't need to send emails or hit your database with write access
  • Require a human to confirm anything destructive or anything that sends data out
  • Don't put secrets in system prompts. Assume they'll leak
  • Block or sanitize outbound links and images in AI output, since that's a favorite exfiltration trick

For AI coding agents in CI, don't hand them broad repo or cloud tokens, and be careful about letting them act on issues and PRs from random strangers.

Make account takeover harder. Use phishing-resistant MFA (passkeys or hardware keys) on everything that matters: your registrar, DNS, hosting, GitHub and email. Set up a verbal code word with your team for sensitive requests. If someone calls asking for a reset or a money transfer, hang up and call them back on a number you already know.

Use AI on defense too. It cuts both ways. AI-powered code review, dependency scanning and log analysis can catch things you'd miss. I'd rather have a bot find my bugs before someone else's bot does.

Have backups and a plan. If the worst happens, you want clean, tested, offline backups and a rough idea of who does what. Restoring from a backup beats paying a ransom every single time.

None of this is glamorous, and most of it is the same security advice we've been hearing for years. The difference is that attackers now have a tireless assistant that checks every door and window, all day, for almost nothing. The basics aren't optional anymore. Patch fast, expose less, give everything (people, apps and AIs) only the access it needs, and keep an eye on what's happening. That alone will put you ahead of a surprising number of targets.