arXiv preprint · cs.CR · research brief

Exploring the Security Threats of Retriever Backdoors in Retrieval-Augmented Code Generation

Retriever backdoor study in Retrieval-Augmented Code Generation at 0.05% corpus poison rate.

Executive summary

Quotations come from the arXiv abstract. Read the paper for its full methods, threat model, and limitations.

Technique mapping

TechniqueRelationshipWhy it maps
RAG Poisoning AML.T0070PrimaryThe paper targets retrieval-augmented generation or knowledge-base integrity.
Training Data Poisoning AML.T0020SecondaryThe paper concerns training-data or model-weight integrity.

Model routes mapped to this paper

Named mappings link a model family the paper names to its current route. Model-class mappings link papers on model classes that are commonly evaluated against that family. Neither asserts a paper-specific score.

Model routeMappingRationale
OpenAI: GPT Sol LatestNamed in the paperThe paper names OpenAI/GPT; the current OpenAI route is retained as a modern mapping without asserting a paper-specific score.

Mitigations for RAG Poisoning

Test with Refract

Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. These packs exercise the techniques this paper maps to. Replace <model-id> with an OpenRouter route ID.

refract scan \
  --target "openai_compat:<model-id>" \
  --base-url https://openrouter.ai/api/v1 \
  --api-key "$OPENROUTER_API_KEY" \
  --battery rag_indirect_injection
refract report

Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.

Citation record

Inspect in Observatory Sources Registry

arXiv identifier
2512.21681
Observatory record
RA-2512.21681
Publication or host
arXiv (author preprint; peer-review status not inferred)
Published
Primary category
cs.CR
Categories
cs.CR, cs.SE
Evidence provenance
Verified against the arXiv API
Retrieved
Discovery query
OpenAI-related security research
Reference URI
https://arxiv.org/abs/2512.21681
Metadata fingerprint (SHA-256)
fdb57a8143fea1cb50b2404bc35ee70646ea3de3a4b074aa2bb62b756388cf39
Authors
Tian Li · Bo Lin · Shangwen Wang · Yusong Tan

Techniques citing this research