← Lab /Software

Agentic AI coding assistants can be hijacked via hidden instructions in external artifacts

Hidden instructions in external artifacts can hijack AI coding assistants, turning them into an attacker-controlled shell

Software arXiv 25 May 2026 Attack Maturity unclear

Published as “How Agentic AI Coding Assistants Become the Attacker's Shell”

Why it matters

Developers using AI coding assistants risk having their machines silently commandeered by hidden instructions in untrusted artifacts.

Summary

Prompt injection attacks against agentic AI coding assistants succeed at high rates, with success ranging from 41% to 84% across 314 payloads and multiple tools, showing a systemic security risk. The authors built the AIShellJack framework to evaluate real-world codebases and found the problem spans languages, models, and external artifacts. Evidence is based on systematic testing of popular assistants on real projects, but success rates vary and defenses like disabling terminal access only partially mitigate the threat.

What they found 1

  1. Success rates of prompt injection attacks ranged from 41% to 84% across 314 payloads.

    “Across our 314 test payloads, success rates ranged from 41% to 84%.”

Caveats 5

  • Success rates varied widely (41% to 84%), indicating attacks are not guaranteed.
  • Disabling direct terminal access does not fully solve the problem, as attacks can still succeed via malicious system calls embedded in source code files.
  • Restricting execution permissions is not enough.
  • Safety filters miss the root cause.
  • The root cause is architectural, not behavioral.

What’s new here 3

  • Systematic large-scale measurement of prompt injection leading to real system actions in AI coding assistants.
  • Evaluation across multiple assistants, language models, and programming languages using a unified framework (AIShellJack).
  • Quantification of supply-chain risk in community-shared AI coding artifacts (e.g., 13.4% of public skills contain critical issues).