Skip to content
IAM Insights

Explainers · Glossary

Greedy Coordinate Gradient (GCG)

Greedy Coordinate Gradient · GCG

An attack that searches for a string of odd-looking tokens to add to a prompt so a model does what the attacker wants, first built for jailbreaks.

reference →

In our briefings

What our briefings say about Greedy Coordinate Gradient (GCG) itself, with the most direct claims first.

  1. The authors tested two defenses, a perplexity filter and query rephrasing. Under them AgentPoison's end-to-end success stayed between 47.2% and 62.0% on the driving and question-answering agents, against 4.6% to 28.0% for the GCG attack, which they put down to triggers that read as ordinary text. Triggers optimized on open embedding models also transferred to others, including OpenAI's ada-002, which is their answer to the attack's stated limitation, white-box access to the embedder. They argue that a published defense, which isolates each retrieved passage, "can hardly defend" the attack, but they do not test it.

    AgentPoison's few poisoned memory entries steered agents 62.6% of the time on average, not the abstract's 80%BI-FIND-2024-0041

Cited in 4 briefings

Every briefing that discusses this term, newest first.

  1. All eight prompt-injection defenses in this test were bypassed by attacks tuned to each one

    Paper · · arXiv · Qiusi Zhan et al. · Feb 27, 2025

  2. SecAlign held optimised prompt injections to 14% or less on five models; its authors say it cannot stand alone

    Paper · · arXiv · Sizhe Chen et al. · Oct 7, 2024

  3. AgentPoison's few poisoned memory entries steered agents 62.6% of the time on average, not the abstract's 80%

    Paper · · arXiv · Zhaorun Chen et al. · Jul 17, 2024

  4. StruQ held hand-written prompt injections to 2% or less on two small models; optimised attacks still got through

    Paper · · arXiv · Sizhe Chen et al. · Feb 9, 2024