News for hackers. Stuff that matters.
Re:Detecting the use of "curl | bash" server-side by dredmorbius on Sunday July 29, 2018 @04:01AM (#17637049)
Still not safe.

Verify key signatures.

And I really wish GPG had a negative trust signature.

Re:Detecting the use of "curl | bash" server-side by fulafel on Sunday July 29, 2018 @06:16AM (#17637347)
Yeah, if there are signatures then it doesn't matter. But often both are a miss.

Eg the key from https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-... doesn't have signatures, and isn't on the keyservers.

Of course an unsigned key missing from the keyservers still has the advantage that on subsequent installs/updates, the previously downloaded key persists. And you can keep the initially downloaded key in your CI configs.

Re:Detecting the use of "curl | bash" server-side by Dylan16807 on Sunday July 29, 2018 @06:04AM (#17637315)
Verify it against what?
Re:Detecting the use of "curl | bash" server-side by dredmorbius on Sunday July 29, 2018 @06:26AM (#17637371)
See what keys have signed a given key. See Debian maintainer keys as an example.

This is ... not everything that it could be, and is approaching 30 years old, technology built for a vastly different world.

But this is the basis of the GPG / PGP Web of Trust.

https://en.wikipedia.org/wiki/Web_of_trust

http://www.pgpi.org/doc/pgpintro/

http://www.rubin.ch/pgp/weboftrust.en.html

(I've addressed this point ... a distressing number of times on HN: https://hn.algolia.com/?query=dredmorbius%20web%20of%20trust... 0

Re:Detecting the use of "curl | bash" server-side by dcbadacd on Sunday July 29, 2018 @07:35AM (#17637588)
Have you contacted maintainers if they're willing to do this? Is there a way to configure apt to verify chain of trust?