cd /news/ai-safety/ghostcommit-png-prompt-injection-mak… · home topics ai-safety article
[ARTICLE · art-55925] src=letsdatascience.com ↗ pub= topic=ai-safety verified=true sentiment=↓ negative

Ghostcommit: PNG prompt-injection makes AI agents leak repository secrets

Researchers disclosed Ghostcommit, a proof-of-concept attack that hides prompt-injection instructions inside a PNG image referenced by an AGENTS.md file, causing AI coding agents to leak repository secrets. A survey of 6,480 pull requests across 300 active repositories found 73% merged without substantive human or bot review. The disclosure prompted notifications to vendors.

read1 min views1 publishedJul 11, 2026

Researchers disclosed Ghostcommit, a proof-of-concept software supply-chain attack that hides prompt-injection instructions inside a PNG image referenced by an AGENTS.md file, allowing malicious pull requests to appear benign during review. The instruction to steal your .env lives inside a PNG. The demonstration team placed the exploit in an image so text-based reviewers treat the file as a binary blob while downstream coding agents later open the picture, follow its instructions, access repository secrets and emit those secrets into source as encoded integers. In a related survey the authors wrote we surveyed 6,480 pull requests across the 300 most active public repositories of the last ninety days, and 73% of the ones that got merged reached the default branch with no substantive human review and no bot review at all. News outlets reported the disclosure and vendors were notified.

── more in #ai-safety 4 stories · sorted by recency
── more on @ghostcommit 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ghostcommit-png-prom…] indexed:0 read:1min 2026-07-11 ·