Opens in a new tab

Independent WordPress hosting guides · Recommended host: Convesio

Start a free trial →

Security for Vibe Coders: Prompt Injection and Hijacked Agent Sessions

Real incidents from 2026 show how AI coding tools get attacked. What happened, and the simple habits that protect a WordPress site.
By Shahzad Hasan · November 18, 2026

AI agents read web pages, error reports and packages, and they act on what they read. Attackers have noticed. These incidents were reported this year:

  • A fake error report: a security team showed that one fake Sentry error could steer AI coding agents into running attacker code (Vibe Coding Weekly #36).
  • A web page with hidden instructions: a researcher got an indirect prompt injection past Claude Code’s Auto Mode about 80% of the time in his tests, starting from a request to summarise a web page; Anthropic shipped fixes the same week (Vibe Coding Weekly #46).
  • A hijacked assistant session: Mandiant described an attacker who took over an AI assistant session, which recommended a poisoned package; a worm then spread across about 100 internal repositories (Vibe Coding Weekly #49).
  • Stolen AI keys: after a breach at Railway, unauthorised AI spend reached about $740,000, by the company’s own report (Vibe Coding Weekly #55).

Details are as reported by the researchers and companies involved and summarised by Vibe Coding Weekly.

Habits that protect your site

  1. Treat anything the AI reads as untrusted: web pages, emails, error reports, form submissions. Instructions inside them are not instructions from you.
  2. Check new packages and plugins before installing, even when the AI recommends them. Mandiant’s advice: verify against checksums or an allowlist.
  3. Keep long-lived credentials away from agents. Use application passwords you can revoke, and secrets that are injected rather than pasted.
  4. Put a spending limit on every AI key.
  5. Least privilege: the AI’s WordPress user gets only the access the job needs.
  6. Approve risky actions: installs, deletions and anything that sends data out.

Related: Claude Security and WordPress and Agent Guardrails and Permissions.

In this article

Need hosting that scales?

Convesio runs each site in Docker containers with auto scaling and load balancing built in.
Try Convesio free →
Affiliate link: we may earn a commission at no extra cost to you.