Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may execute commands and perform malicious tasks using AutoIT and AutoHotKey automation scripts.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 45% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -34% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 37% | 0% |
> Sub-technique of: T1059
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.
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 payloads.
These scripts may also be compiled into self-contained executable payloads (.exe).
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
An adversary may attempt to execute malicious script using AutoHotKey software instead of regular terminal like powershell or cmd. A messagebox will be displayed and calculator will popup when the script is executed successfully
Supported Platforms: windows
powershellStart-Process -FilePath "#{autohotkey_path}" -ArgumentList "#{script_path}"
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Use application control to prevent execution of AutoIt3.exe, AutoHotkey.exe, and other related features that may not be required for a given system or network to prevent potential misuse by adversaries.
| Finding | Severity | Impact | | ---------------------------------------- | -------- | --------- | | AutoHotKey & AutoIT technique applicable | High | Execution |
| CWE ID | Title | | ------ | -------------------------------------- | | CWE-94 | Improper Control of Generation of Code |
Other measured skills in the registry, with their headline benchmark lift.