frontpage.
newsnewestaskshowjobs

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...

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.
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

PRætore, a Rust authorization engine between AI agents and their tools

https://github.com/Mavericksantander/praetore
1•santander_cl•34s ago•0 comments

Sanofi to buy US biopharma group Insmed for $41B in cash

https://finance.yahoo.com/healthcare/articles/sanofi-buy-us-biopharma-group-104404701.html
1•randycupertino•36s ago•0 comments

Constraining Planet Nine with Pulsar Timing

https://arxiv.org/abs/2611.28471
1•titusblair•1m ago•0 comments

Sphere: A Pioneering Early Microcomputer, Rediscovered

https://computerhistory.org/blog/sphere-microcomputer-rediscovered/
1•titusblair•1m ago•0 comments

What Does 'Shebang' Mean?

https://www.merriam-webster.com/wordplay/the-word-history-of-shebang
2•titusblair•1m ago•0 comments

Sneakernet: A Slow, Decentralized Network

https://drewdevault.com/blog/Introducing-sneakernet/
1•djha-skin•1m ago•0 comments

Terence Tao is your guide to what underpins reality

https://www.nature.com/articles/d41586-026-03720-w
3•digital55•2m ago•0 comments

Copy Docker/OCI images between any two container registries. No Docker required

https://github.com/CurtMeadows/straddler
1•SEJeff•3m ago•0 comments

Modernised 64-bit port of Inferno, designed for testing AI agents

https://infernode.io/
1•lproven•3m ago•1 comments

The New York Times warns photographers not to update Photoshop over AI features

https://www.theverge.com/ai-artificial-intelligence/1041227/the-new-york-times-warns-photographer...
1•thm•3m ago•0 comments

What If Assembly Had a Type? Building Memory-Safe RISC-V Assembly with Lean 4

https://medium.com/@Koukyosyumei/what-if-assembly-had-a-type-system-building-memory-safe-risc-v-a...
1•syumei•4m ago•0 comments

MCP servers can now ship skills, run tasks, and more with Claude

https://claude.com/resources/articles/skills-over-mcp-tasks-and-more
3•saikatsg•4m ago•0 comments

Show HN: Two Divinations – Beautiful I Ching, Tarot & Greco-Egyptian Horoscope

https://www.twodivinations.com/
1•dbspin•5m ago•0 comments

The enterprise guide to securing coding agents

https://claude.com/resources/articles/enterprise-guide-to-securing-coding-agents
1•saikatsg•5m ago•0 comments

Quality IMAP, Part 2: Mailbox Concurrency

https://aerogramme.deuxfleurs.fr/blog/2026-quality-imap-part-2/
1•birdculture•6m ago•0 comments

A live peek inside your LLM inference engine (SGLang, vLLM) as it runs

https://gauravjain14.github.io/inference-observe/
1•gauravjain14•6m ago•0 comments

The Epochal Time Portal

https://epochal.com/
7•franklsf95•6m ago•0 comments

Work in Progress: Processing 5.0 R&D

https://processingfoundation.org/blog/work-in-progress-processing-5/
1•mariuz•8m ago•0 comments

Hush UI A component library for HTML and CSS

https://hush.kardashevcatalyst.com/
1•cjhisey•9m ago•0 comments

EU in Talks with Apple over Barriers to Rival iPhone Browsers

https://www.macrumors.com/2026/11/24/eu-talks-with-apple-over-rival-iphone-browsers/
4•tosh•9m ago•0 comments

An ethical AI does not exist

https://humancode.us/2026/11/22/an-ethical-ai-does-not-exist
1•speckx•10m ago•0 comments

The Nvidia Scandal

https://www.foreignaffairs.com/china/real-nvidia-scandal-kilcrease-chilukuri
1•worik•10m ago•0 comments

The Proof of Effort

https://blog.tadzik.net/the-proof-of-effort.html
3•domm•11m ago•0 comments

Diagnóstico Inicial: Vocês Chamam Isso de CivilizaçãO?

https://skynet.blog.br/diagnostico-inicial-voces-chamam-isso-de-civilizacao
1•singularis•12m ago•0 comments

Defective Accelerationism

https://www.wheresyoured.at/defective-accelerationism/
1•7777777phil•12m ago•0 comments

Show HN: Upronix – Free uptime monitoring and visual status page builder

https://upronix.dev
1•slxca•14m ago•0 comments

Go Without Wires: TinyGo on ESP32 [video]

https://www.youtube.com/watch?v=Vi5M-uD2x_U
1•todsacerdoti•15m ago•0 comments

Taking a Password Joke Seriously

https://www.johndcook.com/blog/2026/11/24/password-joke/
1•speckx•15m ago•0 comments

The human cost of the electric vehicle boom is at the center of Congo lawsuit

https://text.npr.org/nx-s1-6042912
2•mooreds•15m ago•0 comments

Jensen Huang Disclosed More Affairs to Board Before Reinstatement, Report Says

https://www.forbes.com/sites/siladityaray/2026/11/24/nvidia-ceo-jensen-huang-disclosed-more-affai...
3•realjensenhuang•17m ago•0 comments