National Cyber Warfare Foundation (NCWF)login

Inside TrustedHive: how an ungated CBS COM method turned TrustedInstaller into a SYSTEM file-write primitive


0 user ratings
2026-11-03 13:25:07
milo
Red Team (CNA)
"Inside

TrustedHive is a C# proof-of-concept demonstrating a Windows 11 local privilege escalation path through an authorization gap in the TrustedInstaller CBS servicing stack, documented here for defenders and authorized researchers.








Tooldis0rder0x00/TrustedHive — Windows 11 LPE PoC abusing an ungated CBS COM method for SYSTEM-level arbitrary file write
CategoryLocal privilege escalation research / Windows internals proof-of-concept
Primary UseValidating whether a Windows host is exposed to the TrustedInstaller CBS session weakness in authorized labs and during sanctioned assessments
Safe UseEducational and documentary analysis for authorized penetration testers and defensive researchers verifying patch posture on systems they own or are contracted to assess
Telemetry NoteThe technique creates a hive-log file stamped with Hidden+System attributes by the Configuration Manager; defenders can watch for anomalous TrustedInstaller.exe-owned file creation in unexpected directories and confirm the September 2026 servicing stack update is applied

TrustedHive is a research proof-of-concept from dis0rder0x00 that documents a local privilege escalation primitive in the Windows servicing stack, taking a medium-integrity user context to an arbitrary file write performed by TrustedInstaller.exe running as SYSTEM. The repository is written in C# for the GUI variant with a standalone C file for the minimal variant, and it sits squarely in the modern tradition of Windows LPE research where COM endpoints exposed by high-privilege service hosts become the attack surface. What makes this one interesting to study is less the end primitive than the meticulous disclosure narrative wrapped around it, including a suspected mapping to CVE-2026-81963 and a candid reproduction of Microsoft's assessment that the report was a low-severity defense-in-depth issue, likely a duplicate of an already-fixed bug.


The core of the finding, as the README lays out, is the Component Based Servicing session COM object hosted inside TrustedInstaller.exe. Nearly every method on that session interface begins with a call to EnsureCallerIsAdministrator, a gate that validates the caller before doing privileged work. The exception is CreateExternalTransformerExecutor, which the author found returned a low-level CSI store transformer executor with no authorization check at all. From a code-audit perspective this is the classic pattern auditors hunt for: an interface-wide invariant enforced method-by-method, with one late addition or overlooked method silently breaking the invariant. The executor's Initialize() then runs as SYSTEM with no impersonation of the calling client, which is the second structural mistake that compounds the first.


The exploitation strategy described in the README is a study in NTFS filesystem trickery requiring no special privileges. The author describes building a reference registry hive with a deliberately permissive DACL granting Everyone full control, then arranging a chain of NTFS junctions and object-manager symbolic links that redirect where the servicing stack believes the hive's log file should live. Neither junctions nor object-manager symlinks demand administrator rights to create, which is precisely why they remain perennial building blocks in Windows LPE chains. When the ungated executor is driven through the redirected path, TrustedInstaller follows it and creates a SYSTEM-owned log file at an attacker-chosen location, and because the new file inherits the reference hive's permissive DACL, the unprivileged process can subsequently overwrite its contents with arbitrary bytes.


The net effect, per the author's testing, is an arbitrary file write into any existing directory from a normal user account, with no administrator rights, no special privileges, and no user interaction. That is a textbook EoP stepping stone: an arbitrary write to System32 is one hop away from code execution in a privileged context via any of the well-known DLL-search-order or service-image-path escalation idioms. The README deliberately does not chain that last hop — it stops at demonstrating the write itself — which keeps the artifact in the proof-of-concept register rather than the weaponized-exploit register, and the analysis we present here follows the same line.


