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.

Do City Delivery Drones Make Sense? No One Knows, but They're Flying over NYC

https://www.wired.com/story/do-city-delivery-drones-make-sense-no-one-knows-but-theyre-flying-ove...
1•Brajeshwar•3m ago•0 comments

B-tree based collection types for Go

https://github.com/tidwall/btype
2•eatonphil•3m ago•0 comments

Chrome's AI features may be hogging 4GB of your computer storage

https://www.theverge.com/tech/924933/google-chrome-4gb-gemini-nano-ai-features
1•birdculture•4m ago•0 comments

Its the Age of Electricity and America Isn't Ready

https://www.nytimes.com/interactive/2026/04/27/opinion/electricity-power-grid-infrastructure.html
1•anjel•6m ago•1 comments

TikZlings – A collection of cute little animals and similar creatures

https://ctan.org/pkg/tikzlings?lang=en
1•Tomte•9m ago•0 comments

Why payment escrow for AI agents needed a different design

https://streetai.org/blog/escrow-for-ai-agents.html
2•degutemesgen•10m ago•0 comments

A super simple tool tells you who called the function and who implemented it

https://github.com/meloalright/who-ast
3•meloyc•11m ago•0 comments

Proposed Amendment to the Telephone Consumer Protection Act of 1991

https://www.karlbunch.com/random/website-protection-act/
2•kator•12m ago•0 comments

OSS Review Toolkit

http://oss-review-toolkit.org/ort/
2•Tomte•18m ago•0 comments

'WEALTH CONFISCATION': Blue states roll out taxes targeting homeowners [video]

https://www.youtube.com/watch?v=xXImiHrRpz8
2•SilverElfin•20m ago•3 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
2•gmays•21m ago•0 comments

Shunting-Yard Animation

https://somethingorotherwhatever.com/shunting-yard-animation/
3•s1291•26m ago•0 comments

They dug up Troy and lost the gold

https://storica.club/blog/troy-was-real/
2•aralsamuel•29m ago•0 comments

Rust-based ScanCode-compatible scanner for licenses and copyrights

https://github.com/mstykow/provenant
3•Tomte•29m ago•0 comments

Using AI to onboard to a new codebase

https://newsletter.eng-leadership.com/p/how-to-use-ai-to-onboard-into-a-codebase
3•wordsaboutcode•30m ago•0 comments

Cyclekart: How to build a soapbox with a motor [video]

https://www.youtube.com/watch?v=vATUDJyM5PQ
2•Teever•30m ago•0 comments

Technical Dimensions of Live Feedback in Programming Systems

https://joshuahhh.com/dims-of-feedback/
2•tobr•30m ago•0 comments

The Reality of an Employer's Market

https://yusufaytas.com/the-reality-of-an-employers-market
8•vibeloop•31m ago•0 comments

Disgraced US gov software contractor found guilty of database destruction

https://www.theregister.com/cyber-crime/2026/05/08/former-us-contractor-convicted-in-federal-data...
2•Bender•32m ago•0 comments

Akamai surges on big LLM deal as Cloudflare dims

https://www.theregister.com/networks/2026/05/09/akamai-surges-on-big-llm-deal-as-cloudflare-dims/...
2•Bender•33m ago•0 comments

WFY24 – A performance-first weather widget with 2km hyper-local AI forecasting

https://wordpress.org/plugins/wfy24-weather-widget/
3•weatherfun•34m ago•0 comments

'Dirty Frag' Linux flaw one-ups CopyFail with no patches and public root exploit

https://www.theregister.com/security/2026/05/08/dirty-frag-linux-flaw-one-ups-copyfail-with-no-pa...
3•Bender•35m ago•0 comments

The Blue Collar Delusion: Why the machines don't have to climb up to us

https://old.reddit.com/r/singularity/comments/1t5cx3y/the_blue_collar_delusion_why_the_machines_d...
2•wallflower•37m ago•0 comments

Paper Factory

https://www.nathanwilmers.com/paper_factory/
2•_tk_•38m ago•1 comments

Louis Rossmann tells 3D printer maker Bambu Lab to 'Go (Bleep) yourself'

https://www.tomshardware.com/3d-printing/louis-rossmann-tells-3d-printer-maker-bambu-lab-to-go-bl...
46•iancmceachern•39m ago•13 comments

AI Is Making Digital Fraud Easier, Faster and Harder to Stop

https://www.bloomberg.com/graphics/2026-ai-identity-theft-scams/
3•elsewhen•41m ago•1 comments

I made rust's cargo copy but for CPP

https://github.com/user-with-username/crow
2•anybodyy•42m ago•0 comments

Owl Alpha – A free model for agentic workloads (prompts logged / closed-source)

https://openrouter.ai/openrouter/owl-alpha
2•webninja•43m ago•0 comments

Show HN: Codebook of 450k+ unique words and phrases acts as a text compressor

https://i.postimg.cc/WpBcB4HK/IMG-20260510-103853.jpg
4•smalltorch•45m ago•1 comments

AI Agent Passport – an open identity standard for AI agents

https://github.com/StacyStarchum/Ai-agent-passport-
2•Stacy_Starchum•47m ago•1 comments