Skip to main content
Mallory
← Back to News
ai-platform-securitybuild-pipeline-compromiseidentity-authentication-vulnerability

Prompt Injection Flaws in AI Agent Harnesses Enabled Secret Theft and Repo Abuse

Emerging Technology Risk · 3 sources · Updated 4mo ago · First seen Jul 29, 2026

Prompt Injection Flaws in AI Agent Harnesses Enabled Secret Theft and Repo Abuse

Research from Novee Security found that default AI agent harnesses from major vendors could be abused to exfiltrate secrets, bypass trust boundaries, and chain individually approved actions into harmful outcomes. Elad Meged reported multiple issues affecting Anthropic, Google, and OpenAI tooling, arguing that the root problem lies in architectural trust decisions, approval logic, and cross-stage handoffs rather than prompt injection alone. One Google Gemini CLI issue was tracked as GHSA-wpqr-6v78-jr5g with a CVSS 10.0 rating, while weaknesses were also identified in Anthropic's Claude Code Action and OpenAI's Codex CLI sandbox.

The findings showed how controls can fail when agent components such as tools, memory, prompts, and execution environments trust each other too broadly. Researchers said Google's agent could be pushed into a supply-chain-style attack that wrote to its own GitHub repository, illustrating how safe-looking steps can combine into exploitable workflows. Vendors have added mitigations and fixes, but the repeated pattern across products points to a broader industry problem for organizations deploying autonomous agents on untrusted input, especially where human review is limited or absent.

Why it matters

Impact assessment

Default or recommended AI agent harnesses from Anthropic, Google, and OpenAI were shown to permit secret exfiltration, trust-boundary bypass, and repository abuse when processing untrusted input. The affected population is organizations deploying autonomous or semi-autonomous agent workflows, especially CI/CD, code-assistant, document-ingestion, and multi-agent NLP pipelines where human review is limited.

Impact can include credential or secret disclosure, unauthorized repository modification, supply-chain compromise, and downstream operational and reputational damage. The exposure appears broad across agent architectures rather than isolated to one vendor, but the reporting cites research demonstrations and disclosed flaws rather than confirmed widespread in-the-wild exploitation.

Supporting details

  • Affected vendors/products named in reporting:
    • Anthropic Claude Code Action
    • Google Gemini CLI
    • OpenAI Codex CLI sandbox
  • Affected use cases:
    • CI workflows processing untrusted input
    • Multi-stage agent workflows sharing workspace or memory
    • Document-processing and financial NLP pipelines ingesting external content
  • Business consequences described:
    • Secret theft from agent pipelines
    • Unauthorized writes to GitHub repositories
    • Supply-chain-style abuse through trusted automation
    • Cross-stage propagation of malicious context between agents
  • Scope assessment:
    • Cross-vendor pattern indicates an industry-wide architectural weakness in agent harness design
    • Highest risk where agents consume attacker-controlled content and can access tools, memory, repositories, or publication channels
  • Exploitation status:
    • Researchers demonstrated exploit chains and repo-write abuse in lab or disclosure contexts
    • No explicit confirmation in the provided sources of active mass exploitation in the wild
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events
  1. Reported Jul 29, 20264mo ago

    Vendors add defenses and issue fixes for reported AI harness issues

    The reporting states that vendors added defenses and issued fixes in response to the disclosed findings. Despite those remediations, the researchers said the recurring pattern across products points to an industry-wide design problem in autonomous agent workflows.

    An AI agent can pass every safety check and still leak secrets - Help Net Security
  2. Reported Jul 29, 20264mo ago

    OpenAI Codex CLI trust-boundary weaknesses are disclosed

    The research highlighted trust-boundary weaknesses in OpenAI's Codex CLI sandbox. These issues fit the broader pattern of harness components making unsafe assumptions during handoffs between prompts, tools, memory, and execution environments.

    An AI agent can pass every safety check and still leak secrets - Help Net Security
  3. Reported Jul 29, 20264mo ago

    Critical Gemini CLI issue tracked as GHSA-wpqr-6v78-jr5g is demonstrated

    The research demonstrated a critical issue in Google's Gemini CLI, tracked as GHSA-wpqr-6v78-jr5g and rated CVSS 10.0. Dark Reading also reports that Google's AI agent could be abused for a supply chain attack and to write to its own GitHub repository.

    An AI agent can pass every safety check and still leak secrets - Help Net Security
  4. Reported Jul 29, 20264mo ago

    Anthropic receives multiple reported findings on Claude Code Action

    Meged reported multiple security findings affecting Anthropic's Claude Code Action as part of the broader AI harness research. The findings were tied to weaknesses in how individually permitted actions could be combined into unsafe workflows.

    An AI agent can pass every safety check and still leak secrets - Help Net Security
  5. Reported Jul 29, 20264mo ago

    Novee Security identifies exploit chains in major AI agent harnesses

    Research by Elad Meged of Novee Security found that default AI agent harnesses from Anthropic, Google, and OpenAI could be abused through prompt-injection-driven workflows to exfiltrate secrets or bypass trust boundaries. The work argued that the root issue was architectural flaws in harness trust decisions, approval logic, and cross-stage handoffs rather than prompt injection alone.

    An AI agent can pass every safety check and still leak secrets - Help Net Security
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

3 linked
Claude CodeCodex CliGemini-Cli

Organizations

3 linked
AnthropicOpenaiGoogle
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.