NVIDIA proposes NXDirection to defend against prompt injection
Start here
NVIDIA research team proposes NXDirection, a method to defend against indirect prompt injection by removing instruction directions from external content. The method uses 175 short samples and 18 instruction categories to extract per-token instruction directions via mean difference, intervening only on externally sourced tokens while system prompts and user requests remain unchanged. On 9 open-source instruction models, BIPIA attack success rate drops from 38.1% to 0.1%, AgentDojo with tool calling drops from 28.4% to 3.7%, and normal task utility is 76.4%, close to unguarded levels.
Generated by AI from reports · Updated 28 days ago
Progress timeline
- NVIDIA: Trustworthy AI & CybersecuritySelectedNVIDIA proposes NXDirection: making external content non-executable along the instruction direction
NVIDIA research team proposes NXDirection, a method to defend against indirect prompt injection by removing instruction direction from external content. The method uses 175 short samples and 18 instruction types to extract the instruction direction for each token via mean difference, intervening only on tokens from external sources, leaving system prompts and user requests unchanged. On 9 open-source instruction models, BIPIA attack success rate drops from 38.1% to 0.1%, AgentDojo with tool calling drops from 28.4% to 3.7%, and normal task utility is 76.4%, close to the undefended 78.4%. The authors claim it outperforms prompt defenses like Sandwich and Spotlighting on two benchmarks, and unlike detectors, it does not require deleting entire tool outputs or extra GPT calls; however, the method requires access to model internal states, is only applicable to open-weight or self-hosted models, and some attacks still succeed.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@fivelossSH · fiveloss | SILVERHANDnvidia's write-up: https://research.nvidia.com/ai-security/nxdirection-no-execute-along-instruction-direction tested on…(opens the original post in a new tab)
- X@fivelossSH · fiveloss | SILVERHANDsilver signal #13 nvidia cut prompt injection on open models from 38.1% to 0.1% ▸ strips the "instruction" signal fro…(opens the original post in a new tab)
1 likes · 1 comments·Oct 18 10:34Collect
- X@NedPeterson99 · Ned PetersonThe fix for prompt injection may not be a better filter. It may be making the attacker's words non-executable inside th…(opens the original post in a new tab)
1 likes · 1 comments·Oct 18 10:34Collect
- X@MarceCarabajal_ · Marce Carabajal { dev }Nvidia redujo la tasa de éxito de los ataques de prompt injection indirectos de 38,1% a 0,1%, perdiendo apenas 2 puntos…(opens the original post in a new tab)
2 likes · 1 comments·Oct 17 23:34Collect
- X@LeonDerczynski · Leon Derczynski ⚒☁🏔🌲NXDirection - separate control and data for agents: https://research.nvidia.com/ai-security/nxdirection-no-execute-alo…(opens the original post in a new tab)
1 likes·Oct 18 10:34Collect