Skip to content
PATCH

Supply chain: malicious library

Ledger Connect Kit

Reported stolen

~$600K

Date
14 Dec 2023
Sector
Company
Chain
Multiple
Attack
Supply chain: malicious library

Timeline

  1. 14 Dec 2023

    Funds taken. ~$600K reported stolen.

  2. Cause

    Publicly reported as supply chain: malicious library.

  3. Status

    Figures may still change as reports are updated.

How it happened

A malicious version of Ledger's Connect Kit library was published and loaded by dapps from a CDN. It injected a wallet drainer into their sites; about $600K was taken.

Sites that loaded the library without pinning its contents served the attacker's code to their own users.

The weakness

A third-party library loaded from a CDN without pinning.

AB-08 · Third-party scripts without integrity →

Lesson for Solana

Pin third-party code. A script loaded with an integrity hash cannot be swapped by the server it comes from.

Would PATCH catch it?

Partly

AB-08 flags Solana project websites that load third-party scripts without an integrity hash. It cannot see a compromised library bundled into a site's own code.

Source: public reports. Figures may change. This summary describes the publicly reported cause only.Sources: BleepingComputer: Ledger dApp supply-chain attack steals $600K (2023-12-14)