NameTrap: Steering AI Coding Agents via Variable Names
Python
Researchers introduced NameTrap, a source-code poisoning attack that renames identifiers in third-party Python files to steer AI coding agents toward specific Common Weakness Enumeration vulnerabilities. The technique demonstrates how web-borne context can be weaponized to compromise code generated by AI assistants.
why this severityDemonstrated research attack with no known real-world exploitation.
- first report
- 27 Oct 2026
- last update
- 27 Oct 2026
Timeline · 1
Sources · 1
Research and catalogues
- 2026-10-27NameTrap: Steering AI Coding Agents Toward Security Vulnerabilities via Variable NamesarXiv · arxiv.org/abs/2610.34253
Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.
Classification
- lane
- Research
- AI role
- Attack on AI
- categories
- Supply chainAdversarial evasion
- severity
- 1 · Research / proof of concept
- targets
- Framework / tooling, Open-weight model
- owasp llm top 10
- LLM03:2025 Supply Chain
- mitre atlas
- AML.T0010 AI Supply Chain CompromiseAML.T0015 Evade AI ModelAML.T0043 Craft Adversarial Data
- dates
- happened 27 Oct 2026 · first reported 27 Oct 2026
- origin
- News & research feeds
- record
- confidence 0.95 · created 2026-10-27 15:31Z · updated 2026-11-11 00:12Z
Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned
Copy a brief
This record as a short Markdown brief, for a ticket, a chat or a coding agent.
the brief as text
# NameTrap: Steering AI Coding Agents via Variable Names https://gcdradar.vercel.app/incidents/nametrap-steering-ai-coding-agents-via-variable-names · AIR-2026-1565 · closed 2026-11-10 - Lane: Research - Severity: 1 (Research / proof of concept): Demonstrated research attack with no known real-world exploitation. - Fix status: Fix status unknown - First reported: 2026-10-27 - AI role: Attack on AI - Products: Python ## Summary Researchers introduced NameTrap, a source-code poisoning attack that renames identifiers in third-party Python files to steer AI coding agents toward specific Common Weakness Enumeration vulnerabilities. The technique demonstrates how web-borne context can be weaponized to compromise code generated by AI assistants. ## What to do No action recorded; read the sources below and the vendor's advisory. ## Latest updates - 2026-10-27: NameTrap: Steering AI Coding Agents Toward Security Vulnerabilities via Variable Names (https://arxiv.org/abs/2610.34253) ## Sources - 2026-10-27 arXiv: NameTrap: Steering AI Coding Agents Toward Security Vulnerabilities via Variable Names https://arxiv.org/abs/2610.34253 Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.
Related
- liveHijacking a Trusted LLM in Quantized Deployments via Disguised Adapters
Research · since 13 Nov 2026
AI - liveTrained to betray: How post-training supply chain attacks hijack coding agents
Research · since 12 Nov 2026
AI - closedSteering Vectors Steering for Safety, Hijacking for Profit: Trojan Threats in LLM Steering
Research · since 27 Oct 2026
AI - closedSEAL: Persistent Tool Poisoning Attack against LLM Agents
Research · since 20 Oct 2026
AI - closed7.3llama.cpp CVE-2026-78147: llama.cpp RPC server vulnerable to insecure deserialization
Patch now · Disclosed · since 23 Aug 2026 · CVE-2026-78147
AI - closedGGUF Poisoned GGUF Templates Enable Inference-Time Supply Chain Attacks
Research · since Jun 2025 (approx.)
AI