Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Generated setup getting flagged as a virus by windows defender #78

Closed
chrisrestall opened this issue May 19, 2022 · 1 comment
Closed
Labels
question Further information is requested

Comments

@chrisrestall
Copy link

I believe this may be a known but has my security team concerned. I am getting a prompt and log from windows defender indicating malware in the created setup file whenever I attempt to run it:

...\OurSoftwareSetup.exe->(ZipSfx)->lib/native/Squirrel.exe

Name: Program:Win32/Beareuws.A!ml
Category: Potentially Unwanted Software

It seems to flag a squ***.tmp.exe file that gets generated in my local temp when I click the setup:

example
\AppData\Local\Temp\squ8CAB.tmp.exe

Does running the setup generate temp files like this in the profile temp directory, I know it does in an app specific directory at that level? Assumed a false positive potentially resolved by code sign?

@caesay caesay added the question Further information is requested label May 19, 2022
@caesay
Copy link
Member

caesay commented May 19, 2022

The generated Setup.exe is a very simple C++ binary, with your whole nupkg appended to the end. All Setup.exe does is extract lib/native/Squirrel.exe (the squirrel updater/installer) to squ****.tmp.exe, and run it. The temporary squirrel installer then extracts the whole nupkg to the right place in app data etc. This temporary file will be cleaned up when Setup.exe exits.

In general, dotnet core 5/6 single file bundled binaries do have more problems with !ml detections because they contain compressed executable code which is a common tactic of viruses. Signing should help, see #28.

@caesay caesay closed this as completed May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants