News for hackers. Stuff that matters.
Re:State of Linux Desktop Security by AnthonyMouse on Wednesday June 17, 2020 @11:52PM (#23559651)
> Windows and MacOS enforce signature checking on all binaries.

This is not a meaningful security feature. If the signature has to be from the manufacturer then you can't so much as write your own shell script, which is useless. That is a cage, not a security measure. But if the user can sign their own binaries then the signature is the equivalent of the execute bit -- you have to tell the system something is executable before it will execute it. Linux has had that forever.

Re:State of Linux Desktop Security by bitbang on Thursday June 18, 2020 @12:17AM (#23559754)
I'd rather shit Legos than have to deal with binary signature checking.
Re:State of Linux Desktop Security by craftinator on Thursday June 18, 2020 @01:43AM (#23560119)
On Linux, just automate it.
Re:State of Linux Desktop Security by infokiller on Thursday June 18, 2020 @05:05AM (#23561225)
Signatures are meaningful when the keys are more secure than the servers hosting the data.

If you download software from a hacked server that serves you malware, the signature check will fail. In contrast, the execute bit can be changed by anyone.

The problem is that you need to get the authentic public key of the software distributor to verify the signature. If an attacker is able to forge the public key, they can easily forge the signature and the signature check will succeed.

Re:State of Linux Desktop Security by AnthonyMouse on Thursday June 18, 2020 @11:23AM (#23563933)
> The problem is that you need to get the authentic public key of the software distributor to verify the signature.

Right. If you already have a secure channel to receive the signing key over, you can just use it to receive the software to begin with.

Meanwhile we do have a CA system that lets you download the software via TLS. It's not perfect, but breaking TLS or compromising a CA are not even close to common methods of delivering malware.

Re:State of Linux Desktop Security by infokiller on Thursday June 18, 2020 @12:06PM (#23564429)
> Right. If you already have a secure channel to receive the signing key over, you can just use it to receive the software to begin with.

Note that the secure channel sometimes has more limited bandwidth. An example would be reading part of your public key over the phone, which is not practical for the actual software. There are other considerations that make using the secure channel for the software itself impractical. For example, you can have many people publish known public keys on their website, so that other people could verify them with some majority voting.

> Meanwhile we do have a CA system that lets you download the software via TLS. It's not perfect, but breaking TLS or compromising a CA are not even close to common methods of delivering malware.

The main risk is not breaking TLS or CAs, but rather compromising the server that you download the software from, and serving malware instead. Indeed, if the same server is used for serving the public key, you don't gain much, because the attacker can just generate their own key pair, sign the malware, and publish their key. But ideally, the public key would not be published from the same server, making an attack more difficult.

Re:State of Linux Desktop Security by AnthonyMouse on Thursday June 18, 2020 @12:16PM (#23564551)
> Note that the secure channel sometimes has more limited bandwidth. An example would be reading part of your public key over the phone, which is not practical for the actual software.

In theory, sure. In practice ordinary users are not calling up the software developer and having them read their public key over the phone.

> There are other considerations that make using the secure channel for the software itself impractical. For example, you can have many people publish known public keys on their website, so that other people could verify them with some majority voting.

You could do the same thing with the application binary itself and have them compare hashes.

> But ideally, the public key would not be published from the same server, making an attack more difficult.

You could get the same benefit from publishing only the hash of the software on the separate server. The signature is redundant, and is even worse than the hash because it introduces private key compromise as an attack vector.

The main benefit of signatures is for an app distribution system that needs to distribute multiple apps or updates, so then it can deliver the public key once and reuse it. But now you're talking about the package manager and Linux package managers already do that.

Re:State of Linux Desktop Security by infokiller on Thursday June 18, 2020 @12:30PM (#23564754)
> You could do the same thing with the application binary itself and have them compare hashes.

This is not scalable to software updates, which happen much more frequently than (long term) key updates. With hashes you would need to publish a new hash for every update, but with public keys you're fine.

> You could get the same benefit from publishing only the hash of the software on the separate server. The signature is redundant, and is in fact worse than the hash because it introduces private key compromise as an attack vector.

Similarly to the issue I mentioned above, this introduces a hassle because the hash will change every time you update the software, which means you will need to update it. In addition, the system serving the hash/key should have some additional safeguards for updating it (because it's somewhat more sensitive), making the update probably more cumbersome. Could you clarify what attack is possible with keys that is not possible with hashes?

Re:State of Linux Desktop Security by imtringued on Thursday June 18, 2020 @02:59AM (#23560504)
The signature could be tied to a sandbox. Signed apps each have their own sandbox. User signed apps all get thrown into the same sandbox. Otherwise I agree. A signature can't actually meaningfully exist as a security feature in an open source operating system where you are able to compile every piece of software yourself.
Re:State of Linux Desktop Security by AnthonyMouse on Thursday June 18, 2020 @11:32AM (#23564015)
Signatures and sandboxing are independent. You can have either one without the other.
Re:State of Linux Desktop Security by noobermin on Thursday June 18, 2020 @03:14AM (#23560578)
You're going to make ipsec heads explode comparing signing a binary to setting a file's execute bit.