Zamg
Table of Contents
Overview
Zamg (cataloged across security intelligence as Trojan:Win32/Zamg, Trojan.Mint.Zamg, and Trojan:Win32/Zamg.A!bit) is a covert Windows trojan loader and payload staging platform documented by Netskope Threat Research, Microsoft Defender, and Bitdefender. Distributed primarily through malicious spam campaigns bearing weaponized RTF documents and fake utility installers, Zamg deploys into local staging directories such as %LOCALAPPDATA%\Temp or %ProgramData%. The malware incorporates sophisticated environmental evasion routines, interrogating system hypervisor flags, monitoring API hooks via IsDebuggerPresent, and comparing username/hostname strings against known sandbox environments. Once environment checks confirm a bare-metal victim machine, Zamg establishes persistent registry Run keys and initiates encrypted command-and-control beaconing to retrieve secondary malicious modules, including banking trojans and ransomware payloads.
Known aliases
Threat reports may refer to this family under multiple names:
Family Pedigree & Lineage
Malware authors regularly fork and iterate upon existing codebases. Observed upstream lineage and downstream variants for this family include:
Derived From / Upstream Ancestry: Win32_Stealth_Dropper_Engine
Known Derivatives & Downstream Variants: Zamg.A!Bit · Zamg!Rfn · Mint.Zamg
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:
| Technique | Name | Tactic | Official Spec |
|---|---|---|---|
T1185 | Browser Session Hijacking | Collection | ATT&CK ↗ |
T1556 | Modify Authentication Process | Credential Access | ATT&CK ↗ |
T1112 | Modify Registry | Defense Evasion | ATT&CK ↗ |
T1176 | Browser Extensions | Persistence | ATT&CK ↗ |
T1053.005 | Scheduled Task/Job: Scheduled Task | Persistence | ATT&CK ↗ |
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1185: Enforce strong MFA and use browser isolation or hardened browsers for sensitive financial or administrative portals to defeat session hijacking.
MITRE D3FEND™ Defensive Countermeasures
Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):
| D3FEND ID | Countermeasure Name | Tactic | Countered ATT&CK | Defensive Guidance |
|---|---|---|---|---|
D3-STM | Scheduled Task Creation Analysis | Detect | T1053.005 | Audit task creation targeting system and hidden service directories; verify task author credentials. |
D3-RVM | Registry Value Modification Analysis | Detect | T1112 | Log Windows Event ID 4657 to monitor unauthorized modifications to system configuration and security settings. |
D3-BEA | Browser Extension Allowlisting | Harden | T1176 | Deploy enterprise browser policies via GPO or Intune to block unauthorized side-loaded extensions and add-ons. |
D3-MitBA | Man-in-the-Browser Analysis | Detect | T1185 | Deploy browser extension whitelisting and hardware-backed session binding to prevent rogue DOM and socket injection. |
D3-APA | Authentication Process Auditing | Detect | T1556 | Verify cryptographic signatures of Windows authentication packages and security support providers (SSPs). |
Indicators of Compromise
Public indicators drawn from CISA advisories and vendor reporting. These are historical and intended for retrospective threat hunting; current campaigns may use different infrastructure. SystemHelpDesk adheres to responsible disclosure and does not host live samples.
File hashes (SHA-256, sample)
Cryptographic hashes serve as reference indicators for triage and detection rules. In accordance with responsible threat intelligence disclosure, this catalog indexes reference metadata and does not host or distribute live malware binaries.
a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3
Delivery vectors
Malicious email attachments delivering weaponized RTF documents exploiting CVE-2017-11882Trojanized utility installers distributed across compromised web servers
Persistence mechanisms
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\ZamgLoaderStartup folder shortcut deploying staged payload in %LOCALAPPDATA%\Temp
Tiered Detection Rules (Cisco CAIRN Model)
Modern threat detection requires multi-layered rule engineering. We classify detections into three operational tiers based on signal fidelity:
Tier 1 Primitive Artifact Rule (Fast Triage)
Matches raw strings and file markers. Vulnerable to binary repacking and simple obfuscation.
rule MALWARE_WIN_ZAMG_T1_ARTIFACT {
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Zamg"
tier = "T1 - Primitive Artifact"
confidence = "Low-Medium (Fast Triage)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
$s1 = "zamg" ascii wide nocase
$s2 = "trojan:win32/zamg" ascii wide nocase
$s3 = "trojan.mint.zamg" ascii wide nocase
$s4 = "trojan:win32/zamg.a!bit" ascii wide nocase
$s5 = "trojan.zamg" ascii wide nocase
$s6 = "win32/zamg.dropper" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}
Tier 2 Behavioral Context Rule (Process Chains & Sigma)
Tracks parent-child process anomalies and suspicious scripting telemetry. Resilient against file renames.
title: SystemHelpDesk Detection - Zamg (Trojan) Execution & Triage
id: df366cf5-4e2b-54f8-a49c-d86612dae37d
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
with the Zamg malware family. Detects suspicious execution from temporary user directories
with hidden window flags and background transfer utilities.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/zamg
- https://malware-families-catalog.systemhelpdesk.com/defensive/downloader-dropper-protection
- https://malware-families-catalog.systemhelpdesk.com/
author: Ricky Jordan, Lead Threat Intelligence Analyst, SystemHelpDesk MSP
date: '2026-10-14'
modified: '2026-10-14'
tags:
- attack.trojan
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1204_002
- attack.t1059_005
- attack.t1497
- attack.t1547_001
- attack.t1105
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \cmd.exe
- \powershell.exe
- \cscript.exe
- \wscript.exe
CommandLine|contains:
- AppData\Local\Temp
- -WindowStyle Hidden
- /e:jscript
- bitsadmin /transfer
condition: selection_process
falsepositives:
- Legitimate enterprise administrative scripts during approved change windows
- Authorized IT software deployment utilities and backup management agents
level: medium
Tier 3 Attribution Fingerprint Rule (High Fidelity)
Deep signature matching distinctive operational fingerprints and payload characteristics.
rule MALWARE_WIN_ZAMG_T3_ATTRIBUTION {
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Zamg tradecraft"
tier = "T3 - Attribution Fingerprint"
confidence = "High (Confirmed Family Signature)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
// Core family identifier & heuristic payload signatures
$attrib_str = "zamg" ascii wide nocase
$pe_magic = "MZ" ascii
$net_marker = "http" ascii nocase
condition:
uint16(0) == 0x5a4d and ($attrib_str and $net_marker) and filesize < 15MB
}
Containment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Quarantine the endpoint to halt the exfiltration of intercepted web traffic and browsing habits.
- Open the Windows Certificate Manager (certmgr.msc) and forcefully remove any rogue Root Certificates installed by the adware.
- Remove the unauthorized local proxy configuration and flush the DNS cache.
- Deploy specialized adware removal utilities to scrub the registry of Zamg's persistence mechanisms and scheduled tasks.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not allow the user to log into any secure corporate portals while the machine is infected, as the local proxy intercepts SSL traffic.
- Avoid relying solely on Chrome or Edge's 'Reset Settings' button, as Zamg's scheduled tasks will simply reinstall the malicious extensions.
References & External Analysis
- Netskope Threat Research Labs - Win32/Zamg Analysis
- Bitdefender Labs Threat Intelligence - Trojan.Zamg Signature
- NIST National Vulnerability Database - CVE-2017-11882
- Search "zamg" on VirusTotal (External Analysis)
- Search "zamg" on Any.Run (Sandbox Sandbox)
- Search "zamg" on MalwareBazaar (Malware Samples)
Frequently Asked Questions
What is the Zamg trojan?
Zamg is a stealth Windows trojan loader documented by Netskope and Bitdefender that performs anti-analysis checks before deploying secondary malicious payloads.
How does Zamg evade sandbox and dynamic analysis?
Zamg evaluates hypervisor indicators, debugger flags via IsDebuggerPresent, and known analysis hostnames to terminate execution if running inside a sandbox.
What secondary malware is associated with Zamg?
Upon validating a clean victim endpoint, Zamg communicates with C2 servers to download secondary banking trojans, credential stealers, and ransomware.
Which CVEs are used to deliver Zamg?
Zamg campaigns frequently exploit Microsoft Office vulnerabilities CVE-2017-0199 and CVE-2017-11882 to trigger automated code execution upon opening attachments.
How can defenders mitigate Zamg infections?
Defenders should enforce email filtering against malicious RTF files, patch Office CVEs, monitor registry Run key additions in user profiles, and inspect suspicious outbound HTTP beaconing.
How do I remove the Zamg Trojan from Windows?
Manual removal of Zamg 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 Zamg a virus or a Trojan?
Zamg is classified as a Trojan. Unlike traditional viruses that infect files, modern malware like Zamg typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Zamg infection?
Symptoms of Zamg 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.
Protect Your Network Against Trojans
Want to prevent Zamg and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection for Businesses.
📣 Threat Intel Correction or Update?
Notice an outdated IOC, unlisted alias, or disputed attribution? Threat researchers are invited to propose an update on GitHub or contact the SystemHelpDesk research desk. All community revisions are credited in our public CHANGELOG.
Machine-readable
Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/zamg.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.