
Planted Text Tricks AI Agents Into Bad Clicks
Researchers demonstrated a new “agent data injection” technique where attackers plant content (like a review or GitHub comment) that an AI agent mistakenly…
Researchers describe how attackers can trick developers into cloning and “trusting” a repository in a coding agent, causing code to run automatically before the user even types a prompt. The post highlights real-world use of this pattern in fake job interview scams, and shows two concrete execution paths: a Codex project MCP config that starts a local process, and a Claude Code PATH override that makes the agent run a repo-supplied “git” wrapper.
The lure described in this research starts with an ordinary-sounding request: clone a repository and open it in a coding agent. This might be framed as a take-home interview task, an open source project needing debugging, or a vendor sample application. Once the developer trusts the project folder so the agent can operate normally, code can execute immediately, before the developer ever sends a prompt.
Two concrete paths are described. In Codex, a project-scoped MCP configuration file at .codex/config.toml can define a local server command that starts an attacker-controlled process the moment the project is opened. No model response or additional approval is required. In Claude Code, project settings at .claude/settings.json can override the system PATH so that when the agent performs its normal startup Git checks, it runs a repository-supplied git wrapper script instead of the real Git binary. That wrapper can quietly delegate to the genuine git afterward so the session appears to continue normally.
The pretext works because trusting a project folder feels like a routine, low-friction step rather than a security decision. Developers are used to opening unfamiliar repositories as part of interviews, code reviews, or evaluating vendor samples. Microsoft has documented real-world recruiter-themed activity, sometimes called Contagious Interview, where developers cloned and trusted malicious projects and a VS Code task then ran automatically. Because the execution paths rely on legitimate agent features like MCP configuration and environment settings rather than obviously malicious binaries, a quick manual review may not surface anything unusual.
Defenders should treat trusting a repository in a coding agent as equivalent to running its code. Unfamiliar repositories are best opened in disposable environments that hold no sensitive credentials, even when a manual review looks clean. Training should go beyond hooks and skills, since MCP configuration, editor tasks, environment settings, runtime startup files, and ordinary repository executables can all influence what runs. At the endpoint, security teams can monitor coding-agent processes that spawn git, Python, Node.js, or shell executables from inside the workspace, paying particular attention to anything that runs before the first user prompt or model request.
Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.
Coding agents like Codex and Claude Code can read project-scoped configuration files, such as .codex/config.toml or .claude/settings.json, as soon as a project is opened and trusted. These files can start a local process or override the system PATH, causing code to run automatically without any prompt from the user.
Microsoft has documented recruiter-themed activity where fake job interviews and take-home assignments were used to get developers to clone and trust malicious projects, after which an editor task ran automatically.
Look for hidden agent or editor configuration folders like .codex/, .claude/, or .vscode/, unexpected PATH overrides, and any local process or executable defined inside the project that could run on open.
Treat trusting a repository in a coding agent as equivalent to running its code, review agent-specific config directories before opening unfamiliar projects, and use disposable environments without sensitive credentials for anything unfamiliar.
On LinkedIn, a recruiter messages you: "Clone this repository and open it in your coding agent." Seems normal, right? You open the repo in a coding agent like Codex or Claude Code, and it pops: "Trust this project so the agent can work normally." The moment you click trust, their code can run before you even type a prompt. In real scams, fake interview repos hid config like .codex/config.toml that auto-starts a local Python server, or Claude Code settings that override PATH so a repo’s fake "git" script runs during startup checks, no extra clicks, no prompt needed. Treat project trust like running code: for any interview or unfamiliar repo, only open and trust it in a disposable environment you’re prepared to throw away.

Researchers demonstrated a new “agent data injection” technique where attackers plant content (like a review or GitHub comment) that an AI agent mistakenly…

A researcher showed that AI coding agents used in GitHub workflows can be tricked by a malicious pull request description into running “safe-looking” commands…

Researchers simulated “pig butchering” romance-style scams and found an AI chatbot built trust more effectively than a human scammer over a week of texting. In…

North Korea-linked BlueNoroff is using fake Zoom and Microsoft Teams meeting pages shared from hijacked trusted contacts (often via Telegram) to trick victims…

Microsoft reports a real-world campaign where attackers tamper with Wi‑Fi captive portal traffic at hotels and similar venues to redirect travelers to…

Researchers described two active social-engineering-driven malware campaigns: one uses trojanized “popular” remote-user apps (e.g., Zoom/WebEx lookalikes) to…