News for hackers. Stuff that matters.
Re:Lockdown.exe: Block unknown apps via Windows software res... by someperson on Wednesday June 09, 2021 @04:54AM (#27445732)
Download a random EXE file from the internet, run it with administrator privilege and improve your security?

What a great idea!

Re:Lockdown.exe: Block unknown apps via Windows software res... by ClumsyPilot on Wednesday June 09, 2021 @05:58AM (#27446149)
Eh, half the time I watch people use linux, they google "how to XYZ" and then copy paste all sudo commands in the guide.
Re:Lockdown.exe: Block unknown apps via Windows software res... by EvanAnderson on Wednesday June 09, 2021 @06:19AM (#27446258)
Or they just pipe the output of curl to bash running as root.
Re:Lockdown.exe: Block unknown apps via Windows software res... by dpwm on Wednesday June 09, 2021 @06:30AM (#27446325)
There’s an awful lot of companies that use this as their deployment method.

People of requisite cautiousness will vet the shell script – but I suspect most will not.

Re:Lockdown.exe: Block unknown apps via Windows software res... by Dah00n on Wednesday June 09, 2021 @06:40AM (#27446379)
But malware makers of requisite cautiousness will serve a different script to those that look at the source with a browser.
Re:Lockdown.exe: Block unknown apps via Windows software res... by squiggleblaz on Wednesday June 09, 2021 @07:21AM (#27446616)
Any user who intends to review a script they intend to run on the computer will do something like this:

    curl https://potentially-malicious.com/get-infected.sh > get-infected.sh
    $EDITOR get-infected.sh
    [[ $POST_REVIEW_OPINION -eq happy ]] && bash ./get-infected.sh || rm ./get-infected.sh
The reasons for this are at least twofold:

   (1) $EDITOR probably has syntax highlighting, which will help you understand the text better. Always do your code reviews with the supportive assistance of tools. 

   (2) If you intend to review a script before you run it on your computer, it is intrinsic to the task that you review the script you are about to run on the computer. As you observe, a malicious user might detect the User-Agent and give a different script. But completely non-malicious changes could happen too: for instance, there could be an update or you could type in the command wrongly and accidentally review one script but run another.
In any case, it's worth noting that the user who wants to review the install script before they run a potentially malicious installer needs to consider whether they actually trust the software they're about to install. A malware author could easily install a binary of potentially-malicious in a perfectly benign way, and it happens that once it's been running for three hours it reads exfiltrates your aws keys on apparently ordinary API requests it makes.

If you don't trust author/distributors (whether it is ad hoc distribution or appstore distribution), it is probably better to rely on third party distributors as found in traditional GNU/Linux distributions. They aren't flawless, but the delays are there partly to help making trusting a random group of independent developers more trustworthy.

If you don't trust first party author/distributors or third party distributors, I guess you have a sufficiently sandboxed setup that means `curl | sh` is actually safe, or else you download the source code, review the whole package, and build it or don't, so you don't want to `curl | sh` anyway.

Re:Lockdown.exe: Block unknown apps via Windows software res... by Dah00n on Wednesday June 09, 2021 @08:16AM (#27447010)
I'm not sure "Any user who intends to review a script" would do this. I'd bet that most would at most open it, take a quick look and run it. But good advice!
Re:Lockdown.exe: Block unknown apps via Windows software res... by mavhc on Wednesday June 09, 2021 @05:07AM (#27445815)
That's how Windows works 99% of the time
Re:Lockdown.exe: Block unknown apps via Windows software res... by AnIdiotOnTheNet on Wednesday June 09, 2021 @07:17AM (#27446594)
And it has been wildly successful because it allows people to make and distribute applications without an army of volunteer packagers or forcing the user to compile from source. It wouldn't be a problem at all if Desktops had gotten around to the idea of sandboxing everything by default the way mobile did.
Re:Lockdown.exe: Block unknown apps via Windows software res... by dannyw on Wednesday June 09, 2021 @06:00AM (#27446164)
Not really. When I'm downloading Firefox, it's digitally signed by Mozilla. When I'm downloading VLC, it's digitally signed by the VideoLAN foundation.

I actually don't think I have a single piece of non-signed executable on my Windows PC.

Re:Lockdown.exe: Block unknown apps via Windows software res... by AshamedCaptain on Wednesday June 09, 2021 @06:15AM (#27446234)
And what is exactly the difference between "downloading a random executable from the Internet" and "downloading a random digitally signed with a random signature executable from the Internet"?

Either the author is random or it is not, and the signature is not really going to discriminate much in this area...

Re:Lockdown.exe: Block unknown apps via Windows software res... by formerly_proven on Wednesday June 09, 2021 @06:39AM (#27446378)
The difference is that someone paid one of the two billion CAs which can issue Authenticode certs about a hundred bucks.
Re:Lockdown.exe: Block unknown apps via Windows software res... by FoolishTech on Wednesday June 09, 2021 @07:48AM (#27446796)
not quite "two billion" lol and the cheapest I know of is Digicert. You're looking at $499/year or$699/year for the extended validation cert (this is a higher quality cert that passes more security checks.) What is this validation you ask? All kinds of identity verification on the business and it's owner to ensure they are who they say they are and they are located where they say they are. The idea is that bad actors aren't willing to pay $$$ annually for any reason much less to expose their identity. Lockdown uses the EV cert.
Re:Lockdown.exe: Block unknown apps via Windows software res... by mavhc on Wednesday June 09, 2021 @07:01AM (#27446513)
that's ok, lockdown.exe is digitally signed
Re:Lockdown.exe: Block unknown apps via Windows software res... by type0 on Wednesday June 09, 2021 @05:41AM (#27446031)
99% of the time it works all the time!
Re:Lockdown.exe: Block unknown apps via Windows software res... by mattowen_uk on Wednesday June 09, 2021 @08:34AM (#27447167)
It's this sort of attitude that's destroyed the hobbyist programming community for the Windows Platform.

It's also an outdated view:

1. Most Windows software is signed with an Authenticode cert which requires the author to prove who they are to the CA and hand over at least $99.

2. Windows these days has SmartScreen running all the time, which checks executable file hashes against a cloud based database and blocks apps with known issues. Doesn't help if it's an unknown but massively reduces the risk.

3. Windows has a policy that can be enforced that blocks the execution of any software that doesn't pass points #1 and #2.

Re:Lockdown.exe: Block unknown apps via Windows software res... by FoolishTech on Wednesday June 09, 2021 @11:29AM (#27449076)
I'm interested in where you can you get a code certificate for $99? My renewal is coming up and I'm paying $699/annual for a extended validation cert; I'm willing to consider a standard cert but even they are $499/annual. Buying a 3 year cert provides very little discount... that 3 year ev cert on Lockdown and my other apps is a $2000 deal.
Re:Lockdown.exe: Block unknown apps via Windows software res... by mattowen_uk on Thursday June 10, 2021 @05:24AM (#27458680)
Ah it's gone up a bit since I last looked, and you have to hunt around but the base cost seems to be $129:

https://www.ssl.com/certificates/code-signing/buy/

That's a yearly cost, but you only need to keep renewing if you are signing and releasing new apps or updates. Existing apps you've signed will remain valid if if you don't renew your cert (unlike websites etc.)

Also, it seems that the LARGE cost for the EV certs is only really needed for things like Windows drivers.

Re:Lockdown.exe: Block unknown apps via Windows software res... by FoolishTech on Thursday June 10, 2021 @09:09AM (#27460257)
wow, I hadn't researched in a while, but that looks sketchy. I purchased one that cheap some time around 2011 and the company ended up having certs revoked and went out of business, and the next best thing I found was digicert at a fraction of the cost of the comodo and the like.

they do have EV for $350/annual or $750/3 year cert so I might try that it is certainly cheaper than digicert.

and yes EV is good for more than drivers, it allows EXEs to bypass smartscreen prompts that would otherwise trigger on standard certs that have to go through reputation checks in smartscreen.

Re:Lockdown.exe: Block unknown apps via Windows software res... by mattowen_uk on Thursday June 10, 2021 @09:36AM (#27460572)
You make good points - The pricing is still a good example of how it's a tax on hobbyist developers.

Is there any 'free' Authenticode cert providers out there? Doing the same job as LetsEncrypt but for code?

Re:Lockdown.exe: Block unknown apps via Windows software res... by Causality1 on Wednesday June 09, 2021 @06:07AM (#27446193)
Random unsigned internet developers have a considerably better track record than Microsoft itself when it comes to screwing up my computer.
Re:Lockdown.exe: Block unknown apps via Windows software res... by squiggleblaz on Wednesday June 09, 2021 @07:31AM (#27446682)
If you view Microsoft as a threat to your computer, running random unsigned internet binaries isn't going to make your computer safer, even if you're running Microsoft tools. If a random binary has a 1 in 100 chance of being malware, and a Microsoft binary has a 1 in 50 chance of ignoring your interests in the pursuit of some other gain, running Microsoft binaries doesn't make running random binaries one bit safer.

Basically: Microsoft is irrelevant to the equation.

You are better off not using Microsoft products if you don't trust them, and considering the safety and security of artefacts produced by random unsigned internet developers independently of the safety and security of artefacts produced by Microsoft.

Also, if you're subject to this kind of logical fallacy, you might consider not installing Microsoft products just to avoid the distraction in your reasoning. Every platform will have a different set of trade-offs.

Re:Lockdown.exe: Block unknown apps via Windows software res... by Causality1 on Wednesday June 09, 2021 @10:38AM (#27448399)
That's pretty much my point. If a person's standard of safety is blindly running code from the reckless idiots at Windows Update I'm surprised they'd balk at running an executable whose only reputation is word of mouth. I wouldn't do either.
Re:Lockdown.exe: Block unknown apps via Windows software res... by fnord77 on Wednesday June 09, 2021 @06:26AM (#27446299)
but you can trust it because of the authoritative language on its webpage !