AI RUNTIME SECURITY / OPEN-SOURCE RESEARCH PROTOTYPE
Voreenth.
Before inference.
Inspect the prompt.
Enforce the policy.
Then invoke the model.
Building Voreenth: rethinking runtime security for large language models (LLMs). A dedicated policy layer evaluates submitted prompts before the selected model is called.
Research prototype · Python · Streamlit · SQLite
01 / THE ARCHITECTURAL PROBLEM
The prompt is
a security boundary.
An AI application can authenticate its user and still receive a request that attempts to redirect the model, expose sensitive information or bypass policy.
Identity, application, network and cloud controls remain essential. Prompt inspection adds a decision point within the AI request path, where the application can evaluate input before inference: the model’s generation of a response.
I built Voreenth to demonstrate this separation of responsibilities. The policy layer decides whether a submitted request can proceed. The model generates the response for requests that pass the configured checks.
APPLICATION WITHOUT A PROMPT GATE
User → Application → Model → Response
The model receives the submitted prompt without a dedicated pre-inference policy decision in this simplified path.
THE VOREENTH PATTERN
User → Application → Policy gate → Model
Requests classified as blocked stop before the model call. An allow decision means the configured checks passed, not that the request is proven safe.
Conceptual comparison of request paths. These diagrams do not describe every control in an enterprise deployment.
PROJECT WALKTHROUGH
DESIGN → IMPLEMENTATION → DEMONSTRATIONSee the pattern
in practice.
Follow the technical walkthrough, then explore the prototype and its implementation.
Use synthetic prompts when exploring the public demo. The prototype records request content in local telemetry.
YouTube player · Playback starts only when you choose to play.
Watch the technical walkthrough on YouTube02 / A DIFFERENT SECURITY PATTERN
A policy decision.
Before a model call.
Voreenth acts as a Policy Enforcement Point (PEP): the component that applies an allow or block decision to the request path.
The prototype implements this gate inside the Streamlit application. Its detection and scoring logic are separate from model generation. This demonstrates a gateway pattern; it does not establish a hardened, independently deployed enterprise gateway.
- 01SubmitUser prompt through Streamlit
- 02InspectNormalize and match patterns
- 03ScoreAggregate weighted detections
- 04DecideApply the policy threshold
ALLOW / SCORE BELOW 50
Forward to the selected backend.
Cloud or local inference, or simulation mode without a real model call.
BLOCK / SCORE 50 OR ABOVE
Stop before inference.
The application does not call the model for the blocked request.
Logging is attempted after the decision and, for allowed requests, after backend handling. A logging failure is reported separately.
Keep enforcement outside generation.
The model does not decide whether the application invokes it. The application enforces the policy result before making that call.
Model safeguards remain valuable. Input inspection complements them and needs additional controls around output handling, identity, tool privileges and data access.
Inspect the original architecture illustration

03 / RUNTIME DETECTION PIPELINE
Inspect the input.
Combine the signals.
Deterministic pattern matching makes the prototype’s policy decisions inspectable.
Each matched category adds a fixed weight. The total is capped at 100, mapped to a severity and compared with the enforcement threshold. This is a heuristic score, not a calibrated probability of compromise.
First, normalize for inspection.
The engine uses Unicode NFKC normalization, lowercasing, whitespace and separator handling, selected spelling corrections, and basic character substitutions. It checks some value patterns against the raw input as well. Allowed requests are sent using the original trimmed prompt.
Why normalization has limits
Normalization can expose known obfuscations, but substitutions can also change meaning and produce false matches. Novel phrasing, multilingual input and encoded content can evade a finite pattern set. Detection reliability requires evaluation against representative benign and adversarial inputs.
- Prompt injection
- Patterns that attempt to override instructions or bypass policy.
- +70
- System prompt extraction
- Requests to reveal protected system or developer instructions.
- +65
- Environment reconnaissance
- Attempts to enumerate runtime details, files or environment variables.
- +60
- Secrets & credentials
- Recognizable secret values and requests to retrieve credentials.
- +70 each
- Sensitive personal data
- Selected personally identifiable information (PII) formats and retrieval requests.
- +50 / +55
- Oversized input
- Prompts longer than 3,000 characters. Length alone does not trigger a block.
- +15
Secret exposure and extraction are separate checks; personal data values and requests are also scored separately.
Read the scoring example and severity bands
Illustrative calculation: a prompt matching injection (+70) and reconnaissance (+60) produces a capped score of 100 and a BLOCK decision. This is an explanation of the rules, not a measured detection result.
Low: 0–24. Medium: 25–49. High: 50–79. Critical: 80–100. The policy blocks High and Critical scores. Adding signals broadens the rule evaluation; it does not provide semantic understanding of every request.
OPERATIONAL VISIBILITY
Make the decision
inspectable.
Runtime security telemetry connects a request to its policy result and enforcement reason.
The prototype records request context in SQLite and presents it in an interactive dashboard. This supports investigation of prototype behavior; local records alone do not establish tamper resistance, durable retention or enterprise audit readiness.

Recorded context
Timestamp, submitted prompt, risk score, severity, policy decision, detection categories, enforcement reasons, model backend for allowed requests, and a response preview or block message.
Operational considerations
Prompt content and response previews can contain sensitive data. A production design would need access controls, minimization or redaction, retention policy, protected storage and monitoring for failed writes.
MODEL-AGNOSTIC BY DESIGN
One policy layer.
Distinct backends.
Separate the inspection workflow from the inference provider.
The application exposes cloud-hosted inference, local Ollama and simulation modes. Availability depends on configuration, credentials and backend connectivity. Simulation demonstrates the workflow without establishing real inference performance.

04 / IMPLEMENTATION, EVIDENCE & LIMITS
A working pattern.
A bounded claim.
Voreenth is an open-source research prototype for exploring runtime AI security.
I have made the source and demonstration available so you can explore the implementation. Detection accuracy, bypass resistance and scalability remain areas for further evaluation.
Implemented in the prototype
- Runtime prompt inspection and normalization.
- Injection, extraction, reconnaissance, secret and selected sensitive-data checks.
- Risk scoring and allow/block enforcement.
- Local SQLite telemetry and an interactive security dashboard.
- Cloud inference, local Ollama and simulation modes.
Areas for further validation
- Coverage of all prompt-injection or data-exposure techniques.
- Measured false-positive or false-negative rates.
- Protection of every model endpoint or tool execution path.
- Enterprise isolation, audit integrity or high availability.
- Performance under production load.
Future direction: identity, policy and operations
Potential work includes Policy-as-Code, adaptive risk scoring, session isolation, Microsoft Entra ID, Azure Key Vault, Microsoft Sentinel, enterprise role-based access control (RBAC), multi-provider routing and broader SIEM integration. These are prospective directions, not current enterprise capabilities.
Future direction: agents and retrieved content
Agent runtime protection, Model Context Protocol (MCP) security controls and retrieval-augmented generation (RAG) inspection are future areas of exploration. Agent tool calls and externally retrieved content introduce additional boundaries beyond the submitted user prompt.
Technical context
Input filtering is one layer of defense. OWASP also identifies output validation, least privilege and controls for indirect injection as relevant mitigations. Voreenth’s pre-inference gate should be evaluated within that wider system.
THE DESIGN PRINCIPLE
Treat prompts as untrusted input.
Make enforcement explicit.
Inspect. Score. Enforce. Record the decision.
Voreenth makes this sequence visible before model inference.