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.

Google investing up to $40B in Anthropic

https://www.wsj.com/finance/investing/google-expands-anthropic-investment-with-40-billion-commitm...
1•chang1•1m ago•0 comments

The Nintendo Switch Switch (2019)

https://blog.cynthia.re/post/nintendo-switch-ethernet-switch
1•zdw•1m ago•0 comments

Benchmarking OpenAI's Privacy Filter

https://www.tonic.ai/blog/benchmarking-openai-privacy-filter-pii-detection
1•akamor•2m ago•0 comments

SFO Quiet Airport (2025)

https://viewfromthewing.com/san-francisco-airport-removed-90-minutes-of-daily-noise-travelers-say...
1•CaliforniaKarl•5m ago•0 comments

Multiservice Impact for Azure Workloads in East US

https://azure.status.microsoft/en-us/status
1•tapoxi•6m ago•0 comments

QLMarkdown: macOS Quick Look extension for viewing Markdown files

https://github.com/sbarex/QLMarkdown
1•janandonly•7m ago•0 comments

Voice analysis pipeline that detects emotional incongruence

https://app.myyangu.com/
1•xthemadgenius•7m ago•0 comments

Ivanpah Solar Power Facility

https://en.wikipedia.org/wiki/Ivanpah_Solar_Power_Facility
1•simonebrunozzi•8m ago•0 comments

Video recordings of software engineering pioneers, SD&m Bonn 2001

https://archive.org/details/sdm_software_ionieers
2•kkroesch•9m ago•3 comments

Mine, a Coalton and Common Lisp IDE

https://coalton-lang.github.io/20260424-mine/
4•Jach•10m ago•0 comments

OpenAI releases GPT-5.5 and GPT-5.5 Pro in the API

https://developers.openai.com/api/docs/changelog
3•arabicalories•11m ago•0 comments

Benchmarking How Postgres Scales

https://www.dbos.dev/blog/benchmarking-workflow-execution-scalability-on-postgres
2•KraftyOne•16m ago•0 comments

It's OK To Be Scared (Don't be in a rush to get screwed)

https://chillphysicsenjoyer.substack.com/p/its-ok-to-be-scared
2•crescit_eundo•16m ago•0 comments

Ask HN: How would you improve this CLI tool for finding terminal commands?

https://github.com/stvkoch/Command-Finder
2•stvkoch•19m ago•0 comments

Ubuntu 26.04 LTS

https://documentation.ubuntu.com/release-notes/26.04/changes-since-previous-interim/
3•maxloh•20m ago•0 comments

LLM research on Hacker News is drying up

https://dylancastillo.co/til/llm-research-on-hacker-news-is-dying.html
3•dcastm•22m ago•0 comments

What happened to Omegle? rise and fall of internet's favorite stranger danger

https://mashable.com/article/what-happened-to-omegle
1•rolph•24m ago•0 comments

Tech bros: it's time to challenge Silicon Valley's saviour complex

https://www.theguardian.com/commentisfree/picture/2026/apr/25/tech-bros-its-time-to-challenge-sil...
2•robtherobber•24m ago•0 comments

There Will Be a Scientific Theory of Deep Learning

https://arxiv.org/abs/2604.21691
6•jamie-simon•28m ago•0 comments

Kubuntu Linux 26.04 LTS (Resolute Raccoon)

https://kubuntu.org/news/kubuntu-26-04-release-notes/
7•jrepinc•29m ago•1 comments

Kubernetes v1.36: User Namespaces in Kubernetes are finally GA

https://kubernetes.io/blog/2026/04/23/kubernetes-v1-36-userns-ga/
2•soheilpro•29m ago•0 comments

ComfyUI Raises $30M

https://blog.comfy.org/p/comfyui-raises-30m-to-scale-open
2•instagraham•29m ago•0 comments

Ask HN: How are you evaluating AI apps and CLI?

2•twen_ty•31m ago•0 comments

Acrylamide

https://en.wikipedia.org/wiki/Acrylamide
1•downboots•31m ago•1 comments

Slate – Self-hostable watchlist for movies and TV

https://github.com/gitshanks/slate
1•justabeardo•32m ago•0 comments

Cloudflare Email Service is a deliverability bet dressed as an agents launch

https://lord.technology/2026/04/20/cloudflare-email-service-is-a-deliverability-bet-dressed-as-an...
1•emschwartz•36m ago•0 comments

AI discovered 20 of 23 recent zero-days in OpenSSL

https://aisle.com/blog/aisle-discovers-20-openssl-zero-days-in-6-months
5•swesweswe•37m ago•1 comments

Show HN: Markant – A Dedicated Markdown Reader

https://markant.md/
1•lokimedes•39m ago•0 comments

Unraveling the Dream – Psychedelics, Awakening, and the Brain [video]

https://www.youtube.com/watch?v=r5KRnstXYUg
1•thedima•39m ago•1 comments

JetBlue used private data like internet history to set prices, per lawsuit

https://www.nbcnews.com/news/us-news/jetblue-allegedly-used-private-customer-data-internet-histor...
2•impish9208•41m ago•0 comments