Patch posture matters enormously when evaluating this repository. The author states the weakness was tested on Windows 11 23H2 through 26H1 and Windows Server 2025, across servicing stack builds including 26100.8872 and 26100.32230, and that the September 8, 2026 Patch Tuesday servicing stack update closes it. On a patched machine the same code path fails with E_ACCESSDENIED. The author's own theory of the disclosure timeline is that Microsoft's October 29, 2026 response — assessing the report as low severity, closing it without a dedicated CVE or bounty — makes sense if the July report was a duplicate of an issue already fixed in September, a reading the README argues with unusual honesty rather than grievance. He did land on the MSRC special mentions page for the effort.


The suspected CVE mapping deserves careful reading. The README links CVE-2026-81963, a Windows Update Stack Elevation of Privilege vulnerability credited to Romain Deperne of Airbus Helicopters and Microsoft's Threat Intelligence Center, explicitly flagged by Microsoft as exploited in the wild before the patch. The vulnerability class matches — link following plus improper access control, CWE-59 and CWE-284, in the CBS servicing stack — but the author is emphatic that he has no official confirmation his report covers the same bug. He also points to a Fortra/Core Security writeup describing a different exploitation path under the same CVE, dpx.dll sideloading via EvaluateApplicability, which suggests the September fix was broader than a single method and that multiple researchers converged on the same servicing-stack hardening from different angles.


Structurally the repository ships two variants of the same base technique. PoC_Fun/ is a dotnet 8 graphical harness the author cheerfully describes as vibecoded, wrapping the primitive in an interactive UI with a commissioned gothic pixel-art font from the artist credited as nico_n_art, aimed at demos and training settings. PoC_Boring/ is the opposite pole: a single C translation unit depending only on ole32.lib and advapi32.lib, compiled with MSVC via cl /O2. The two-build split is a genuinely good documentation pattern — the auditable minimal artifact for researchers, the presentation-friendly artifact for conference talks and awareness training — and reviewers of offensive-security repos would do well to copy it.


For defenders, the detection and hardening angles are concrete. First and simplest: confirm the September 2026 cumulative servicing stack update is deployed across the estate, since the writeup states patched systems reject the ungated path. Second, the artifact's telemetry is distinctive in a useful way: the Configuration Manager stamps the created hive-log file with Hidden and System attributes, and the boring variant exposes a /keep flag purely to preserve rather than clear those markers — meaning monitoring for newly created TrustedInstaller-owned files carrying that attribute combination in unexpected directories is a viable hunting heuristic. Third, behavioral rules flagging non-administrator processes activating the CBS session COM object in TrustedInstaller.exe would catch this class of activity regardless of variant.


For authorized assessors, the legitimate application is patch verification and control validation on systems you own or are contractually engaged to test: running the PoC against a lab image confirms whether a host is exposed to the ungated CreateExternalTransformerExecutor path, and a failed run with E_ACCESSDENIED is positive evidence the servicing stack hardening landed. The README explicitly instructs running from a normal, non-administrator medium-integrity context, since an elevated run proves nothing about the vulnerability. Anyone reproducing this work should confine it to dedicated VMs; the technique writes attacker-controlled bytes to arbitrary paths with SYSTEM ownership, which is destructive capability on any machine that matters.


As an educational artifact, TrustedHive is worth an afternoon of reading even for researchers who never execute it. It demonstrates the audit methodology — enumerate COM methods on a privileged host, diff which ones call the authorization gate, trace what the ungated method's returned object does — and it models responsible disclosure with a full timeline from July 22, 2026 report through the September patch to the October MSRC closure. The frank discussion of why MSRC may have scored it low, including the author's own admission that the October response postdates the fix, is a rare piece of process transparency in a genre that usually only publishes the win. For anyone studying how Windows servicing-stack hardening evolved in 2026, this repository and the CVE-2026-81963 material it links form a compact, self-contained case study.



Official project repository for dis0rder0x00/TrustedHive.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/inside-trustedhive-how-ungated-cbs-com.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.