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) $ 86,734.00 0.03%
ethereum
Ethereum (ETH) $ 2,798.23 1.47%
tether
Tether (USDT) $ 0.999999 0.00%
xrp
XRP (XRP) $ 2.01 1.80%
bnb
BNB (BNB) $ 835.94 1.48%
usd-coin
USDC (USDC) $ 0.99977 0.00%
solana
Solana (SOL) $ 126.79 0.16%
tron
TRON (TRX) $ 0.27722 0.11%
staked-ether
Lido Staked Ether (STETH) $ 2,796.48 1.44%
dogecoin
Dogecoin (DOGE) $ 0.135665 1.03%
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.03 1.21%
cardano
Cardano (ADA) $ 0.387406 0.60%
whitebit
WhiteBIT Coin (WBT) $ 57.62 3.41%
wrapped-steth
Wrapped stETH (WSTETH) $ 3,413.90 1.40%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 86,580.00 0.01%
bitcoin-cash
Bitcoin Cash (BCH) $ 524.34 0.36%
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 3,030.91 1.42%
usds
USDS (USDS) $ 0.999695 0.01%
leo-token
LEO Token (LEO) $ 9.80 0.76%
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 1.00 0.04%
hyperliquid
Hyperliquid (HYPE) $ 31.36 0.61%
chainlink
Chainlink (LINK) $ 12.06 0.67%
weth
WETH (WETH) $ 2,798.96 1.37%
stellar
Stellar (XLM) $ 0.231374 0.33%
monero
Monero (XMR) $ 389.90 6.21%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,027.47 1.36%
ethena-usde
Ethena USDe (USDE) $ 0.999233 0.04%
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 86,812.00 0.08%
litecoin
Litecoin (LTC) $ 77.84 0.23%
hedera-hashgraph
Hedera (HBAR) $ 0.131783 1.40%
avalanche-2
Avalanche (AVAX) $ 12.98 0.22%
zcash
Zcash (ZEC) $ 325.16 11.01%
sui
Sui (SUI) $ 1.35 1.85%
shiba-inu
Shiba Inu (SHIB) $ 0.000008 1.41%
dai
Dai (DAI) $ 0.999222 0.03%
world-liberty-financial
World Liberty Financial (WLFI) $ 0.155529 3.47%
susds
sUSDS (SUSDS) $ 1.08 0.52%
paypal-usd
PayPal USD (PYUSD) $ 0.99976 0.00%
crypto-com-chain
Cronos (CRO) $ 0.102329 0.35%
ethena-staked-usde
Ethena Staked USDe (SUSDE) $ 1.21 0.03%
usdt0
USDT0 (USDT0) $ 1.00 0.00%
the-open-network
Toncoin (TON) $ 1.49 0.41%
uniswap
Uniswap (UNI) $ 5.43 2.07%
polkadot
Polkadot (DOT) $ 2.06 0.83%
mantle
Mantle (MNT) $ 0.974644 1.22%
usd1-wlfi
USD1 (USD1) $ 0.999067 0.01%
canton-network
Canton (CC) $ 0.073621 11.92%
aave
Aave (AAVE) $ 168.53 2.01%
bittensor
Bittensor (TAO) $ 258.43 4.10%
bitget-token
Bitget Token (BGB) $ 3.45 0.41%