Malicious PNGs Can Bypass AI Code Reviews

gastao_s_s · reddit · 2026-07-14

Ghostcommit: Bypassing AI Code Reviews with Malicious PNGs

This post outlines a novel supply chain attack dubbed Ghostcommit. Attackers split instructions into two parts: a text rules file (like AGENTS.md) instructs the AI to read an image asset (like build-spec.png), while the actual malicious prompt is hidden within the image's pixels.

How it Bypasses Detection

Recommended Defenses

Related event: Ghostcommit Attack Hides Prompts in PNGs to Bypass AI Code Review(2 posts)→

Original post →

More from coding & agent

coding & agent channel →