For DevSecOps & platform engineers

Wire agents into the PEP

Call TTA Posture before the side effect. Authenticate with Entra Bearer tokens or X-Posture-Agent-Key. High-risk paths fail closed when Posture is unavailable.

API basehttps://srs-riskfn-857.azurewebsites.net/api

Live PEP trial (no API key)

Live PEP trial · guest sandbox

Hit the real Policy Enforcement Point against the synthetic demo tenant — no Entra admin and no API key in the browser. Rate-limited server-side scenarios only.

Drop-in MCP Enforcement Proxy (zero code changes)

Wrap any stdio or Streamable-HTTP MCP server. Every tools/list is fingerprinted for mid-session schema drift (tool poisoning), and every tools/call is enforced by TTA Posture before reaching the upstream server. Fails closed on outage.

Shell · posture-mcp-proxy (stdio & HTTP)
# Install SDK with offline ES256 verification extras
pip install -e "sdk[crypto]"

# Wrap any stdio MCP server (Claude Desktop, Cursor, Windsurf, custom host)
posture-mcp-proxy --server filesystem -- npx -y @modelcontextprotocol/server-filesystem /workspace

# Or run as a Streamable-HTTP MCP reverse proxy (forwards X-Posture-Execution-Grant)
posture-mcp-proxy --server stripe-mcp --upstream-http http://127.0.0.1:8080/mcp --listen 127.0.0.1:8787

1-Line Agent Middleware & Signed Execution Grants

Zero framework lock-in: duck-typed 1-line wrappers for LangGraph/LangChain, OpenAI Agents SDK, and Microsoft Semantic Kernel. Every ALLOW mints a short-lived ES256 execution_grant_token bound to args_hash for downstream verification.

Python · LangGraph / OpenAI / Semantic Kernel + Offline Verify
from posture_sdk import (
    PostureClient,
    posture_tool,
    wrap_langgraph_tools,
    wrap_openai_agent_tool,
    wrap_semantic_kernel_plugin,
)

posture = PostureClient.from_env()

@posture_tool(client=posture, data_classification="PII")
def send_customer_email(to: str, body: str) -> str: ...

safe_lg_tools = wrap_langgraph_tools([search_tool, wire_tool], client=posture)
safe_oai_tool = wrap_openai_agent_tool(my_function_tool, client=posture)
safe_sk_plugin = wrap_semantic_kernel_plugin(FinancePlugin(), client=posture)

# Air-gapped CLI verification against published JWKS:
# posture-verify grant.jwt --jwks-url https://srs-riskfn-857.azurewebsites.net/api/.well-known/posture-receipt-keys --tool payments.transfer

Authentication

Entra JWT

Authorization: Bearer <token> with Analyst+ app role for enforcement.

Agent key

X-Posture-Agent-Key + X-Posture-Tenant-Id — issue via Admin UI or POST /v1/agent-api-keys.

Isolation

Tenant is taken from the credential — body tenantId cannot cross tenants when auth is on.

Core endpoints

POST
/v1/sandbox/trial-enforce

Public: run fixed ALLOW / DENY / REQUIRE_APPROVAL scenarios (no API key)

POST
/v1/sandbox/trial-containment

Public: prove Emergency Containment → QUARANTINE receipt (guest-safe)

POST
/v1/enforcement/action

Runtime policy decision (ALLOW / DENY / REQUIRE_APPROVAL / QUARANTINE)

GET|POST
/v1/enforcement/containment

Emergency Containment status / activate / clear (admin)

POST
/v1/enforcement/tool

Authorize a tool invocation

POST
/v1/enforcement/communication

Authorize external communication

POST
/v1/authority/chain

Multi-hop authority — re-check original intent each hop

GET|POST
/v1/launch-journey

Inventory → attack pack → launch gate → AUTHORIZE

GET|POST
/v1/agent-nhi

Agent as non-human identity (owner, tools, autonomy, kill switch)

GET|POST
/v1/mcp-trust

MCP schema pin / unknown+drift DENY

GET|POST
/v1/cascade-containment

Blast radius + surgical cascade freeze

POST
/v1/mediation-coverage

CI gate: no tool path may skip PEP

GET
/v1/enforcement/receipts

List hash-chained PEP receipts (filter by agentId)

POST
/v1/enforcement/verify-receipt

Verify a receipt hash/HMAC without trusting the UI (authenticated)

POST
/v1/public/verify-receipt

Public: verify a pasted receipt via ES256/JWKS (no login)

POST
/v1/enforcement/verify-grant

Verify a short-lived Signed Execution Grant + args_hash binding (authenticated)

POST
/v1/public/verify-grant

Public: verify an ES256 Signed Execution Grant via JWKS (no login)

GET
/v1/authority/proof-pack.pdf

Download 1-click Auditor & Insurer Proof Pack PDF (also embedded in ZIP packs)

GET|POST
/v1/approvals/notify-teams

Configure/preview/test Microsoft Teams Judgment Gate approval alerts

GET
/.well-known/posture-receipt-keys

Public JWKS for ES256 receipt & execution-grant verification

POST
/runtime/events

Ingest agent telemetry into the Operations timeline

POST
/integrations/{id}/sync

Sync Entra / Azure OpenAI / Foundry discovery

GET
/discoveries

List discovered AI assets

GET
/identities

List agent identities and permission risk

POST
/v1/agent-api-keys

Issue machine API keys for PEP callers (Admin)

Python SDK

Python · posture_sdk
from posture_sdk import PostureClient

posture = PostureClient.from_env()  # POSTURE_API_BASE, TENANT_ID, AGENT_API_KEY

decision = posture.authorize(
    agent_id="...",
    action="tool.invoke",
    tool="docs.search",
    data_classification="PUBLIC",
)

if decision.denied:
    raise SystemExit(decision.reason)
if decision.requires_approval:
    # pause until human approves, then retry with approval_id / grant_id
    ...
# ALLOW → continue

check = posture.verify_receipt(decision.receipt, decision_id=decision.decision_id)
assert check["ok"]

posture.emit("tool.executed", tool="docs.search", decision=decision.decision)

Package: sdk/posture_sdk. Default POSTURE_FAIL_CLOSED=1.

Go (HTTP)

Go · authorize.go
req, _ := http.NewRequest("POST", apiBase+"/v1/enforcement/action", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Posture-Agent-Key", os.Getenv("POSTURE_AGENT_API_KEY"))
req.Header.Set("X-Posture-Tenant-Id", os.Getenv("POSTURE_TENANT_ID"))
res, err := http.DefaultClient.Do(req)
// Fail closed on err or status >= 500 for high-risk actions

Full sample: sdk/examples/authorize.go

Webhooks & pipeline pattern

  1. CI/CD or agent gateway calls POST /v1/enforcement/action before the side effect.
  2. On DENY — abort and surface reason / decision_id.
  3. On REQUIRE_APPROVAL — pause; retry with approval_id / grant_id.
  4. Emit POST /runtime/events for requested → evaluated → executed/blocked.
  5. Persist receipt.hash and later call POST /v1/enforcement/verify-receipt. CI template: sdk/examples/ci_pep_gate.py.
  6. Optional: ship evidence bundles from the Evidence Center into your SIEM.
JSON · decision request
{
  "tenantId": "<from auth>",
  "agentId": "<asset-id>",
  "action": "email.send",
  "tool": "email.send",
  "dataClassification": "PII",
  "environment": "production",
  "correlationId": "build-123"
}