Copy, Paste, Compromise? Why Developer Workflows Need New Guardrails
Question: Ontinue recently detailed a fake Claude Code installer campaign where developers were tricked into running malicious one-line install commands. Can you walk us through how attackers exploit that workflow step-by-step? Why are developers becoming a valuable target?
Rhys Downing, Threat Researcher at Ontinue
This particular campaign is effective because it exploits the fact that developers are conditioned to trust and execute one-line install commands as part of their daily workflow. The attacker doesn’t need an exploit in the traditional sense.
They simply replace the expected command with one that looks legitimate and rely on the user to execute it. It all starts with discovery.
- A developer searches for a tool, like ‘install Claude Code’ in this case
- They are directed, often via sponsored results, to a lookalike installation page
- The page is convincing because it mirrors legitimate documentation closely.
The critical manipulation happens in the command shown on the page. The expected one-line installer is subtly modified so that instead of pulling from a trusted source, it pulls from attacker-controlled infrastructure.
When the developer copies and pastes the command into their terminal, they effectively hand execution to the attacker.
From there, the attack chain unfolds quickly. The initial command retrieves a PowerShell loader, but even here, the operation is designed to evade scrutiny.
The hosted script appears benign if inspected directly, while the malicious behavior is embedded in how the page renders the command. This separation is deliberate. It defeats simple URL scanning and reputation checks.
- Once executed, the loader collects host identifiers
- enumerates installed browsers, and
- determines how to extract sensitive data
For modern browsers using Application-Bound Encryption (ABE), it uses a small injected helper to access the browser’s Elevation Service and recover encryption keys. This allows the attacker to decrypt cookies, saved credentials, and payment data from the user’s local profile.
Finally, the data is packaged in memory, exfiltrated, and persistence is established via scheduled tasks that allow ongoing access and follow-on tasking.
What’s notable here is not just the technique, but the operational model.
- The activity that security tools typically detect - data access, exfiltration, persistence - sits in the PowerShell layer.
- The native component is deliberately minimal, performing a single function and leaving almost no detectable footprint.
This reflects a broader shift. Developers are becoming a preferred target because they sit at the intersection of trust and access.
- They routinely execute code,
- have elevated permissions, and
- interact with sensitive systems and credentials.
- Importantly, their workflows often bypass traditional user protections under the assumption that these actions are intentional.
At the same time, defensive controls are not fully aligned with this reality. Technologies like ABE were designed to raise the bar against opportunistic data theft, but they assume the attacker is operating outside the user’s context.
Once code execution occurs as the user, those protections can be bypassed, as we see here. The gap is not a lack of capability; it’s execution. Many organizations can detect malicious binaries or suspicious network activity, but they struggle to govern trusted workflows like command-line execution or developer tool usage.
The issue here is not just the environment; it is the behavior.
- These attacks work because copying and executing one‑line commands has become a routine, almost unquestioned action in developer workflows.
- Organizations need to address that directly by raising awareness around how these attacks operate and reinforcing that not everything presented as documentation can be trusted.
- Developers and users need to be conscious of where they are sourcing commands from, and treat unexpected or unfamiliar installation pages with skepticism, even when they appear legitimate.
- At the same time, there is a need to introduce friction into this workflow.
- Copying and executing commands directly from the web should not be treated as a safe default.
Ultimately, this is less about stopping malicious code after it runs and more about preventing users from unknowingly giving it execution in the first place.




