Getting Started
Start on the hosted service or self-host
Create your account
Sign up at app.g8kepr.com/auth/signup with email + password, or single sign-on via Google, GitHub, or Microsoft. A 30-day Team trial (extend to 90 days free) is provisioned automatically — no credit card required.
Create an API key
In the dashboard, open Dashboard → API Keys (/dashboard/api-keys) and create a key. Keys are formatted gk_org_<org8>_<token> and are shown only once at creation — copy it somewhere safe. Each key carries a scope: read, write, or admin. Send it either as Authorization: Bearer <key> or as an X-API-Key: <key> header.
Connect an LLM provider (BYOK)
Before completions will work, add your own upstream provider key (for example your OpenAI or Anthropic key) under Dashboard → AI Gateway → Providers. Bring-your-own-key means G8KEPR uses your key to reach the model, so your provider spend and data stay on your own account.
Required before your first completion
Send your first request
POST to the gateway completions endpoint with your API key as a Bearer token. provider, model, and messages are the essentials; max_tokens, temperature, stream, tools, conversation_id, and sources (for RAG grounding) are optional.
curl -X POST https://api.g8kepr.com/api/v1/gateway/completions \
-H "Authorization: Bearer gk_org_ab12cd34_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"provider": "openai",
"model": "gpt-4o-mini",
"messages": [
{ "role": "user", "content": "Hello, G8KEPR!" }
]
}'The gateway returns its own response envelope — content is a top-level string. This is not the OpenAI response shape, so it is not a drop-in base_url swap.
{
"request_id": "req_9f2c8ab1",
"provider": "openai",
"model": "gpt-4o-mini",
"content": "Hello! How can I help you today?",
"finish_reason": "stop",
"usage": { "prompt_tokens": 12, "completion_tokens": 9, "total_tokens": 21 },
"cost_usd": 0.0000042,
"latency_ms": 512,
"verification": null,
"response_filter": null
}See your results
Open Dashboard → AI Gateway for request Analytics and Costs, and Dashboard → Security for any threats detected on your traffic.
Plans & billing
Every account starts on a 30-day Team trial (extend to 90 days free). Upgrade, downgrade, or add payment details anytime under Dashboard → Billing.
| Plan | Price | Findings / mo | Highlights |
|---|---|---|---|
| Community | $0 | 100K | All 4 pillars · 1 sensor · self-hosted (free signed licence) |
| Team | $2,000 / month | 10M | All 4 pillars · 15 sensors · self-hosted or hosted |
| Enterprise | Contact sales | Custom | SSO/SAML · BAA/DPA · on-prem / air-gap |
Self-Hosted
Architecture Overview
Customer-VPC Topology
Customer-VPC Topology (v1 self-hosted)
Everything inside the dashed border runs in the customer's own network. G8KEPR has no inbound access.
Sensors (stateless, independent, per-detector class)
Tool poisoning, compound and prompt-injection detectors
Prompt injection (DeBERTa) + Presidio PII redactor
Grounding vs. sources, schema, secrets + EU AI Act Art. 5 patterns
verify sig
Ed25519 · JCS
dedup
24h Redis cache
compound corr.
5-min window
persist
threat_events
Customer-owned data plane
Operator surface
Built-in auth (TOTP) + OIDC opt-in · role-based access
What G8KEPR runs (outside your VPC)
Pattern packs and licence
ship with each release · verified (Ed25519) at start · no automatic feed
Telemetry endpoint
opt-in only · default OFF
Air-gap deploys leave telemetry off; the licence and pattern packs arrive with the release.
Wire Format Flow
Wire Format Flow
How a single threat finding gets from a sensor pod to the dashboard, end-to-end.
Detector matches pattern (e.g. tool_poisoning)
CloudEvents 1.0 + specversion, subject=correlation_id
JCS (RFC 8785) → Ed25519 sig + nonce
Online → POST /findings · offline → disk spool (24h max)
5. Verify sig
Ed25519 + sensor cert · reject on mismatch
6. Schema check
Accept N or N-1 · reject N+1 with wire_version_unsupported
7. Dedup
Redis cache, 24h TTL per idempotency_key
8. Compound corr.
5-min window · 9 named patterns
9. Persist + audit
threat_events row
threat_events, audit_log, mcp_sessions — RLS policies
Live page reads from Postgres on mount + window focus (no polling)
Failure-mode contracts
- parse_error · sensor still emits a finding so audit trail is intact
- collector_unreachable · sensor spools to disk, replays on reconnect
- spool_full · low/medium severity dropped first; critical always preserved
- clock_skew > 30s · finding accepted, audit warning logged, NTP recommended
Sensor ↔ Collector Contract
Sensors are stateless; the collector is the only stateful component and the only thing that touches Postgres or Redis. Every interaction between the two is on this diagram — anything not listed does not happen (per ADR-002).
Sensor ↔ Collector Contract
Every interaction between the two halves. Anything not on this list does not happen.
Owns
- Detector logic (regex / ML / heuristic)
- Ed25519 signing (its mTLS cert key)
- Disk spool (500MB / 24h max, per ADR-015)
- Per-pod identity (instance_id in PVC)
Never touches
- · Customer Postgres / Redis
- · Other sensors (no peer awareness)
- · License signing key
POST /sensors/register
ADR-012identity + capabilities + version
on boot
POST /sensors/heartbeat
ADR-012load · queue depth · last-finding-ts
every 30s
POST /findings (mTLS · CloudEvents · Ed25519 sig)
ADR-003single or /findings/batch · max 100 per batch
on every detection
GET /sensors/{id}/config
ADR-006pulls latest config when SIGHUP missed
on reload signal
replay_rate_limit response
ADR-015envelopes/sec · default 100
after partition
4xx ingest reject
ADR-003wire_version_unsupported · sig_invalid · license_expired
on policy violation
remote config push (rare)
ADR-006mute pattern · raise severity threshold · pause sensor
operator action
Owns
- License verification (+ signed CRL file)
- Dedup cache (Redis, 24h TTL)
- Compound correlation (5-min window)
- Persisted to threat_events
Also serves
- · Dashboard ingress (Next.js, ADR-019)
- · Postgres writes (org-scoped, RLS policies)
- · Sensor inventory page
v1 contract. v2 adds: collector HA via leader election, sensor-to-sensor mesh for compound early-emit, customer-built sensor SDK (ADR-013).
Deployment Shapes
Kubernetes (Helm)
The recommended production path. Umbrella chart deploys collector + per-sensor sub-charts. The installer issues each sensor its certificate, and the collector requires it.
Docker Compose
Single-host installs (lab, demo, small SOC). The installer makes the sensor CA; cert-manager is not needed. Brief downtime on upgrade.
Air-gap (offline)
Zero outbound. Pattern packs and license delivered via signed bundle. Telemetry default-OFF aligns naturally.
Docker Compose layout
Docker Compose Layout — single host
For lab, demo, or small SOC. The installer makes the sensor CA; cert-manager is not needed. Brief downtime on upgrade.
Install CA
made by the installer · one client certificate per sensor · no automatic renewal
License + secrets
./secrets/license.lic · .env (DATABASE_URL, REDIS_URL)
image: sensor-mcp (provided to customers)
vol: spool · 500Mi
image: sensor-ai-gateway (provided to customers)
vol: spool · 500Mi
image: sensor-verification (provided to customers)
vol: spool · 500Mi
image: backend (provided to customers) · single replica
DATABASE_URL=postgresql://…
Not in compose. You provide the connection string.
REDIS_URL=redis://…
Optional same-host redis container for demo only.
Kubernetes / Helm layout
Kubernetes Layout — umbrella Helm chart
Single namespace · one collector + per-sensor sub-charts · the installer issues one certificate per sensor and the collector's TLS terminator requires it.
cert-manager Issuer
customer-private CA
Ingress (dashboard)
g8kepr.acme.internal · TLS · OIDC or built-in auth
charts/sensor-* sub-charts (per-detector class)
Deployment · 1 replica · HPA off (v1)
PVC: 500Mi (spool)
Deployment · 1 replica · HPA off (v1)
PVC: 500Mi (spool)
Deployment · 2 replicas · CPU, no model
PVC: 500Mi (spool)
charts/collector sub-chart
verify sig
dedup 24h
compound 5min
audit chain
+ Migration Job (Alembic) runs once at install · ServiceMonitor for Prometheus
External services (customer-owned, NOT in chart)
RDS · Cloud SQL · in-cluster operator · bare metal
existingSecret: g8kepr-db
Elasticache · Memorystore · in-cluster · external
existingSecret: g8kepr-redis
Umbrella chart: g8kepr-umbrella (provided to customers; not on a public Helm repo)
charts/collector + charts/sensor-mcp + charts/sensor-ai-gateway + charts/sensor-verification — one helm release, four sub-deployments.
Detection Capabilities
Coverage Map
What lands across the four pillars. Categorical inventory only — specific patterns, scoring weights, and evasion countermeasures are not publicly enumerated. Licensed customers see the full pattern catalog in the dashboard pattern library.
94,000+
labeled attack samples
ML training corpus · 24 categories
9
compound chains
multi-vector named patterns
14
LLM providers
cost-aware routing
12
compliance frameworks
+ 8 reference · EU AI Act · HIPAA · SOC 2
OWASP Top 10 + WAF
API SecuritySQL injection · XSS · path traversal · command injection · SSRF · auth bypass · mass assignment · JWT manipulation
ML detector · 94,000+ samples · 24 categories
Shadow & zombie APIs
API SecurityDetects undocumented endpoints from live traffic · flags deprecated routes still in use
Bot detection
API SecurityBehavioral baseline · credential stuffing · scraping cadence
Tool poisoning
MCP SecuritySchema-hash diff between registered tool definition and runtime invocations — catches rug-pull mutations
Compound exploit chains
MCP SecurityLethal Trifecta · Injection Campaign · Credential Exfiltration Chain · Hidden-Instruction Description · Shadowed Privilege Tool · Phishing Tool · Obfuscated Execution · Shadow Egress · Cross-Surface Campaign
9 named multi-vector patterns
Prompt injection
MCP SecurityDirect + jailbreak families · LLM-2026 patterns (Crescendo · Skeleton Key · DAN) · Unicode / leet / base64 normalization
Multi-provider routing
AI Gateway14 providers across four tiers · cost-aware routing · per-provider circuit breakers
14 LLM providers
PII redaction
AI GatewayMicrosoft Presidio integration · email · IP · SSN · credit-card · medical record · custom recognizers
Cost anomalies
AI GatewayPer-org budget caps · token-spend spikes · provider-skew alerts
Output validation (4 layers)
VerificationIntegrity · grounding · structural · constraint — run on AI gateway completions before they reach the client; grounding runs when sources are supplied
4-layer pipeline
EU AI Act controls
VerificationArticle 5 (prohibited-practice detector; warns by default, blocking opt-in) · Article 13 (transparency) · Article 14 (oversight) · Article 15 (accuracy)
4 articles mapped
Drift & manipulation
VerificationCross-turn memory poisoning · fabricated-history detection · permission drift · system-prompt subversion
Categories shown — specific patterns, scoring weights, and evasion countermeasures are not publicly enumerated. Full pattern catalog is accessible to licensed customers via the dashboard's pattern library page.
Pattern Updates
Pattern packs ship with each release and are verified (Ed25519) at sensor start; there is no automatic feed. New patterns arrive with a new release.
Compound Chains
Multi-vector attacks where each individual primitive looks benign — only the co-occurrence is dangerous. The correlator joins atomic findings that share a correlation ID (in practice, the same request) or that come from the same client IP within an organization inside a 5-minute window, and emits a compound finding when one of these nine named patterns matches.
Lethal Trifecta
Prompt-injection vector co-occurring with network egress and filesystem access — the canonical exfiltration shape.
Credential Exfiltration Chain
A skill reads environment secrets or credential stores and has outbound network access.
Hidden-Instruction Description
A tool description carries hidden or encoded instructions that the LLM will read while planning.
Shadowed Privilege Tool
A tool name shadows an established or reserved tool and the tool has execution capability.
Cross-Surface Campaign
One client is reported by all three pillars inside the window: the API (WAF), the AI gateway and an MCP tool call.
Injection Campaign
One client attempts prompt injection against the AI gateway and SQL or command injection against the API.
Phishing Tool
A tool encourages credential requests combined with prompt-injection susceptibility.
Obfuscated Execution
Encoded payloads (base64 / hex) combined with shell exec or eval. Hidden command behind decode + exec.
Shadow Egress
A known tunnel, paste or webhook host (ngrok, pastebin, URL shorteners, Discord webhooks) or a raw IP address, in the same tool content as base64 / hex / codecs encoding. Encoded data headed for a throwaway endpoint.
Compliance Mapping
Detection findings feed compliance evidence tooling. HIPAA is the only framework with live-evidence scoring today; the others (SOC 2, ISO 27001, PCI DSS, GDPR, EU AI Act, and more) are self-attestation and gap-analysis mapping — never marked certified until independently attested.
Compliance Control Mapping
12 compliance frameworks with assessment engines + 8 reference catalogs. A selection is shown below. This is mapping and gap-analysis tooling, not an attestation; no framework is marked certified.
API Security
Example Request Monitor
HTTP Integration
Direct HTTP Integration
api.g8kepr.com/api/v1POST /api/v1/gateway/completionsg8kepr-cliOWASP Top 10 Mapping
A self-assessed mapping of platform controls to the OWASP Top 10 (2021) categories. It is not a third-party assessment and does not claim full coverage of any category.
Broken Access Control
Cryptographic Failures
Injection
Insecure Design
Security Misconfiguration
Vulnerable Components
Auth & Identity Failures
Data Integrity Failures
Security Logging Failures
SSRF
Geo-Blocking Rule
One rule per country, created with POST /api/v1/geo-blocking/rules. action is allow or block. Rules are enforced on requests once a GeoIP database is loaded.
{
"country_code": "KP",
"country_name": "North Korea",
"action": "block"
}Rate limit headers
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and a 429 carries Retry-After. Back off and retry after the time it gives.MCP Security
MCP Security Flow
Session Linking
The MCP proxy returns a session ID in the X-G8KEPR-Session-Id response header. Send the same value in the X-G8KEPR-Session-Id request header on your AI gateway completions, and an investigation timeline joins that session's MCP and gateway activity by ID. The session ID must be a UUID; any other value is dropped.
# Reuse the session ID the MCP proxy returned
curl -X POST https://api.g8kepr.com/api/v1/gateway/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-G8KEPR-Session-Id: 3f1c2a9e-7b4d-4e8a-9c21-5d6f7a8b9c0d" \
-H "Content-Type: application/json" \
-d '{ "model": "gpt-4o", "messages": [...] }'Tool Authorization
MCP tool permissions are allow / deny rules. A rule targets a user, a role or the whole organization, can be scoped to a server and to a tool name (wildcards such as read_* are supported), and carries a priority. The highest-priority matching rule wins; user rules take precedence over role rules, and role rules over organization rules. If no rule matches, the call is denied.
Built-in roles: owner, admin, member, developer, analyst, auditor, viewer, agent_full, agent_limited and agent_readonly.
Multi-agent pipelines
X-G8KEPR-Session-Id (a UUID) on each hop's gateway completion so the investigation timeline can join the hops by session.Audit Trail
curl https://api.g8kepr.com/api/v1/mcp/sessions/3f1c2a9e-7b4d-4e8a-9c21-5d6f7a8b9c0d/audit-trail \
-H "Authorization: Bearer YOUR_API_KEY"AI Gateway
AI Gateway - Intelligent Routing
Provider Failover
Routing Strategies
Distributes requests evenly across the available providers.
{
"messages": [{"role": "user", "content": "Hello"}],
"routing_strategy": "round_robin"
}Supported models
14 LLM providers: Claude, OpenAI, Gemini, Groq, Azure, Bedrock, Cohere, Mistral, DeepSeek, Together AI, Fireworks AI, Ollama, xAI and Cerebras. A custom OpenAI-compatible endpoint that your organization configures can also be routed. You choose the model per request with the model field.
Streaming
import httpx
with httpx.stream("POST", "https://api.g8kepr.com/api/v1/gateway/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"model": "gpt-4o", "messages": [...], "stream": True},
) as resp:
for line in resp.iter_lines():
if line.startswith("data: "):
print(line[6:]) # SSE payloadWebhook Events
Webhook Event Flow
Webhook Payload
Create a webhook with POST /api/v1/webhooks; name, url and events are required, and GET /api/v1/webhooks/events/types lists the event names you can subscribe to. Findings are delivered as threat.detected, or as anomaly.detected for anomaly findings, in this envelope:
{
"event": "threat.detected",
"timestamp": "2026-03-31T14:22:01.432+00:00",
"organization_id": "<your organization id>",
"data": {
"finding_id": "<finding id>",
"type": "<finding type>",
"time": "2026-03-31T14:22:01Z",
"severity": "high",
"category": "<category>",
"action": "<action taken>",
"description": "<description>",
"request": { "method": "POST", "path": "/api/orders", "source_ip": "203.0.113.7" }
}
}Signature
X-G8KEPR-Signature is the hex HMAC-SHA256 of the exact raw request body, keyed with your webhook secret. Some deliveries prefix the value with sha256=; strip the prefix before comparing.
Signature verification
X-G8KEPR-Signature before processing webhook payloads. Use hmac.compare_digest (Python) or crypto.timingSafeEqual (Node) to prevent timing attacks.Deliveries
Each delivery is recorded with its status code and response time. List them, send a test delivery, or turn a webhook off and on:
curl https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/deliveries \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X POST https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/test \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X POST https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/toggle \
-H "Authorization: Bearer YOUR_API_KEY"Threat Detection
Threat Detection Pipeline
Request received
94,000+ samples
Behavioral detection
Rules evaluation
Allow / Block
Detection accuracy
94,000+
Labeled attack samples (training corpus)
0.786
Held-out recall (0.486 on newer attacks)
0.857
Held-out precision (3.12% FPR)
An ML detector trained on 94,000+ labeled attack samples, plus ~340 regex rules evaluated on every request. On the frozen held-out split (N=2,580, never trained on) the shipped predicate (regex OR semantic classifier) scores 0.786 recall, 0.857 precision and a 3.12% false-positive rate. On third-party attacks first published after the detector's training data, recall is 0.486 (198 of 407). These are benchmarks of the shipped code, not measurements of production traffic. The default API request path runs the regex tier only; the classifier runs on the AI gateway path.
Session Escalation
On the REST API proxy (/api/proxy/{gateway_id}/…), requests that share an X-Session-ID header (a UUID) are scored together. A request's threat score is multiplied by a factor taken from the session's history before it, capped at 1.0, and theescalated score feeds the block decision below.
Current score ≤ 0.1
1.0×
Clean traffic is never escalated
3+ requests, max > 0.3
1.3×
Earlier requests in the session
5+ requests, max > 0.5
2.0×
Earlier requests in the session
Any earlier score ≥ 0.8
2.5×
Regardless of request count
Example Threat Log
Block Decision
On the REST API proxy a request is refused with HTTP 403 when either the detector's own verdict is to block, or the (session-escalated) threat score reaches 0.9. On the AI gateway completion route the union threat scanner is flag-only by default: it records a finding and the request goes through.
CLI Reference
g8kepr-cli — provided to customers
g8kepr-cli --help
g8kepr-cli health # health snapshot from /api/health
g8kepr-cli preflight # install pre-checks
g8kepr-cli sensors list --organization-id <org> # sensor fleet listingAPI Reference
API Key Authentication Flow
Authorization: Bearerscopes, limitsgk_org_<org8>_<token>One key format; each key carries a read, write or admin scopehttps://api.g8kepr.com/api/v1Authentication
Create keys in the dashboard under Dashboard → API Keys. Keys are formatted gk_org_<org8>_<token> and are shown only once at creation. Send a key as an Authorization: Bearer <key> header, or as X-API-Key: <key>. Each key carries a scope: read, write, or admin.
# Bearer token (the X-API-Key: <key> header also works)
curl https://api.g8kepr.com/api/v1/gateways \
-H "Authorization: Bearer gk_org_ab12cd34_YOUR_TOKEN"Endpoints
Rate Limit Response Headers
| Header | Description |
|---|---|
| X-RateLimit-Limit | Maximum requests allowed in the current window |
| X-RateLimit-Remaining | Requests remaining in current window |
| X-RateLimit-Reset | Unix timestamp when the window resets |
| Retry-After | Seconds to wait before retrying (on 429 only) |
Error codes
Retry-After header. 502 [NO_PROVIDERS] — no upstream LLM provider configured; add a provider / BYOK key in the dashboard AI Gateway. 503 Service Unavailable — backend health check failed; retry with backoff.Configuration
Compliance Frameworks
Compliance Control Mapping
12 compliance frameworks with assessment engines + 8 reference catalogs. A selection is shown below. This is mapping and gap-analysis tooling, not an attestation; no framework is marked certified.
Environment Variables
For a self-hosted install, the backend refuses to start in production without the variables below. Optional settings are not listed here. Variables marked “secret” take a random value of at least 32 characters unless the description says otherwise.
| Variable | Description |
|---|---|
| DATABASE_URL | PostgreSQL connection string |
| REDIS_URL | Redis connection string (or set REDIS_HOST and its parts, and it is built at startup) |
| SECRET_KEY | Application secret (secret) |
| JWT_SECRET | HMAC secret for legacy HS256 tokens (secret) |
| JWT_RSA_PRIVATE_KEY_CURRENT | RS256 signing key (PEM, or base64 of the PEM); tokens are RS256-only |
| ENCRYPTION_KEY | AES-256-GCM key: standard base64 of 32 random bytes |
| CORS_ORIGINS | Comma-separated origins allowed by CORS (no default) |
| FRONTEND_URL | Public URL of the dashboard, used in email links and OAuth redirects |
| AUDIT_CHAIN_HMAC_KEY | HMAC key for the tamper-evident audit log (secret) |
| AUDIT_CHAIN_HMAC_KEY_CURRENT | Signs new compliance audit-chain entries (secret) |
| CHAIN_ANCHOR_HMAC_KEY | HMAC key for audit-chain anchors (secret) |
| G8KEPR_SENSOR_SIGNING_SEED | Ed25519 seed (32-byte hex) that signs every finding envelope |
| SECURITY_DISCLOSURE_SECRET | Signs vulnerability-disclosure tracking tokens (secret) |
| ORG_ID_HASH_SALT | Keys the organization-id hash in metric labels (secret) |
| BASELINE_HMAC_KEY | Signs per-org API baseline models; shared by every worker (secret) |
| EMAIL_UNSUBSCRIBE_SECRET | Signs email unsubscribe links (secret) |
Secrets management
Troubleshooting
Common Errors
Health Check Endpoints
| Endpoint | Access | Use case |
|---|---|---|
| GET /health | Public | Liveness probe |
| GET /api/health/ready | Public | Readiness probe; reports the state of each dependency check |
| GET /api/health/detail | Requires authentication | Detailed health for operators |
Bug Reports
Bug reports and feature requests by email. Report security issues to security@g8kepr.com.
Email support →Enterprise Support
Email support. On Team and Enterprise a P1 gets a first response within 4 business hours (9:00–17:00 US Eastern, Monday–Friday, excluding US federal holidays).
Contact sales →Changelog
Recent, customer-facing improvements to the G8KEPR platform. Feature-level only — contact support for detailed release notes.
- NewMCP Security: tool-level allow / deny permissions with default deny, and session IDs that link MCP and AI gateway activity
- NewAI Gateway: multi-provider routing (round-robin, least-latency, least-cost, priority) with bring-your-own-key providers
- NewWebhooks for threat.detected and anomaly.detected findings, signed with HMAC-SHA256
Start protecting your APIs today
The free Community licence is self-hosted and includes all four pillars and 100K findings per month. A hosted account starts with a 30-day Team trial (extend to 90 days free) — no credit card required.