Zamg

Category: trojan_generic · Aliases: None known · Sample count (EMBER 2018): 527 · Enrichment: expert-seo · Updated: 2026-06-09

Overview

Adware:Win32/Zamg is a highly aggressive adware framework and Potentially Unwanted Application (PUA) known for deep browser hooking and relentless pop-up generation.

Understanding Zamg
To an everyday user, Zamg renders web browsing intolerable by injecting full-page advertisements, in-text hyperlinks, and fake software update warnings. For security teams, Zamg is a severe risk to endpoint hygiene. It acts as a Man-in-the-Browser (MitB), intercepting all HTTP and HTTPS traffic to monetize the user's browsing habits, which inherently exposes sensitive session tokens and passwords to third-party ad networks.

Execution and Evasion Strategies
Zamg is exclusively distributed via deceptive software bundlers. Users downloading freeware, PDF converters, or media players from untrusted repositories inadvertently install the Zamg framework. It establishes persistence by installing a local proxy server on the machine and modifying the Windows Registry to force all browsers (Chrome, Edge, Firefox) to route traffic through it. Furthermore, it installs rogue Root Certificates to decrypt and inspect SSL/TLS traffic, allowing it to inject ads even on secure banking or email sites.

Indicators of Compromise (IoCs)
Incident responders should audit the Windows Internet Options for unauthorized 127.0.0.1 proxy settings. Threat hunters will often find anomalous scheduled tasks designed to reinstall the Zamg browser extensions if they are manually removed. The presence of unauthorized certificates in the Trusted Root Certification Authorities store is the most critical IoC, as it indicates a total compromise of encrypted communications.

MITRE ATT&CK Techniques

Observed techniques used by this family, mapped to the MITRE ATT&CK framework:

TechniqueNameTactic
T1185Browser Session HijackingCollection
T1556Modify Authentication ProcessCredential Access
T1112Modify RegistryDefense Evasion
T1176Browser ExtensionsPersistence
T1053.005Scheduled Task/Job: Scheduled TaskPersistence

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_ZAMG {
    meta:
        description = "Detects Zamg (trojan_generic)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "zamg" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Zamg Activity
id: 966e0d2b9c88fc470f08c49b09109e24
status: experimental
description: Detects generic indicators of the zamg malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*zamg*"
    condition: selection
level: medium

Containment & Response Steps

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Quarantine the endpoint to halt the exfiltration of intercepted web traffic and browsing habits.
  2. Open the Windows Certificate Manager (certmgr.msc) and forcefully remove any rogue Root Certificates installed by the adware.
  3. Remove the unauthorized local proxy configuration and flush the DNS cache.
  4. 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.

  1. Do not allow the user to log into any secure corporate portals while the machine is infected, as the local proxy intercepts SSL traffic.
  2. 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

Related Families (Category: trojan_generic)

Explore other malware families in the same category:

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

Machine-readable

Get this profile as JSON: https://jordanricky1604-ship-it.github.io/malware-families-catalog/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, Replit, StackBlitz, CodeSandbox, and CodePen.