frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Offical XRP NPM package has been compromised and key stealing malware introduced

https://www.aikido.dev/blog/xrp-supplychain-attack-official-npm-package-infected-with-crypto-stealing-backdoor
55•flxga•1y ago

Comments

MichealCodes•1y ago
Cryptocurrency packages used at scale should have wallet decoys setup for early detection of vulnerabilities like this.
nailer•1y ago
Red teaming this, you’d delay exfiltration of the private key until the balance passes beyond a certain amount and you’re on mainnet.
ohgr•1y ago
I see the model of "download any old shit off the internet and run it in production" is working out so well.
nailer•1y ago
I don’t have much opinion of XRP but this is their official package, not a community package.
tobyhinloopen•1y ago
Fun fact: installing some common starter packages will explode to install over a 1000 npm packages, each of them can inject malware, even if the package isn’t used, and you’ll never know.

Many packages will have over a 100 dependencies if you include the dev dependencies, so you can easily break a 1000.

mouse_•1y ago
That is a very fun fact.
nailer•1y ago
Yes that is how dependencies work.
poincaredisk•1y ago
The crazy part here is that in most other ecosystems 100 dependencies is "crazy high" territory, and in JS it's apparently "we're just getting started". It's known for its approach to micropackaging everything in a separate library.
greatgib•1y ago
The crazy thing is more that multiple versions of the same package could be installed as dependencies of dependencies...

They were thinking to be the cool kids supporting multiple versions and that the old way to do packaging, like debian and co that expects everyone to use the same version, was the old legacy fart way to do things.

Just, developers before were engineers first and so designed things well especially to avoid this situation of dependency hell and supply chain injection. But the web dev crowd decided to do "better" and now to have old problems as new problems...

nailer•1y ago
npm design allows multiple versions of the same package if required, but deduplicates otherwise. It’s a smart design that more package managers should and will follow.

Smart developers spend their time working on original code rather than rewriting the wheel.

nailer•1y ago
Yes. It’s an engineering failure to have multiple copies of the same logic. That isn’t specific to JavaScript.
tough•1y ago
does the postinstall script step has anything to do with this?

i noticed bun doesn't run them by default unless you whitelist them

koolba•1y ago
That fetch(…) is sending the mnemonic of the private key out to that remote server.

Interestingly if this is happening in a long running process and that exploit server is offline, the promise for the fetch will reject. And the default behavior for unhandled promise rejections would be for the node process to crash.

So if anybody tried testing this version of the library in a net gapped environment, it would crash and fail out in CI.

The attacker should have silenced the error with a .catch(_ => {}).

mschuster91•1y ago
> Previously only the packed JavaScript code had been modified.

Honestly it's time for the npm ecosystem to move to a model where only build agents running on npm's own infrastructure can upload binary artifacts, or to mandate reproducible builds.

And for a select set of highly used packages, someone from NPM should be paid to look over each release's changeset.

Both would have massively impeded the attacker.

mindcrash•1y ago
Official and thorough support for SBOM* within major package repositories can not come sooner.

* https://en.wikipedia.org/wiki/Software_supply_chain

abhisek•1y ago
We run similar npm package monitors. The use of exotic tld domains such as 0x9c.xyz kind of gave it away because YARA Forge rules have native signatures to detect such domains.

It will be interesting t explore how the project got compromised and malicious packages published to the registry.

nailer•1y ago
.xyz isn’t exotic for blockchains.

Show HN: Predicting the 2026 Kentucky Derby with 1T Monte Carlo Sims on Burla

https://burla-cloud.github.io/examples/kentucky-derby-demo/
1•Jack_at_Burla•1m ago•0 comments

AI talks draw backlash from Mass. state lawmakers

https://www.politico.com/news/2026/05/01/ai-backlash-massachusetts-lawmakers-00903440
1•1vuio0pswjnm7•3m ago•0 comments

Life update: Zig, AI, unemployment, and more [video]

https://www.youtube.com/watch?v=DhhPUrizZcw
1•rubenflamshep•4m ago•0 comments

How Oregon's Data Center Boom Is Supercharging a Water Crisis

https://waterwatch.org/how-oregons-data-center-boom-is-supercharging-a-water-crisis/
1•therobots927•5m ago•0 comments

Palantir Comes to Campus

https://nymag.com/intelligencer/article/palantir-yale-conference-ai.html
1•jbegley•6m ago•0 comments

