
Trust and automation enable many attacks, and AI coding agents inherently rely on trusted automation. Malicious repositories are a common supply chain risk, estimated at 20% to 40%, and can trick developers into generating bad code that silently enters CI. SymJack requires attacker control of the coding agent repository, a ready-made malicious MCP server, and a developer using an AI coding tool. The attack renames a malicious symlink to look innocuous, uses a cp command to insert a hidden payload into the agent’s configuration, and registers the malicious MCP server. On restart, the planted server spawns and runs attacker code as the user, unsandboxed, with potential theft of credentials and session data or destruction of production assets, and CI targeting can expand impact further.
"The attack requires three elements: attacker control of the coding agent repo, a ready-made malicious MCP server, and a developer's use of an AI coding tool. Adversa has named the attack SymJack, because it hijacks a symlink within the code development process, renames it to something that looks innocuous but redirects to the malicious MCP, and builds the attacker's instruction into the finished code."
"The attack chain starts with an attacker's control of the coding agent's repo, and the project instruction file it contains. That file is made malicious but is used and trusted by the coding agent. In SymJack, a malicious symlink is renamed to appear innocuous. A cp command can be used to automatically insert the attacker's payload hidden within the disguised symlink, into the agent's own configuration settings. This payload registers the malicious MCP server, where the startup command runs whatever the attacker wishes."
""The developer sees one request: copy this [innocuous looking] file to that documentation folder. They approve it. Nothing on screen mentions the config directory, the MCP file, or executable content. On the next restart, the planted server spawns, and the attacker's code runs as the user, unsandboxed. In a real attack it can steal SSH keys, cloud tokens, and browser sessions, or even destroy production assets before the developer types another word.""
Read at SecurityWeek
Unable to calculate read time
Collection
[
|
...
]