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

5% of venture capitalists have generated roughly 90% of the industry's profits

https://www.thevccorner.com/p/100-best-performing-vc-firms-ranking-2026
1•koolhead17•3m ago•0 comments

Executable Is a SQLite Database

https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database
1•setheron•5m ago•0 comments

The Absolute State of Management

https://infrequently.org/2026/07/state-management/
1•luu•6m ago•0 comments

Mourning Steve French

https://lwn.net/Articles/1090098/
1•mfrw•6m ago•0 comments

The agent that writes the code cannot read the tests that grade it

https://medium.com/@giladha/the-agent-that-writes-the-code-cannot-read-the-tests-that-grade-it-b4...
1•giladha•6m ago•0 comments

AI Is Quietly Draining the Public Internet of Thought

https://twitter.com/BrianRoemmele/status/2091127620431933780
2•nreece•12m ago•0 comments

Observare – one monitoring service instead of five

https://observare.co.uk/
1•5uth3r1ano•16m ago•0 comments

Tesla's Biggest Design Mistake May Be Hiding in Plain Sight

https://www.forbes.com/sites/peterlyon/2026/08/22/teslas-biggest-recall-yet-exposes-a-dangerous-p...
1•FireBeyond•21m ago•0 comments

Moonshine STT adds domain customization

https://moonshine-voice.readthedocs.io/en/latest/models/domain-customization/
1•Curiositry•24m ago•0 comments

Nearly 3M Teslas recalled in China over hidden door handles

https://www.bbc.com/news/articles/c4g6ggdg030o
15•chicken-stew•25m ago•9 comments

Show HN: AltCaption – generate HTML-ready image alt attributes

https://altcaption.com/alt-attribute-generator
1•hboon•26m ago•0 comments

Minimus Is Ending Operations

https://www.minimus.io
4•markiannucci•38m ago•0 comments

Six opportunities for scientists and engineers to learn programming with AI [pdf]

https://pg.ucsd.edu/publications/scientists-engineers-learning-programming-using-ai_CiSE-2023.pdf
3•azhenley•42m ago•0 comments

GitHub tag: "token-optimization" – List of token consumption reduction software

https://github.com/topics/token-optimization
1•peter_d_sherman•46m ago•0 comments

All-in-one tool and config for Claude-things

https://github.com/damusix/atomic-claude
3•daniloa•48m ago•0 comments

Tobi Lutke builds walgit in a weekend

https://twitter.com/tobi/status/2091678506992222258
3•cpstein•53m ago•0 comments

Sabatier Principle

https://en.wikipedia.org/wiki/Sabatier_principle
2•peter_d_sherman•59m ago•0 comments

AIs are companies, my friend

https://www.strangeloopcanon.com/p/ais-are-companies-my-friend
2•walterbell•59m ago•0 comments

Show HN: AI Room Design – Preview interior design styles before you renovate

https://airoommaker.com/
1•linnoe•1h ago•0 comments

How to Make AI Game Music for Any Level: Prompts and Looping

https://www.musegen.ai/blog/ai-game-level-music
1•musegenai01•1h ago•0 comments

Your AI Agent Doesn't Need More Prompts. It Needs Skills

https://medium.com/@faizan711/your-ai-agent-doesnt-need-more-prompts-it-needs-skills-a5e681b8a020
1•Faizan711•1h ago•0 comments

A Record-Breaking Copper Catalyst Converts CO2 into Liquid Fuels (2023)

https://newscenter.lbl.gov/2023/02/16/copper-catalyst-converts-co2-into-liquid-fuels/
1•peter_d_sherman•1h ago•0 comments

Category Theory for Programmers(2017) [pdf]

https://static.latexstudio.net/wp-content/uploads/2017/12/category-theory-for-programmers.pdf
2•o4c•1h ago•0 comments

53k Fukushima nuclear plant workers receive high radiation doses

https://www.japantimes.co.jp/news/2026/08/24/japan/tepco-fukushima-radiation-exposure/
5•toomuchtodo•1h ago•1 comments

Common Lisp: A Gentle Introduction to Symbolic Computation() [pdf]

https://www.cs.cmu.edu/~dst/LispBook/book.pdf
2•o4c•1h ago•0 comments

Sam Altman on Building OpenAI to a Billion Users [video]

https://www.youtube.com/watch?v=kG8AoExkX40
3•tvvocold•1h ago•0 comments

Why is Anthropic's public writing style so unlike Claude's?

https://cmart.blog/claude-writing/
1•zdw•1h ago•0 comments

Newsom makes last-minute push to help California utilities facing wildfire bills

https://calmatters.org/politics/2026/08/newsom-wildfire-utility-liability-package/
1•newsomix9xl•1h ago•1 comments

State paying $625K to settle lawsuit over Braun firing utility commission member

https://indianacapitalchronicle.com/2026/08/22/state-paying-625k-to-settle-lawsuit-over-braun-fir...
1•newsomix9xl•1h ago•1 comments

I run a pizzeria out of my Smart car in NYC [video]

https://www.cnbc.com/2026/08/22/bradley-alvelo-runs-pizza-pod-mobile-pizzeria-smart-car-new-york-...
3•jdnier•1h ago•0 comments