git404hub

what is legacyhive fr?

msnightmare/legacyhive — explained in plain English

Analysis updated 2026-05-18

265C++Audience · developerComplexity · 4/5Setup · moderate

tl;dr

A proof of concept for a Windows user profile service bug that lets an attacker load another user's registry hive to escalate privileges.

vibe map

mindmap
  root((repo))
    What it does
      Windows ProfSvc PoC
      Loads arbitrary hive
      Privilege escalation
    Tech stack
      C++
    Use cases
      Security research
      Patch verification
      Vulnerability education
    Audience
      Security researchers
      Windows developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Study a real world example of a Windows registry hive loading privilege escalation bug

VIBE 2

Test whether a Windows system patched as of July 2026 is still vulnerable to this ProfSvc flaw

VIBE 3

Use as a reference for understanding how arbitrary hive loading can compromise a user profile

what's the stack?

C++

how it stacks up fr

msnightmare/legacyhiveactuallyaridan/linux-devmgmtpaddlepaddle/paddle-inference-demo
Stars265267269
LanguageC++C++C++
Last pushed2025-11-20
MaintenanceQuiet
Setup difficultymoderatemoderatemoderate
Complexity4/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 1h+

Needs credentials for two other Windows accounts and a patched Windows target to test against.

in plain english

LegacyHive is a proof of concept for a security vulnerability in the Windows user profile service, known as ProfSvc, that lets a low privileged process load an attacker chosen registry hive into another user's profile space. Registry hives are the files Windows uses to store a user's settings, and being able to load an arbitrary one where it does not belong can let an attacker escalate their privileges on the machine. To run the version published here, someone needs credentials for a second standard user account plus the name of a third account, which can be an administrator's account. If the exploit works, it ends up mounting the target user's registry hive inside the current user's own classes root, the part of the registry that Windows consults for file type and application associations. The author explains that this published version was intentionally weakened before release, as an attempt to make it harder for others to exploit the bug directly. The original version of the proof of concept did not need that extra set of credentials and was not limited to loading only the usrclass.dat hive, it could load any registry hive, though doing so took more understanding of the vulnerability than what has been shared here. According to the README, the vulnerability was confirmed to still work against every currently supported Windows desktop and server version, even after installing the July 2026 security patches. Beyond the description above, the README is sparse: there is no license listed, no build or usage instructions, and no further technical detail on the underlying flaw.

prompts (copy fr)

prompt 1
Explain how loading an arbitrary registry hive through the Windows profile service can escalate privileges.
prompt 2
Walk me through what credentials and accounts this PoC needs to run successfully.
prompt 3
Summarize why the published version of this PoC was stripped down compared to the original.
prompt 4
Explain what usrclass.dat is and why mounting another user's copy of it matters here.

Frequently asked questions

what is legacyhive fr?

A proof of concept for a Windows user profile service bug that lets an attacker load another user's registry hive to escalate privileges.

What language is legacyhive written in?

Mainly C++. The stack also includes C++.

How hard is legacyhive to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is legacyhive for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.