Detection rules › Sigma

Renamed AutoHotkey.EXE Execution

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali
Source
github.com/SigmaHQ/sigma

Detects execution of a renamed autohotkey.exe binary based on PE metadata fields

MITRE ATT&CK coverage

TacticTechniques
StealthNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Renamed AutoHotkey.EXE Execution
id: 0f16d9cf-0616-45c8-8fad-becc11b5a41c
status: test
description: Detects execution of a renamed autohotkey.exe binary based on PE metadata fields
references:
    - https://www.autohotkey.com/download/
    - https://thedfirreport.com/2023/02/06/collect-exfiltrate-sleep-repeat/
author: Nasreddine Bencherchali
date: 2023-02-07
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Product|contains: 'AutoHotkey'
        - Description|contains: 'AutoHotkey'
        - OriginalFileName:
              - 'AutoHotkey.exe'
              - 'AutoHotkey.rc'
    filter:
        - Image|endswith:
              - '\AutoHotkey.exe'
              - '\AutoHotkey32.exe'
              - '\AutoHotkey32_UIA.exe'
              - '\AutoHotkey64.exe'
              - '\AutoHotkey64_UIA.exe'
              - '\AutoHotkeyA32.exe'
              - '\AutoHotkeyA32_UIA.exe'
              - '\AutoHotkeyU32.exe'
              - '\AutoHotkeyU32_UIA.exe'
              - '\AutoHotkeyU64.exe'
              - '\AutoHotkeyU64_UIA.exe'
        - Image|contains: '\AutoHotkey'
    condition: selection and not filter
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    - Product|contains: 'AutoHotkey'
    - Description|contains: 'AutoHotkey'
    - OriginalFileName:
          - 'AutoHotkey.exe'
          - 'AutoHotkey.rc'

Stage 2: not filter

filter:
    - Image|endswith:
          - '\AutoHotkey.exe'
          - '\AutoHotkey32.exe'
          - '\AutoHotkey32_UIA.exe'
          - '\AutoHotkey64.exe'
          - '\AutoHotkey64_UIA.exe'
          - '\AutoHotkeyA32.exe'
          - '\AutoHotkeyA32_UIA.exe'
          - '\AutoHotkeyU32.exe'
          - '\AutoHotkeyU32_UIA.exe'
          - '\AutoHotkeyU64.exe'
          - '\AutoHotkeyU64_UIA.exe'
    - Image|contains: '\AutoHotkey'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
Imageends_with\AutoHotkey.exe
Imageends_with\AutoHotkey32.exe
Imageends_with\AutoHotkey32_UIA.exe
Imageends_with\AutoHotkey64.exe
Imageends_with\AutoHotkey64_UIA.exe
Imageends_with\AutoHotkeyA32.exe
Imageends_with\AutoHotkeyA32_UIA.exe
Imageends_with\AutoHotkeyU32.exe
Imageends_with\AutoHotkeyU32_UIA.exe
Imageends_with\AutoHotkeyU64.exe
Imageends_with\AutoHotkeyU64_UIA.exe
Imagematch\AutoHotkey

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Descriptionmatch
  • AutoHotkey
OriginalFileNameeq
  • AutoHotkey.exe corpus 2 (sigma 1, elastic 1)
  • AutoHotkey.rc
Productmatch
  • AutoHotkey