frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Can we please stop with curl | sudo bash, PLEASE

10•b112•2d ago
Using

curl -s https://url | sudo bash

is literal insanity. Root given. We know how accounts can be compromised, so obviously there is potential for that url to be replaced by a hacker with something malicious. We've even seen hackers compromise pages, and return the standard page, while targetting only a few people (geolocation, for example) with malicious data.

Yet there is also the possibility for malformed text to be returned. Bash will happily execute each and every line of:

  E#@%SDVsdcvxdsf4a6t4g
  erfgrr;rm * regdfgereridbd
  4524wfasrfv4
Hard to imagine such output? Yes. Impossible? Absolutely not. There are literally thousands upon thousands of commands bash can access in a typical install of Linux. Many of them are destructive. Why even risk it?

And beyond malformed, there could be a simple publishing error. There could be lines of code in the error message. Unknown text. Each and every line of text returned, is executed. I am just gobsmacked that this exists anywhere, ever, for any reason at all. I wouldn't execute such a command from my own personal web server, in my own internal lan, let alone remote.

When I see such inanity on a project page, it's a big read flag to me. Convenience over the most basic of security, or even simple validation that something didn't go wrong in a curl request. The evoked lack of trust that arises is as bile in my throat, what other shortcuts are taken by the project authors, which seem to barely understand the simplest of risk assessment?

Please, don't ever execute this. If you have to throw all sense and caution to the wind, and use a project which suggests this install method, well... at least curl > file and take 1 second to see the result.

Comments

jjgreen•2d ago
This may be considered as critical of Rust, so will be flagged and closed in due course.
j4nek•2d ago
made my day :D
krapp•2d ago
Not only will we keep doing this, we'll have AI agents do it unsupervised.
late_night_fix•1d ago
The problem isn't pipe, it's the default to blind trust.People will happily audit a PR but won't spend 5 seconds reading a script they're about to run as root.
halJordan•1d ago
It's not trust. There are plenty of major projects that only have or strongly prefer curl | bash. Trusting a vendor is fine.
rvz•1d ago
100% Agree.

If I were an attacker, this is the easiest way to gain root access, leak env variables and install ransomware on the machine.

Accepting this as the standard way to install software just for convenience over security is just pure ignorance until a massive breach happens.

This even before mentioning flawed standards such as INSTALL.md [0] for agents to curl | sudo bash unattended from a .md file.

[0] https://www.mintlify.com/blog/install-md-standard-for-llm-ex...

akagusu•1d ago
Can you please stop trying to control what people do on their computers?

Nobody is forcing anyone to execute the script and usually the script is fully auditable.

winstonwinston•1d ago
These are often to install a repository and a package.

The alternative is to run something like rpm -i from_url.rpm to install some package directly. Which is not exactly any different from security perspective.

There is no easy way around this when the software is not in a system repo or without attestation in some way.

