HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
lirantal
npq
JavaScript2018–2025
lirantal / npq

npq

safely install npm packages by auditing them pre-install stage

5Distinct people
5Mentions
0Explicit recommenders
1.8KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

safely install npm packages by auditing them pre-install stage

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year5 dated mentions

Observed mentions: 2018-07-13 16:49:59 UTC to 2025-11-24 12:45:38 UTC.

012342018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC110
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC404

What Hacker News says

5 sources
Hey folks, Just dropped a new Señors @ Scale episode that I think will interest anyone dealing with real-world security, supply chain risks, or the growing chaos around AI-driven development. I sat down with Liran Tal (Director of Developer Advocacy at Snyk, GitHub Star, longtime open-source security contributor) to talk about what security at scale actually looks like today — not generic OWASP lists, but the attacks, patterns, and failures teams are hitting right now in 2025. Liran has been deep in open-source ecosystems since the early days of Linux and BBS boards, and he’s spent the last decade helping devs secure massive JavaScript and Node.js environments. This episode is packed with real incidents and practical guardrails. A few highlights: → How NPM malware really spreads, including worm-style packages that steal your tokens and au
Read the rest
to-publish malicious versions → Why “upgrade everything in CI” is one of the most dangerous patterns a dev team can adopt → What actually happened in recent maintainer compromises and dependency hijacks → How MCP servers introduce entirely new attack vectors: toxic flows, prompt injection, shadowed tools, and tainted context → Why AI-generated code is statistically insecure and how to loop security scanning into the agent workflow → The SQL injection, command injection, and path traversal bugs Liran keeps finding in real MCP servers → The XZ Utils incident and how a 500ms delay uncovered a nation-state backdoor → When UX decisions accidentally create security holes (XSS, anonymous actions, permission gaps) If you install dependencies, use AI coding agents, or maintain any production-facing Node.js or frontend systems, this conversation will probably make you rethink your threat model. Watch: https://youtu.be/tks03l1E0IQ Listen: https://open.spotify.com/episode/1zs8TL4sSfKUBLkTgPXeML Apple: https://podcasts.apple.com/us/podcast/security-at-scale-with... More from Liran: GitHub: https://github.com/lirantal NPQ Package Checker: https://github.com/lirantal/npq Snyk Blog: https://snyk.io/blog LinkedIn: https://linkedin.com/in/talliran If you're dealing with supply chain risk, AI code generation, or insecure dependencies, you’ll get a lot from this one.
In [dead]
This attack is pretty bad, but as shown by the tiny ROI for the attacker mentioned in this article (about $500 so far: https://intel.arkm.com/explorer/entity/61fbc095-f19b-479d-a0...) this really isn't quite as ecosystem-catastrophic as it sounds, for a few reasons: * Major attacks on large packages like this are caught fairly quickly - a few hours in this case - making the vulnerable window _relatively_ small. * NPM locks installed dependencies by default, against both the version & a hash of the content, so you'll only install the new malicious version if you happen to be adding or updating this dependency specifically within the window this version is still live. It's effectively sort-of TOFU. If even you ran `npm install` in a project already using this dependency in the specific window it was live, you will not normally install the m
Read the rest
alicious version. * There's quite a few tools to help mitigate the risk here, like https://socket.dev and npq (https://github.com/lirantal/npq). As one datapoint, look at the download stats for the affected Chalk package for example (https://www.npmjs.com/package/chalk?activeTab=versions) - the vast majority of installs were not installing the latest version anyway. There are caveats to this: e.g. you can use npm without a lockfile, in which case a fresh local install can pull down unexpected versions, or you could be manually updating/adding a different package which happens to depend on an affected package (which might trigger a lockfile update, which might then fetch the latest version of the subdependency) during the vulnerable window, or of course it's totally possible you might install the package for the first time at the precisely wrong moment, etc etc. This is definitely bad, and could have been extremely disastrous if it wasn't caught. But in practice, npm & the ecosystem have put in quite a few protections that do help to _mostly_ mitigate these kind of risks in typical use cases (but not completely, and there's definitely plenty more work to do!) and it's certainly not the case that millions of JS developers & projects were all catastrophically pwned today.
In You too can run malware from NPM (I mean without consequences)

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.