gcdRadar
archive/Research/AIR-2026-1565
closedclosed 10 Nov 2026Research1 Research / proof of conceptAI

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

  1. 27 Oct 2026NameTrap: Steering AI Coding Agents Toward Security Vulnerabilities via Variable Names

Sources · 1

Research and catalogues

  1. 2026-10-27

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

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
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

  1. live
    AI
  2. live
    AI
  3. closed
    AI
  4. closed
    AI
  5. closed7.3
    llama.cpp CVE-2026-78147: llama.cpp RPC server vulnerable to insecure deserialization

    Patch now · Disclosed · since 23 Aug 2026 · CVE-2026-78147

    AI
  6. closed
    AI