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.
https://srs-riskfn-857.azurewebsites.net/apiLive PEP trial (no API key)
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.
# 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.
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.transferAuthentication
Authorization: Bearer <token> with Analyst+ app role for enforcement.
X-Posture-Agent-Key + X-Posture-Tenant-Id — issue via Admin UI or POST /v1/agent-api-keys.
Tenant is taken from the credential — body tenantId cannot cross tenants when auth is on.
Core endpoints
Public: run fixed ALLOW / DENY / REQUIRE_APPROVAL scenarios (no API key)
Public: prove Emergency Containment → QUARANTINE receipt (guest-safe)
Runtime policy decision (ALLOW / DENY / REQUIRE_APPROVAL / QUARANTINE)
Emergency Containment status / activate / clear (admin)
Authorize a tool invocation
Authorize external communication
Multi-hop authority — re-check original intent each hop
Inventory → attack pack → launch gate → AUTHORIZE
Agent as non-human identity (owner, tools, autonomy, kill switch)
MCP schema pin / unknown+drift DENY
Blast radius + surgical cascade freeze
CI gate: no tool path may skip PEP
List hash-chained PEP receipts (filter by agentId)
Verify a receipt hash/HMAC without trusting the UI (authenticated)
Public: verify a pasted receipt via ES256/JWKS (no login)
Verify a short-lived Signed Execution Grant + args_hash binding (authenticated)
Public: verify an ES256 Signed Execution Grant via JWKS (no login)
Download 1-click Auditor & Insurer Proof Pack PDF (also embedded in ZIP packs)
Configure/preview/test Microsoft Teams Judgment Gate approval alerts
Public JWKS for ES256 receipt & execution-grant verification
Ingest agent telemetry into the Operations timeline
Sync Entra / Azure OpenAI / Foundry discovery
List discovered AI assets
List agent identities and permission risk
Issue machine API keys for PEP callers (Admin)
Python 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)
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 actionsFull sample: sdk/examples/authorize.go
Webhooks & pipeline pattern
- CI/CD or agent gateway calls
POST /v1/enforcement/actionbefore the side effect. - On
DENY— abort and surfacereason/decision_id. - On
REQUIRE_APPROVAL— pause; retry withapproval_id/grant_id. - Emit
POST /runtime/eventsfor requested → evaluated → executed/blocked. - Persist
receipt.hashand later callPOST /v1/enforcement/verify-receipt. CI template:sdk/examples/ci_pep_gate.py. - Optional: ship evidence bundles from the Evidence Center into your SIEM.
{
"tenantId": "<from auth>",
"agentId": "<asset-id>",
"action": "email.send",
"tool": "email.send",
"dataClassification": "PII",
"environment": "production",
"correlationId": "build-123"
}