5 ms·
Installing chocolatey may leave your PC vulnerable
The install instructions listed at https://chocolatey.org/install wants you to set the windows powershell's execution policy to unrestricted.
> Set-ExecutionPolicy Bypass -Scope Process -Force
There is no instruction step listed to change it back. Many Dart users may have left it that way, open to numerous scripts run unrestricted on their PC.
To top this, they have a pretty NOTE at step 2 boasting 'they take security seriously'.
- bsg75 4y agoScoop is an alternative: https://news.ycombinator.com/item?id=25535483 https://news.ycombinator.com/item?id=25535483
- accrual 4y agoIf anybody would like to view their current execution policy, possibly to set it back to the default if desired, run: Get-ExecutionPolicy -List
- paranoidrobot 4y agoThis is perfectly safe, so long as you close the window after. You don't need to set it back. > Process. Affects only the current PowerShell session. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.3 https://learn.microsoft.com/en-us/powershell/module/microsof...
- madptr 4y agoOops! dint know that .. Thanks for the info!