PR
PRISONSECURITY NETWORK
⚡DETONATE PR
◆ PRISON DOCUMENTATION◆ ARCHITECTURE SPECIFICATION◆ FIRECRACKER MICROVM◆ EBPF OBSERVATION◆ ANAKIN AI REPAIR◆ PRISON DOCUMENTATION◆ ARCHITECTURE SPECIFICATION◆ FIRECRACKER MICROVM◆ EBPF OBSERVATION◆ ANAKIN AI REPAIR
DOCUMENTATION

PRISON DEVELOPER DOCS

Everything you need to understand, configure, and extend the PRISON security platform.

1. OVERVIEW

PRISON (Pull Request Isolation & Security Observation Network) is an autonomous DevSecOps platform that detonates every incoming GitHub Pull Request inside an ephemeral Firecracker microVM, traces its execution at the Linux kernel level using eBPF probes, catches credential theft via synthetic honeypots, and uses an AI agent (ANAKIN) to generate and commit remediation patches automatically.

2. ARCHITECTURE TRACKS

MANTITUP

// MicroVM Engine

Provisions ephemeral Firecracker microVMs in under 150ms. Seeds synthetic honeypot credentials into the execution environment. Enforces hard network isolation and CPU/memory quotas.

OSEN

// eBPF Kernel Probes

Attaches BPF tracepoints to sys_enter_execve, sys_enter_connect, and sys_enter_openat. Captures raw ring buffer events and streams them into the TRACECOMMON pipeline.

TRACECOMMON

// Telemetry Pipeline

:8001

Normalizes raw eBPF events into typed NormalizedEvent objects. Classifies risk levels (CLEAN, HONEYPOT_HIT, UNAUTHORIZED_SOCKET, SUSPICIOUS_EXEC). Builds an ExecutionDAG.

ANAKIN

// AI Remediation Agent

Evaluates the ExecutionDAG using rule-based scoring (Rule R08 confidence gating) or an LLM provider. Generates unified diff patches and pushes them to GitHub via API.

3. API REFERENCE

METHODPATHSERVICEDESCRIPTION
POST/api/v1/webhook/github
Orchestrator
:8000
Receives GitHub PR webhook payload. Verifies HMAC-SHA256 signature. Queues detonation job. Returns HTTP 202.
GET/api/v1/telemetry/events
Telemetry
:8001
Returns all in-memory telemetry events and payloads ingested since last restart.
POST/api/v1/telemetry/events
Telemetry
:8001
Ingests a TelemetryEventPayload. Triggers TRACECOMMON normalization and ANAKIN triage in background task.
GET/health
Both services
Health check endpoint. Returns {"status": "healthy"}.

4. USING THE SANDBOX

1

Navigate to the Sandbox page from the navbar.

2

Paste a GitHub Pull Request URL (e.g. https://github.com/org/repo/pull/42) into the input field.

3

Configure the toggles: Inject Honeypots, Block Outbound Sockets, Bypass Cache.

4

Click ⚡ Detonate in MicroVM to start the pipeline.

5

Watch the left terminal panel for live pipeline logs and the right panel for real-time eBPF kernel events.

6

After analysis, review the TRACECOMMON Attack Graph. Click nodes to inspect syscall details.

7

If a threat is detected, review the ANAKIN-generated unified diff patch.

8

Click ✨ Commit Patch & Merge to push the fix to the developer's branch, or ✕ Reject & Close PR.

5. ENVIRONMENT VARIABLES

VARIABLEDESCRIPTION
GITHUB_WEBHOOK_SECRETHMAC secret for verifying GitHub webhook signatures.
GITHUB_TOKENPersonal access token for committing patches and managing PRs.
OPENAI_API_KEY(Optional) OpenAI key for ANAKIN LLM triage. Falls back to rule-based.
ANTHROPIC_API_KEY(Optional) Anthropic key as alternative LLM provider.