# cryptonite-mit/nitectf-2025 architecture

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

- Interactive diagram: https://gitdiagram.com/cryptonite-mit/nitectf-2025
- Repository: https://github.com/cryptonite-mit/nitectf-2025

## Overview

niteCTF 2025 is a collection of challenge source code and solution writeups, not one integrated runtime application. A contestant selects an independent challenge, interacts with its challenge program or artifact, and consults or runs its solution. The graph highlights documented challenge families and sampled runtime paths; directory-level nodes represent other listed challenges whose implementation was not sampled. Edges are limited to relationships visible in excerpts or the README; unsampled challenge-to-solution links are shown as unverified.

Main entry points: [`webex/graph_grief/challenge/server.js`](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/server.js) (GraphQL server), [`crypto/hash_vegas/challenge/chall.py`](https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/chall.py) (Hash Vegas menu), [`webex/graph_grief/challenge/resolvers.js`](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/resolvers.js) (Graph resolvers), [`binex/virtual_rift/solution/vm_src/src/vm.h`](https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/vm.h) (VM runtime API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web challenges"]
  node_web_collection["Web challenge set"]
  node_notes_routes["Notes routes<br/>[app.py]"]
  node_notes_models[("Notes models<br/>[models.py]")]
  node_graph_server["GraphQL server<br/>[server.js]"]
  node_graph_resolvers["Graph resolvers<br/>[resolvers.js]"]
  node_graph_private["Private resolvers"]
  node_graph_data["Graph data<br/>[app-data.js]"]
  node_graph_file["Internal file route<br/>[internal-file.js]"]
  node_graph_xxe["XXE filter<br/>[reject-file-xxe.js]"]
  node_headrest_bot["Admin bot service<br/>[server.js]"]
  node_headrest_browser["Bot browser<br/>[bot.js]"]
end

subgraph group_crypto["Crypto challenges"]
  node_crypto_collection["Crypto challenge set"]
  node_vegas_game["Hash Vegas menu<br/>[chall.py]"]
  node_lottery["Lottery game<br/>[lottery.py]"]
  node_roulette["Roulette game<br/>[roulette.py]"]
  node_slots["Slot machine<br/>[slotmachine.py]"]
end

subgraph group_vm["VM challenges"]
  node_vm_collection["VM challenge set"]
  node_vm_cli["VM program interface<br/>[main.c]"]
  node_vm_api["VM runtime API<br/>[vm.h]"]
  node_vm_cpu["CPU state<br/>[cpu.h]"]
end

subgraph group_other["Other categories"]
  node_other_collection["Other challenge categories"]
  node_other_categories["Other listed families"]
end

node_contestant(("Contestant"))
node_solution_sets["Challenge solutions"]

node_contestant -.->|"selects challenge"| node_web_collection
node_contestant -.->|"selects challenge"| node_crypto_collection
node_contestant -.->|"selects challenge"| node_vm_collection
node_contestant -.->|"selects challenge"| node_other_collection
node_contestant -.->|"selects challenge"| node_other_categories
node_notes_routes -->|"uses models"| node_notes_models
node_graph_server -->|"configures resolvers"| node_graph_resolvers
node_graph_server -->|"mounts route"| node_graph_file
node_graph_server -->|"uses filter"| node_graph_xxe
node_graph_resolvers -->|"creates resolvers"| node_graph_private
node_graph_resolvers -->|"reads data"| node_graph_data
node_headrest_bot -->|"runs bot"| node_headrest_browser
node_vegas_game -->|"calls game"| node_lottery
node_vegas_game -->|"calls game"| node_roulette
node_vegas_game -->|"calls game"| node_slots
node_vm_cli -->|"loads and runs"| node_vm_api
node_vm_api -->|"includes state"| node_vm_cpu
node_contestant -.->|"consults writeups"| node_solution_sets

click node_web_collection "https://github.com/cryptonite-mit/nitectf-2025/tree/main/webex"
click node_notes_routes "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/just_another_notes_app/challenge/app.py"
click node_notes_models "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/just_another_notes_app/challenge/models.py"
click node_graph_server "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/server.js"
click node_graph_resolvers "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/resolvers.js"
click node_graph_private "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/resolvers-private.js"
click node_graph_data "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/app-data.js"
click node_graph_file "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/lib/internal-file.js"
click node_graph_xxe "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/lib/reject-file-xxe.js"
click node_headrest_bot "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/car_seat_headrest/challenge/admin_bot/server.js"
click node_headrest_browser "https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/car_seat_headrest/challenge/admin_bot/bot.js"
click node_crypto_collection "https://github.com/cryptonite-mit/nitectf-2025/tree/main/crypto"
click node_vegas_game "https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/chall.py"
click node_lottery "https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/lottery.py"
click node_roulette "https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/roulette.py"
click node_slots "https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/slotmachine.py"
click node_vm_collection "https://github.com/cryptonite-mit/nitectf-2025/tree/main/binex/virtual_rift/solution/vm_src/src"
click node_vm_cli "https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/main.c"
click node_vm_api "https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/vm.h"
click node_vm_cpu "https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/cpu.h"
click node_other_collection "https://github.com/cryptonite-mit/nitectf-2025/tree/main/ai"
click node_other_categories "https://github.com/cryptonite-mit/nitectf-2025/tree/main/forensics"
click node_solution_sets "https://github.com/cryptonite-mit/nitectf-2025/tree/main/webex"

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_web_collection,node_notes_routes,node_notes_models,node_graph_server,node_graph_resolvers,node_graph_private,node_graph_data,node_graph_file,node_graph_xxe,node_headrest_bot,node_headrest_browser toneBlue
class node_crypto_collection,node_vegas_game,node_lottery,node_roulette,node_slots toneAmber
class node_vm_collection,node_vm_cli,node_vm_api,node_vm_cpu toneMint
class node_other_collection,node_other_categories toneRose
class node_contestant toneIndigo
class node_solution_sets toneTeal
```

## Components

### Web challenges

- [Web challenge set](https://github.com/cryptonite-mit/nitectf-2025/tree/main/webex): `webex`
- [Notes routes](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/just_another_notes_app/challenge/app.py): `webex/just_another_notes_app/challenge/app.py`
- [Notes models](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/just_another_notes_app/challenge/models.py): `webex/just_another_notes_app/challenge/models.py`
- [GraphQL server](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/server.js): `webex/graph_grief/challenge/server.js`
- [Graph resolvers](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/resolvers.js): `webex/graph_grief/challenge/resolvers.js`
- [Private resolvers](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/resolvers-private.js): `webex/graph_grief/challenge/resolvers-private.js`
- [Graph data](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/app-data.js): `webex/graph_grief/challenge/app-data.js`
- [Internal file route](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/lib/internal-file.js): `webex/graph_grief/challenge/lib/internal-file.js`
- [XXE filter](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/graph_grief/challenge/lib/reject-file-xxe.js): `webex/graph_grief/challenge/lib/reject-file-xxe.js`
- [Admin bot service](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/car_seat_headrest/challenge/admin_bot/server.js): `webex/car_seat_headrest/challenge/admin_bot/server.js`
- [Bot browser](https://github.com/cryptonite-mit/nitectf-2025/blob/main/webex/car_seat_headrest/challenge/admin_bot/bot.js): `webex/car_seat_headrest/challenge/admin_bot/bot.js`

### Crypto challenges

- [Crypto challenge set](https://github.com/cryptonite-mit/nitectf-2025/tree/main/crypto): `crypto`
- [Hash Vegas menu](https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/chall.py): `crypto/hash_vegas/challenge/chall.py`
- [Lottery game](https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/lottery.py): `crypto/hash_vegas/challenge/lottery.py`
- [Roulette game](https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/roulette.py): `crypto/hash_vegas/challenge/roulette.py`
- [Slot machine](https://github.com/cryptonite-mit/nitectf-2025/blob/main/crypto/hash_vegas/challenge/slotmachine.py): `crypto/hash_vegas/challenge/slotmachine.py`

### VM challenges

- [VM challenge set](https://github.com/cryptonite-mit/nitectf-2025/tree/main/binex/virtual_rift/solution/vm_src/src): `binex/virtual_rift/solution/vm_src/src`
- [VM program interface](https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/main.c): `binex/virtual_rift/solution/vm_src/src/main.c`
- [VM runtime API](https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/vm.h): `binex/virtual_rift/solution/vm_src/src/vm.h`
- [CPU state](https://github.com/cryptonite-mit/nitectf-2025/blob/main/binex/virtual_rift/solution/vm_src/src/cpu.h): `binex/virtual_rift/solution/vm_src/src/cpu.h`

### Other categories

- [Other challenge categories](https://github.com/cryptonite-mit/nitectf-2025/tree/main/ai): `ai`
- [Other listed families](https://github.com/cryptonite-mit/nitectf-2025/tree/main/forensics): `forensics`

### Other components

- **Contestant**
- [Challenge solutions](https://github.com/cryptonite-mit/nitectf-2025/tree/main/webex): `webex`

## Connections

- Contestant → Web challenge set: selects challenge
- Contestant → Crypto challenge set: selects challenge
- Contestant → VM challenge set: selects challenge
- Contestant → Other challenge categories: selects challenge
- Contestant → Other listed families: selects challenge
- Notes routes → Notes models: uses models (evidence: `webex/just_another_notes_app/challenge/app.py`)
- GraphQL server → Graph resolvers: configures resolvers (evidence: `webex/graph_grief/challenge/server.js`)
- GraphQL server → Internal file route: mounts route (evidence: `webex/graph_grief/challenge/server.js`)
- GraphQL server → XXE filter: uses filter (evidence: `webex/graph_grief/challenge/server.js`)
- Graph resolvers → Private resolvers: creates resolvers (evidence: `webex/graph_grief/challenge/resolvers.js`)
- Graph resolvers → Graph data: reads data (evidence: `webex/graph_grief/challenge/resolvers.js`)
- Admin bot service → Bot browser: runs bot (evidence: `webex/car_seat_headrest/challenge/admin_bot/server.js`)
- Hash Vegas menu → Lottery game: calls game (evidence: `crypto/hash_vegas/challenge/chall.py`)
- Hash Vegas menu → Roulette game: calls game (evidence: `crypto/hash_vegas/challenge/chall.py`)
- Hash Vegas menu → Slot machine: calls game (evidence: `crypto/hash_vegas/challenge/chall.py`)
- VM program interface → VM runtime API: loads and runs (evidence: `binex/virtual_rift/solution/vm_src/src/main.c`)
- VM runtime API → CPU state: includes state (evidence: `binex/virtual_rift/solution/vm_src/src/vm.h`)
- Contestant → Challenge solutions: consults writeups
