Re:Snap Store administrators removed signal-desktop from Ubu...
by jdiff on Thursday November 03, 2022 @04:44PM
(#33457240)
Yeah, it's possible for a web server to detect and change the returned data maliciously. Even with user agent and all other factors changed to match, it's possible to detect even the difference between being piped into another command vs being redirected to a file.
Re:Snap Store administrators removed signal-desktop from Ubu...
by rosnd on Thursday November 03, 2022 @07:42PM
(#33459573)
It's also possible for a web server to selectively serve you a backdoored .deb or git repo
Re:Snap Store administrators removed signal-desktop from Ubu...
by drran on Thursday November 03, 2022 @08:03PM
(#33459775)
So what? I can inspect downloaded code and find the backdoor, or a trojan, or an error. I did it few times already in last 30 years. If you cannot do that doesn't mean that nobody can. But I cannot do that with `curl | bash`.
Re:Snap Store administrators removed signal-desktop from Ubu...
by rosnd on Friday November 04, 2022 @12:26PM
(#33469345)
If you can't save the output of curl into a file, you certainly aren't one of the few people capable of meaningfully inspecting anything you download.
Re:Snap Store administrators removed signal-desktop from Ubu...
by drran on Sunday November 06, 2022 @01:24AM
(#33489773)
I cam do that on MY machine. I cannot do that on your. I can download code, inspect it, install, and then create a RPM package, which can be installed in a safe way by DNF package manager, but I cannot do that with `curl | bash` method of installation.
Re:Snap Store administrators removed signal-desktop from Ubu...
by rosnd on Thursday November 10, 2022 @06:00AM
(#33544812)
>I can download code, inspect it, install, and then create a RPM package, which can be installed in a safe way by DNF package manager, but I cannot do that with `curl | bash` method of installation.
But you can?
Re:Snap Store administrators removed signal-desktop from Ubu...
by electromech on Thursday November 03, 2022 @08:49PM
(#33460216)
It helps that Signal uses an HTTPS apt repo and includes "signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg" in the apt list entry. If their download server were compromised, (and assuming the hacker didn't also get the private gpg key) the attacker would have to provide malicious archives selectively to avoid detection. Anyone who installed the old key (e.g., me) would notice the key validation errors.
Re:Snap Store administrators removed signal-desktop from Ubu...
by marginalia_nu on Thursday November 03, 2022 @04:45PM
(#33457244)
The difference is that the stream coming out of curl and entering sh is ephemeral. With this device, there is no checksum or signature (as with apt). If you pipe curl into sh, you also leave no trail of what you've run. A malicious actor can also hinder analysis by serving different payloads per user-agent, per time of day, per subnet; or only serving the malicious payload intermittently.
With .deb-files you're expected to verify the checksum. Maybe you don't, and even if you don't, you can theoretically go back and verify after as part of a forensic process. This checksum is also typically distributed across different mirrors, making bait-and-switch attacks difficult. It means that if you're going to do a supply chain attack, you must do it in the open.
Compiling from sources is a bit sketchy, but it is also the vector that is easiest to analyze, so I think they cancel out.
Re:Snap Store administrators removed signal-desktop from Ubu...
by rosnd on Friday November 04, 2022 @12:28PM
(#33469379)
>Compiling from sources is a bit sketchy, but it is also the vector that is easiest to analyze, so I think they cancel out.
Is it really meaningfully easier to analyse? I get that it feels better, but I'd bet that the people saying this would fail to catch the backdoor every time.
Or cloning a git repo and building it?