<- ALL CYBER NEWS

High

Ghostcommit, prompt injection, AI agents, steganography, secrets, code review, supply chain

A PNG in Your Repo Can Whisper to the AI and Walk Out With Your Secrets

Researchers hid a prompt injection inside an image and used it to steal a repository's secrets. The technique, called Ghostcommit, slipped past AI code reviewers that never open image files, then talked a coding agent into doing the work.

Researchers have demonstrated a technique called Ghostcommit that hides a prompt injection inside an ordinary-looking image and uses it to steal a repository's secrets, as reported by BleepingComputer. A PNG committed to a project carries instructions that a human never sees and a scanner never reads.

The clever part is where it hides. AI code reviewers such as CodeRabbit and Bugbot inspect code, not image files, so a payload tucked into a picture sails past review untouched. Later, when a coding agent with real access processes the repository, it reads the hidden text and follows it, exfiltrating secrets on the attacker's behalf.

This is the recurring shape of agent security in a single example. The model reads untrusted content, the content contains instructions, and the agent acts on them with whatever permissions it holds. Moving the injection into an image only widens the blind spot, because the tools meant to catch malicious changes were never looking at pictures in the first place.

The defenses follow from the mechanism. Treat everything an agent can read, including files it is not obviously meant to parse, as untrusted input. Scope an agent's access to secrets as tightly as possible, and do not assume that passing an AI code review means a change is safe, because the reviewer and the agent are not looking at the same thing.

Sources: BleepingComputer.

Liked this briefing? Share it:

More briefings

Related posts appear on the live page
Get the briefings first
Breaking security news, verified fast, with the one fact the headlines skip. No spam - unsubscribe anytime.