An animation library pushes a fake wallet prompt onto websites

ATG-class event30 to 31 October 2024

Using a compromised maintainer token, an attacker published versions of a popular web animation player that made sites show visitors a crypto wallet connection prompt. About 400 sites were affected in the three hours before a fix.

Position
The npm publishing token for a widely used animation player
Reach
About 94,000 weekly downloads; about 400 affected websites (Blockaid)
Category
Open-Source Maintainer Infiltration
Effect
Deceive

What happened

On 30 October 2024 an attacker used a compromised maintainer token to publish three versions of @lottiefiles/lottie-player, a widely used component for playing animations on web pages, within about an hour. Sites that loaded the player from npm or from a CDN began showing visitors a prompt to connect a crypto wallet, which led to a drainer. Blockaid's monitoring flagged it about seven minutes after the first release and detected about 400 affected sites, not all of them crypto sites. LottieFiles published a clean version about three hours later and the bad versions were pulled. One victim reportedly lost 10 BTC; total losses were not published.

The ATG nexus

A component meant to play an animation drew an interface the host site never designed. To the visitor the prompt appeared inside a site they had chosen to visit, styled to fit, at the moment they were on it. That is Integration on the Glass: separate parties' code assembled into one screen the reader takes as a single source. Sites that loaded the player from a CDN by version range picked up the change without doing anything.

Limits of the comparison

The prompt still asked the user to approve a connection, and an unexpected prompt on a site with no crypto purpose was a visible clue. LottieFiles said its other libraries and services were unaffected.

On this site

Sources

  1. Attack Report: Lottie Player supply chain attackBlockaid, 31 October 2024Primary source
  2. LottieFiles supply chain attack (lottie-player npm)The Register, 31 October 2024
  3. LottieFiles Issues Warning About Compromised Lottie-Player npm PackageThe Hacker News, October 2024

Back to this event on the timeline