Fail-Closed Runtime Action Enforcement

Control What AI Agents Can Actually Do.

Poligin is the zero-trust Policy Enforcement Gateway (PEP) and Decision Engine (PDP) for autonomous AI agents and Model Context Protocol (MCP) tool-calling systems. Intercept, normalize, and govern agent actions with sub-millisecond latency before they touch production systems.

✓ Fail-Closed by Design
✓ Sub-Millisecond AST DSL
✓ HMAC-SHA256 Chained Ledger
✓ MCP SSE & JSON-RPC 2.0
✓ SOC 2 / NIST AI RMF Ready
poligin-gateway:8080 ⇄ poligin-engine:8181
● PEP/PDP ACTIVE
01. Inbound Tool Call MCP Client
Autonomous Agent
agent: "claude-dev-agent" user: "alice@acme.com" method: "tools/call" tool: "delete_customer" params: { "customer_id": "12345", "purge_vault": true }
Incoming SSE Session: sess_9f81a
→
02. 10-Stage Evaluation PDP Engine
Zero-Trust Guardrail
mapped_action: "customer.delete" resource: "customer/12345" version: "v1.0.0-prod (locked)" ai_risk_score: 0.92 (High Exfiltration) matched_rule: "deny-destructive-purge" ledger_hash: "9b1c7a4...sha256"
Evaluation Latency: 1.24 ms
→
03. Enforcement Decision Verdict
Execution Aborted DENIED
allowed: false reason: "Security Guardrail: Destructive customer purge blocked for role [developer]" circuit_breaker: TRIPPED audit_ledger: "HMAC-SHA256 Appended"
Downstream Tool: Isolated & Untouched
The Governance Gap

AI agents don't just answer questions. They execute consequential actions.

Traditional web application firewalls and network API gateways enforce perimeter rules at coarse service boundaries. But autonomous agents compose dynamic JSON tool calls at runtime. Without semantic policy interception, agents authorize their own actions.

⚡

Coarse Gateways Miss Semantics

API gateways inspect HTTP routes like /api/v1/tools. They cannot inspect dynamic JSON tool arguments, nested SQL parameters, or agent context inside MCP payloads.

🛡️

Prompt Injection Bypasses Prompts

System prompts and model-level instructions are not security boundaries. Adversarial prompt injections cause models to attempt catastrophic unauthorized tool calls.

🔒

Agents Must Not Self-Authorize

The agent decides what to attempt. An independent, fail-closed policy enforcement engine must decide whether it is permitted to execute.

Security Dimension Traditional API Gateway / WAF Agent System Prompts Poligin Zero-Trust Gateway
Enforcement Point HTTP Endpoint / URL path Probabilistic LLM token generation ✓ Inline MCP Tool Interception (PEP)
Deterministic Latency Fast (no semantic inspection) Slow (seconds for LLM self-eval) ✓ Sub-Millisecond AST DSL Compiler
Failure Posture Fail-open or generic 502 Fail-open (model hallucination) ✓ Fail-Closed by Design (Zero Trust)
Audit Integrity Flat server logs (editable) Chat transcript logs ✓ Immutable HMAC-SHA256 Hash Chain
Pre-Deploy Testing Manual test requests Prompt red-teaming ✓ Historical Replay & Version Diff
Platform Architecture

Strict Separation: Policy Enforcement (PEP) & Decision Point (PDP).

Poligin deploys as lightweight, containerized microservices adhering to the proven XACML/Zero-Trust architectural standard. Protocol translation is completely isolated from policy compilation and audit governance.

AI Agents & Clients
Claude Desktop, Cursor, LangChain, Custom Autonomous Agents.
MCP JSON-RPC / SSE ➔
Identity Context
Okta, Microsoft Entra ID, OAuth2 Bearer Tokens, mTLS.
MCP Gateway (PEP) :8080
Policy Enforcement Point: Manages persistent SSE connections, normalizes arbitrary tool parameters via wildcard templates into semantic triples (Subject, Action, Resource, Context), and provides downstream circuit breaking.
Poligin Policy Engine (PDP) :8181
Policy Decision Point: 10-stage sequential evaluation pipeline, embedded AST boolean DSL engine, AI risk scoring, immutable version lock, and continuous HMAC-SHA256 ledger writer.
Downstream MCP Tools Protected
Enterprise Databases, Filesystems, Cloud APIs, Internal Microservices.
Only executed if ALLOWed
Cryptographic Datastore PostgreSQL 16
Tamper-evident audit ledger, decision traces, and published version hashes.
Fail-Closed Security Guarantee If a network partition occurs, a license is invalid, or an agent invokes an unmapped tool action, Poligin instantly executes a deterministic DENY. Protected downstream tools are never exposed to uninspected operations.
FAIL-CLOSED STRICT
Enterprise Differentiators

Enterprise Security Controls Built for Rigorous Audits.

