-
Notifications
You must be signed in to change notification settings - Fork 39
Trojan detected #28
Comments
Here is a log from the pack command: Latest full package found: TobiiSquirrelSample-1.3.0-dependencies0003-full.nupkg [ERRO] System.IO.IOException: Operation did not complete successfully because the file contains a virus or potentially unwanted software. : 'C:\git\gaming-squirrel-net\Stage\Sample\packages\clowd.squirrel\2.7.34-pre\tools\Update.exe' |
Had I been able to change antivirus settings (I can't because they are managed by our IT department) I could have excluded the folder I'm working in, but that would not help our users if they run into the same thing. |
Unfortunately .net6 publishsinglefile binaries (Update.exe) and the installer (Setup.exe) are usually detected for mostly the same reason: they both contain compressed executable code. This is a common tactic of viruses, that compress/obfuscate their payloads. This is a common problem for application developers, and was an issue in the old squirrel also. It's also getting worse as AI/heuristic-based virus detection methods are more common, as they will be biased to just detect anything that has compressed code in it as a virus (as it's far more common for viruses to have this). You can see that your detection was one of these: As far as I know, there is nothing that can be done to Squirrel code to avoid it being detected. There are two things you can do to your own app to prevent it being detected:
Unfortunately, I can not ship a pre-signed version of Squirrel (Update.exe and Setup.exe) to you, because they are modified during package creation and the signature would be invalid. |
I managed to get it to work once I added signing. |
Unfortunately it now picks up on signed things as well :( |
I sympathize, but there is nothing can be done to Squirrel to help with this. If you have any concrete suggestions, happy to hear them. As far as your own application, you can:
Also, file reputation can be built up over time by:
There may be other suggestions online for dealing with this problem. Feel free to google, you will see this is a very common issue. For me, even a simple empty net6 PublishSingleFile project is detected as a virus right now. |
Still today an installer packed with Velopack AND EV code signed is still detected as a trojan in VirusTotal by VBA32 as " |
I was building a few and installing a few clowd.squirrel based releases locally when windows defender started to complain about a trojan in squirrel.exe/update.exe. I can now neither run the pack/releaseify commands nor any previously built installer :(. Have you seen this before?
The text was updated successfully, but these errors were encountered: