Adversaries may execute commands and perform malicious tasks using AutoIT and AutoHotKey automation scripts. AutoIT and AutoHotkey (AHK) are scripting languages that enable users to automate Windows tasks. These automation scripts can be used to perform a wide variety of actions, such as clicking on buttons, entering text, and opening and closing programs.(Citation: AutoIT)(Citation: AutoHotKey)

Adversaries may use AHK (`.ahk`) and AutoIT (`.au3`) scripts to execute malicious code on a victim's system. For example, adversaries have used for AHK to execute payloads and other modular malware such as keyloggers. Adversaries have also used custom AHK files containing embedded malware as [Phishing](https://attack.mitre.org/techniques/T1566) payloads.(Citation: Splunk DarkGate)

These scripts may also be compiled into self-contained executable payloads (`.exe`).(Citation: AutoIT)(Citation: AutoHotKey)
AutoHotKey & AutoIT
source_name: mitre-attack  url: https://attack.mitre.org/techniques/T1059/010  external_id: T1059.010     source_name: AutoHotKey  description: AutoHotkey Foundation LLC. (n.d.). Using the Program. Retrieved March 29, 2024.  url: https://www.autohotkey.com/docs/v1/Program.htm     source_name: AutoIT  description: AutoIT. (n.d.). Running Scripts. Retrieved March 29, 2024.  url: https://www.autoitscript.com/autoit3/docs/intro/running.htm     source_name: Splunk DarkGate  description: Splunk Threat Research Team. (2024, January 17). Enter The Gates: An Analysis of the DarkGate AutoIt Loader. Retrieved March 29, 2024.  url: https://www.splunk.com/en_us/blog/security/enter-the-gates-an-analysis-of-the-darkgate-autoit-loader.html     