Coinbase’s Go-To AI Coding Tool Found Vulnerable to ‘CopyPasta’ Exploit Coinbase’s Go-To AI Coding Tool Found Vulnerable to ‘CopyPasta’ Exploit

Coinbase’s Go-To AI Coding Tool Found Vulnerable to ‘CopyPasta’ Exploit

A new exploit targeting AI coding assistants has raised alarms across the developer community, opening companies such as crypto exchange Coinbase to the risk of potential attacks if extensive safeguards aren’t in place.

Cybersecurity firm HiddenLayer disclosed Thursday that attackers can weaponize a so-called “CopyPasta License Attack” to inject hidden instructions into common developer files.

The exploit primarily affects Cursor, an AI-powered coding tool that Coinbase engineers said in August was among the team’s AI tools. Cursor is said to have been used by “every Coinbase engineer.”

How the attack works

The technique takes advantage of how AI coding assistants treat licensing files as authoritative instructions. By embedding malicious payloads in hidden markdown comments within files such as LICENSE.txt, the exploit convinces the model that these instructions must be preserved and replicated across every file it touches.

Once the AI accepts the “license” as legitimate, it automatically propagates the injected code into new or edited files, spreading without direct user input.

This approach sidesteps traditional malware detection because the malicious commands are disguised as harmless documentation, allowing the virus to spread through an entire codebase without a developer’s knowledge.

In its report, HiddenLayer researchers demonstrated how Cursor could be tricked into adding backdoors, siphoning sensitive data, or running resource-draining commands — all disguised inside seemingly innocuous project files.

“Injected code could stage a backdoor, silently exfiltrate sensitive data or manipulate critical files,” the firm said.

Coinbase CEO Brian Armstrong said on Thursday that AI had written up to 40% of the exchange’s code, with a goal of reaching 50% by next month.

However, Armstrong clarified that AI-assisted coding at Coinbase is concentrated in user interface and non-sensitive backends, with “complex and system-critical systems” adopting more slowly.

‘Potentially malicious’

Even so, the optics of a virus targeting Coinbase’s preferred tool amplified industry criticism.

AI prompt injections are not new, but the CopyPasta method advances the threat model by enabling semi-autonomous spread. Instead of targeting a single user, infected files become vectors that compromise every other AI agent that reads them, creating a chain reaction across repositories.

Compared to earlier AI “worm” concepts like Morris II, which hijacked email agents to spam or exfiltrate data, CopyPasta is more insidious because it leverages trusted developer workflows. Instead of requiring user approval or interaction, it embeds itself in files that every coding agent naturally references.

Where Morris II fell short due to human checks on email activity, CopyPasta thrives by hiding inside documentation that developers rarely scrutinize.

Security teams are now urging organizations to scan files for hidden comments and review all AI-generated changes manually.

“All untrusted data entering LLM contexts should be treated as potentially malicious,” HiddenLayer warned, calling for systematic detection before prompt-based attacks scale further.

(CoinDesk has reached out to Coinbase for comments on the attack vector.)



Source link

Shaurya Malwa

https://www.coindesk.com/tech/2025/09/06/coinbase-s-go-to-ai-coding-tool-found-vulnerable-to-copypasta-exploit

2025-09-06 04:30:00

bitcoin
Bitcoin (BTC) $ 121,873.00 0.24%
ethereum
Ethereum (ETH) $ 4,423.97 0.66%
bnb
BNB (BNB) $ 1,314.65 0.56%
tether
Tether (USDT) $ 1.00 0.02%
xrp
XRP (XRP) $ 2.82 1.17%
solana
Solana (SOL) $ 225.01 2.27%
usd-coin
USDC (USDC) $ 0.999701 0.01%
staked-ether
Lido Staked Ether (STETH) $ 4,421.28 0.67%
dogecoin
Dogecoin (DOGE) $ 0.247734 0.62%
tron
TRON (TRX) $ 0.338798 0.56%
cardano
Cardano (ADA) $ 0.816425 0.18%
wrapped-steth
Wrapped stETH (WSTETH) $ 5,376.32 0.62%
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 4,771.30 0.71%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 121,769.00 0.09%
chainlink
Chainlink (LINK) $ 22.06 1.07%
ethena-usde
Ethena USDe (USDE) $ 0.999505 0.06%
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.02 2.07%
sui
Sui (SUI) $ 3.45 0.77%
hyperliquid
Hyperliquid (HYPE) $ 45.30 1.26%
stellar
Stellar (XLM) $ 0.379198 0.07%
avalanche-2
Avalanche (AVAX) $ 28.37 0.71%
wrapped-eeth
Wrapped eETH (WEETH) $ 4,770.10 0.66%
bitcoin-cash
Bitcoin Cash (BCH) $ 578.05 0.28%
weth
WETH (WETH) $ 4,423.81 0.68%
hedera-hashgraph
Hedera (HBAR) $ 0.2132 1.33%
litecoin
Litecoin (LTC) $ 117.68 1.64%
mantle
Mantle (MNT) $ 2.72 12.89%
leo-token
LEO Token (LEO) $ 9.64 0.12%
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.99737 0.50%
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 121,919.00 0.30%
usds
USDS (USDS) $ 0.999539 0.03%
usdt0
USDT0 (USDT0) $ 1.00 0.03%
shiba-inu
Shiba Inu (SHIB) $ 0.000012 0.07%
the-open-network
Toncoin (TON) $ 2.74 0.06%
crypto-com-chain
Cronos (CRO) $ 0.193638 2.74%
whitebit
WhiteBIT Coin (WBT) $ 43.74 0.20%
monero
Monero (XMR) $ 337.97 4.97%
polkadot
Polkadot (DOT) $ 4.08 1.39%
ethena-staked-usde
Ethena Staked USDe (SUSDE) $ 1.20 0.08%
world-liberty-financial
World Liberty Financial (WLFI) $ 0.179081 1.36%
uniswap
Uniswap (UNI) $ 7.87 1.62%
dai
Dai (DAI) $ 0.999617 0.09%
okb
OKB (OKB) $ 214.29 1.29%
aave
Aave (AAVE) $ 279.85 1.03%
ethena
Ethena (ENA) $ 0.567747 5.71%
bitget-token
Bitget Token (BGB) $ 5.75 3.13%
pepe
Pepe (PEPE) $ 0.000009 0.05%
near
NEAR Protocol (NEAR) $ 2.89 1.16%
aptos
Aptos (APT) $ 5.06 4.32%
memecore
MemeCore (M) $ 2.05 1.97%