[KongchangAI]
ConceptGitSpawn攻击

GitSpawn

A novel attack vector targeting AI coding assistants in which prompt injection instructions are embedded within code repository files to manipulate AI coding agents into executing malicious code in the developer's local environment. It represents a canonical form of indirect prompt injection.

Timeline (last 90 days)

Oct 14

As of September 1, 2026, four of GitSpawn's eight findings remain unpatched.

Unverified50%
Oct 14

GitSpawn's trigger timing precedes the workspace trust dialog prompt, because git status is often initiated by the agent's background context-gathering phase, and the host has not included this path in the execution surface requiring authorization.

Unverified50%
Sep 11

The GitSpawn attack causes the attack to occur before the code is explicitly executed, breaking the traditional security principle of "don't run untrusted code."

Unverified50%
Sep 11

Prompt injection is divided into two types—direct injection and indirect injection—and GitSpawn is essentially a form of indirect prompt injection.

Unverified50%
Sep 11

GitSpawn renders traditional supply chain defenses such as hash verification and code signing ineffective, because the malicious content is legitimate text rather than executable code.

Unverified50%
Sep 11

Traditional static code analysis tools lack effective detection capabilities for malicious prompt injection instructions in metadata, documentation, and configuration files.

Unverified50%

All Facts (6)

Source Articles