Can't compile script: Windows virus alert

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
zvit
Posts: 226
Joined: 07 Nov 2017, 06:15

Can't compile script: Windows virus alert

09 Nov 2021, 12:43

I'm trying to compile a small script but Windows is screaming about a Trojan and won't let it compile. Screenshots below.
Any idea what to do? (Is it possible that a Visual Studio Code extension is causing this?)
.
explorer_3tBrQCWyyX.png
explorer_3tBrQCWyyX.png (8.17 KiB) Viewed 1537 times
Ahk2Exe_6kwPTcma5F.png
Ahk2Exe_6kwPTcma5F.png (7.85 KiB) Viewed 1537 times
ApplicationFrameHost_aS8FcXAlap.png
ApplicationFrameHost_aS8FcXAlap.png (21.34 KiB) Viewed 1534 times
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Can't compile script: Windows virus alert

09 Nov 2021, 13:32

I think there is a way under Actions or in Defender settings to exclude or allow the program. You can also exclude an entire directory if you wish.
User avatar
zvit
Posts: 226
Joined: 07 Nov 2017, 06:15

Re: Can't compile script: Windows virus alert

09 Nov 2021, 13:54

I already had the entire F: drive excluded. I think because the virus is reported as being in the temp folder of the C: drive, that's why my F: exclusion is not working. I of course won't exclude the temp folder as many viruses use that folder.
User avatar
MrDodel
Posts: 96
Joined: 28 Apr 2021, 09:03
Location: Event Horizon

Re: Can't compile script: Windows virus alert

09 Nov 2021, 14:27

zvit wrote:
09 Nov 2021, 13:54
I already had the entire F: drive excluded. I think because the virus is reported as being in the temp folder of the C: drive, that's why my F: exclusion is not working. I of course won't exclude the temp folder as many viruses use that folder.
First I would look into running both the below apps, this will ensure you are virus free, I would also run over your F:\ given you've disabled any protection on it. :headwall:

Run "disk cleanup" from the start menu (As admin)

https://toolslib.net/downloads/viewdownload/951-kprm and https://www.malwarebytes.com/adwcleaner - I am not affiliated with either.

Some light reading : https://unboxhow.com/cybersecurity/remove-trojanwin32-wacatac-virus

Odds are it's an false positive and defender needs an definition update, however better to be safe than sorry.
How to report False Positives : viewtopic.php?f=17&t=62266

In regards to your issue, once you've confirmed that your system is clean, I would disable defender, try to compile again.

Good luck!
So much universe, and so little time. GNU Sir Terry.
TAC109
Posts: 1129
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Can't compile script: Windows virus alert

09 Nov 2021, 15:18

You can stop Windows Security from complaining in this way by adding Ahk2Exe.exe as a process to the Security exclusion list.

Navigate from Settings -> Update & Security -> Windows Security -> Open Windows Security -> Virus & threat protection -> Manage settings -> Add or remove exclusions -> Add an exclusion -> Process -> Ahk2Exe.exe.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
zvit
Posts: 226
Joined: 07 Nov 2017, 06:15

Re: Can't compile script: Windows virus alert

10 Nov 2021, 05:58

TAC109 wrote:
09 Nov 2021, 15:18
You can stop Windows Security from complaining in this way by adding Ahk2Exe.exe as a process to the Security exclusion list.

Navigate from Settings -> Update & Security -> Windows Security -> Open Windows Security -> Virus & threat protection -> Manage settings -> Add or remove exclusions -> Add an exclusion -> Process -> Ahk2Exe.exe.
This makes sense! Ok, I'll try this next time I have the issue. It doesn't happen all the time and it's not happening now.
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: Can't compile script: Windows virus alert

10 Nov 2021, 23:21

@zvit
I would suggest that you submit your AutoHotkey files (autohotkey.exe, ahk2exe.exe, etc...) to Microsoft as a false-positive to see what their assessment of it is. This includes submitting any other files that you are suspicious of. You do not want to just make blanket exceptions/exclusions, without being reasonably sure. It can be possible for some 3rd party program to replace your legitimate AutoHotkey files with fraudulent ones. If your AutoHotkey files are genuine, Microsoft should confirm that or acknowledge they made a mistake and will correct their database (which is good for all of the AHK community).
User avatar
JoeWinograd
Posts: 2214
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Can't compile script: Windows virus alert

13 Nov 2021, 15:26

TAC109 wrote:You can stop Windows Security from complaining in this way by adding Ahk2Exe.exe as a process to the Security exclusion list.
Hi TAC,
Thanks for that advice! I just ran into this problem after the latest Windows 10 Patch Tuesday update. In my case, I also had to exclude the BinMod.exe process, as I use it for several compiler directives. Regards, Joe
TAC109
Posts: 1129
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Can't compile script: Windows virus alert

13 Nov 2021, 16:26

@JoeWinograd
Yes, you can perpetually fight the false positives, or just use the provided tools to fix the problem once and for all.

Cheers!
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
JoeWinograd
Posts: 2214
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Can't compile script: Windows virus alert

13 Nov 2021, 17:19

TAC109 wrote:just use the provided tools to fix the problem once and for all
Hi TAC,
I must have missed that along the way. What tools will fix the problem once and for all? Thanks, Joe
TAC109
Posts: 1129
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Can't compile script: Windows virus alert

13 Nov 2021, 17:25

Oh, I’m just referring to being able to use the Windows Security 'exclusions', 'process' setting to stop the false positives.

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
JoeWinograd
Posts: 2214
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Can't compile script: Windows virus alert

13 Nov 2021, 17:38

TAC109 wrote:I’m just referring to being able to use the Windows Security 'exclusions'
Ah, OK, I misunderstood. I thought you were saying that using the Windows Security exclusions was the way to "perpetually fight the false positives", but now I see that you mean it is the way to "fix the problem once and for all". Cheers, Joe

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, madensuyu1, peter_ahk and 334 guests