# zeromemoryex/terminator architecture

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

- Interactive diagram: https://gitdiagram.com/zeromemoryex/terminator
- Repository: https://github.com/zeromemoryex/terminator

## Overview

Terminator is a Windows program that uses a bundled kernel driver to find and terminate processes matching security-product names. Its principal workflow is: an administrator runs the executable, it loads the driver and opens its device, registers its process, then repeatedly scans running processes and requests termination for matches. The source excerpt shows the user-mode workflow; driver internals are not available, so its behavior is described only as documented in the README.

Main entry points: [`Terminator/Terminator.cpp`](https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp) (Terminator Application), [`vDriver/Terminator.sys`](https://github.com/zeromemoryex/terminator/blob/master/vDriver/Terminator.sys) (Driver Device)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and Driver Access"]
  node_app["Terminator Application<br/>[Terminator.cpp]"]
  node_driver_service["Driver Service<br/>[Terminator.cpp]"]
end

subgraph group_detection["Process Detection"]
  node_process_scan["Process Scan<br/>[Terminator.cpp]"]
  node_name_match["Name Matching<br/>[Terminator.cpp]"]
end

subgraph group_driver["Driver Component"]
  node_driver_device["Driver Device<br/>[Terminator.sys]"]
end

node_admin(("Administrator"))
node_security_processes["Matching Processes"]

node_admin -->|"runs as"| node_app
node_app -->|"loads driver"| node_driver_service
node_app -->|"opens device"| node_driver_device
node_app -->|"registers process"| node_driver_device
node_app -->|"repeats scan"| node_process_scan
node_process_scan -->|"checks names"| node_name_match
node_name_match -->|"selects matches"| node_security_processes
node_process_scan -->|"requests termination"| node_driver_device

click node_app "https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp"
click node_driver_service "https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp"
click node_driver_device "https://github.com/zeromemoryex/terminator/blob/master/vDriver/Terminator.sys"
click node_process_scan "https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp"
click node_name_match "https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.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_app,node_driver_service toneBlue
class node_process_scan,node_name_match toneAmber
class node_driver_device toneMint
class node_admin,node_security_processes toneIndigo
```

## Components

### Startup and Driver Access

- [Terminator Application](https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp): `Terminator/Terminator.cpp`
- [Driver Service](https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp): `Terminator/Terminator.cpp`

### Process Detection

- [Process Scan](https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp): `Terminator/Terminator.cpp`
- [Name Matching](https://github.com/zeromemoryex/terminator/blob/master/Terminator/Terminator.cpp): `Terminator/Terminator.cpp`

### Driver Component

- [Driver Device](https://github.com/zeromemoryex/terminator/blob/master/vDriver/Terminator.sys): `vDriver/Terminator.sys`

### Other components

- **Administrator**
- **Matching Processes**

## Connections

- Administrator → Terminator Application: runs as (evidence: `README.md`)
- Terminator Application → Driver Service: loads driver (evidence: `Terminator/Terminator.cpp`)
- Terminator Application → Driver Device: opens device (evidence: `Terminator/Terminator.cpp`)
- Terminator Application → Driver Device: registers process (evidence: `Terminator/Terminator.cpp`)
- Terminator Application → Process Scan: repeats scan (evidence: `Terminator/Terminator.cpp`)
- Process Scan → Name Matching: checks names (evidence: `Terminator/Terminator.cpp`)
- Name Matching → Matching Processes: selects matches (evidence: `Terminator/Terminator.cpp`)
- Process Scan → Driver Device: requests termination (evidence: `Terminator/Terminator.cpp`)
