News for hackers. Stuff that matters.
Re:Notepad++ drops code signing for its releases by msla on Thursday March 07, 2019 @01:09PM (#19330437)
> Funny thing about trust: I trust a developer who drops some $$$ on a code-signing certificate more than I trust a developer who doesn't. Even if it's just $20.

Why? If I expect to make four figures on spreading malware/adware, and I can assuage the nerves of people like you by spending two or three figures on a certificate, I'm going to buy the certificate and make it look all nice and pretty and take your money.

> Your business name and physical address are injected into the certificate. Basically code-signing certificates make it easier for people to find you and sue you if they truly want to. I suspect that's the whole point.

So I have to incorporate in Delaware, make up a fake address, and rent a burner phone for a while. I'm not seeing the downside.

https://www.bizfilings.com/toolkit/research-topics/incorpora...

> Delaware does not require director names and addresses to be listed in the Certificate of Incorporation.

Re:Notepad++ drops code signing for its releases by smacktoward on Thursday March 07, 2019 @01:15PM (#19330519)
They didn't say they trust the developer who spends the money absolutely, they said they trust the developer who spends the money more than they trust one who doesn't. Which is fair -- as you note, not every scammer will be scared off by the need to spend some money to pull the scam off; but some will, so the ratio of legitimate developers to illegitimate ones will be higher in markets where there's some cost to entry.
Re:Notepad++ drops code signing for its releases by landryraccoon on Thursday March 07, 2019 @02:17PM (#19331184)
This is fallacious reasoning. A well intentioned open source developer who does not earn any money out of a labor of love has no incentive to further spend money to sign his app that he’s giving away for free anyway. On the flip side, a malicious actor that expects to earn money through a scam has every incentive to spend some money making the app look legit, especially if there is no risk involved.
Re:Notepad++ drops code signing for its releases by pvg on Thursday March 07, 2019 @02:39PM (#19331433)
The signed app can be globally disabled.
Re:Notepad++ drops code signing for its releases by angry_octet on Thursday March 07, 2019 @09:57PM (#19334739)
This could be easily achieved by Microsoft running a free signing service. Lowering the cost of signing to zero would significantly increase the proportion of signed apps.
Re:Notepad++ drops code signing for its releases by pvg on Thursday March 07, 2019 @10:40PM (#19334900)
The question was 'is someone who spends money for code signing more trustworthy than someone who doesn't' and it was being treated as if the trust or at least, increase in comfort, somehow comes merely from the act of spending money. It's an opt-in to a service that mitigates the impact of malicious code.
Re:Notepad++ drops code signing for its releases by angry_octet on Friday March 08, 2019 @03:26AM (#19335994)
The parent statement was that having signed apps made them easy to disable. If all apps had to be signed, everything would have a reputation hook, and also be easily disabled. It's the hang-up of using the for profit 'verified' code signing ecosystem that makes signing ineffective.

Of course, MSFT/Apple etc will abuse it to kill apps they/govt don't like.

Re:Notepad++ drops code signing for its releases by pvg on Friday March 08, 2019 @04:06AM (#19336134)
I don't really understand how any of this makes signing ineffective.
Re:Notepad++ drops code signing for its releases by salawat on Saturday March 09, 2019 @10:59AM (#19346720)
If the only way to play is to go through entrenched gatekeepers, who watches the watchers, hmmm? If anything this should be seen as a power grab by entrenched interests to have a cryptographic lever to pull to shut people out of what should be a user's discretion decision pre-emptively. Walled gardening at it's finest.

Code signing is a bit like gun control. It really doesn't solve the problem at all. It just pushes it up a level, and makes things more difficult for legitimate users.

It also lines up incentives such that the preferred model of software distribution shifts in the grand scheme of things toward for profit code.

While code signing is a neat technical solution, it's still a technical solution parading about as a solution to a social problem. And the social problem it is a solution to (that of untrustworthy folks existing) is not in any way mitigated by the act of signing as mentioned previously.

Re:Notepad++ drops code signing for its releases by pvg on Saturday March 09, 2019 @03:21PM (#19348243)
I don't really understand how any of this makes signing ineffective.
Re:Notepad++ drops code signing for its releases by Tempest1981 on Friday March 08, 2019 @03:36AM (#19336028)
Apps submitted to the Microsoft Store are signed by Microsoft (only), iirc.

Although it costs $19 or $99 to sign up, one time.

Re:Notepad++ drops code signing for its releases by angry_octet on Saturday March 09, 2019 @10:19AM (#19346518)
That is partly because only those apps can run on Windows S (also available in 1703: https://www.howtogeek.com/302352/how-to-allow-only-apps-from...)

They could enable this for win32 apps but they want to push things towards the walled garden.

Re:Notepad++ drops code signing for its releases by AnthonyMouse on Friday March 08, 2019 @12:16AM (#19335292)
> The signed app can be globally disabled.

Why can't the unsigned app be globally disabled? Is this not the basic premise behind Windows Defender and every other antivirus?

Re:Notepad++ drops code signing for its releases by brirec on Friday March 08, 2019 @01:01AM (#19335469)
Well sure, a known-malicious app will be detected by Windows Defender, provided it has updates making it aware of the app. But a known-malicious signed app will also fail the code signature verification, in addition to the virus scan, if its certificate has been revoked.
Re:Notepad++ drops code signing for its releases by AnthonyMouse on Friday March 08, 2019 @01:12AM (#19335504)
In what way is this not two separate things uselessly duplicating the same functionality? If you can get a CRL you can get a definition update, and they both effectively do the same thing.
Re:Notepad++ drops code signing for its releases by pvg on Friday March 08, 2019 @01:28AM (#19335569)
They are very much not the same thing. A signed app can be distributed from anywhere with the assurance it's the same app - it can't be maliciousified and if it was malicious from the start, it can be disabled. The non-signed up can have zillions of malicious variants which something like Defender may or may not catch. It also gets a shot of circumventing (or even exploiting) AV.
Re:Notepad++ drops code signing for its releases by juliusmusseau on Friday March 08, 2019 @02:32AM (#19335822)
Also, the "disable" in the signed case is much more powerful, since it disables all apps signed by the same key.
Re:Notepad++ drops code signing for its releases by AnthonyMouse on Friday March 08, 2019 @12:07PM (#19339468)
> A signed app can be distributed from anywhere with the assurance it's the same app - it can't be maliciousified

This is only true if there is some trust in what is signing them. If anyone can get one then anyone can sign the malicious version of the app with their own key, or one they stole from someone else. The user doesn't know who is supposed to be signing the app -- and if they did then you could be using TOFU or importing the expected source's key from a trusted channel without having to pay fees to anyone.

> and if it was malicious from the start, it can be disabled.

In the same way that Defender can block it. Then the attacker makes a new version signed with a different key.

The problem with CA-based signing is that it's a garbage trade off. If you make it easy to get a signing key, the attacker can easily get more and it does nothing. If you make it hard, you're kicking small developers in the teeth.

> The non-signed up can have zillions of malicious variants which something like Defender may or may not catch.

Which is still possible with code signing. The attacker gets their own key, uses it to infect many users, then some of those users are developers with their own signing keys and the attacker can use each of those keys to infect even more people and get even more keys.

Using keys as a rate limiter doesn't really work when one key can get you many more.

> It also gets a shot of circumventing (or even exploiting) AV.

As opposed to a shot at exploiting the signature verification method and the AV.

There is a better version of this that don't require expensive code signing certificates. You have the developer host their code signing key(s) on their website, served over HTTPS. Then the name displayed in the "do you trust them" box is the name of the website -- which is what the user is likely more familiar with anyway. If the program is signed by a key served on the website, and the user trusts the website, then you're done.

The application itself can still be obtained from another source, only the key has to be from the developer's website. Then future versions of the software signed with the same key can be trusted, but compromised keys can be revoked (and then replacements obtained from the website again).

This is better in every way than paying for EV certificates. It doesn't cost the developer anything, because they already have a domain (and if not they're very inexpensive and independently useful). But the attacker can't just register thousands of garbage domains because they're displayed to the user and nobody is going to trust "jdyfihjasdfhjkas.ru" or in principle anything other than the known developer's actual website, which the user is more likely to actually be familiar with than the legal name of the developer or their company.

Re:Notepad++ drops code signing for its releases by pvg on Friday March 08, 2019 @01:04PM (#19340193)
I think if you don't like code signing for ideological/process reasons, you can argue that, preferably in reply to someone who wants to argue about it. But trying to work backwards from there to technical arguments that show how signing is the same thing as AV is futile, it just makes you type up longer versions of obviously technically inaccurate things.
Re:Notepad++ drops code signing for its releases by AnthonyMouse on Saturday March 09, 2019 @11:11PM (#19350169)
There are good ideological reasons to not like code signing. But people present technical arguments in favor of it, which then need to be addressed so that people don't erroneously find them convincing.

And the technical arguments in favor of code signing are weak. They started off claiming a major benefit -- globally disable malicious code. Except that AV can do that too. The argument in favor of having code signing on top of that then becomes weaker -- AV can stop identified malicious code but it can't stop other malicious code from the same malware author. Except that code signing can't do that either since the malware author can sign other versions with different keys. So then the argument becomes, well, at least it rate limits how many different versions there are. Except that is only meaningful to the extent that getting a new key is arduous and not a lot of people have them, otherwise the attacker can get arbitrarily many more by either just applying for more under false identities or by compromising a moderate number of machines to capture more keys from the large number of people who have them. Moreover, using domain validation would already capture the case where you want to get the incremental benefit achievable from a minimal imposition on the developer.

Meanwhile the process of obtaining a code signing key has to be sufficiently easy and non-exclusive that even individual developers can reasonably do it, so making it purposely more arduous than that is a directly conflicting requirement.

The explanation is long because the details are relevant, not because anything "obviously technically inaccurate" is there.

Re:Notepad++ drops code signing for its releases by vsl on Friday March 08, 2019 @07:23AM (#19336917)
Revoking a certificate removes the ability to sign the malicious executable and any future executables.

Blocking a specific executables block that one. Depending on AV used, simply rebuilding may get you through (different hash); some trivial modifications will do.

Re:Notepad++ drops code signing for its releases by msla on Thursday March 07, 2019 @01:22PM (#19330575)
> Which is fair -- as you note, not every scammer will be scared off by the need to spend some money to pull the scam off; but some will, so the ratio of legitimate developers to illegitimate ones will be higher in markets where there's some cost to entry.

The big scammers, the ones who are the most likely to have an actual business plan for selling my information, aren't.

Note that I know Adobe is "trusted" in the relevant sense.

Note that I don't think Adobe is trustworthy in any real sense.

Re:Notepad++ drops code signing for its releases by logfromblammo on Thursday March 07, 2019 @02:44PM (#19331506)
The good scammers absolutely will not be scared off by the need to pay a penny to steal a dollar. You have to buy a cheap watch/violin/purse if you want to pass it off as an expensive one. You have to pay off in the back of the operation if you want to keep cash coming in through the front. Indeed, one of the easy ways to short-circuit human trust defenses is to make a show of trust first, such as by placing personal assets at risk. "Here, I'll trust you to hold my wallet full of $500 cash, while I drive your expensive late-model car--that's worth even more when shipped to mainland China--to go get help. You know I'm coming back, because $500 is a lot of money."

The scheme shifts the need to trust from Random Q. Hacker to the certificate-issuing authority, and that only helps if the authority is more trustworthy than the individual. If they don't put forth an effort to really dig in to those applying for certificates, they're just selling costumes for the security theater.

I trust Microsoft more than someone I have never heard of, but I don't inherently trust them more than the informal assembly of Notepad++ contributors and lead FOSS developer Don Ho. If Microsoft's code-signing certificate validation process is not capable of recognizing organizations that are not formally incorporated, and allowing them to use the name of their brand, rather than the names of their lead developers or maintainers, they are leaving a huge fraction of my installs hanging in the wind.

Re:Notepad++ drops code signing for its releases by scott_s on Thursday March 07, 2019 @03:54PM (#19332277)
I don't disagree with your reasoning. But: I posit there are fewer "good scammers" than "scammers." Added friction probably reduces the total number of active scammers.
Re:Notepad++ drops code signing for its releases by logfromblammo on Monday March 11, 2019 @10:19AM (#19359137)
Doesn't that just clear out the low-quality, low-effort competition for the better scammers? And create a stronger presumption that any given person is not a scammer, because otherwise Apple/Microsoft/Google/Amazon/whomever would have kicked them out?

People might forget that "caveat emptor" still applies, even in a walled garden.

Re:Notepad++ drops code signing for its releases by angry_octet on Thursday March 07, 2019 @10:15PM (#19334811)
The huge number of fraudulent and malware-ish apps for android vs iOS does suggest that costs reduce the number of low quality attackers. I guess that is good for protecting the naive user. But I'm more concerned about protecting against the threat that will take your whole digital identity.
Re:Notepad++ drops code signing for its releases by phoe-krk on Thursday March 07, 2019 @01:21PM (#19330573)
> not every scammer will be scared off by the need to spend some money to pull the scam off; but some will

The same goes for developers, as you can see in this article.

Re:Notepad++ drops code signing for its releases by uranusjr on Thursday March 07, 2019 @02:11PM (#19331127)
It is not fair. The same cost in money does not translate to the same cost in efforts to earn trust. This is structural discrimination.
Re:Notepad++ drops code signing for its releases by scott_s on Thursday March 07, 2019 @03:52PM (#19332253)
You are not necessarily in disagreement with the poster you responded to. They meant it was fair in the sense that the user is using a fair heuristic to determine how likely they are to be scammed. You're saying it's unfair to the person who made the software, as they are experiencing structural discrimination. Those two points are not mutually exclusive.
Re:Notepad++ drops code signing for its releases by chris_wot on Thursday March 07, 2019 @07:53PM (#19334200)
So the person who spends the most amount of money is the one you trust the most? That's some interesting reasoning. Does that mean if I spend $21 you trust me more than the guy who spends $20?
Re:Notepad++ drops code signing for its releases by xvector on Thursday March 07, 2019 @01:13PM (#19330480)
I would imagine barrier to entry plays a large role in the sense of comfort here. If you have to incorporate in Delaware and pay $500 and jump through hoops, you’re more likely to turn to a simpler and easier alternative.
Re:Notepad++ drops code signing for its releases by juliusmusseau on Thursday March 07, 2019 @01:16PM (#19330529)
Exactly! I trust "you must do some things to obtain this" more than I trust "you don't have to do anything".
Re:Notepad++ drops code signing for its releases by rando444 on Thursday March 07, 2019 @05:32PM (#19333251)
The part you're missing is that your delaware company burner phone certificate investments can be invalidated in two seconds by the certificate's trust getting revoked.
Re:Notepad++ drops code signing for its releases by Godel_unicode on Thursday March 07, 2019 @06:01PM (#19333511)
The part you're missing is that they won't be in practice. There's malware on virustotal with (still) valid code-signing certs.
Re:Notepad++ drops code signing for its releases by cwyers on Thursday March 07, 2019 @04:28PM (#19332659)
I mean, if someone is going to commit a crime, forcing them to leave a paper trail is going to scare at least some of them off. And if I'm installing Adobe Photoshop, and the cert comes from Bob's Software Emporium, Delaware, it raises questions.
Re:Notepad++ drops code signing for its releases by Godel_unicode on Friday March 08, 2019 @11:39AM (#19339165)
Is that actually true? How many people, when installing Photoshop, actually look at who issued the cert?
Re:Notepad++ drops code signing for its releases by cwyers on Friday March 08, 2019 @11:55AM (#19339321)
In Windows, the name of the publisher in the cert shows up on the UAC prompt whenever the program asks for elevated privileges. That's the point of this whole thread -- the author isn't paying for a cert because he can't make the UAC prompt say Notepad++ instead of his real name (which, he could, and I have no idea why he thinks it's so complicated, but there it is).
Re:Notepad++ drops code signing for its releases by Godel_unicode on Friday March 08, 2019 @04:00PM (#19342119)
That doesn't have anything to do with the question I asked. See also, TLS exceptions.