Shitpostmodernism: Understanding the Slopgeneration

https://www.spikeartmagazine.com/articles/essay-shitpostmodernism
1•thinkingemote•6m ago•0 comments

AI Agents Are the Mass-Produced Cars of Software

https://telegraphic.substack.com/p/ai-agents-are-the-mass-produced-cars
1•telegrahi•6m ago•0 comments

Opioid maker Purdue Pharma shuts down as part of $7.4B deal

https://www.usatoday.com/story/news/nation/2026/05/01/purdue-pharma-shuts-down-opioid-crisis-oxyc...
1•geox•8m ago•0 comments

Disneyland Now Uses Face Recognition on Visitors

https://www.wired.com/story/security-news-this-week-disneyland-now-uses-face-recognition-on-visit...
2•Brajeshwar•12m ago•0 comments

Digital Ecosystems: Interactive Multi-Agent Neural Cellular Automata

https://pub.sakana.ai/digital-ecosystem/
1•jarmitage•14m ago•0 comments

How are Life-Size Figures Created at hololive production?

https://coveredge.cover-corp.com/en/list/4759
1•ai_slop_hater•14m ago•0 comments

Vibecoded my dream game, GeoGuesser for guns, now its helping with student bills

https://gunguesser.com
4•salad_vr•15m ago•5 comments

The Railway and the Balloon

https://netwars.pelicancrossing.net/2026/05/01/the-railway-and-the-balloon/
1•ColinWright•19m ago•0 comments

Floating Armoury

https://en.wikipedia.org/wiki/Floating_armoury
1•jjmarr•21m ago•0 comments

Customizing Claude Code spinner verbs

https://www.augmentedswe.com/p/customizing-claude-code-spinner-verbs
1•wordsaboutcode•21m ago•0 comments

Back end-for-Front end: The most secure architecture for browser-based apps

https://fusionauth.io/blog/backend-for-frontend-security-architecture
2•mooreds•26m ago•0 comments

Voyager and the Art of Graceful Degradation

https://www.flyingbarron.com/2026/04/voyager-and-art-of-graceful-degradation.html
1•mooreds•26m ago•0 comments

Did I photograph the Aurora or was it something else? (2016)

https://wp.lancs.ac.uk/aurorawatchuk/2016/03/16/did-i-photgraph-the-aurora-or-was-it-something-else/
1•susam•28m ago•0 comments

Upcoming Blender Development Fund and AI Policies

https://www.blender.org/news/upcoming-blender-development-fund-and-ai-policies/
2•sensanaty•29m ago•0 comments

The Annoying Usefulness of Emacs [video]

https://www.youtube.com/watch?v=DMbrNhx2zWQ
2•susam•29m ago•0 comments

The Sky Tonight

https://theskylive.com/guide
2•susam•31m ago•0 comments

New US phone network for Christians to block porn and gender-related content

https://www.technologyreview.com/2026/05/01/1136739/a-new-t-mobile-network-for-christians-aims-to...
6•thinkingemote•34m ago•2 comments

Making Your Writing Work Harder for You

https://training.kalzumeus.com/newsletters/archive/content-marketing-strategy
2•eigenBasis•36m ago•0 comments

Show HN: TradingAgents without the API bill – run multi agents in Claude Code

https://github.com/lucemia/trading-agents-plugin
1•lucemia51•40m ago•0 comments

Stop Supplying. Start Owning

https://allensthoughts.com/2026/05/01/stop-supplying-start-owning/
2•herbertl•41m ago•0 comments

Uber wants to turn its drivers into a sensor grid for AV companies

https://techcrunch.com/2026/05/01/uber-wants-to-turn-its-millions-of-drivers-into-a-sensor-grid-f...
6•nickvec•42m ago•0 comments

Zugzwang

https://en.wikipedia.org/wiki/Zugzwang
25•Qem•46m ago•7 comments

If Claude writes the code, what makes me still a developer?

https://betweentheprompts.com/if-claude-writes-the-code/
4•scastiel•49m ago•0 comments

Santa Cruz restaurant changes logo after flurry of negative reviews for AI art

https://www.sfgate.com/food/article/santa-cruz-restaurant-ai-21955920.php
5•randycupertino•50m ago•3 comments

LLMs consistently pick resumes they generate over ones by humans or other models

https://arxiv.org/abs/2509.00462
96•laurex•52m ago•49 comments