6 ms·
If your method of infecting your victim is having them paste and run a random command on their terminal, software developers is probably the worst group of peop
by drexlspivey 2y ago
If your method of infecting your victim is having them paste and run a random command on their terminal, software developers is probably the worst group of people to be targeting.
- arccy 2y agoyou'd be surprised at the quality of the average dev
- thephyber 2y ago“Curl pipe sh” would like to have a word… I think you are painting with a broad brush.
- vultour 2y agoThis is no different from installing a random package through a package manager. If you're running "curl pipe sh" because an email told you to, that's on you.
- craftkiller 2y agoNo it isn't. Package managers verify the cryptographically signed package. That means the package can be built on a secure server, and then if a mirror becomes malicious or gets compromised, the malicious package won't have a valid signature so the package will not be installed. Running curl and piping it into sh means that not only could a malicious mirror or compromised server execute anything they want on your computer, but they could even send a different script when you curl it into sh vs when you view it any other way, making it much harder to detect[0]. [0] https://web.archive.org/web/20240213030202/https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/ https://web.archive.org/web/20240213030202/https://www.idont...
- dylan604 2y agoI think the npm repos would like to have a word with you. Sure glad we've never had a cryptographically signed malicious package delivered via npm install
- craftkiller 2y agoThats like not wearing a seatbelt because you can still be crushed by a truck. Don't let perfect be the enemy of good. Package managers prevent some attacks that are possible via curl | sh. Some other attacks are still possible. It is still better than not cryptographically verifying the package.
- dylan604 2y agoThat's like moving the goal posts so you can still try to have a point after the fact. Your comment suggested that package manager was secure while curl | sh isn't because the package manager won't have a valid signature. That's only if the package manager was compromised. A code package that is built to be malicious will still get signed by your manager. Only now, people think they are secure because it was signed.
- bugtodiffer 2y agoCouldn't I just publish a package? Then there's malware on the package manager wohooo
- craftkiller 2y agoNo it wasn't. The comment I replied to claimed: > This is no different from installing a random package through a package manager I replied "No it isn't" in response to that, so I was claiming that a package manager was different (in terms of security) from doing curl | sh. My comment then went on to explain specific attacks (a mirror being compromised) which are solved by package managers / cryptographic signatures. At no point did I ever claim package managers were immune to all attacks. A compromised build server, leaked keys, or the upstream program thats being packaged being malicious are all still possible. Its very simple, my Arch Linux install is pointed at the MIT mirrors. What is stopping the Massachusetts Institute of Technology from replacing my next firefox update with a virus? Cryptographic signatures. They don't have an Arch Linux signing key. What would be stopping them if I installed firefox by doing curl | sh? Nothing.
- _hyn3 2y agoThe tremendous number of attacks delivered via trusted package repos versus the number of widespread attacks via curl | sh (probably roughly zero) means that, theories aside, one of these is far more commonly abused than the other.
- thephyber 2y agoBoth are examples of developer-types doing risky things, which was my point and also supports my point that developers are not exclusively better secured than non-developer types.
- lukan 2y agoMy only encounter with this is, that I am annoyed if I open web dev tools on a new browser profile/guest profile, but am interrupted in my workflow because first I have to type "allow pasting" every single time. (Why I do this quite often? To be sure to have a clean state when debugging a web app) And all this, because some people cannot think, before they follow obscure instructions send to them by a untrusted party? Why can't we have nice things again? Because of abusers yes, but also because of sheep people.
- TheRealPomax 2y agoYou just need a handful of people to fall for it, and a population of a hundred million daily active users on GitHub means there are always a handful of people to trick.
- jeroenhd 2y agoHard disagree. Developers aren't magically tech wizards, many of them will struggle to install a printer. I've seen one spend fifteen minutes on adding a keyboard layout in Windows last week (granted, the process was very unintuitive). It's this "I'm a developer, I'm too smart to fall for phishing" mindset that makes developers an excellent target for malware.