Purpose-built for Chief Security Officers and Enterprise Architects who require mathematical accountability, sub-millisecond evaluation, and zero-downtime policy governance.

🔗

Tamper-Evident HMAC-SHA256 Audit Ledger

Every single authorization decision is linked into a continuous cryptographic hash chain starting from an immutable genesis hash: GenesisHash ➔ Record[1] ➔ Record[N].

// Continuous Verification Endpoint POST /v1/licenses/verify-chain?tenant=acme result: { "valid": true, "total_records": 61, "status": "ZERO_MODIFICATION_DETECTED" }
Mathematical verification for SOC 2 Type II, ISO 27001, and NIST AI RMF compliance.
🔀

Zero-Downtime CI/CD: Diff & Historical Replay

Test policy revisions against real traffic before promoting them. Compare candidate draft policies side-by-side with production via /v1/decisions/diff, or replay actual historical agent production traces via /v1/decisions/replay to eliminate regressions.

// Historical Regression Prevention POST /v1/decisions/replay { "decision_id": "dec-9b2f38a1", "candidate_version": "v1.1.0-draft" } outcome: NO_REGRESSION_DETECTED
Immutable version locks with deterministic SHA-256 version fingerprints.
🧠

AI Safety Analyzer & Prompt Injection Guardrails

When policies govern generative agents, static rules are paired with an embedded AI Risk Analyzer (Ollama local, OpenAI, Anthropic, Bedrock). Evaluates prompt injection, credential extraction, and tool call parameter volume with fail-closed timeout thresholds.

// Multi-Dimensional Rule Context DSL input.risk_score < 0.65 && contains(input.user, "@enterprise.com") && intersects(input.roles, ["secops", "lead-dev"])
Rejects if risk score exceeds safety threshold or risk analyzer times out.
⚙️

Dynamic Tool Parameter Normalization

Heterogeneous downstream tools use inconsistent parameter formats. Poligin's mapping engine maps arbitrary JSON arguments into normalized semantic triples: (Subject, Action, Resource, Context) using flexible regex and template mapping.

mappings: - tool_pattern: "*delete*customer*" action: "customer.delete" resource_template: "customer:{{.customer_id}}"
Seamless interoperability across hundreds of disparate MCP servers.
Operational Visibility

Customer Admin Console & Microsecond Diagnostic Traces.

Single-pane-of-glass administrative UI for SecOps and platform teams to monitor agent fleet activity, manage version lifecycles, and debug authorization decisions down to the microsecond.

Poligin Shield Console Tenant: acme v1.0.0-prod (Locked)
Dashboard Policy Versions Containers & Rules Playground Audit Logs Gateway Fleet
● GATEWAY: ONLINE (:8080)
Total Decisions
61,420
100% evaluated inline
Allowed Invocations
32,180
52.4% pass rate
Blocked / Denied
29,240
Zero unauthorized actions
Average Latency
1.38 ms
Sub-millisecond AST compiler
Top Evaluated Agent Actions Past 24 Hours
customer.delete (High Risk) 16 calls · 12 DENIED
database.execute_query 13 calls · 10 ALLOWED
server:destroy (Infra Guardrail) 5 calls · 5 DENIED
file.read (Standard Ops) 27 calls · 27 ALLOWED
Microsecond Diagnostic Trace DEC-9B2F38A1
✓ 1. License & Quota Check
142 µs
✓ 2. Version Resolution (v1.0.0)
280 µs
✓ 3. Container & Strategy Traversal
320 µs
✓ 4. Rule Multi-Dimensional Match
410 µs
✓ 5. Tamper-Evident HMAC Append
88 µs
Total Interception Latency: 1.24 ms
Target Use Cases

Enforce Zero-Trust Autonomy Where Consequences Matter.

Deploy Poligin in front of high-leverage agent workflows to prevent financial losses, data leakage, and infrastructure destruction.

💳

Financial Operations

Bound autonomous refunds, wire transfers, and billing changes. Enforce dual-approval or unconditional denial when amounts exceed configurable thresholds.

👥

Customer Service Agents

Permit customer data lookups and support ticket annotations while strictly blocking account deletions, bulk exports, and unauthorized tier upgrades.

🚀

DevOps & Coding Agents

Allow agents to read repository files and run tests, while preventing direct writes to production secrets, database migrations, or cloud resource termination.

🗄️

Enterprise Data Agents

Govern access to data lakes and enterprise warehouses. Automatically enforce tenant isolation, row-level restrictions, and PII masking.

Enterprise Evaluation

Put a Zero-Trust Policy Boundary Around Your AI Agents.

Deploy the Poligin MCP Gateway into your VPC or Kubernetes cluster in minutes. Protect your sensitive tools, establish fail-closed guardrails, and achieve tamper-evident audit compliance.

Request Technical Architecture Briefing Schedule an MCP Gateway POC