A single malicious repository can turn your AI coding assistant into a supply chain attack delivery system. You approve what looks like a harmless file copy. The agent secretly overwrites its own configuration. On the next restart, attacker code runs with your full privileges.

Researchers at Adversa AI named the attack SymJack. They proved it works against six major coding agents. The human approval step, the main safety control these tools rely on, becomes theater.


Why It Matters to You

AI coding agents now read project instructions, copy files, edit code, and run commands on your behalf. You click approve because the prompt looks harmless. SymJack exploits that trust.

The attack hides inside a symlink. A file that looks like an innocent video or document is actually a trap. When the agent copies it, the symlink redirects the write to the agent's own configuration folder. The attacker registers a malicious MCP server. The next time the agent restarts, it runs whatever code the attacker planted.

Adversa demonstrated this against Claude Code, Gemini CLI, Antigravity CLI, Cursor Agent CLI, GitHub Copilot CLI, Grok Build CLI, and OpenAI Codex CLI. Every one fell for the same chain.

On a developer laptop, the attacker can steal SSH keys, cloud tokens, browser sessions, or destroy production assets. On a CI runner, the damage multiplies with zero human clicks. A single malicious pull request can exfiltrate every secret the runner holds before any human reviews the change.

Malicious repositories already fuel 20% to 40% of supply chain attacks. SymJack adds AI coding agents as a new delivery channel.


What Engineers Need to Know

How the Attack Chain Works

The chain has four steps.

First, the attacker controls a repository. They add a project instructions file the agent treats as trusted guidance. That file contains a hidden instruction to copy a specific file.

Second, the repository contains a malicious symlink disguised with an innocent filename. A file named onboarding_video.mp4 might actually point to the agent's own MCP configuration directory.

Third, the agent asks the developer to copy the file. The approval prompt shows a benign source and destination. The developer sees nothing about config directories or executable content. They click yes.

Fourth, the copy command follows the symlink and overwrites the agent's MCP config. The config now points to a malicious server. On the next restart, that server spawns and runs attacker code with the user's full privileges.

Adversa researcher Rony Utevsky published the proof of concept on May 26, 2026. The code is open source at github.com/adversa-ai/research/tree/main/artifacts/symlink-to-rce.

The CI Runner Problem

CI runners auto-trust their workspace. They run agents without human approval. The same SymJack chain executes with zero clicks. One malicious pull request can drain AWS credentials, GitHub tokens, Docker registry passwords, and signing keys before any human opens the diff.

This turns a coding agent into a supply chain attack delivery mechanism at scale.

Vendor Responses

The vendor reactions are mixed and troubling.

Anthropic rejected the initial report as out of scope. They then quietly hardened Claude Code in version 2.1.129. The updated agent now resolves symlinks before asking for approval and shows the real destination path in the prompt. That is a good start.

Google rejected the report. They said explicit user approval is intended behavior.

Cursor declined. They said they already knew about the issue.

xAI and GitHub had not responded as of the May 27 publication date.

OpenAI Bugcrowd closed the report on Codex CLI as a false positive. They called the attack theoretical and cited the fact that the user approves the copy command. That approval is the whole point. The user approves a file copy and gets a config overwrite that runs code on restart.

This Is Not a Product Bug

SymJack is not a bug in any single agent. It is an architectural flaw in the category. These tools ask users to approve file operations based on what the screen displays. The screen shows the symlink name. The kernel writes to the resolved path. The user approves one thing. The system does another.

The security model relies on human vigilance against disguised symlinks in every repo they touch. That model is broken by design.

What to Do Now

  • Audit your CI pipelines. Do not auto-trust repositories from outside your organization.
  • Review every file copy approval in your coding agent. Ask whether the destination path makes sense.
  • Isolate agent workspaces. Run coding agents inside containers with limited access to host credentials.
  • Monitor MCP server registrations. Alert when new servers appear in agent configuration files.
  • Apply the Anthropic fix pattern. Any agent that resolves symlinks before approval and shows the real path is safer.
  • Consider disabling automatic execution of project-level instructions from untrusted repositories.

The Contrarian Note

The vendors who rejected this report are wrong. Calling it intended behavior or a false positive misses the point. The approval prompt is the security model. If the approval prompt lies to the user, the security model is broken. That is the vulnerability.

This attack class will get worse, not better. Coding agents are gaining more autonomy. They handle more file operations, run more commands, and trust more repository content. Every new capability expands the attack surface. Symlinks are just one vector. Hidden shell expansions, path traversal, and environment variable injection will follow.

The deeper problem is trust velocity. Developers use coding agents to move faster. Speed requires trust. Trust requires accurate information. SymJack proves the information shown in approval prompts is not accurate. Until vendors treat prompt accuracy as a first-class security property, attacks like this will keep succeeding.


Published May 29, 2026. Source: Adversa AI research and SecurityWeek coverage.