# xanthorox/neuroxss architecture

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

- Interactive diagram: https://gitdiagram.com/xanthorox/neuroxss
- Repository: https://github.com/xanthorox/neuroxss

## Overview

NeuroXSS is a web application XSS scanner whose defining workflow is context-aware probing, payload compilation and injection, followed by headless-browser execution verification before reporting evidence. The README also describes attack-surface discovery, adaptive bypasses, and eight specialized detection capabilities. Only README.md is present in the supplied tree, so nodes represent documented product responsibilities rather than verified implementation modules; relationships below are limited to README statements.

Main entry points: [`README.md`](https://github.com/xanthorox/neuroxss/blob/main/README.md) (NeuroXSS scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Verification workflow"]
  node_scanner["NeuroXSS scanner<br/>[README.md]"]
  node_probe["Context probe<br/>[README.md]"]
  node_compiler["JIT payload compiler<br/>[README.md]"]
  node_injector["Network injector<br/>[README.md]"]
  node_browser["Headless browser"]
  node_ghosthook["Ghost Hook<br/>[README.md]"]
  node_verification["Execution verification<br/>[README.md]"]
  node_evidence["Execution evidence<br/>[README.md]"]
end

subgraph group_payloads["Payload adaptation"]
  node_bypass["Adaptive bypass<br/>[README.md]"]
  node_sanitizers["Sanitizer detection<br/>[README.md]"]
end

subgraph group_advanced["Specialized detection"]
  node_domclobber["DOM clobbering<br/>[README.md]"]
  node_mxss["Mutation XSS<br/>[README.md]"]
  node_csti["Template injection<br/>[README.md]"]
  node_postmessage["PostMessage XSS<br/>[README.md]"]
  node_serviceworker["Service worker hijacking<br/>[README.md]"]
  node_websocket["WebSocket XSS<br/>[README.md]"]
  node_graphql["GraphQL XSS<br/>[README.md]"]
  node_csp["CSP bypass intelligence<br/>[README.md]"]
end

subgraph group_discovery["Attack surface"]
  node_crawler["Smart crawler<br/>[README.md]"]
  node_fuzzer["Parameter fuzzing<br/>[README.md]"]
end

node_operator(("Scan operator"))

node_operator -->|"initiates scan"| node_scanner
node_scanner -->|"starts workflow"| node_probe
node_probe -->|"informs compilation"| node_compiler
node_compiler -->|"supplies payload"| node_injector
node_injector -->|"injects payload"| node_browser
node_browser -->|"runs with hook"| node_ghosthook
node_ghosthook -->|"monitors execution"| node_verification
node_verification -->|"captures proof"| node_evidence
node_scanner -->|"discovers pages"| node_crawler
node_scanner -->|"fuzzes parameters"| node_fuzzer
node_compiler -->|"evolves payloads"| node_bypass
node_scanner -->|"detects sanitizers"| node_sanitizers

click node_scanner "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_probe "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_compiler "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_injector "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_ghosthook "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_verification "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_evidence "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_bypass "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_sanitizers "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_domclobber "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_mxss "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_csti "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_postmessage "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_serviceworker "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_websocket "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_graphql "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_csp "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_crawler "https://github.com/xanthorox/neuroxss/blob/main/README.md"
click node_fuzzer "https://github.com/xanthorox/neuroxss/blob/main/README.md"

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_scanner,node_probe,node_compiler,node_injector,node_browser,node_ghosthook,node_verification,node_evidence toneBlue
class node_bypass,node_sanitizers toneAmber
class node_domclobber,node_mxss,node_csti,node_postmessage,node_serviceworker,node_websocket,node_graphql,node_csp toneMint
class node_crawler,node_fuzzer toneRose
class node_operator toneIndigo
```

## Components

### Verification workflow

- [NeuroXSS scanner](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Context probe](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [JIT payload compiler](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Network injector](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- **Headless browser**
- [Ghost Hook](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Execution verification](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Execution evidence](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`

### Payload adaptation

- [Adaptive bypass](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Sanitizer detection](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`

### Specialized detection

- [DOM clobbering](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Mutation XSS](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Template injection](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [PostMessage XSS](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Service worker hijacking](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [WebSocket XSS](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [GraphQL XSS](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [CSP bypass intelligence](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`

### Attack surface

- [Smart crawler](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`
- [Parameter fuzzing](https://github.com/xanthorox/neuroxss/blob/main/README.md): `README.md`

### Other components

- **Scan operator**

## Connections

- Scan operator → NeuroXSS scanner: initiates scan (evidence: `README.md`)
- NeuroXSS scanner → Context probe: starts workflow (evidence: `README.md`)
- Context probe → JIT payload compiler: informs compilation (evidence: `README.md`)
- JIT payload compiler → Network injector: supplies payload (evidence: `README.md`)
- Network injector → Headless browser: injects payload (evidence: `README.md`)
- Headless browser → Ghost Hook: runs with hook (evidence: `README.md`)
- Ghost Hook → Execution verification: monitors execution (evidence: `README.md`)
- Execution verification → Execution evidence: captures proof (evidence: `README.md`)
- NeuroXSS scanner → Smart crawler: discovers pages (evidence: `README.md`)
- NeuroXSS scanner → Parameter fuzzing: fuzzes parameters (evidence: `README.md`)
- JIT payload compiler → Adaptive bypass: evolves payloads (evidence: `README.md`)
- NeuroXSS scanner → Sanitizer detection: detects sanitizers (evidence: `README.md`)
