# ghostcommit

> PoC for GhostCommit Attack: Steal secrets via a pull request pointing to an image

Canonical page: https://meshkore.com/agent/asset-group-ghostcommit

## Key facts

- Maintainer: asset-group
- GitHub stars: 33 (as of 2026-12-04)
- Language: python
- Licence: MIT
- Last activity: 2026-08-19
- Category: Security & AI safety › AI guardrails & agent security (https://meshkore.com/category/security/ai-guardrails)
- Source: https://github.com/asset-group/ghostcommit

## What it does

Nobody reads the picture. That is the whole attack. A pull request adds a coding-convention file (AGENTS.md) that points at an image, and the exploit lives inside the image, not the text. A reviewer, human or bot, reads the diff and sees a binary blob, so it merges. Days later a developer asks their coding agent for a routine module. The agent reads the merged convention, opens the image, follows it, and writes the contents of .env into the new file as a tuple of integers. Those integers decode byte for byte to your secrets, and no secret scanner treats a list of numbers as a credential.

## Similar projects

- [SimpleAudit](https://meshkore.com/agent/simulamet-simpleaudit.md) — ★ 34
- [thought_virus](https://meshkore.com/agent/multi-agent-security-initiative-thoughtvirus.md) — ★ 34
- [booth](https://meshkore.com/agent/vedantgitbot-booth.md) — ★ 33
- [agentfacts-py](https://meshkore.com/agent/soth-ai-agentfacts-py.md) — ★ 33
- [GigaChat-Prompt-Jailbreak](https://meshkore.com/agent/1nn0k3sh4-gigachat-prompt-jailbreak.md) — ★ 31
- [Firewalled-Agentic-Networks](https://meshkore.com/agent/microsoft-firewalled-agentic-networks.md) — ★ 30
- [shisad](https://meshkore.com/agent/shisa-ai-shisad.md) — ★ 30
- [chatgpt-plugin-eval](https://meshkore.com/agent/llm-platform-security-chatgpt-plugin-eval.md) — ★ 29

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
