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.

Hermitary – the hermit, hermits, eremitism, silence, and simplicity

https://www.hermitary.com/
1•marttt•2m ago•0 comments

AP-Quiz: Mobile AP Exam Practice for Spare Moments

https://ap-quiz.com
1•coolwulf•5m ago•1 comments

Hyperscalers are buying all the chips to then rent them to us later

1•adelks•9m ago•0 comments

The new Run dialog: faster, cleaner, and more capable

https://devblogs.microsoft.com/commandline/the-new-run-dialog-faster-cleaner-and-more-capable/
1•shscs911•12m ago•0 comments

A contribution to solving the existential anxiety problem of AI hallucinations

https://zenodo.org/records/19608960
1•M_Samir333•12m ago•0 comments

Primate 0.38: The route is the contract

https://primate.run/blog/primate-038
5•hansmighty•21m ago•0 comments

CSS Reboot Day (May 1, 2026)

https://holidaytoday.org/css-reboot-day/
2•bariumbitmap•31m ago•0 comments

Microsoft's Xbox mode is now available for all Windows 11 PCs

https://www.theverge.com/news/921582/microsoft-xbox-mode-windows-11
2•fortran77•32m ago•0 comments

Show HN: Open-Source FHIR –> OMOP Pipeline

https://forge.foxtrotcommunications.net/
2•brady_bastian•36m ago•0 comments

Wirken: Secure AI agent gateway. Encrypted vault. Single static binary

https://github.com/gebruder/wirken
2•thunderbong•39m ago•0 comments

High Housing Costs Are Pushing Foreclosures to a Six-Year High

https://www.wsj.com/economy/housing/high-housing-costs-are-pushing-foreclosures-to-a-six-year-hig...
3•petethomas•41m ago•1 comments

The feed doesn't know you, and YouTube refuses to let you browse

https://evilgeniuslabs.ca/blog/the-feed-doesnt-know-you
3•andsoitis•44m ago•1 comments

Ask HN: Forced into Gemini on Google Account?

2•hysan•51m ago•2 comments

Ask HN: How do you assess and recruit developers in 2026?

2•andrewstuart•55m ago•0 comments

I vibecoded my dream game, GeoGuesser for guns, and its making money

https://gunguesser.com
6•salad_vr•1h ago•1 comments

Coding plan pricing comparisons based on actual usage

https://sites.diy/blog/2026-05-01-coding-plan-comparisons/
3•bilalba•1h ago•0 comments

An Unreleased Lyme Disease Vaccine Is Sparking False Conspiracy Theories

https://www.motherjones.com/politics/2026/05/lyme-disease-vaccine-conspiracy/
2•pulisse•1h ago•0 comments

Gravity's role in quantum state reduction [pdf]

https://image.sciencenet.cn/olddata/kexue.com.cn/upload/blog/file/2010/8/201081019170575880.pdf
1•__patchbit__•1h ago•0 comments

Internet Classism: How We Know You're Poor and Lame Online

https://braunandbrains.substack.com/p/internet-classism-how-we-know-youre
2•anonymouscaller•1h ago•1 comments

When hard drives were still huge: The Quantum Bigfoot turns 30

https://www.heise.de/en/news/When-hard-drives-were-still-huge-The-Quantum-Bigfoot-turns-30-112791...
1•croes•1h ago•1 comments

Tesla reveals $573M web of transactions between Elon Musk's companies

https://electrek.co/2026/05/01/tesla-tsla-web-transactions-musk-companies-spacex-xai-10ka-2025/
5•breve•1h ago•0 comments

Fixing Up CopyFail on Alpine

https://astr.al/notes/2026-04-29_copyfail/
2•potus_kushner•1h ago•0 comments

I built a way to search for people by intent

https://www.try-sytra.com/
2•bryzgalov•1h ago•1 comments

Capacity Efficiency at Meta

https://engineering.fb.com/2026/04/16/developer-tools/capacity-efficiency-at-meta-how-unified-ai-...
1•geoffbp•1h ago•0 comments

Sun Pharma is marrying Organon

https://finshots.in/markets/sun-pharma-is-marrying-organon/
1•vismit2000•1h ago•0 comments

Withastro/flue: The sandbox agent framework

https://github.com/withastro/flue
1•ankitg12•1h ago•0 comments

Sam Altman says OpenAI doesn't want to replace you with AI

https://www.neowin.net/news/sam-altman-says-that-openai-doesnt-want-to-replace-you-with-ai/
2•bundie•1h ago•1 comments

Amnitex: Lossless memory layer for AI coding assistants

https://github.com/Amnibro/amnitex
3•amnibro7•1h ago•0 comments

Spring House

https://en.wikipedia.org/wiki/Spring_house
3•thunderbong•1h ago•0 comments

Create an MP4 video of a web page scrolling at a steady speed

https://github.com/upenn/web-scroll-video
2•shawnzam•1h ago•1 comments