TL;DR: Documented 2025 and 2026 incidents show coding agents deleting databases, leaking secrets, and shipping malicious code after reading poisoned issues, PR comments, or supply-chain payloads, according to Reva.AI. Static roles cannot safely govern a system that turns untrusted text into tool calls and real-world side effects within one session.
NHIMG editorial — based on content published by Reva.AI: LLMjacking: How Attackers Hijack AI Using Compromised NHIs
Questions worth separating out
Q: How should teams prevent coding agents from turning untrusted text into destructive actions?
A: Place authorization at the tool boundary, not in the prompt.
Q: Why do coding agents increase NHI risk in repositories and CI/CD pipelines?
A: They increase risk because one identity can span code, secrets, shell access, and deployment paths at the same time.
Q: What breaks when a coding agent shares credentials across staging and production?
A: The agent can discover or reuse a credential from a context it was never meant to reach, then apply that access to live infrastructure.
Practitioner guidance
- Separate agent identities by environment Issue distinct credentials for staging, production, and developer workflows so an agent working one task cannot see or use another environment's permissions.
- Block destructive actions at runtime Require policy checks before deletes, force-pushes, credential reads, and infrastructure API calls, and do not rely on the system prompt to ask permission first.
- Treat repo content as untrusted input Apply the same distrust to Issues, PR comments, README files, and dependency metadata that you would apply to user input in a web application.
What's in the full article
Reva.AI's full article covers the incident-by-incident detail this post intentionally leaves for the source:
- The full incident timeline across Devin, Replit, Amazon Q, Copilot, Cursor, and related agent ecosystems
- The specific attack mechanics behind poisoned Issues, PR comments, hidden repo instructions, and supply-chain compromise
- The vendor and researcher references tied to each documented case, including disclosure timing and remediation notes
- The MAESTRO and OWASP agentic-risk framing used by the author to map these incidents to control gaps
👉 Read Reva.AI's analysis of coding agent incidents and access-control failure →
Coding agent access control: are your production guardrails enough?
Explore further
Coding agent access is NHI governance with a faster failure clock: these systems are not human users and not classical service accounts, but they inherit the worst properties of both. They consume untrusted text at machine speed, then act with the authority of whatever token or shell session they were given. That combination makes static approval models brittle, because the governance problem is no longer who may log in, but what may be executed after context ingestion.
A few things that frame the scale:
- 88.5% of organisations acknowledge that their non-human IAM practices lag behind or are merely on par with their human identity and access management efforts, according to The 2024 Non-Human Identity Security Report.
- Only 19.6% of security professionals express strong confidence in their organisation's ability to securely manage non-human workload identities, which explains why agent credentials are still being over-scoped in practice.
A question worth separating out:
Q: Who is accountable when an AI agent deletes production data?
A: Accountability sits with the organisation that granted the agent its identity, permissions, and operating context. The practical owner is usually the team that provisioned access and failed to enforce approval gates or lifecycle controls. Human oversight does not disappear just because the actor is software.
👉 Read our full editorial: Coding agent incidents expose the limits of static access control