dlcarrier•1d ago
The host in this video (https://youtu.be/M1si1y5lvkk) described the primary use for curl as to "freebase shell script straight from githabusercontent.com by piping it into a root shell". He also said that "-o-" is an emitocon illustrating the user with their head down on their desk and their arms splayed out in a pose of complete submission".

VoxeliumX – easy open-source tool to run Minecraft servers

1•Cheesehamster•43s ago•0 comments

Netherlands reaches deal to cut reliance on U.S. cloud tech

https://nltimes.nl/2026/04/24/netherlands-reaches-deal-european-cloud-company-decrease-us-tech-re...
1•01-_-•4m ago•0 comments

Free Online Tools for PDF, Image and Video – ToolHive

https://trytoolhive.com
1•farahfarah•4m ago•0 comments

Gecko: A fast GLR parser with automatic syntax error recovery

https://vnmakarov.github.io/parsing/compilers/c/open-source/2026/04/22/gecko-glr.html
1•fanf2•6m ago•0 comments

The Bracket – A Government Man

https://agovtman.substack.com/p/the-bracket
1•jjar•10m ago•0 comments

Onio.club

https://onio.club/
1•kkoncevicius•12m ago•0 comments

Canada's AI Startup Cohere Buys Germany's Aleph Alpha to Expand in Europe

https://www.reuters.com/legal/transactional/canadas-cohere-germanys-aleph-alpha-announce-merger-h...
1•ipieter•13m ago•0 comments

A practical guide to time for developers: clocks, drift, NTP, and PTP

https://www.dmytrohuz.com/p/a-practical-guide-to-time-for-developers
3•dmyhuz•15m ago•0 comments

Superscript Asterisk in Unicode

https://blog.zgp.org/superscript-asterisk-in-unicode/
1•b6dybuyv•17m ago•0 comments

Spinel: Ruby AOT Native Compiler

https://github.com/matz/spinel
3•dluan•20m ago•0 comments

Stock markets are too high and set to fall, says Bank of England deputy

https://www.bbc.com/news/articles/c75kp1y43lgo
3•wood_spirit•21m ago•1 comments

TorchWebGPU: Running PyTorch Natively on WebGPU

https://github.com/jmaczan/torch-webgpu
1•yu3zhou4•21m ago•0 comments

I over-engineered my AI coding setup one justified upgrade at a time

https://machinethoughts.substack.com/p/every-upgrade-made-sense-how-i-over
1•jurreB•29m ago•0 comments

A red pixel in the snow: How AI found a lost climber

https://www.bbc.com/future/article/20260108-how-ai-solved-the-mystery-of-a-missing-mountaineer
2•tellarin•29m ago•0 comments

We Are Xbox

https://news.xbox.com/en-us/2026/04/23/we-are-xbox/
3•quyleanh•31m ago•0 comments

SSE token streaming is easy, they said

https://zknill.io/posts/everyone-said-sse-token-streaming-was-easy/
1•zknill•33m ago•0 comments

UK gaming icon Peter Molyneux on AI, his final creation and a changing industry

https://www.bbc.com/news/articles/c4glw5nyrggo
3•tellarin•33m ago•2 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
2•sarmike31•41m ago•0 comments

DroidVM – Run virtual machine on Android Phones with near-native performance

https://github.com/droid-vm/droidvm
1•shelfchair•42m ago•0 comments

Okren – Founding Engineering Operator – Europe /Remote – Pre-Seed – Equity-First

https://okrenai.com/
1•freddiebrown3rd•44m ago•0 comments

Show HN: Founder Decision Engine

https://github.com/michaelaz774/decision-engine
1•michael774•45m ago•0 comments

Tim Cook wrote a winning recipe for Apple

https://www.economist.com/leaders/2026/04/23/tim-cook-wrote-a-winning-recipe-for-apple
2•edward•46m ago•0 comments

Design.md: A format spec for describing a visual identity to coding agents

https://github.com/google-labs-code/design.md
5•rbanffy•48m ago•1 comments

Vision Banana | Google DeepMind

https://vision-banana.github.io
1•rldjbpin•50m ago•0 comments

Is Helium the Browser Brave Was Meant to Be?

https://itsfoss.com/helium-browser/
1•dotcoma•51m ago•0 comments

Self-Reference

https://en.wikipedia.org/wiki/Self-reference
1•nill0•51m ago•0 comments

Discouraging "the voice from nowhere" (~LLMs) in documentation

https://forum.djangoproject.com/t/discouraging-the-voice-from-nowhere-llms-in-documentation/44699
1•marbartolome•51m ago•0 comments

Vibe Coding Isn't the Problem – It's Your Approvals Process

https://kristopherleads.substack.com/p/vibe-coding-isnt-the-problem-its
1•kristopherleads•52m ago•2 comments

You're about to feel the AI money squeeze

https://www.theverge.com/ai-artificial-intelligence/917380/ai-monetization-anthropic-openai-token...
2•eternalreturn•53m ago•0 comments

DeepSeek V4 in vLLM: Efficient Long-Context Attention

https://vllm-website-pdzeaspbm-inferact-inc.vercel.app/blog/deepseek-v4
3•zagwdt•54m ago•0 comments