# javixeneize/kova architecture

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

- Interactive diagram: https://gitdiagram.com/javixeneize/kova
- Repository: https://github.com/javixeneize/kova

## Overview

Kova is a zero-code runtime IAST/RASP product for Java, Node.js, Python, and Go applications, with a collector and live dashboard. The main workflow instruments an application request, tracks request data through security-sensitive operations, reports findings and route coverage to the collector, and presents them for investigation. The graph preserves the language agents, collector, and dashboard as distinct subsystems. Some agent implementations were not excerpted; their README-documented role is shown without claiming uninspected internal calls.

Main entry points: [`iast_agent/agent.py`](https://github.com/javixeneize/kova/blob/main/iast_agent/agent.py) (Python agent), [`iast_server/app.py`](https://github.com/javixeneize/kova/blob/main/iast_server/app.py) (Collector API), [`agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/RuntimeEngine.java) (Java agent), [`iast_agent/sinks/__init__.py`](https://github.com/javixeneize/kova/blob/main/iast_agent/sinks/__init__.py) (Python sink analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agents["Runtime agents"]
  node_py_agent["Python agent<br/>[agent.py]"]
  node_py_bootstrap["Python bootstrap<br/>[sitecustomize.py]"]
  node_py_hooks["Python framework hooks"]
  node_node_agent["Node.js agent<br/>[agent.js]"]
  node_java_agent["Java agent<br/>[RuntimeEngine.java]"]
  node_go_agent["Go agent and compiler hook<br/>[kova.go]"]
end

subgraph group_analysis["Request analysis"]
  node_py_context["Python request context<br/>[context.py]"]
  node_py_sinks["Python sink analysis<br/>[__init__.py]"]
  node_py_xml["XML parser hooks<br/>[xmlparsers.py]"]
  node_py_frames["Python frame attribution<br/>[frames.py]"]
  node_java_context["Java request context"]
  node_java_context_holder["Java context holder<br/>[ContextHolder.java]"]
end

subgraph group_telemetry["Telemetry and reporting"]
  node_py_routes["Route discovery<br/>[routes.py]"]
  node_py_coverage["Route coverage<br/>[coverage.py]"]
  node_py_reporter["Finding reporter<br/>[reporter.py]"]
  node_py_sender["Python telemetry sender<br/>[sender.py]"]
  node_java_log["Java agent logging<br/>[Log.java]"]
  node_java_sender["Java telemetry sender"]
end

subgraph group_collector["Collector"]
  node_collector_api["Collector API<br/>[app.py]"]
  node_collector_store[("Finding and event store<br/>[store.py]")]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard_app["Dashboard application<br/>[App.vue]"]
  node_dashboard_api["Dashboard API client<br/>[api.js]"]
  node_dashboard_findings["Finding detail view<br/>[FindingDrawer.vue]"]
  node_dashboard_format["Dashboard formatting<br/>[format.js]"]
  node_dashboard_icon["Dashboard icons<br/>[Icon.vue]"]
end

node_app(("Web application"))

node_app -->|"starts with"| node_py_bootstrap
node_py_bootstrap -.->|"loads"| node_py_agent
node_app -->|"runs under"| node_py_agent
node_py_agent -->|"installs"| node_py_hooks
node_py_agent -->|"installs"| node_py_sinks
node_py_hooks -.->|"establishes context"| node_py_context
node_py_sinks -->|"reads sources"| node_py_context
node_py_sinks -->|"records findings"| node_py_reporter
node_py_sinks -->|"wraps parsers"| node_py_xml
node_py_agent -.->|"uses attribution"| node_py_frames
node_py_agent -->|"flushes findings"| node_py_reporter
node_py_agent -->|"flushes coverage"| node_py_coverage
node_py_routes -->|"sends routes"| node_py_sender
node_py_coverage -->|"posts hits"| node_py_sender
node_py_reporter -.->|"sends findings"| node_py_sender
node_app -->|"runs under"| node_node_agent
node_app -->|"runs under"| node_java_agent
node_java_agent -->|"uses context"| node_java_context_holder
node_java_agent -->|"reads request"| node_java_context
node_java_agent -.->|"reports telemetry"| node_java_sender
node_java_agent -.->|"logs"| node_java_log
node_app -->|"builds with"| node_go_agent
node_py_sender -->|"posts telemetry"| node_collector_api
node_java_sender -->|"posts telemetry"| node_collector_api
node_node_agent -->|"sends findings"| node_collector_api
node_go_agent -->|"sends telemetry"| node_collector_api
node_collector_api -->|"reads and writes"| node_collector_store
node_dashboard_app -->|"requests data"| node_dashboard_api
node_dashboard_api -->|"calls API"| node_collector_api
node_dashboard_app -->|"renders details"| node_dashboard_findings
node_dashboard_findings -->|"formats values"| node_dashboard_format
node_dashboard_app -->|"renders icons"| node_dashboard_icon

click node_py_agent "https://github.com/javixeneize/kova/blob/main/iast_agent/agent.py"
click node_py_bootstrap "https://github.com/javixeneize/kova/blob/main/iast_agent/bootstrap/sitecustomize.py"
click node_py_context "https://github.com/javixeneize/kova/blob/main/iast_agent/context.py"
click node_py_hooks "https://github.com/javixeneize/kova/tree/main/iast_agent/frameworks"
click node_py_sinks "https://github.com/javixeneize/kova/blob/main/iast_agent/sinks/__init__.py"
click node_py_xml "https://github.com/javixeneize/kova/blob/main/iast_agent/sinks/xmlparsers.py"
click node_py_frames "https://github.com/javixeneize/kova/blob/main/iast_agent/frames.py"
click node_py_routes "https://github.com/javixeneize/kova/blob/main/iast_agent/routes.py"
click node_py_coverage "https://github.com/javixeneize/kova/blob/main/iast_agent/coverage.py"
click node_py_reporter "https://github.com/javixeneize/kova/blob/main/iast_agent/reporter.py"
click node_py_sender "https://github.com/javixeneize/kova/blob/main/iast_agent/sender.py"
click node_node_agent "https://github.com/javixeneize/kova/blob/main/agents/node/src/agent.js"
click node_java_agent "https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/RuntimeEngine.java"
click node_java_context "https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/context/RequestContext.java"
click node_java_context_holder "https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/context/ContextHolder.java"
click node_java_log "https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/Log.java"
click node_java_sender "https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/telemetry/TelemetrySender.java"
click node_go_agent "https://github.com/javixeneize/kova/blob/main/agents/go/kova.go"
click node_collector_api "https://github.com/javixeneize/kova/blob/main/iast_server/app.py"
click node_collector_store "https://github.com/javixeneize/kova/blob/main/iast_server/store.py"
click node_dashboard_app "https://github.com/javixeneize/kova/blob/main/dashboard/src/App.vue"
click node_dashboard_api "https://github.com/javixeneize/kova/blob/main/dashboard/src/api.js"
click node_dashboard_findings "https://github.com/javixeneize/kova/blob/main/dashboard/src/components/FindingDrawer.vue"
click node_dashboard_format "https://github.com/javixeneize/kova/blob/main/dashboard/src/format.js"
click node_dashboard_icon "https://github.com/javixeneize/kova/blob/main/dashboard/src/components/Icon.vue"

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_py_agent,node_py_bootstrap,node_py_hooks,node_node_agent,node_java_agent,node_go_agent toneBlue
class node_py_context,node_py_sinks,node_py_xml,node_py_frames,node_java_context,node_java_context_holder toneAmber
class node_py_routes,node_py_coverage,node_py_reporter,node_py_sender,node_java_log,node_java_sender toneMint
class node_collector_api,node_collector_store toneRose
class node_dashboard_app,node_dashboard_api,node_dashboard_findings,node_dashboard_format,node_dashboard_icon,node_app toneIndigo
```

## Components

### Runtime agents

- [Python agent](https://github.com/javixeneize/kova/blob/main/iast_agent/agent.py): `iast_agent/agent.py`
- [Python bootstrap](https://github.com/javixeneize/kova/blob/main/iast_agent/bootstrap/sitecustomize.py): `iast_agent/bootstrap/sitecustomize.py`
- [Python framework hooks](https://github.com/javixeneize/kova/tree/main/iast_agent/frameworks): `iast_agent/frameworks`
- [Node.js agent](https://github.com/javixeneize/kova/blob/main/agents/node/src/agent.js): `agents/node/src/agent.js`
- [Java agent](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/RuntimeEngine.java): `agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`
- [Go agent and compiler hook](https://github.com/javixeneize/kova/blob/main/agents/go/kova.go): `agents/go/kova.go`

### Request analysis

- [Python request context](https://github.com/javixeneize/kova/blob/main/iast_agent/context.py): `iast_agent/context.py`
- [Python sink analysis](https://github.com/javixeneize/kova/blob/main/iast_agent/sinks/__init__.py): `iast_agent/sinks/__init__.py`
- [XML parser hooks](https://github.com/javixeneize/kova/blob/main/iast_agent/sinks/xmlparsers.py): `iast_agent/sinks/xmlparsers.py`
- [Python frame attribution](https://github.com/javixeneize/kova/blob/main/iast_agent/frames.py): `iast_agent/frames.py`
- [Java request context](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/context/RequestContext.java): `agents/java/src/main/java/io/kova/agent/context/RequestContext.java`
- [Java context holder](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/context/ContextHolder.java): `agents/java/src/main/java/io/kova/agent/context/ContextHolder.java`

### Telemetry and reporting

- [Route discovery](https://github.com/javixeneize/kova/blob/main/iast_agent/routes.py): `iast_agent/routes.py`
- [Route coverage](https://github.com/javixeneize/kova/blob/main/iast_agent/coverage.py): `iast_agent/coverage.py`
- [Finding reporter](https://github.com/javixeneize/kova/blob/main/iast_agent/reporter.py): `iast_agent/reporter.py`
- [Python telemetry sender](https://github.com/javixeneize/kova/blob/main/iast_agent/sender.py): `iast_agent/sender.py`
- [Java agent logging](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/Log.java): `agents/java/src/main/java/io/kova/agent/Log.java`
- [Java telemetry sender](https://github.com/javixeneize/kova/blob/main/agents/java/src/main/java/io/kova/agent/telemetry/TelemetrySender.java): `agents/java/src/main/java/io/kova/agent/telemetry/TelemetrySender.java`

### Collector

- [Collector API](https://github.com/javixeneize/kova/blob/main/iast_server/app.py): `iast_server/app.py`
- [Finding and event store](https://github.com/javixeneize/kova/blob/main/iast_server/store.py): `iast_server/store.py`

### Dashboard

- [Dashboard application](https://github.com/javixeneize/kova/blob/main/dashboard/src/App.vue): `dashboard/src/App.vue`
- [Dashboard API client](https://github.com/javixeneize/kova/blob/main/dashboard/src/api.js): `dashboard/src/api.js`
- [Finding detail view](https://github.com/javixeneize/kova/blob/main/dashboard/src/components/FindingDrawer.vue): `dashboard/src/components/FindingDrawer.vue`
- [Dashboard formatting](https://github.com/javixeneize/kova/blob/main/dashboard/src/format.js): `dashboard/src/format.js`
- [Dashboard icons](https://github.com/javixeneize/kova/blob/main/dashboard/src/components/Icon.vue): `dashboard/src/components/Icon.vue`

### Other components

- **Web application**

## Connections

- Web application → Python bootstrap: starts with
- Python bootstrap → Python agent: loads
- Web application → Python agent: runs under
- Python agent → Python framework hooks: installs (evidence: `iast_agent/agent.py`)
- Python agent → Python sink analysis: installs (evidence: `iast_agent/agent.py`)
- Python framework hooks → Python request context: establishes context (evidence: `iast_agent/frameworks/lambda_hooks.py`)
- Python sink analysis → Python request context: reads sources (evidence: `iast_agent/sinks/__init__.py`)
- Python sink analysis → Finding reporter: records findings (evidence: `iast_agent/sinks/__init__.py`)
- Python sink analysis → XML parser hooks: wraps parsers (evidence: `iast_agent/sinks/xmlparsers.py`)
- Python agent → Python frame attribution: uses attribution
- Python agent → Finding reporter: flushes findings (evidence: `iast_agent/agent.py`)
- Python agent → Route coverage: flushes coverage (evidence: `iast_agent/agent.py`)
- Route discovery → Python telemetry sender: sends routes (evidence: `iast_agent/routes.py`)
- Route coverage → Python telemetry sender: posts hits (evidence: `iast_agent/coverage.py`)
- Finding reporter → Python telemetry sender: sends findings
- Web application → Node.js agent: runs under
- Web application → Java agent: runs under
- Java agent → Java context holder: uses context (evidence: `agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`)
- Java agent → Java request context: reads request (evidence: `agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`)
- Java agent → Java telemetry sender: reports telemetry (evidence: `agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`)
- Java agent → Java agent logging: logs (evidence: `agents/java/src/main/java/io/kova/agent/RuntimeEngine.java`)
- Web application → Go agent and compiler hook: builds with
- Python telemetry sender → Collector API: posts telemetry
- Java telemetry sender → Collector API: posts telemetry
- Node.js agent → Collector API: sends findings
- Go agent and compiler hook → Collector API: sends telemetry
- Collector API → Finding and event store: reads and writes (evidence: `iast_server/app.py`)
- Dashboard application → Dashboard API client: requests data (evidence: `dashboard/src/App.vue`)
- Dashboard API client → Collector API: calls API
- Dashboard application → Finding detail view: renders details (evidence: `dashboard/src/App.vue`)
- Finding detail view → Dashboard formatting: formats values (evidence: `dashboard/src/components/FindingDrawer.vue`)
- Dashboard application → Dashboard icons: renders icons (evidence: `dashboard/src/App.vue`)
