17 ms·
Microsoft Defender SmartScreen is hurting independent developers
- vanilla-almond 6y agoAnother tale from a developer on their experience getting a code signing certificate from a certificate authority: https://twitter.com/hanspagel/status/1262317935898566658 https://twitter.com/hanspagel/status/1262317935898566658
- kbenson 6y agoEh, honestly, that's what getting an SSL cert used to be like 15 years ago. They can knock it all they want, but really, the process functioned pretty much as expected. Like a lock on your front door, the purpose is not to prevent unwanted people from ever getting inside (no lock will ever accomplish that), but to both make it take long enough the likelihood of being noticed is high, and to put enough hurdles in place that the attacker looks for a more lucrative target. This is done through time, capability, and money. It takes time to jump through the steps. This presents risk to an attacker as it leaves them exposed for much longer, and susceptible to being tracked down in various ways as they expose themselves. It takes capability to jump through the steps, requiring the attacker having compromised the target in multiple different ways (phone system, employee, etc). This increases the complexity of the attach and thus the risk to the attacker. It takes money. This helps the providing company recoup the cost of verification (and if it's anything like web SSL certs is also about insurance), but money also provides another path to racking down an attacker, and provides a cost to them that isn't just their time. It also makes it less feasible to attempt a bunch of these attacks at once, as it's expensive. People can complain about the inconvenience all they want, but the inconvenience is part of the point, so I doubt you'll see it change all that much.
- falcolas 6y agoFunny how Let’s Encrypt is so popular because it doesn’t inconvenience people, and as a result more websites than ever have been secured, to the betterment of society.
- fh973 6y agoThere is a huge difference of what kind of identity is established: Let's Encrypt tells you basically that you are actually talking to the right server, whereas EV certs for signing binaries tell you which company that actually exists in the real world owns the certificate.
- kbenson 6y agoAlso, for a lot of sites they've outsourced their payment systems (which was the main reason for SSL certs in the past), so you can place less importance on the SSL cert if the payment gateway is PayPal, or Amazon, or Squarespace, and they are essentially providing the same assurance (and are a responsible party you can contact to reverse charges if you suspect fraud). At this point, I'm very hesitant to enter any credit card info into a site itself, even if it's secured through an SSL cert. It doesn't really signify what it used to.
- kevingadd 6y agoAnd aside from signing certs being a racket, it makes sense for LE to be easier than getting a code signing cert! If the server I land on is a malicious website, I can close the tab. If the app I installed turns out to be malicious odds are good that I have to reformat my machine and restore an old backup, plus change all my security credentials because the malware exfiltrated them.
- fomine3 6y agoBut no one cares DV/OV/EV differences for web certs.
- kbenson 6y agoThat's because the purpose of SSL encryption changed. It used to be primarily to protect payment information and sometimes also used for logins, but it was considered too heavy for all traffic in the past. Now it's used primarily to ensure all traffic is secure, and payment is along for the ride. In the past you used to be fairly sure a company was somewhat legitimate and responsible if they has an SSL cert and could supply card information to them without too much worry, as someone had vetted them as a real company (to some degree). These days, that doesn't happen, and whether I'm willing to give a company my credit card has nothing to do with if they are secured with a cert (which is a bare minimum to use the site). That cert doesn't really imply much anymore though. These days, I'll only enter my card into large reputable sites, or if they are using a payment service I trust (PayPal, Amazon, Square, etc), as they've presumably done a lot of the vetting that the SSL companies traditionally did.
- missedthecue 6y agoWhen I tried to get one for a project I was working on, it was a horrible convoluted hell. They needed all kinds of things scanned and sent to them. They wanted 2 government IDs, 2 financial documents and 2 non-financial documents. Everything had to be notarized. I had to get my financial documents notarized on a different day than the other documents, and had to have a different notary do those. They would not accept two different notaries that worked in the same office, or for the same organization. (In my case, my local banking branch). Finally was able to get everything sent in and then they asked me to notarize and sign an additional document called the "face-to-face". So I get that in. All told, it takes them over a month to verify the certificate. They send me the link and key to download it. In the email they send, they say that I can use IE, Firefox or Chrome. I use Chrome. The certificate is corrupted upon download. I tell them and they say it's because I used Chrome. I forward them the email they had sent me that specifically stated chrome could be used. They refuse own up to it and re-issue and because it had been 30 days since purchase, I could not get a refund. It was such a horrible pain that I just gave up on my project and never published it, rather than go through the whole process again. There has got to be an easier way to verify someone is in fact a human.
- Avamander 6y ago> There has got to be an easier way to verify someone is in fact a human. Yeah, there is, digital signatures. Estonia started with it's digital signatures back in early 2000s, a physical signature is practically considered caveman-tier tech. Just recently the EU created the eIDAS regulation. I really can't predict how long it'll take for the US to catch up though :/
- replyifuagree 6y agoMeanwhile, all bad actors know the best way to deliver malicious code is via javascript exploits in a browser.
- jpalomaki 6y agoIt might be the best way, but distributing your malware as executable - maybe bundled with some other app - is easy. Plenty of bad actors out there who can’t pull the fancy tricks. Smartscreen may protect against cases where somebody has for example repackaged WinSCP and distributes it with malware.
- AshamedCaptain 6y agoI am guessing that they'd want you do distribute your program through their "App Store" as a UWP, which is likely subject to sandboxing and will never show the SmartScreen prompts. Making raw Win32 .exe distribution as user-unfriendly as possible is very likely to be a goal of MS.
- deleted 6y ago[deleted]
- sylens 6y agoNot the case at all. It's about the fact that they build reputation off installation data from all Windows users, and the catch-22 that can create for new developers just starting out with their first app.
- cptskippy 6y agoHonestly I am all for sandboxing by default and scary prompts for anything that doesn't subject itself to strict sandboxing or that tries to break out of it. That doesn't mean apps necessarily have to come from a MS curated store either, just that by default the run in a sandboxed context with access to dick squat on my system. I absolutely hate when I install something like Adobe Acrobat and it installs 18 schedule tasks, a startup job to ensure those task exist, a tray icon to monitor it's services and all the other crap. No thanks. I also don't want to have to worry about installing some random app I found on SourceForge that purports to do what I want but might come with the SF equivalent of News Gator side loaded. Lock it all down by default in a virtual sandbox by default and if it needs legitimate access to my files, prompt me to grant it access.
- roblabla 6y ago> That doesn't mean apps necessarily have to come from a MS curated store either, just that by default the run in a sandboxed context with access to dick squat on my system. This is absolutely possible. You can distribute your UWP app as an MSIX package[0], which allows side-loading without having to go through the store. The whole experience is actually quite nice and straightforward, UI-wise. [0]: https://docs.microsoft.com/en-us/windows/msix/ https://docs.microsoft.com/en-us/windows/msix/
- stephc_int13 6y agoThis is clearly a warning, among others, that the bad Microsoft is back. Using certificates and app signing is OK as long as it is done properly, with as much clarity as possible, and an inexpensive way to get our apps signed.
- skrebbel 6y agoBack, how? I don't disagree with the gist of this article, but that SmartScreen window has looked like that for many, many years. It's not new, nothing is back. Microsoft was never fantastic. The only thing that's new about this article is the bit about WinGet, which is so beta that it's hard to assume that its "SmartScreen means malware" behavior will remain like that. I do agree with it btw, it's just like how Gmail's spam filters make it super hard to self host email. This is monopolistic behavior under the guise of protecting users, plain and simple.
- tonyedgecombe 6y agoThe interesting thing from Microsoft's point of view is if they make it increasingly difficult to install applications then Windows will have little value beyond offering a web browser.
- Anon4Now 6y ago> but that SmartScreen window has looked like that for many, many years It changed a year or two ago. The "Run Anyways" button used to be on the main dialog. Now the user has to click the "More Info" button to see that option.
- WorldMaker 6y agoThat particular dialog has been the same since Windows 10's launch, though it is "adaptive" in that as the reputation slowly builds it will show the Run Anyways button at something like "medium reputation".
- Anon4Now 6y ago
- johnchristopher 6y ago> By this time most users have deleted the .exe already thinking it is a malware, but SmartScreen can be bypassed by clicking on “More info” then “Run anyway”. What typically happens is people don't even click on more info. They redownload the files and then give up and the files are now collecting bit dust. Source: me. Also, I think it has been going on for more than a year now.
- WorldMaker 6y agoSmartScreen Defender has been in every version of Windows 10 since launch.
- samcat116 6y agoInteresting that they aren't doing it the same way as Apple, where you pay to be part of the program and they provide all the certificates. Certainly seems cheaper at $100/yr compared to the prices of these certs. Also why are these certs so much more expensive compared to a normal SSL certificate?
- munchbunny 6y agoIt's because the companies or developers buying them can afford them, because they're usually selling software.
- tonyedgecombe 6y agoAlso why are these certs so much more expensive compared to a normal SSL certificate? There is some manual intervention, you usually end up with phone calls and emailing documents to and fro before the certificate is issued. I last renewed mine in 2017, I'm dreading doing it next year as I don't have a public phone number which always causes problems. Sticking sharpened pencils in my eyes would probably be a more pleasurable experience.
- WorldMaker 6y agoMicrosoft provides an option to do exactly that. Microsoft Store will handle all the certificates for you for $100/year and their Store cut is smaller than Apple's if you decide to sell through the Store.
- contextfree 6y agoif I'm not mistaken it's a one-time (not annual) fee of $19 for an individual account or $99 for a company account (required for Win32 apps) https://docs.microsoft.com/en-us/windows/uwp/publish/account-types-locations-and-fees https://docs.microsoft.com/en-us/windows/uwp/publish/account...
- mgamache 6y agoToo bad we can't have a Lets Encrypt for desktop. Also the EV certs are effectively dead for the web. https://www.bleepingcomputer.com/news/software/chrome-and-firefox-changes-spark-the-end-of-ev-certificates/#:~:text=Chrome%20decides%20to%20drop%20the,for%20release%20on%20September%2010th https://www.bleepingcomputer.com/news/software/chrome-and-fi....
- jpalomaki 6y agoIf you click ”more info” on the SmartScreen notice you should be able to bypass it (unless you are in environment where admin has blocked this).
- echelon 6y agoMore walled gardens. Hooray. This is why we need WASM and web-first development. If the platforms won't empower us to develop and distribute without levying their tax, we need to take our business back to the open web and spend our money on making it the best platform. Besides, it's a nightmare to have to develop for every single platform when the web is universal. Platforms should pay the cost of making things work on their devices and operating systems, not tens of thousands of independent developers and engineers paying this price N-many times for each walled garden. We also need to get Google's claws out of the open web (AMP, standards balkanization, etc.)
- tonyedgecombe 6y agoThe cure is worse than the disease. We will just end up with a handful of companies holding our data to ransom.
- recursive 6y agoThat may be, but not because of a barrier to entry. (the wall around the garden)
- kevingadd 6y agoThe barrier to entry for integrating with the web ecosystem is way higher than native. I can interop trivially with basically any native app on my machine, meanwhile even basic tasks like 'export my data from this web service' are often difficult or impossible because vendors don't care. If you are building a custom product from scratch with no need to integrate with users' existing data and services, the barrier to entry is low. But most users have lots of existing data to use and it lives on other services, so you have to integrate... if you can
- recursive 6y ago> I can interop trivially with basically any native app on my machine. You must have different native apps than most users. In any case, there's nothing special about WASM and DOM that makes it less interoperable than native stuff.
- iwalton3 6y agoI always tell users to Mark the file as trusted before running it, which is easier to do and less subject to difficult to navigate dialogs. I use a message like this: > To avoid getting security warnings each time you launch the application, right click and select "Properties". Click "Unblock" towards the bottom of the page, and click "OK".
- rock_artist 6y agoI work for a company that develops audio software. The market itself isn’t that huge so our products triggered even on Windows 7. Once we got the first reports, we’ve bought a code sign certificate. But still... if your software isn’t common... you’ll trigger the SmartScreen. Even if your app managed to pass SametScreen, you’ll soon discover that many users got Anti-Viruses that with the same assumption about non-common app is bad. I’ve ended up contacting a lot of Anti-Virus companies and I whitelist our installers also on their end. While the process itself is much simpler than notarizing with Apple. On Windows you need to contact much more parties to make your app “just work” for the non-tech-savvy user.
- gigel82 6y agoI agree in general with what SmartScreen tries to do. There are a lot of non-technical folks clicking on stuff willy-nilly so adding barriers to prevent spyware / virus infections for totally unknown binaries is a good thing. A "Let's Encrypt" for code signing may be a good idea, but the cost of a certificate is itself a barrier for spyware distributors, so i'm conflicted on that... not sure what the right fix is.
- bogwog 6y ago> but the cost of a certificate is itself a barrier for spyware distributors Is it? If spyware and malware wasn't profitable, people wouldn't take the risks to create and distribute it. An up front cost of a few hundred dollars could be made back with a single successful ransomware attack, and the certificate would last years. This "smart screen" thing, as well as Google's endless warnings when you try to install an app outside of their store on Android are not for protecting the user; they're there to prevent competition.
- fh973 6y agoThe barrier is actually bigger than just money: for an EV certificate you need to prove that you are a registered business. So there is a name and an address behind it, which is kind of a barrier for malware.
- donmcronald 6y agoWhat’s that? An extra $50 in Delaware?
- diego_moita 6y ago> The digital signature racket > The price range is wide but a certificate only valid for a year will typically go for about $100. This is hypocrisy, smells like Apple-fanboy trolling. MS stimulates competition on the code signing certificates and it is free to deploy through their appstore. And you can bypass Smartscreen right from the warning. Certificates cost $59.00 at codesigncert[0], not "about $100.00". Established developers with reputation don't need certificates. Now compare that with Apple's (much more walled) approach: only Apple sells the certificate at the price of $99,00, even to deploy on their Mac store (where they'll also take a cut) and it is not trivial to bypass their screen. [0] https://codesigncert.com/comodo-individual-code-signing https://codesigncert.com/comodo-individual-code-signing Edit: I don't like MS codesigning implementation, but they are not the worst on this game.
- xoail 6y agoUser are generally not tech savy to bypass Smartscreen warning by themselves.
- diego_moita 6y agoMy point was to compare MS approach to Apple's. Please don't nitpick.
- xoail 6y agoHow am I nitpicking? I am just highlighting the fact that when I signed my app using Apple provided certs and notarization, there is no additional warning for the user while on MS land unless I get an EV cert I will not be able to remove it.
- vxNsr 6y ago$59 if you pay for 3 years, so actually $177 up front or $75 for one year, and again, this doesn't actually help bec after x years your app will need to build a reputation again. This is ridiculous and as others have said is meant to funnel devs to using the broken Microsoft Store.
- xoail 6y agoI recently went through this pain for an electron app. Non-EV code sign cert kept throwing SmartScreen warnings for most users. Acquiring an EV cert forced me to register a company and a hefty cert price per year, overall costing nearly $1500. Not to mention overall delay and added costs. Meanwhile my $100/y Apple Dev subscription was enough to package the app and distribute outside App Store. At this point I am fairly certain EV certs are nothing but rackets supported by MS.
- mikewhy 6y agoExact same story here. Spent an afternoon comparing different (very sketchy yet somehow the best in Windows code sign cert land) sites, finally picked one, signed the app and downloaded it on another machine. Was immediately greeted with Smart screen, and learned I needed to shell out HUNDREDS more to get rid of it. What a racket. And something Apple do automatically for you (provided you pay for their developer program).
- sjapps 6y agoAnd yet people bash Apple for collecting $99/year.
- ensignavenger 6y agoI'm not seeing any requirement to have a registered company? DigiCerts checkout process says to use your own legal name if you don't have a legal business name.
- mceachen 6y agoOof. Next time you need to renew, check the links from the msft authenticode dev website for ev certs. A couple providers are much less than $1500/yr. Also, when I got my renewal bill for something like $1500/yr for PhotoStructure, I sent an email to their support asking to continue the low original fee, and they agreed.
- deleted 6y ago[deleted]
- munchbunny 6y agoThe part that is insane to me is the idea that there is no way as a developer to get a "this product was reviewed and certified clean" label to guarantee a clean installation UX, even after buying a code signing certificate. SmartScreen seems like a great idea for protecting the end user, but without ways to remediate "reputation" problems with some form of prior review, this makes the software ecosystem shitty especially for individuals and small software outfits.
- WorldMaker 6y agoSmartScreen has a manual review submission process: https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-smartscreen/microsoft-defender-smartscreen-overview#submit-files-to-microsoft-defender-smartscreen-for-review https://docs.microsoft.com/en-us/windows/security/threat-pro...
- nominated1 6y agoI ran into this issue when writing a small automation tool for a friends business. The workaround for now: Right click .exe → Properties → at bottom of the General tab check “Unblock” Microsoft – same wolf, different clothing.
- ima_banana 6y agoSecond instance on the front page today of false positives / false negatives, the other being the walmart shoplifting story. Edit: possibly also the MLK one and police v journalists one...
- dzonga 6y agowalled gardens ever increasing assault on independent developers never stops. seems microsoft is following Apple's trend of shitting on indies. my take is folks develop your apps to be browser based, if you can. if we can have a browser app, like Figma. a lot of apps, could do. the ones that need to deal with os n files etc, might be non-starter. take your talents to open platforms.
- slezyr 6y agoJump into Chrome's walled garden? Ask browser extension devs how it went for them and it'll tell what happens/will happen with web apps.
- fenwick67 6y agoI was under the impression Figma was an executable, not a web app.
- filoleg 6y agoit is a web app. You can run it fully in the browser. Local executable is just an Electron app iirc. I don't have it install on my work machine, but I frequently access and manipulate Figma files from Chrome just fine.
- the8472 6y agoIf hypothetically everyone moved to the web then this very same game would again be played by browser vendors. Some browser APIs only work on secure sites (e.g. service workers, EME) and they could start blacklisting specific certificates the same way. Want to use web payments API? Nope, sorry, your DV certificate doesn't look trustworthy enough, maybe you should get an EV certificate.
- AdmiralAsshat 6y ago> “Developers, developers, developers!” was a cry from Steve Ballmer and one of the speeches that defined him as CEO of Microsoft. These infamous words were uttered back in 2006. The famous YouTube video of it was uploaded in 2006, but my sources say the event in question was from Microsoft's 25th Anniversary Event in September 2000. I could use a more authoritative source than knowyourmeme, though, so someone else is free to chime in there. There's a newsletter referencing it as early as 2001[0], so that seems to suggest well ahead of 2006. [0]http://www.ntk.net/2001/08/03/ http://www.ntk.net/2001/08/03/
- chooseaname 6y agoAlso, this is how he got the unofficial nickname "Monkey Boy".
- cm2187 6y agoWell the message is now "get off our platform so we can switch it off". Everything Microsoft does goes in the direction of phasing out Windows.
- guitarnick 6y agoCan this be worked around with UX? Show clear steps with images on the download page that direct them to click "More Info" to run the app. Eventually the app builds up reputation (at least until the cert expires). How effective would this approach be?
- bentcorner 6y agoYou can but you'd need to account for every OS/update combination to make sure you get the UX right. Many apps do something similar for teaching people how to click through the trust dialogs when running the installer when downloading with chrome/ie/edge/firefox/chrome-edge/etc. Not impossible but it's definitely a hassle and probably non-trivial to get right.
- ebg13 6y agoApplication signing is a mafia protection racket, plain and simple. If you aren't signed by an "authority", every user is told by default automatically that your code is unsafe until you pay money. It is 100% analogous to thugs walking into your store saying "It would be a real shame if something were to happen to scare people away." The message is "We Protected You" and "Unsafe". WHY? Because "WE don't recognize" it. Application signing certificates cost money. Always. And if you're making something for free either out of the goodness of your heart or because you like making things, that money has to come out of your pocket just so the thugs don't stand in front of your door with bats. Nobody should be ok with that. AND FUN FACT: malicious or incompetent actors can and do also pay money.
- alkonaut 6y agoIsn't this exactly how ssl works too, and that also cost around this sum of money up until recently (with LetsEncrypt)?
- lostmsu 6y agoI think a major difference here is that LetsEncrypt relies on an already existing third-party authority, that generally has some scrutiny to it: DNS registrars.
- kevingadd 6y agoNot sure what you mean here, code signing certs are issued by many of the same companies that were issuing SSL certs before LE existed
- gruez 6y agoHis point is that with webtrust certificates (what most people think of as "ssl certificates"), it's easy to validate the identity (DNS name), either by sending a email or validating a DNS record. For code signing certificates, they're not issued to DNS names, they're issued to legal entities (natural persons or corporations), which you can't easily validate.
- gregmac 6y agoI get the sentiment here, it's very annoying for developers (including me). Establishing trust is very hard problem, though. Let's move this to a productive conversation though. What can Microsoft do, as an alternative, that doesn't result in an identical or worse situation? Giving out free code-signing certificates also makes it easier for malware to get legitimate certificates. This is akin to LetsEncrypt for certs -- https://yourbank.real-secure-website.xy https://yourbank.real-secure-website.xy can have a valid cert but it doesn't mean it's legitimate. What's the equivalent to the "URL bar" for software? What's the equivalent to the ACME domain validation challenge? The SmartScreen stuff is another attempt at this -- software that's not frequently seen is flagged as a potential problem. As a developer, this annoys me greatly. As the de-facto support person for family that don't understand computers... I don't mind so much. Without this, malware gets executed directly and now you're dependent on (very imperfect) anti-virus software. I guess the Store is another way to have "trusted" applications, but you only have to look at the Google Play or iOS store to see how well this ultimately works out (for both malware and legitimate authors). Note this isn't even about admin vs non-admin installations. Obviously malware running as admin can do more damage that's harder to recover from, but non-admin malware is just as capable of doing bad things (think: stealing credentials, running cryptocurrency miners, ransomware), and after being hit by a randomware attack I doubt your "typical" user is going to really care much about the distinction between their account vs the entire computer being trashed.
- an_d_rew 6y agoAbsolutely. I think it's easy for the HN crowd to inadvertently forget what computers / phones / tablets / TVs look like to ordinary people. I would encourage people to come up with actual use-cases and pro-con scenarios rather than 100% "emotion mind" opinions.
- bitL 6y agoSo what? We are developers, we are affected, we are making ourselves heard. We aren't our users (designer's motto). It took me about 15 minutes to get my Android Phone infected by a malware by downloading just apps from Google Play. If Google is failing in such basic task for "ordinary people", all MS accomplishes is to annoy regular developers, making their apps "suspicious" to the public.
- Wowfunhappy 6y agoAt least for standard apps, the user can bypass the warning. For drivers, it gets much worse. On 64 bit versions of Windows, there is no way for me to permanently allow unsigned drivers. Every time I want to install an unsigned driver, I have to reboot my computer while holding down shift, select advanced startup options, and then hit "7" on a USB keyboard which I lug out of the closet because my Bluetooth keyboard won't work. The effect only lasts until the next time I restart. I understand that the kernel is sensitive, but this is overkill. Please let me install the software I want on my own machine!
- tifadg1 6y agoYou know how they say - it's the MS way or the OS-working-against-you way!
- falcolas 6y agoAnd yet videogames can easily install Ring-0 “anti-cheat” software with no special privileges or steps required.
- snuxoll 6y agoBecause they get signed.
- my123 6y agoThere is: bcdedit -set testsigning on and bcdedit -set nointegritychecks on
- Wowfunhappy 6y agoThis works for some drivers and not others! EDID overrides, for example, require the rigamarole I described. (The command you mentioned does need to be run regardless, or even drivers installed when rebooted into the special mode will actually stop working after the next reboot.) If anyone understands more about the differences, I'd be very curious to learn more...
- michaelsbradley 6y agoAre there any zero-cost options for code signing open source Windows apps that are free to use and will never generate revenue of any kind?
- jaquers 6y agoI can certainly empathize with the author. How many executions are we talking about though? 10, 100, 1000? Seems like a dev w/ a new certificate could post a build of said application to a dev-friendly space to "bootstrap" the process. Certainly not practical in many scenarios, but that's why I was curious about how many it takes.
- Wowfunhappy 6y agoI don't think it's such a bad system either, but the certificates themselves should be much cheaper, if not free. I mean, they don't even do anything until a critical mass of users lets the app through smart-screen.
- m0xte 6y agoCompletely agree. Just a rebuild of an MSI the other day turned up a false positive in windows defender and it’s still stuck in smartscreen today despite MSFT fixing the AV definitions. Cost me three days.
- nerdjon 6y agoCan someone break down how this compares to what Apple does with Mac? The basic gist I have is for Apple you have a yearly fee of $100(USD) but that covers all of your apps. Where Microsoft is per app and looks to be about $100 a year (depending on how far in advance you pay) and then also have another piece on top of it regarding how often its used. Is there more to what Microsoft is doing or areas where what Apple is doing is shady?
- mikewhy 6y agoOne big difference is that this $100/yr (ish) for MS side of things doesn't actually bypass smart screen on its own. Smart screen stops showing up if more people eventually install and use your app (black box). If you want to bypass it out of the gate, you need an EV Cert. Which are hundreds more (further down this article quotes one at $700), and require more effort on the business side of things.
- NCommander 6y agoThe entire point of authnicode wasn't to protect users, it was to make sure software wasn't modified in flight (ala what SourceForge did), and to make those binaries accountable. Now we're getting to the point that this feels like a protection racket. It, at least in theory, is possible for individuals to get EV certificates for websites. Worst case scenario, you can get a one man business for the paperwork. A lot of viruses can hit via either remote code execution, or exploiting a bug when loaded through a data file. Neither of those scenarios is stopped by SmartScreen. At best, it stops someone from clicking "WannaCry.exe". MSFT is basically doing everything to make you use the Store, and it reeked back with Windows RT, and it reeks even more now. Unfortunately, it seems MSFT is incapable of creating a version of Windows that doesn't have live tiles, constantly tracking what applications you run. I switched to Linux years ago, but I realize that most people live in a Windows ecosystem, and that they're subject to the whims of MSFT.
- wvenable 6y agoI developed some absolutely free Windows software as a hobby. I specifically didn't want to change for it because then it's a job. Smartscreen was definitely a problem; end users were absolutely afraid of my software. Eventually a user who was also software developer offered to sign the binaries for me with his certificate and that's how I've operated since.
- donmcronald 6y agoLmao. We should all pitch in $20 and set up a shell company to buy 1 code signing certificate to share. It would definitely pass SmartScreen if a couple hundred apps were signing with it.
- fierarul 6y agoDear GitHub CEO reading this message on HN: a cool feature would be a GitHub action to sign binaries for free. It's ridiculous that my open source code is hosted on GitHub, the binary is created with an action but I have to pay for a certificate and manually sign it.
- gschrader 6y agoYes this please! I recently found out the hoops one must jump through to sign code, I've basically have given up until one of the CI services will provide a way.
- magicalhippo 6y agoI guess since Microsoft through GitHub controls the build process, couldn't they also include the signed source as well as a combined signature? Idea being that one could, in theory, download the git repo, check out the relevant commit and verify that this was the source code and this was the resulting binary, and that matches the exe file I just downloaded.
- fierarul 6y agoYes! I bet there are numerous ways this could be implemented to make things easier for developers and end users. With the current setup GitHub has more control on the resulting bits than I do. Also, current Microsoft signature rules that a hardware dongle is required to sign the bits (all non-hardware certificates will be deprecated in time). So, I'm supposed to take the .EXE that GitHub produced on one of their VMs running actions then certify it's legit by signing it with my certificate. But what am I actually certifying? Well, that to the best of my knowledge this EXE is the build output of this Git commit that triggered the action.
- deleted 6y ago[deleted]
- gorkish 6y agoWhat this really does is train users to bypass protections. As anyone who has owned a mac can attest, I now basically think nothing of the potential perils of doing "right click -> open -> ok" because I have to do it ALL THE TIME. It's getting to the point where it's the same on windows. More info -> run anyway is becoming a useless annoyance. I would note that at one point SSL certificates were kind of in the same boat. Users clicked through web warnings as a matter of course. The thing that changed is that we were able to reduce the financial barrier to certs to literally $0. If the same can be done for this nonsense, we will be in much better shape. I have already made my choice on risk when I chose to download the software from the developer and execute it. A prompt for a first time trust might be the limit of what I'm OK with including, but any stronger warning or making it difficult to proceed is really only reasonable to do if some 3rd party is compromising a choice I have already made.
- mimi89999 6y agoApple was doing the same thing.
- ridiculous_fish 6y agoWhile there are some similarities, the key difference is that Apple doesn't impose a "reputation requirement." Signed apps and installers work the same no matter how many other users have run them.
- jedberg 6y agoAs is typical for Microsoft, they again are trying to copy Apple, but failing to get the details right, turning it into a disaster. This behavior used to just be limited to their UI, but now it seems to have passed into their business practices. I suspect this happened because they were trying to be more secure, but all the Microsoft employees have free access to signing certificates that bypass the checks, so they never ran into these problems.
- ksm 6y agoWe have been bitten with this one, multiple times now over the years but seems to have gotten worse. Our otherwise SaaS product requires an installable component for our customers PCs, from installation package (MSI and/or EXE) that we generate on the fly per customer -basis in order to customize data inside the installer for each tenant. For this reason, the timestamping of digital signature varies between packages as does the hash [of the content], and for _months_ after we have renewed our signing certificate we get support messages about both Smart Screen "scary warnings" as well as from some AV products as well. Despite number of downloads for runs for the package(s) signed with one and the same signature. As the article mentions, it does not matter if you have had previous certificate; each renewal (=new certificate technically) starts this reputation process from zero. What's worse, since the signing happens on the [Windows] server as part of the product itself we really cannot use EV certificates either as those require physical USB dongles to be attached to machine doing the signing.. so we are left only with option of using regular certificate that gets this treatment. Sure, 10 year certificate would postpone the issue for a long time, but for security purposes we actually want to recycle those signing certificates with one to two year interval so the problem always resurfaces regularly.
- ripley12 6y agoI asked the MSIX team about code signing at Build recently, they said they will be previewing "Azure Trust Service" this summer which makes code signing easier: https://twitter.com/jvintzel/status/1262794128351322114 https://twitter.com/jvintzel/status/1262794128351322114 The current code signing situation on Windows is painful. It's especially galling how the code signing requirements apply to modern sandboxed Windows applications as well - an MSIX-packaged application with minimal capabilities is subject to the same requirements as an EXE that can do anything.
- kevingadd 6y agoI think there's an argument to be made that sandboxing shouldn't exempt you from security restrictions. Unless the sandbox is entirely impossible to penetrate (making apps borderline useless), a malicious app still has many opportunities to trick the user or exploit security vulnerabilities. Revocable signing certificates are a useful tool for fighting back against hostile actors. The certs should be much cheaper, though, and it would make sense for sandboxed applications to perhaps be easier to sign.
- ripley12 6y agoThat makes a lot of sense - I think making signing easier should be the goal, not removing signing requirements entirely. Part of my frustration comes from this paradox: it's harder than it used to be to share a native application with others, even though we now have sandboxing that makes it significantly safer. It feels like most of the pieces are in place, MSIX has matured to the point where it's pretty easy to distribute an application that runs in a sandbox with auto-updating. If Microsoft can just make the signing part easier, I think we'll see a much more vibrant community around native app development.
- thefounder 6y agoLook at this from anither angle: on MacOS it is worse. You can "buy" certificates/approval only from Apple. If Apple doesn't like you, you are screwed!
- duskwuff 6y agoOTOH: On macOS, you pay $100/yr and you're set -- any apps you notarize will launch with a simple confirmation dialog. On Windows, you can spend hundreds of dollars on a security certificate and still get blocked by SmartScreen and/or antivirus software. I'm not aware of any situations where Apple has declined to offer a developer certificate to a developer, outside of situations where they are legally barred from doing so (e.g, for developers in countries subject to US economic sanctions, who would probably be unable to obtain a software signing certificate either).
- thefounder 6y ago>> On Windows, you can spend hundreds of dollars on a security certificate and still get blocked by SmartScreen and/or antivirus software. You are wrong. As described in the OP if you buy EV certificate($70) [0] you are all set. >> I'm not aware of any situations where Apple has declined to offer a developer certificate I can see that. Still there are such cases. Monopoly on the approval process is bad anyway. Even if acting in good faith, mistakes happen. [0] https://www.ssl2buy.com/comodo-positivessl-ev.php https://www.ssl2buy.com/comodo-positivessl-ev.php
- donmcronald 6y agoThat’s an SSL certificate. Anyone who pays for that is dumb. Anyone that tries to use it for code signing is dumber.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]
- shirian 6y agoAll the open source developers/publishers here should get together and pitch in to get one long lasting certificate to sign all of their respective binaries (of course, really important that they vet each other's code, so has to be open source) Edit: typo.
- donmcronald 6y agoAppGet or Chocolatey are already on the system and (I think) could unblock binaries from SmartScreen. AFAIK user level programs could run with zero prompts.
- sequence7 6y agoThis is really hurting Microsoft's ecosystem, I'm trying to add the latest version of QuickLook [0] to the winget package manager at the moment but because the msi installer isn't signed my pull request is doomed to failure[1]. If Microsoft want Windows to be an awesome developer platform this kind of friction with the tooling helps no-one. [0] https://github.com/QL-Win/QuickLook https://github.com/QL-Win/QuickLook [1] https://github.com/microsoft/winget-pkgs/pull/1241 https://github.com/microsoft/winget-pkgs/pull/1241
- repiret 6y agoI call BS. This might be hurting some hobbyist projects, but anybody who earns their living publishing software, and gets even a small amount of those earnings from Windows apps, can afford $100/year for a code signing certificate. There are a lot of people trying really hard to trick users into installing software they don't want. There's big money in it. Authenticode strikes me as an entirely reasonable step to provide more signal to the systems trying to identify and block crapware.
- colde 6y agoBut why even require payment for these certificates, since Microsoft according to the article doesn't actually place any value on the certificate itself. You still have to build up reputation separately. In that case, it seems entirely unnecessary to require a paid certificate.
- repiret 6y agoBecause it costs money to do the identify verification? Its not like a DV certificate where the volume is very high, and the verification isn't hard to automate. I paid $400/yr for my employers first Authenticode certificate back when they were a new thing and you could only get them from Verisign. Now there's a handful of providers and competition has brought the price down, but the volume is lower than DV certs, and verification is harder, so the prices won't go down to zero. Why do identity verification at all, you could ask? A reasonable question; if all I need to start earning reputation is a private key, the costs could go to zero. But letting the scammers make as many identities as they like at no cost changes the prior on a previously unseen identity. It seems MS isn't granting a very strong prior anyway though, so... my argument certainly is weak here.
- voltagex_ 6y ago$100 USD
- repiret 6y agoYes. I'll accept that thats a lot of money in some places of the world, but thats less than half a day of time for a skilled Windows developer no matter where they live.
- ilaksh 6y agoThis racket and Microsoft's hostility to independent developers (and apparent attempt to force them to use their Windows store?) is one of the reasons that I just can't go along with people who think that Microsoft is a "champion of open source" now or benign actor in the business world. They are fundamentally corrupt and cutthroat. I recently wiped Windows and loaded up Pop! OS. It works great. And I never get a message saying "this software is suspicious" just because it's not in an official Deb package or something. If I add a PPA or download a binary or whatever I do, there are basic permissions required, but it does not automatically say "this is probably dangerous so I stopped it" just because the distro doesn't recognize the software. That is ridiculous.
- z3t4 6y agoWhy not add a protective layer to the OS, kinda like Apparmor on Linux!? Because of the monopoly status of the Windows platform, instead of making a better product, you invent things to make more money.
- bitL 6y agoWelcome to the world of macOS! Both MS and Apple went insane with their creepy security imposed on "unknown" developers. Use Linux I guess...
- sireat 6y agoThis was a problem already a few years ago. I was working for mid-level corp writing a C# Windows program that would be used by a few hundred people tops. Even after going through the signing process, there were still false positives from some major anti-virus vendors. I had to submit and resubmit to multiple vendors to get the program off the false-positives. Some smaller vendors still triggered. Microsoft Defender was one of those that I had trouble with even after the signing. So if you write software for a smaller audience you are going to get screwed.
- wronex 6y agoPlease note that EV code signing certificates are not the magic bullet they first appear. SmartScreen is reputation based. An EV code signing certificate does not grant immediate access. You will have to build reputation regardless. There is no pay to win solution. I've learnt this the hard way. You can however place the executable in a Zip archive to bypass SmartScreen. An unzipped file won't bear the mark of the web.
- tsomctl 6y agoWill putting it in a Zip and making the user unzip it build reputation with SmartScreen?
- mehrdadn 6y agoWait really? How do you unzip your files? I thought files unzipped inside with Windows's built-in unzipper still keep the attachment manager metadata that Windows stores?
- wronex 6y agoYou are correct. I've been using 7zip. It does clear the flag. Windows built-in unzipper does not.
- tomc1985 6y agoIt's like the JRE all over again
- fortran77 6y agoIt's wrong to call it "malware". They should say it's unknown and you shouldn't install it unless you're certain about the creator.
- ameyab 6y agoI am one of the creators of SmartScreen application reputation. SmartScreen is a reputation-based safety feature that allows 'know' downloaded software to run friction-free but interrupts the execution of 'unknow' downloaded software with a 'stranger-danger' warning. SmartScreen application reputation was first launched in IE9 (2010/2011) and then was integrated into Windows (starting with Windows 8 in 2012). It has been a few years since I have worked on SmartScreen, but I thought providing some context may be interesting. Windows 7 made great strides in addressing software vulnerabilities. And bad guys quickly moved from software vuln exploits to socially engineered attacks. They tricked users into download and running spurious programs (using a variety of techniques - ranging from SEO to scare-ware website that tricked people into thinking that their machines were compromised to running sophisticated ad campaigns). The problem with traditional anti-virus (AV) approach was that by the time the AV analysts could get their hands on a new binary, analyze it, classify it as malicious, write a signature, and distribute it - it was generally too late. The bad guys monetized the latency between when they published a new binary on the internet and when the AV vendors were able to effectively detect it as malware. SmartScreen tried to flip that dynamic - by using reputation. By volume, majority of downloads were benign; there was no point in warning users when the likelihood of future infections from such downloads was nearly zero. However, for software that had never been seen before - there was a significant risk associated with it - all the yet-undetected-malware resided in that set (depending on the situation and context - the risk of future malware infection could range from 25% to 75%). So, for 'known' software, SmartScreen eliminated the mostly-useless warning (that everyone had grown used to clicking through); for 'unknown' software (which the AV companies still hadn't deemed as malicious; yet-undetected-malware would be 'unknown'), SmartScreen showed a 'stranger-danger' warning. This was incredibly effective in stemming the socially engineered malware attacks. In the overwhelming majority of the cases - users did the right thing; they chose not to run the downloaded programs that were later detected as malicious. When SmartScreen was launched, nearly 7% of all downloads were later detected as malware by AV. In a couple of years, the incidence of socially engineered malware had dropped significantly (By a ton! By many orders of magnitude. Most bad actors changed their business model to bundleware - bundling unwanted, non-malicious, software with popular downloads). An important factor was that SmartScreen had expansive coverage on (knew about) all executable binaries downloaded from the Internet - in order to mitigate the risk of users getting used to ignoring the warnings if they saw those too often. Most users saw one or two SmartScreen warnings in a year. And, when they saw the warnings, the risk was significant - and users did the right thing in those cases (not run the downloaded program). SmartScreen provided highly effective 0-hour protection against socially engineered malware by helping users make the right trust-decisions. There was some friction - for developers and advanced users (who downloaded esoteric, non-very-commonly-downloaded software more frequently). For developers, reputation came in two forms - either each individual binary that they published could 'acquire' reputation - or if they had a code signing certificate - then that certificate could 'acquire' reputation (and any binary that was signed with the certificate would inherit it; which was a better option). In either case, if the developer went rogue or published a program the was malicious - it was straightforward to deal with that problem. SmartScreen could instantaneously revoke the reputation for the certificate or the binary. There is a meaningful cost (time, behavior) that the developer incurred in order to get reputation - and it is hard, expensive, and not-scalable for bad actors to 'acquire' reputation - and if they did end up behaving badly after acquiring reputation (e.g. signing malware with code signing certs that has acquire reputation), that reputation would be lost very quickly - really hurting their ROI. So yes - there was some friction. In many / most cases, new executables and publishers 'acquired' reputation after a short period (typically a few days) and many advanced users understood why they would occasionally see the SmartScreen warning and would make the right action choice. But the benefits to the larger ecosystem were incredibly significant and impactful.
- pippy 6y agoHow long will it be before Google, Apple, and Microsoft start pulling certificates for apps governments deem unacceptable, such as organizing protests or communicating?
- projektfu 6y agoSandboxing would help a lot. Is it this hard to publish on the Microsoft Store? Is this a play to make the Store more relevant?
- luord 6y agoI like to think that these stupid corporations would try harder at solving the problems they create if whenever those problems are mentioned, those corporations didn't get dozens of apologists. Or maybe I'm just frustrated. Microsoft doesn't need some oddly loyal developers defending them nor the free publicity they provide. Developers affected by stuff like this don't need some guy asking them what they would do better. It's not indie developers' job to fix microsoft, it's microsoft's.