# zigzagboi1/ps5-14.10-research architecture

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

- Interactive diagram: https://gitdiagram.com/zigzagboi1/ps5-14.10-research
- Repository: https://github.com/zigzagboi1/ps5-14.10-research

## Overview

This repository documents and coordinates PS5 firmware 14.10 kernel-exploit research. The main workflow is to develop Lua probes, send them through the loader, inspect results, and use findings to pursue kernel memory access. Its probes span system reconnaissance, kernel objects, signals, IPC/networking, heap/ROP, and KASLR; a separate swarm automates research, probe execution, and result analysis. The graph also includes the documented network-fuzzing session tools. Source excerpts show swarm and session wiring, but not probe internals, so those relationships follow the README or are omitted.

Main entry points: [`swarm/swarm.py`](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/swarm.py) (Swarm coordinator), [`swarm/ps5_connection.py`](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ps5_connection.py) (PS5 connection), [`swarm/agents.py`](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/agents.py) (Research agents), [`swarm/task_queue.py`](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/task_queue.py) (Task queue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Exploit research"]
  node_probe_phases["Probe phases"]
  node_heap_kaslr["Heap and KASLR"]
  node_kernel_goal["Kernel R/W goal"]
  node_docs_findings["Research findings<br/>[FINDINGS.md]"]
end

subgraph group_swarm["Research swarm"]
  node_swarm_main["Swarm coordinator<br/>[swarm.py]"]
  node_agent_roles["Research agents<br/>[agents.py]"]
  node_agent_base["Agent runtime<br/>[agent_base.py]"]
  node_task_queue[("Task queue<br/>[task_queue.py]")]
  node_ai_client["AI client<br/>[ai_client.py]"]
  node_swarm_config["Swarm config<br/>[config.py]"]
  node_dashboard["Swarm dashboard<br/>[dashboard.py]"]
end

subgraph group_execution["Probe execution"]
  node_ps5_connection["PS5 connection<br/>[ps5_connection.py]"]
  node_recovery["Crash recovery<br/>[ps5_recovery.py]"]
  node_probe_sender["Probe sender tools<br/>[send_probe.py]"]
end

subgraph group_network["Network testing"]
  node_session_driver["Session driver<br/>[run_session40.py]"]
  node_tcp_fuzzer["TCP fuzz server<br/>[tcp_fuzz_server.py]"]
  node_fragment_injector["IP fragment injector"]
end

node_researcher(("Researcher"))
node_lua_loader["Lua loader"]
node_ps5(("PS5 target"))
node_model_service["OpenCode CLI"]

node_researcher -->|"develops probes"| node_probe_phases
node_probe_phases -->|"sent through"| node_lua_loader
node_lua_loader -->|"executes on"| node_ps5
node_probe_phases -->|"advances toward"| node_heap_kaslr
node_heap_kaslr -->|"targets"| node_kernel_goal
node_researcher -->|"records findings"| node_docs_findings
node_swarm_main -->|"loads settings"| node_swarm_config
node_swarm_main -->|"creates"| node_task_queue
node_swarm_main -->|"creates"| node_ps5_connection
node_swarm_main -->|"creates"| node_recovery
node_swarm_main -->|"spawns"| node_agent_roles
node_swarm_main -->|"provides clients"| node_ai_client
node_agent_roles -->|"extends"| node_agent_base
node_agent_base -->|"claims tasks"| node_task_queue
node_agent_base -->|"completes tasks"| node_task_queue
node_agent_roles -->|"requests model work"| node_ai_client
node_agent_roles -->|"sends probes"| node_ps5_connection
node_ps5_connection -->|"sends Lua"| node_lua_loader
node_ps5_connection -->|"checks and probes"| node_ps5
node_recovery -->|"checks health"| node_ps5_connection
node_ai_client -->|"invokes CLI"| node_model_service
node_dashboard -->|"reads queue file"| node_task_queue
node_researcher -->|"starts session"| node_session_driver
node_session_driver -->|"uses server"| node_tcp_fuzzer
node_researcher -.->|"runs packet tests"| node_fragment_injector
node_researcher -->|"sends probes"| node_probe_sender

click node_probe_phases "https://github.com/zigzagboi1/ps5-14.10-research/tree/master/probes"
click node_heap_kaslr "https://github.com/zigzagboi1/ps5-14.10-research/tree/master/probes/phase7_heap_exploitation"
click node_docs_findings "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/docs/FINDINGS.md"
click node_swarm_main "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/swarm.py"
click node_agent_roles "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/agents.py"
click node_agent_base "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/agent_base.py"
click node_task_queue "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/task_queue.py"
click node_ai_client "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ai_client.py"
click node_swarm_config "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/config.py"
click node_ps5_connection "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ps5_connection.py"
click node_recovery "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ps5_recovery.py"
click node_session_driver "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/run_session40.py"
click node_tcp_fuzzer "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/tcp_fuzz_server.py"
click node_fragment_injector "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/ip_fragment_inject.py"
click node_probe_sender "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/send_probe.py"
click node_dashboard "https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/dashboard.py"

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_probe_phases,node_heap_kaslr,node_kernel_goal,node_docs_findings toneBlue
class node_swarm_main,node_agent_roles,node_agent_base,node_task_queue,node_ai_client,node_swarm_config,node_dashboard toneAmber
class node_ps5_connection,node_recovery,node_probe_sender toneMint
class node_session_driver,node_tcp_fuzzer,node_fragment_injector toneRose
class node_researcher,node_lua_loader,node_ps5,node_model_service toneIndigo
```

## Components

### Exploit research

- [Probe phases](https://github.com/zigzagboi1/ps5-14.10-research/tree/master/probes): `probes`
- [Heap and KASLR](https://github.com/zigzagboi1/ps5-14.10-research/tree/master/probes/phase7_heap_exploitation): `probes/phase7_heap_exploitation`
- **Kernel R/W goal**
- [Research findings](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/docs/FINDINGS.md): `docs/FINDINGS.md`

### Research swarm

- [Swarm coordinator](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/swarm.py): `swarm/swarm.py`
- [Research agents](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/agents.py): `swarm/agents.py`
- [Agent runtime](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/agent_base.py): `swarm/agent_base.py`
- [Task queue](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/task_queue.py): `swarm/task_queue.py`
- [AI client](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ai_client.py): `swarm/ai_client.py`
- [Swarm config](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/config.py): `swarm/config.py`
- [Swarm dashboard](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/dashboard.py): `swarm/dashboard.py`

### Probe execution

- [PS5 connection](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ps5_connection.py): `swarm/ps5_connection.py`
- [Crash recovery](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/swarm/ps5_recovery.py): `swarm/ps5_recovery.py`
- [Probe sender tools](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/send_probe.py): `tools/send_probe.py`

### Network testing

- [Session driver](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/run_session40.py): `tools/run_session40.py`
- [TCP fuzz server](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/tcp_fuzz_server.py): `tools/tcp_fuzz_server.py`
- [IP fragment injector](https://github.com/zigzagboi1/ps5-14.10-research/blob/master/tools/ip_fragment_inject.py): `tools/ip_fragment_inject.py`

### Other components

- **Researcher**
- **Lua loader**
- **PS5 target**
- **OpenCode CLI**

## Connections

- Researcher → Probe phases: develops probes (evidence: `README.md`)
- Probe phases → Lua loader: sent through (evidence: `README.md`)
- Lua loader → PS5 target: executes on (evidence: `README.md`)
- Probe phases → Heap and KASLR: advances toward (evidence: `README.md`)
- Heap and KASLR → Kernel R/W goal: targets (evidence: `README.md`)
- Researcher → Research findings: records findings (evidence: `README.md`)
- Swarm coordinator → Swarm config: loads settings (evidence: `swarm/swarm.py`)
- Swarm coordinator → Task queue: creates (evidence: `swarm/swarm.py`)
- Swarm coordinator → PS5 connection: creates (evidence: `swarm/swarm.py`)
- Swarm coordinator → Crash recovery: creates (evidence: `swarm/swarm.py`)
- Swarm coordinator → Research agents: spawns (evidence: `swarm/swarm.py`)
- Swarm coordinator → AI client: provides clients (evidence: `swarm/swarm.py`)
- Research agents → Agent runtime: extends (evidence: `swarm/agents.py`)
- Agent runtime → Task queue: claims tasks (evidence: `swarm/agent_base.py`)
- Agent runtime → Task queue: completes tasks (evidence: `swarm/agent_base.py`)
- Research agents → AI client: requests model work (evidence: `swarm/agents.py`)
- Research agents → PS5 connection: sends probes (evidence: `swarm/agents.py`)
- PS5 connection → Lua loader: sends Lua (evidence: `swarm/ps5_connection.py`)
- PS5 connection → PS5 target: checks and probes (evidence: `swarm/ps5_connection.py`)
- Crash recovery → PS5 connection: checks health (evidence: `swarm/ps5_recovery.py`)
- AI client → OpenCode CLI: invokes CLI (evidence: `swarm/ai_client.py`)
- Swarm dashboard → Task queue: reads queue file (evidence: `swarm/dashboard.py`)
- Researcher → Session driver: starts session (evidence: `README.md`)
- Session driver → TCP fuzz server: uses server (evidence: `tools/run_session40.py`)
- Researcher → IP fragment injector: runs packet tests
- Researcher → Probe sender tools: sends probes (evidence: `README.md`)
