Hamweq

Category: ransomware · Aliases: Worm.Hamweq, IRC.Hamweq, Win32/Hamweq · Sample count (EMBER 2018): 1 · Enrichment: insufficient_information · Updated: 2026-07-01T16:44:41Z
Category: RansomwareActor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Opportunistic

Overview

Executive Summary

Hamweq (often associated with the extensive IRCBot or AutoRun worm families) is a self-replicating malicious Worm and Botnet agent. Designed to rapidly propagate across local networks and removable media, Hamweq compromises Windows systems, establishes persistence, and connects the infected host to a centralized Internet Relay Chat (IRC) command-and-control server, awaiting instructions from the botmaster.

Propagation and Execution Lifecycle

Hamweq relies on aggressive, largely automated propagation techniques:

Threat Assessment

A Hamweq infection is a significant security incident. While older, its worm capabilities allow it to rapidly contaminate an entire enterprise environment. Once connected to the IRC botnet, the compromised machines can be instructed to download secondary malware (like ransomware), harvest credentials, or participate in distributed denial-of-service (DDoS) attacks.

Eradication and Incident Response

Known aliases

Threat reports may refer to this family under multiple names:

MITRE ATT&CK Techniques

This family has been observed using the following ATT&CK techniques: T1091 T1059 T1547.001

Tactical Mitigations

Based on the techniques used by this family, consider the following defensive strategies:

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_HAMWEQ {
    meta:
        description = "Detects Hamweq (ransomware)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "hamweq" ascii wide nocase
        $s2 = "worm.hamweq" ascii wide nocase
        $s3 = "irc.hamweq" ascii wide nocase
        $s4 = "win32/hamweq" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Hamweq Activity
id: cbb104cd94fe0cc214c73283a05bf89a
status: experimental
description: Detects generic indicators of the hamweq malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*hamweq*"
            - "*worm.hamweq*"
            - "*irc.hamweq*"
            - "*win32/hamweq*"
    condition: selection
level: medium

References & External Analysis

Frequently Asked Questions

How do I remove the Hamweq Ransomware from Windows?

Manual removal of Hamweq 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 Hamweq a virus or a Ransomware?

Hamweq is classified as a Ransomware. Unlike traditional viruses that infect files, modern malware like Hamweq typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.

What are the main symptoms of a Hamweq infection?

Symptoms of Hamweq 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: ransomware)

Explore other malware families in the same category:

Protect Your Network Against Ransomwares

Want to prevent Hamweq and similar threats from compromising your organization? Read our comprehensive defensive guide: Ransomware Protection Guide.

Need help with an active incident? Published by the SystemHelpdesk team.

Machine-readable

Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/hamweq.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.