Autohk
Overview
The "AutoHK" malware family refers to a broad category of malicious programs that utilize AutoHotkey (AHK), a legitimate and open-source scripting language designed for keyboard shortcuts and Windows automation. Attackers frequently abuse AutoHotkey to create, bundle, and execute malicious scripts while attempting to evade detection by security software. By packaging malicious AHK scripts with the AutoHotkey interpreter into a single executable file, attackers can obfuscate their code and bypass simple signature-based antivirus detection. These scripts are often used for keylogging, taking screenshots, and data exfiltration.
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_AUTOHK {
meta:
description = "Detects Autohk (packer)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "autohk" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Autohk Activity
id: 5b31cac10dcf0956ad3141fea9815844
status: experimental
description: Detects generic indicators of the autohk malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*autohk*"
condition: selection
level: mediumReferences & External Analysis
- Search "autohk" on VirusTotal (External Analysis)
Frequently Asked Questions
Why is AutoHotkey flagged as malware?
Because AutoHotkey is widely used by attackers to bundle and execute malicious scripts, security tools sometimes flag harmless AutoHotkey scripts as "AutoHK" malware as a false positive.
How do attackers abuse AutoHotkey?
Attackers compile malicious scripts into a single executable file alongside the legitimate AutoHotkey interpreter, masking the malware as a standard application to evade static analysis.
How do I remove the Autohk Packer from Windows?
Manual removal of Autohk is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Autohk a virus or a Packer?
Autohk is classified as a Packer. Unlike traditional viruses that infect files, modern malware like Autohk typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Autohk infection?
Symptoms of Autohk can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: packer)
Explore other malware families in the same category:
Protect Your Network Against Packers
Want to prevent Autohk and similar threats from compromising your organization? Read our comprehensive defensive guide: Suspect an Infection? What to do.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/autohk.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.