Return to Threats

Prompt injection in the wild: how AI coding agents leaked their own secrets in 2026

AAMIN AI 2026-11-30 indirect prompt injection Critical

Executive Summary

AI coding and operations assistants were influenced by malicious instructions in repository and operational content, leading to reported secret disclosure, data exfiltration, and a malicious package release. Engineering, security, and platform teams operating AI agents should treat external content as untrusted input.

What Happened

The report summarizes cases in which malicious instructions placed in GitHub issues, pull requests, logs, or other content influenced AI coding and operations assistants. Described outcomes include secret disclosure, data exfiltration, and a malicious package release linked to prompt injection and cache poisoning.

Affected Products

  • AI coding assistants
  • AI operations assistants

Vulnerability / Attack Technique

Indirect prompt injection with cache poisoning

Technical Mechanism

Malicious instructions placed in GitHub issues, pull requests, logs, or other content influenced AI coding and operations assistants. The reported outcomes included secret disclosure, data exfiltration, and a malicious package release linked to prompt injection and cache poisoning.

AI Security Category

LLM01:2025 Prompt Injection

Part of the Prompt Injection topic.

Relevant Frameworks

LLM01:2025 Prompt InjectionLLM02:2025 Sensitive Information DisclosureLLM03:2025 Supply ChainLLM04:2025 Data and Model PoisoningLLM06:2025 Excessive AgencyLLM07:2025 System Prompt Leakage

RealGround Analysis

AI agents that process repository, log, or collaboration content can treat attacker-controlled instructions as trusted context and take consequential actions. The combination of sensitive-data access and software-release capability increases the potential impact, making agent-specific red teaming, authorization testing, and supply-chain controls important.

Recommended Controls

  • Treat GitHub issues, pull requests, logs, and other external content as untrusted input and isolate it from privileged instructions.
  • Apply least-privilege identities and prohibit autonomous access to secrets, production systems, and package-release credentials unless explicitly authorized.
  • Require human approval and independent policy checks before code merges, package publication, secret access, or other high-impact actions.
  • Add prompt-injection and cache-poisoning scenarios to AI agent red-team testing, including attempts to trigger secret disclosure and data exfiltration.
  • Monitor agent tool calls, accessed data, generated artifacts, and package releases with alerts for anomalous behavior.

Related RealGround Service

AI Red Teaming · or start with the free AI Agent Security Scanner.

Sources

AAMIN AI: https://aaminai.ae/insights/prompt-injection-ai-coding-agents-2026/

Summary and analysis written by RealGround from the source above; last updated 2026-12-01.

Talk to AI CISO