Jump to content

Windows Defender blocking resource updates during compile, reports Trojan:Win32/AutoitShellInj!pz


Recommended Posts

Using 3.3.14.5, tested also on current version 3.3.16.1, same problem.

This popup during a compile attempt (compiled fine about a week ago):
image.png.9fffe4647ee8476392906107377997bc.png

+>09:17:55 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe_x64.exe  /in "D:\TFS\***\Dev\Install\AutoIT\9.4\***.au3" /out "C:\Users\****\AppData\Local\AutoIt v3\Aut2exe\~AUA723.tmp.exe" /nopack /icon "D:\TFS\***\Dev\Install\AutoIT\9.4\Install.ico" /comp 2
+>09:17:59 Aut2exe.exe ended.C:\Users\*******\AppData\Local\AutoIt v3\Aut2exe\~AUA723.tmp.exe. rc:0
>09:17:59 Performing the Program Resource Update steps:
!>09:17:59 Error: Failed to enumerate RT_VERSION resources, using defaults.
! Removal UpdateResource: RT_VERSION/1 - LastError:87:The parameter is incorrect.
+ UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect.
...>Updating Program Version information.
!>09:17:59 Error: Failed to enumerate RT_MANIFEST resources, using defaults.
...>Setting Program ExecutionLevel Manifest information to asInvoker
...>Setting Program Compatibility Manifest information to Windows10
+ UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect.
...>Updating Program Manifest information.
!>09:18:00 Error: EndUpdateResource: Returncode = 0 - LastError:1400:Invalid window handle.rc:2
!>09:18:00 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2

If I comment out the #AutoIt3Wrapper_Res_<RESOURCENAME=***> lines, this avoids the problem

If I add (I can't add exclusions at work but am about to request one) an exclusion for the directory %userprofile%\AppData\Local\AutoIt v3, this avoids the problem.

What Windows Defender reports:
image.png.f8d27595ec531b898cbbcffb8f0fc863.png

 

Link to comment
Share on other sites

There was a Windoze update last night. Just went to recompile a script  and got the same error.
Followed @Nine's advice and whitelisted AutoIt3 folder, AppData folder and Script folder.

I don't want this Microsoft big brother protection but they make it very hard to disable.

Phil Seakins

Link to comment
Share on other sites

7 minutes ago, pseakins said:

I don't want this Microsoft big brother protection but they make it very hard to disable.

It's not that hard. I disabled Windows Defender permanently from Group Policy.

Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

31 minutes ago, pseakins said:

big brother protection but they make it very hard to disable.

; Microsoft Defender is a pain to disable on your system because of multiple fail-safe methods built into Windows Security.
; So, disable Tamper Protection and then run this below to disable Microsoft Defender.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reboot
; However, do not leave your system open to malware infestation, and use a third-party antivirus if you don’t like Defender.

 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Hy there
had the same problem today but find a solution

Simple use #pragma 
that works @ my site WIN10 22H2 latest security updates
 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ; That works only****
#AutoIt3Wrapper_Icon=X:\OM_MUC\MopsIt\MucDecode.ico
#AutoIt3Wrapper_Outfile_x64=MucDecode64.exe
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

;~ Try pragma's for further APP infos instead of using  AutoIt3Wrapper_<Resources>
#pragma compile(AutoItExecuteAllowed, True)
#pragma compile(ExecLevel, asInvoker)
#pragma compile(FileDescription, DB Browser for My SQLITE Base)
#pragma compile(ProductName, MucDecode )
#pragma compile(ProductVersion, 3.3.16.1)
#pragma compile(FileVersion, 2023.12.19.65) ; The last parameter is optional.
#pragma compile(LegalCopyright, © My Company System Incorporated)
#pragma compile(CompanyName, 'My Company System Incorporated')

see more in AutoIt Help  #pragma ....

Watch results in details of EXE properties ....
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...