Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion : remove excution policy bypass #47

Open
fwininger opened this issue Aug 6, 2021 · 1 comment
Open

Suggestion : remove excution policy bypass #47

fwininger opened this issue Aug 6, 2021 · 1 comment

Comments

@fwininger
Copy link
Contributor

fwininger commented Aug 6, 2021

Hi @mwrock, some EDR detect mallicious activities with the command

powershell.exe -executionpolicy bypass -NoProfile -File .\test.ps1

I understand that just remove -executionpolicy bypass throw a error with the windows default configuration, but I propose this change :

powershell.exe -noprofile -noninteractive -Command { Get-Content .\test.ps1 | iex }

Do you think that this approch seems correct ?

@mwrock
Copy link
Member

mwrock commented Aug 6, 2021

What if you changed bypass to RemoteSigned. Would that make the EDR happy? Removing -executionpolicy bypass will break several scenarios where the execution policy is set to restricted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants