shophelper-localSANDBOXED
Architecture & Runbookv0.1.0

RAVEN System Architecture

Bounded, human-supervised security regression testing for agentic LLM applications. RAVEN autonomously attacks targets, verifies failures deterministically, proposes diffs, guards operator approvals against race conditions, and persists regression suites to prevent vulnerability regressions.

1. Bounded Multi-Agent Lifecycle

Recon AgentPHASE 1

Probes the target application to identify system prompt fingerprint, tools, parameter signatures, and active canary tokens.

Attacker AgentPHASE 2

Dispatches targeted evasion attempts across 4 attack categories using adaptive prompt mutations and role-play injection payloads.

Dual-Judge EnginePHASE 3

Combines deterministic regex/token signal checks with an LLM judge to classify verdicts (confirmed failure, attack blocked, or needs review).

Hardener & GatekeeperPHASE 4

Synthesizes minimal system prompt diffs and tool authorization policies. Gated behind atomic human approval with HTTP 409 concurrency guards.

2. Evaluated Threat Vectors

Direct Injection (OWASP LLM01)

Payloads designed to hijack control flow, override safety guidelines, or force compliance via adversarial roleplay or developer mode bypasses.

Canary Leakage (OWASP LLM06)

Probes seeking disclosure of embedded system canary tokens, revealing unredacted system prompt instructions or internal deployment configurations.

Sensitive Data & PII (OWASP LLM02)

Extraction attempts targeting customer payment details, credentials, session tokens, or unredacted personal identifiers.

Tool Misuse & Unsafe Execution (OWASP LLM08)

Coercing the assistant into executing unauthorized state-changing tool calls (such as processing refunds or changing shipping addresses without customer verification).

3. Enterprise Idempotency & Tamper-Proof Audit

Atomic Approval Concurrency Guard (HTTP 409)

When multiple operators or automated CI triggers simultaneously click approve on hardening proposals, the control plane uses an atomic compare-and-swap transition (status = 'awaiting_approval'). Only the winning call initiates the retest pipeline; all racing duplicate requests return HTTP 409 Conflict.

Cryptographic SHA-256 Audit Endpoint

Auditors can query GET /api/scans/:id/artifacts/:artifact_id/verify to cryptographically verify that report artifacts (SARIF, JSON, Markdown) and transcripts exactly match their runtime execution digests.