News for hackers. Stuff that matters.
Re:Deno 2.4 by methyl on Monday July 07, 2025 @06:28AM (#44488723)
Has any attack like this been ever seen in the wild? Not saying it's impossible – but I'm just curious if this vector was ever successfully exploited.
Re:Deno 2.4 by bflesch on Monday July 07, 2025 @06:40AM (#44488785)
I'm sure there are cases where the website CMS was hacked and then malware served instead of the normal install script. The `curl | sh` approach has been around forever.

And depending on what "interesting" IP address you are coming from, NSA/Microsoft/Apple will MITM your npm install / windows update / ios update accordingly.

Same in the linux ecosystem, if you look at the maintainers of popular distributions, some of them had .ru / .cn email addresses before switching to more official email addressess using the project domain - IMO this change of email addressess happened due to public pressure on russia after the Ukraine invasion. Having access to main package signing keys for a linux distribution, you can provide special packages from your linux package mirror to interesting targets.

All of these scenarios are extremely hard to prove after the fact and the parties involved are not the type of people who do public writeups.

Re:Deno 2.4 by oblio on Monday July 07, 2025 @06:59AM (#44488898)
If the website CMS is hacked, they can just swap the installable binary to one's that's hacked, too.
Re:Deno 2.4 by pcl on Monday July 07, 2025 @07:21AM (#44489082)
That’s why downloading and then executing is preferable — as the GP pointed out, you or your machine’s antivirus can have an opportunity to inspect the file prior to execution, whereas that is not an option when the bytes are streamed directly to the interpreter.