Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityprivilege-escalation-method

Windows whesvc Analysis Finds Powerful SYSTEM-Level Runtime, Not Spyware

Vulnerability Disclosure · 2 sources · Updated 10d ago · First seen Aug 16, 2026

Windows whesvc Analysis Finds Powerful SYSTEM-Level Runtime, Not Spyware

Reverse engineering of Windows Health and Optimized Experiences (whesvc) found a legitimate diagnostics and performance-management service, rather than the spyware alleged in a viral post. Researcher Xusheng Li identified a Lua 5.4.7 runtime running as SYSTEM, with 84 embedded scripts and powerful native interfaces. The examined scripts use those capabilities for diagnostics: activity on a 15-minute cycle writes local JSON summaries and emits a small Event Tracing for Windows (ETW) event, rather than periodically uploading diagnostic traces. Automatic trace escalation is disabled by default.

The security concern is the runtime’s extensive privileges and its reliance on protected script assets and filesystem mitigations, not evidence of malicious surveillance. Li also examined CVE-2025-59241, a local privilege-escalation vulnerability patched by Microsoft in October 2025, but explicitly characterized the proposed exploitation mechanism as unconfirmed. Defenders should verify that the relevant Windows security updates are installed and preserve protections on the service’s script assets; the findings do not establish a new, unpatched exploit.

Why it matters

Windows Health and Optimized Experiences (whesvc) provides legitimate diagnostics and performance management, but its SYSTEM-level scripting runtime makes protection of its executable assets and filesystem operations security-critical. Tampering or unsafe privileged file operations could have serious host-level consequences; however, the analysis establishes neither spyware behavior nor a new unpatched exploit, and the supplied content reports no exploitation in the wild.

  • Industry-specific impact is not established. The evidence concerns Windows functionality, not affected organizations or targeted sectors.
  • Geography-specific impact is not established. No affected populations, country-specific targeting, or jurisdiction-specific obligations are identified.
  • Scope: The researcher examined Windows 11 Pro build 26200 with service binaries version 10.0.26100.8972. Findings from that installation do not establish fleet-wide exposure or behavior across all Windows versions.
  • Privacy and operational effects: The examined 15-minute workflow writes local JSON summaries and emits a small ETW event, rather than periodically uploading diagnostic traces. Automatic trace escalation is disabled by default; the scripts can also perform diagnostics and conditional power-management adjustments.

Source: Xusheng Li’s analysis.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · 2025 – Oct 2025
  1. Reported Aug 16, 20263mo ago

    Reverse engineering finds privileged diagnostic runtime, not spyware, in whesvc

    Xusheng Li's analysis found 84 embedded Lua scripts running through a SYSTEM-level diagnostics service, but no evidence supporting allegations of periodic trace uploads or malicious surveillance. The analysis highlighted powerful native interfaces and filesystem protections, while explicitly leaving a proposed junction-based exploitation mechanism for CVE-2025-59241 unconfirmed.

    Windows' Performance Optimizer Is More Capable Than It Needs to Be :: Xusheng Li
  2. Oct 2025

    Microsoft patches whesvc privilege-escalation vulnerability CVE-2025-59241

    Microsoft fixed CVE-2025-59241 in Windows builds 26100.6899 and 26200.6899. The local elevation-of-privilege vulnerability received a CVSS score of 7.8 and was classified as improper link resolution before file access.

    Windows' Performance Optimizer Is More Capable Than It Needs to Be :: Xusheng Li
  3. 2025

    Microsoft introduces Windows Health and Optimized Experiences service

    Microsoft introduced the service to capture local performance diagnostics when Windows detects sluggish behavior, according to Microsoft's Scott Hanselman. Users can submit the resulting traces through Feedback Hub.

    Windows' Performance Optimizer Is More Capable Than It Needs to Be :: Xusheng Li
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.