Zbyszek Tenerowicz

Oops! Stories of supply chain shenanigans

Can a dependency you never import inject a vulnerability into your application's final build? This talk demonstrates how.

Oops! Stories of supply chain shenanigans
#1about 4 minutes

Understanding software supply chain security in JavaScript

Software supply chain security involves managing the risks from third-party code you import, such as NPM packages.

#2about 1 minute

Using npm audit to find known package vulnerabilities

The `npm audit` command helps identify known vulnerabilities, like prototype pollution in older versions of packages like Lodash.

#3about 3 minutes

Overcoming the challenges of running npm audit in CI

Running `npm audit` in CI can lead to frequent build failures from low-risk issues like ReDoS in dev dependencies, causing audit fatigue.

#4about 4 minutes

Managing security alerts with the npm-audit-resolver tool

The `npm-audit-resolver` tool provides an interactive way to review, ignore, or postpone vulnerability alerts from `npm audit`.

#5about 6 minutes

How malicious packages use postinstall scripts to attack

Malicious NPM packages can execute arbitrary code during installation using lifecycle `postinstall` scripts, even if they are never imported in your code.

#6about 4 minutes

How a malicious package can compromise build tools

A malicious package can modify build tools like the TypeScript compiler during installation, causing it to inject malicious code into your application's final output.

#7about 3 minutes

Defending against malicious scripts with --ignore-scripts

Using the `--ignore-scripts` flag during `npm install` prevents `postinstall` scripts from running, but it can break legitimate packages that require them.

#8about 3 minutes

Identifying which package scripts are safe to ignore

The `can-i-ignore-scripts` tool analyzes your dependencies and checks against a community-maintained list to see which packages require their scripts to run.

#9about 1 minute

A secure workflow for installing NPM dependencies in CI

A secure installation process involves using a disposable container, running `npm ci --ignore-scripts`, and then selectively re-running only trusted scripts.

#10about 15 minutes

Q&A on package-lock, CSP, and dependency updates

The Q&A covers the role of `package-lock.json` for reproducible builds, using Content Security Policy (CSP) as a defense, and strategies for updating dependencies.

Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media

Hubert Burda Media
Mรผnchen, Germany

โ‚ฌ65-80K
Intermediate
PHP
JavaScript
+3

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Dev Digest 198: 30 years of JS, In-Browser AI, How Attackers Abuse GenAI
Inside last weekโ€™s Dev Digest 198 . ๐ŸŽ‚ 30 years of JavaScript โฐ How long is a JavaScript second ๐Ÿ’ป Clean code in Angular ๐Ÿคฆโ€โ™‚๏ธ AI makes different mistakes than humans ๐Ÿ‘จโ€๐Ÿ’ป In-browser and offline AI ๐ŸŸ  Undocumented Hacker News features ๐Ÿ‹ DeepSeek censored...
Dev Digest 198: 30 years of JS, In-Browser AI, How Attackers Abuse GenAI
DC
Daniel Cranney
Dev Digest 196: AI Killed DevOps, LLM Political Bias & AI Security
Inside last weekโ€™s Dev Digest 196 . โš–๏ธ Political bias in LLMs ๐Ÿซฃ AI written code causes 1 in 5 security breaches ๐Ÿ–ผ๏ธ Is there a limit to alternative text on images? ๐Ÿ“ CodeWiki - understand code better ๐ŸŸจ Long tasks in JavaScript ๐Ÿ‘ป Scare yourself into n...
Dev Digest 196: AI Killed DevOps, LLM Political Bias & AI Security
DC
Daniel Cranney
Dev Digest 206: X Algorithm, Super Monkey Ball, Moltbot vs. Security
Inside last weekโ€™s Dev Digest 206 . ๐Ÿ‘€ How X chooses what you see ๐ŸŸจ Building a JavaScript runtime in a month and a browser API in one shot ๐Ÿ”ฒ JavaScript frameworks heading into 2026 โš ๏ธ AI is getting better at detecting security issues ๐Ÿ”“ Moltbot is a s...
Dev Digest 206: X Algorithm, Super Monkey Ball, Moltbot vs. Security
CH
Chris Heilmann
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs
Inside last weekโ€™s Dev Digest 151 . ๐Ÿ”Ž How ChatGPT compares to search and what that means for SEO โœ‚๏ธ Job cuts across the board as companies curb DEI programs ๐ŸŸจ @Microsoft releases 161 Windows security updates โš ๏ธ @Googleโ€™s OAuth bug endangers million...
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs

From learning to earning

Jobs that call for the skills explored in this talk.

JavaScript Developer

Cambridge Intelligence
Cambridge, United Kingdom

React
DevOps
Node.js
WebPack
JavaScript
+1