Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

AppXSvc Hard Link Privilege Escalation

Disclosed
Apr 9, 2019
Created
Jul 15, 2019

Description

There exists a privilege escalation vulnerability for
Windows 10 builds prior to build 17763. Due to the AppXSvc's
improper handling of hard links, a user can gain full
privileges over a SYSTEM-owned file. The user can then utilize
the new file to execute code as SYSTEM.

This module employs a technique using the Diagnostics Hub Standard
Collector Service (DiagHub) which was discovered by James Forshaw to
load and execute a DLL as SYSTEM.

Authors

Nabeel Ahmed
James Forshaw
Shelby Pace

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/local/appxsvc_hard_link_privesc
msf exploit(appxsvc_hard_link_privesc) > show targets
...targets...
msf exploit(appxsvc_hard_link_privesc) > set TARGET < target-id >
msf exploit(appxsvc_hard_link_privesc) > show options
...show and set options...
msf exploit(appxsvc_hard_link_privesc) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.