Skip to content

DEF CON 34 talks are here: 354 talks, summarized and searchable.

Browse DEF CON 34

A Fun Story About A Software Supply Chain Calamity: the UA-Parser Saga

Andy Lewis

Supply ChainTalks51 minBeginnerOpen on YouTube ↗

Where

Talks
LASCON 2024

Duration

51 min

Walks through the UA-Parser npm compromise and what it reveals about risk in open-source dependencies.

Summary

The talk tells the story of the UA-Parser-JS compromise, an npm library used to detect browser and device details from user agent strings. With millions of users and thousands of dependent projects, a hijacked release reached a large share of the Node ecosystem. The speaker walks through the timeline, from the maintainer's warning that the bad versions could not be unpublished to the malicious code that followed and the cleanup that replaced it with a few clean commits.

The middle of the talk compares this incident to other supply chain cases, including Log4j, the XZ Utils backdoor that nearly reached major Linux distributions, and the 3CX trojan, which abused a Windows trust weakness that accepts partially signed packages. Each case supports a set of practical controls: diffing new releases against earlier versions, building a baseline of normal package behavior such as network calls, system commands and virtualization checks, verifying built artifacts rather than source alone, scanning for leaked secrets, and tracing transitive dependencies.

The closing advice is that a software bill of materials only pays off if teams can use it to answer questions quickly when the next vulnerability lands. The speaker also argues for private package repositories that stage and review third-party code before developers pull it in. The session ends with audience questions about tracking transitive dependencies and responding to unexpected script activity on a host.

Related talks