// troubleshooting guide · autohotkey
AutoHotkey Flagged as Virus by Antivirus
- Status
- Ongoing
- platforms:
- Windows
- updated:
- November 15, 2026
- reports:
- 5
- Method
- how we research
RUNBOOK · autohotkey/antivirus-false-positive4 FIXES
// quick answer
AHK and compiled scripts are often false positives. Verify on VirusTotal, report to the vendor and add an exclusion for your own file.
Most likely fix: Verify the file
How to fix it
// try these in order, the most common fix is first
FIX 1Verify the file
- 01Download AutoHotkey only from autohotkey.com
- 02Upload the file to VirusTotal or Jotti and read the engines that flag it
Did this fix it?FIX 2Report the false positive
- 01Submit the file to Microsoft or your antivirus vendor as a false positive
- 02Wait for updated definitions (reportedly often within a day for Microsoft)
Did this fix it?FIX 3Exclude your own file
- 01Open Windows Security > Virus & threat protection > Manage settings
- 02Under Exclusions add the specific file or folder
- 03Do not disable Defender entirely
Did this fix it?FIX 4Avoid triggers when compiling
- 01Do not compress the exe with UPX or MPRESS
- 02Try the 64-bit base binary on 64-bit PCs
- 03Share the .ahk source instead if recipients can install AHK
Did this fix it?
Symptoms
Defender or another antivirus quarantines AutoHotkey, Ahk2Exe or a compiled .exe, naming a trojan or generic detection.
Why it happens
- C-01Heuristics flag input-automation behaviour
- C-02AHK is also used in malware, so reputation is poor
- C-03Compressed (UPX/MPRESS) compiled scripts are flagged more
- C-04Fresh unsigned exes with no reputation
// this guide also covers
- autohotkey virus
- autohotkey trojan
- ahk2exe false positive
- autohotkey defender
Still not working?
If AutoHotkey keeps failing, you're not alone. See every AutoHotkey problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All slow, laggy or resource-hungry guides →
PowerToys High Memory and CPU Usage (Microsoft PowerToys)
Alfred Slow to Open or Lagging (Alfred)
Raycast High Memory and CPU Usage (Raycast)
Why Is TextExpander So Slow to Expand? (TextExpander)
Other AutoHotkey errors
- AutoHotkey v1 Script Not Working in v2
- AutoHotkey Error: This Line Does Not Contain a Recognized Action
- AutoHotkey Hotkeys Not Working in Admin Windows
- AutoHotkey Anti-Cheat Errors and Bans in Games
- AutoHotkey Send and Click Not Working in Games
- AutoHotkey Modifier Key Stuck (Ctrl, Alt, Shift, Win)
- AutoHotkey Hotkeys Not Working on Non-English Keyboard Layouts
- AutoHotkey Script Slow or Laggy Under High CPU