The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-31728

CVE-2021-31728: MalwareFox Privilege Escalation Flaw

CVE-2021-31728 is a privilege escalation vulnerability in MalwareFox AntiMalware 2.74.0.150 that allows unprivileged processes to execute code with elevated permissions. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-31728 Overview

CVE-2021-31728 is a privilege escalation vulnerability affecting MalwareFox AntiMalware version 2.74.0.150. The vulnerability stems from incorrect access control in the zam64.sys and zam32.sys kernel drivers, allowing a non-privileged process to open a handle to \\.\ZemanaAntiMalware and ultimately execute arbitrary code at ring 0 (kernel level). This grants attackers the ability to escalate privileges from a standard user to SYSTEM-level access.

Critical Impact

Non-privileged users can achieve kernel-level code execution through a series of IOCTL calls, enabling complete system compromise and privilege escalation to SYSTEM.

Affected Products

  • MalwareFox AntiMalware version 2.74.0.150
  • Driver components: zam64.sys (64-bit) and zam32.sys (32-bit)
  • Windows systems running the affected MalwareFox AntiMalware software

Discovery Timeline

  • 2021-05-17 - CVE-2021-31728 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31728

Vulnerability Analysis

This vulnerability represents a critical flaw in how the MalwareFox AntiMalware kernel drivers handle access control and memory management. The attack chain involves multiple stages that exploit different weaknesses in the driver's IOCTL interface. A non-privileged process can communicate directly with the kernel driver through the exposed device object \\.\ZemanaAntiMalware, which lacks proper access control restrictions.

The exploitation flow leverages four specific IOCTL codes in sequence: first registering with the driver using IOCTL 0x80002010, then allocating executable memory through a flaw in IOCTL 0x80002040, installing a hook via IOCTL 0x80002044, and finally triggering code execution using IOCTL 0x80002014 or 0x80002018. This chain allows arbitrary code to run in ring 0 context within the driver's execution space.

Root Cause

The root cause is improper access control implementation in the Zemana-based kernel drivers (zam64.sys/zam32.sys) used by MalwareFox AntiMalware. The drivers fail to validate the privilege level of processes attempting to interact with the device object and do not properly restrict which IOCTL operations can be performed by unprivileged callers. Additionally, the driver contains a memory allocation flaw that allows executable memory to be created and controlled by usermode processes, violating fundamental kernel security principles.

Attack Vector

The attack vector is local, requiring the attacker to have code execution on the target system as a non-privileged user. The exploitation sequence proceeds as follows:

  1. Device Handle Acquisition: The attacker opens a handle to \\.\ZemanaAntiMalware without requiring elevated privileges
  2. Driver Registration: Send IOCTL 0x80002010 to register the attacking process with the driver
  3. Memory Allocation: Exploit the flaw in IOCTL 0x80002040 to allocate executable memory in kernel space
  4. Hook Installation: Use IOCTL 0x80002044 to install a malicious hook pointing to the allocated executable memory
  5. Code Execution: Trigger the hook via IOCTL 0x80002014 or 0x80002018, executing shellcode at ring 0

The vulnerability is particularly dangerous because it converts any local code execution capability into full kernel-level access, bypassing all operating system security controls. Technical details and proof-of-concept information can be found in the GitHub PoC for CVE-2021-31728.

Detection Methods for CVE-2021-31728

Indicators of Compromise

  • Unusual processes opening handles to \\.\ZemanaAntiMalware device object
  • Non-privileged processes sending IOCTL requests to zam64.sys or zam32.sys drivers
  • Suspicious memory allocation patterns originating from Zemana driver context
  • Kernel-mode code execution from unexpected memory regions

Detection Strategies

  • Monitor for processes attempting to communicate with the \\.\ZemanaAntiMalware device object using Windows kernel callback mechanisms
  • Implement driver load monitoring to detect vulnerable versions of zam64.sys and zam32.sys
  • Deploy endpoint detection rules that flag DeviceIoControl calls targeting Zemana drivers from non-security processes
  • Use behavioral analysis to detect privilege escalation patterns following interaction with security software drivers

Monitoring Recommendations

  • Enable Windows Security Event logging for kernel driver interactions and privilege changes
  • Configure SentinelOne's Singularity Platform to monitor for suspicious IOCTL activity and driver exploitation attempts
  • Audit installed security software versions and driver components for vulnerable releases
  • Monitor for unexpected SYSTEM-level process creation following execution of low-privileged applications

How to Mitigate CVE-2021-31728

Immediate Actions Required

  • Update MalwareFox AntiMalware to the latest version that addresses the access control vulnerabilities
  • Consider temporarily removing or disabling MalwareFox AntiMalware 2.74.0.150 if no patch is immediately available
  • Restrict local access to systems running the vulnerable software to trusted users only
  • Monitor systems for signs of exploitation while awaiting patch deployment

Patch Information

Users should contact MalwareFox for updated software that addresses the access control issues in the zam64.sys and zam32.sys drivers. The GitHub PoC repository provides technical details about the vulnerability. Organizations should verify that updated driver versions properly implement privilege checking before allowing IOCTL operations.

Workarounds

  • Restrict user account privileges to limit the pool of potential attackers who could exploit this vulnerability
  • Implement application control policies to prevent unauthorized executables from running on systems with the vulnerable driver
  • Consider deploying additional endpoint protection solutions alongside MalwareFox until the vulnerability is patched
  • Use Windows Defender Credential Guard and other virtualization-based security features to limit the impact of kernel-mode exploits
bash
# Verify installed MalwareFox driver versions
driverquery /v | findstr /i "zam"
# Check for vulnerable driver files
dir /s C:\Windows\System32\drivers\zam*.sys
# Review driver version information
sigcheck -nobanner C:\Windows\System32\drivers\zam64.sys

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMalwarefox Antimalware

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability23.57%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • GitHub PoC for CVE-2021-31728
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English