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

Win-PS2EXE generating antivirus error #4

Closed
Duxchux opened this issue Sep 15, 2020 · 3 comments
Closed

Win-PS2EXE generating antivirus error #4

Duxchux opened this issue Sep 15, 2020 · 3 comments

Comments

@Duxchux
Copy link

Duxchux commented Sep 15, 2020

Attempting to run Win-PS2EXE.exe as Administrator, compiling a simple PowerShell script (Write-Host "This is a test") and Avast antivirus is marking the .EXE output file created as a virus (screenshots attached). No matter what PS script I attempt to compile, Avast doesn't like it. What am I doing wrong, or should I simply turn off Avast when compiling?
PC is Windows 10, latest .NET version, PowerShell 7 is installed, but this simple code doesn't use new PS7 features. I have run virus check on the entire PC not just select files and no virus was found.
Thank you in advance for your help.
-Chuck
ScreenCapture-0064
ScreenCapture-0063

@MScholtes
Copy link
Owner

Hello Duxchux,

it is the fate of programs generated with PS2EXE that they are sometimes identified as malware. Finally, compiled PowerShell scripts are executed, which is admittedly suspicious. The only hope is to report this to the producer of the antivirus software with the request for correction.

I tested some compiled PowerShell scripts against VirusTotal and noticed, that Avast treats compiled scripts always as virus if they are generated with the switch "-NoConsole". I generated a sample and sent it to Avast with their false positive form.

I hope they will correct this.

Greetings

Markus

@Duxchux
Copy link
Author

Duxchux commented Sep 18, 2020 via email

@MScholtes
Copy link
Owner

Closed since no response for over 2 weeks

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