# hackerhouse-opensource/mssettingsdelegateexecute architecture

> Architecture diagram of the GitHub repository hackerhouse-opensource/mssettingsdelegateexecute, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hackerhouse-opensource/mssettingsdelegateexecute
- Repository: https://github.com/hackerhouse-opensource/mssettingsdelegateexecute

## Overview

##### Project Type and Purpose
- This is a Visual Studio C++ project designed to compile a static x64 binary that demonstrates a bypass of User Account Control (UAC) on Windows 10/11 using a vulnerability in the ms-settings DelegateExecute registry key.
- The target use case is security testing and proof-of-concept validation for this specific UAC bypass vulnerability.

##### Analyzing the File Structure
- The root includes the Visual Studio solution file (MsSettingsDelegateExecute.sln) alongside the README.md.
- The main project folder (MsSettingsDelegateExecute) contains:
- The primary source file (MsSettingsDelegateExecute.cpp), which is expected to contain the logic for triggering the vulnerability.
- A resource file (.rc) and corresponding header (resource.h) indicating the inclusion of additional static resources needed during compilation or execution.
- The Visual C++ project file (.vcxproj) and its filters file (.vcxproj.filters) that define how the project is built and organized.

- Source Code & Resources:
- Build System:
- Windows Execution Environment:
- Compiled binary running in the Windows environment (Windows 10/11 x64).
- UAC Bypass Mechanism:
- Ms-settings DelegateExecute mechanism as the core vulnerability exploitation vector. Show its connection to the Windows registry and UAC subsystem.
- Security Interaction:
- Interaction between the binary and the Windows security model (i.e., how the binary uses the registry key misconfiguration to bypass UAC).

##### Relationships and Interactions
- Compiled binary to the Windows Operating System block.
- Optionally, include a feedback loop from the OS’s security aspects (UAC controls) back to the binary to illustrate that the binary leverages the flawed ms-settings behavior.

##### Architectural Patterns and Principles
- The project is fairly straightforward—a single C++ project designed to demonstrate a specific exploit. The key design principle is minimalism, with all functionality embedded in one compiled binary.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Documentation Node
    DOC["Documentation & Project Overview (README.md)"]
    
    %% Source Code & Resources Subgraph
    subgraph "Source Code & Resources"
        CPP["MsSettingsDelegateExecute.cpp"]
        RC["Resource Script (.rc)"]
        RH["Resource Header (resource.h)"]
        RES_DIR["Resource Assets (res)"]
        CPP --> RC
        RC --> RH
        RH --> RES_DIR
    end

    %% Build System Subgraph
    subgraph "Build System (Visual Studio/MSVC)"
        SLN["Vs Solution (MsSettingsDelegateExecute.sln)"]
        VCX["VC++ Project (MsSettingsDelegateExecute.vcxproj)"]
        FIL["Project Filters (vcxproj.filters)"]
        SLN --> VCX
        VCX --> FIL
    end

    %% Runtime and Security Components
    CB["Compiled Static x64 Binary"]
    WOS["Windows OS (10/11 x64)"]
    REG["Windows Registry - ms-settings DelegateExecute Key"]
    UAC["UAC/Security Subsystem"]

    %% Connections between layers
    DOC -->|"overview"| CPP
    RES_DIR -->|"buildInput"| SLN
    FIL -->|"compiled"| CB
    CB -->|"runsOn"| WOS
    CB -->|"exploits"| REG
    REG -->|"bypasses"| UAC
    UAC -->|"feedback"| CB
    WOS -->|"OSsecurity"| UAC

    %% Click Events
    click DOC "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/README.md"
    click CPP "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute/MsSettingsDelegateExecute.cpp"
    click RC "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute/MsSettingsDelegateExecute.rc"
    click RH "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute/resource.h"
    click RES_DIR "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/tree/main/MsSettingsDelegateExecute/res"
    click SLN "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute.sln"
    click VCX "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute/MsSettingsDelegateExecute.vcxproj"
    click FIL "https://github.com/hackerhouse-opensource/mssettingsdelegateexecute/blob/main/MsSettingsDelegateExecute/MsSettingsDelegateExecute.vcxproj.filters"

    %% Styles
    classDef dev fill:#AED6F1,stroke:#1B4F72,stroke-width:2px;
    classDef runtime fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef security fill:#F5B7B1,stroke:#943126,stroke-width:2px;

    class DOC,CPP,RC,RH,RES_DIR,SLN,VCX,FIL dev;
    class CB,WOS runtime;
    class REG,UAC security;
```
