# keyzm/reflectinjection architecture

> Architecture diagram of the GitHub repository keyzm/reflectinjection, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keyzm/reflectinjection
- Repository: https://github.com/keyzm/reflectinjection

## Overview

ReflectInjection is a Windows process-injection loader. Its visible runtime layer opens a device and issues memory-operation and shellcode-call requests for a PID; the injector interface declares a manual-DLL-mapping operation. The likely end-to-end workflow is only partly evidenced: Main.cpp, Interface.hpp, Driver.h, and injector.cpp were not excerpted, so their internal wiring and the exact orchestration cannot be confirmed.

Main entry points: [`Loader/Driver.cpp`](https://github.com/keyzm/reflectinjection/blob/main/Loader/Driver.cpp) (Driver client), [`Loader/injector.cpp`](https://github.com/keyzm/reflectinjection/blob/main/Loader/injector.cpp) (Manual mapper), [`Loader/Interface.hpp`](https://github.com/keyzm/reflectinjection/blob/main/Loader/Interface.hpp) (Memory interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_loader["Loader runtime"]
  node_driver["Driver client<br/>[Driver.cpp]"]
end

subgraph group_mapping["DLL mapping"]
  node_interface["Memory interface<br/>[Interface.hpp]"]
  node_mapper["Manual mapper<br/>[injector.cpp]"]
end

node_kernel["Kernel device"]
node_target["Target process"]

node_driver -->|"issues IOCTLs"| node_kernel
node_driver -->|"operates on PID"| node_target
node_mapper -->|"accepts interface"| node_interface

click node_driver "https://github.com/keyzm/reflectinjection/blob/main/Loader/Driver.cpp"
click node_interface "https://github.com/keyzm/reflectinjection/blob/main/Loader/Interface.hpp"
click node_mapper "https://github.com/keyzm/reflectinjection/blob/main/Loader/injector.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_driver toneBlue
class node_interface,node_mapper toneAmber
class node_kernel,node_target toneIndigo
```

## Components

### Loader runtime

- [Driver client](https://github.com/keyzm/reflectinjection/blob/main/Loader/Driver.cpp): `Loader/Driver.cpp`

### DLL mapping

- [Memory interface](https://github.com/keyzm/reflectinjection/blob/main/Loader/Interface.hpp): `Loader/Interface.hpp`
- [Manual mapper](https://github.com/keyzm/reflectinjection/blob/main/Loader/injector.cpp): `Loader/injector.cpp`

### Other components

- **Kernel device**
- **Target process**

## Connections

- Driver client → Kernel device: issues IOCTLs (evidence: `Loader/Driver.cpp`)
- Driver client → Target process: operates on PID (evidence: `Loader/Driver.cpp`)
- Manual mapper → Memory interface: accepts interface
