Turning ChatGPT Codex Into A ZombAI Agent
ChatGPT Codex was vulnerable to prompt injection, and its use of a Common Dependencies Allowlist for internet access allowed an attacker to recruit it into a malware botnet. An attacker could therefore turn the coding agent into a zombie agent that performs malicious actions.
embracethered.com
Published on embracethered.com
Today we cover ChatGPT Codex as part of the Month of AI Bugs series.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the agent trusted instructions embedded in content it processed and its network allowlist permitted access to package sources that could host attacker-controlled code.
Impact
An attacker could recruit the coding agent into a malware botnet, though the text does not detail the full extent of control or any defences that limited it.
What the attacker needed
Ability to influence content the agent processes
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Prompt injection is when hidden instructions in content the AI reads trick it into following the attacker's commands instead of the user's. Here, because the coding assistant was allowed to fetch common software packages from the internet, an attacker could make it download and run malicious code, effectively joining it to a botnet (a network of compromised machines).
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.