Blog

How Cloudflare’s client-side security made the npm supply chain attack a non-event

The 2025 npm attack compromised releases of 18 packages. We find that Page Shield would have detected all 18 in testing, though we observed no related activity among Page Shield users.

“Everyday, Cloudflare Page Shield assesses 3.5 billion scripts per day or 40,000 scripts per second. Of these, less than 0.3% are malicious, based on our machine learning (ML)-based malicious script detection. As explained in a prior blog post, we preprocess JavaScript code into an Abstract Syntax Tree to train a message-passing graph convolutional network (MPGCN) that classifies a given JavaScript file as either malicious or benign.”

Read the entire blog here