TL;DR
- Enterprise AI adoption introduces non-deterministic risks, data leakage vectors, and shadow AI usage that break traditional perimeter security assumptions.
- Chief Information Security Officers (CISOs) can operationalize governance by mapping technical controls directly to NIST AI RMF 1.0, ISO/IEC 42001, and SOC 2 Trust Services Criteria.
- Centralizing runtime policy enforcement through an AI gateway translates static risk policies into programmatic guardrails, budget caps, and immutable audit logs.
- Extending policy enforcement from centralized server clusters to employee endpoints prevents unmanaged client applications and coding agents from exfiltrating sensitive IP.
According to a 2025 Gartner cybersecurity leadership survey, 96% of CISOs now carry direct responsibility for enterprise AI risk, yet fewer than one in four organizations have operationalized technical controls behind their governance charters. Navigating this gap requires shifting from aspirational ethics statements to defensible architecture that plugs directly into existing risk frameworks. Bifrost, an open-source AI gateway written in Go by Maxim AI, provides the request-path control plane that security leaders use to implement these technical requirements without degrading developer velocity.
The AI Governance Dilemma Facing Enterprise CISOs
AI governance is the system of operational controls, policies, and continuous monitoring mechanisms that determine which models an enterprise may access, who can interact with them, what data flows across boundaries, and how execution is audited. For security leadership, artificial intelligence is not an isolated software category. It behaves as an untrusted third-party service embedded directly into business processes.
┌─────────────────────────────────────────────────────────┐
│ CISO AI Governance │
└────────────────────────────┬────────────────────────────┘
│
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ Data & Privacy Risk │ │ Non-Deterministic │ │ Non-Human Identity │
│ Sensitive data in │ │ Prompt injection, │ │ Autonomous agent │
│ prompts and context │ │ hallucinations, │ │ permissions, tool │
│ windows │ │ jailbreaks │ │ execution abuse │
└─────────────────────┘ └─────────────────────┘ └─────────────────────┘
Traditional cybersecurity frameworks were built on deterministic foundations: inputs map to predictable outputs, network perimeters define trust boundaries, and identity maps to authenticated human users. Large language models (LLMs) break these assumptions in three distinct dimensions:
- Non-Deterministic Execution and Data Ingestion: Prompts and retrieval-augmented generation (RAG) contexts carry unstructured data across trust boundaries. When sensitive customer data, credentials, or proprietary source code enter prompt streams, traditional data loss prevention (DLP) engines scanning for fixed patterns often fail to intercept contextual disclosures.
- Adversarial Exploitation at the Application Layer: Threats outlined in the OWASP Top 10 for Large Language Model Applications (such as direct and indirect prompt injection, sensitive information disclosure, and insecure output handling) operate at the semantic layer, bypassing Layer 7 firewalls and traditional API gateways.
- Agentic Autonomy and Non-Human Identities: Autonomous AI agents execute code, call external Model Context Protocol (MCP) tools, and access backend databases. Traditional Identity and Access Management (IAM) architectures are ill-equipped to govern non-human identities that construct their own multi-step query plans at runtime.
When security teams attempt to solve these issues with manual review boards or disconnected policy documents, development teams bypass security entirely, resulting in uncontrolled shadow AI. Defensible AI governance requires programmatically mapping enforceable technical controls directly to the frameworks boards and regulators already audit.
Mapping AI Controls to Established Security Frameworks
Rather than inventing bespoke compliance programs, security leaders achieve faster audit readiness by mapping AI-specific requirements into existing management systems: NIST AI RMF 1.0, ISO/IEC 42001:2023, and SOC 2 Trust Services Criteria.
┌───────────────────────────────────┐
│ Enterprise Security Core │
│ (SOC 2, ISO 27001, NIST CSF) │
└─────────────────┬─────────────────┘
│ Overlaid with
▼
┌───────────────────────────────────┐
│ AI-Specific Overlays │
│ (NIST AI RMF 1.0, ISO 42001) │
└─────────────────┬─────────────────┘
│ Realized via
▼
┌───────────────────────────────────┐
│ Technical Enforcement Layer │
│ (Virtual Keys, Guardrails, Logs)│
└───────────────────────────────────┘
The table below details how common AI risks translate into standard framework requirements and the concrete technical controls needed to satisfy them:
| Framework Domain | Standard Reference | AI Risk Vector | Required Technical Control | Verification Evidence |
|---|---|---|---|---|
| Governance & Policy | NIST AI RMF: GOVERN 1.2 ISO 42001: Clause 5.2 |
Unapproved model usage; absence of organizational AI boundary | Centralized governance gateway enforcing model allowlists and approved provider endpoints | Machine-enforced routing policies; central configuration export |
| Identity & Access | SOC 2: CC6.1, CC6.3 ISO 42001: Control A.9.2 |
Shared API keys; unsegregated tenant data; lack of granular access | Virtual keys scoped per project, team, or user with integrated RBAC | Key allocation logs; role-to-key policy bindings |
| Data Protection & Privacy | SOC 2: CC6.6, CC6.7 NIST AI RMF: MANAGE 2.4 |
PII, secrets, and protected health information leaking into model prompts | Inline guardrails executing secrets detection, regex sanitization, and PII redaction | Guardrail violation events; blocked request logs |
| System Resiliency | SOC 2: CC7.1, CC7.3 NIST AI RMF: MANAGE 4.1 |
Upstream provider outages, throttling, and cascading application failure | Automatic fallbacks and load balancing across multi-region and multi-provider deployments | Failover metric dashboards; uptime reports under provider downtime |
| Financial & Quota Control | NIST AI RMF: GOVERN 4.1 ISO 42001: Control A.6.2 |
Denial-of-wallet attacks; runaway recursive agent loops | Hard and soft budget and rate limits enforced at request time per virtual key | Budget enforcement alerts; quota exhaustion HTTP 429 logs |
| Audit & Accountability | SOC 2: CC7.2 ISO 42001: Control A.10.1 |
Unreconstructed prompt history during incident response; compliance gaps | Immutable, structured audit logs capturing latency, tokens, provider metadata, and user context | SIEM/data lake streaming records; cryptographic export trails |
| Agent & Tool Governance | NIST AI RMF: MANAGE 2.2 OWASP LLM: LLM07 |
Unchecked agent tool invocation; arbitrary code execution via MCP servers | MCP tool filtering restricting tool execution permissions per virtual key | Allowed tool catalogs; blocked tool invocation logs |
Connecting these obligations to a centralized runtime layer transforms compliance from a manual questionnaire into automated infrastructure evidence.
Core Best Practice 1: Establish Gateway-Level Identity and Policy Enforcement
Decentralized API keys scattered across microservices, developers' .env files, and continuous integration pipelines undermine enterprise identity hygiene. When an API key provided directly by an external vendor is compromised, identifying the breached application or revoking access without triggering outages is exceptionally difficult.
Centralizing all LLM interactions through Bifrost resolves this problem by separating upstream vendor credentials from downstream consumer identities. Security administrators store actual vendor API credentials within enterprise secret vaults (such as HashiCorp Vault or AWS Secrets Manager), exposing only managed virtual keys to internal developers and services.
┌────────────────────────┐ ┌─────────────────────────┐ ┌────────────────────────┐
│ Downstream Application │ ───► │ Bifrost AI Gateway │ ───► │ Upstream Provider │
│ Uses Virtual Key: │ │ Enforces Budget, RBAC, │ │ Receives Master API Key│
│ "vk-sec-ops-prod-01" │ │ and PII Guardrails │ │ (Kept Secure in Vault) │
└────────────────────────┘ └─────────────────────────┘ └────────────────────────┘
Using virtual keys, security teams bind each key to explicit organizational metadata:
- Tenant and Team Ownership: Requests are linked to specific cost centers, business applications, and authenticated users via OpenID Connect (OIDC) with identity providers like Okta or Microsoft Entra ID.
- Model and Provider Scoping: A virtual key assigned to an external customer support bot can be constrained strictly to low-risk, pre-approved models, preventing accidental invocation of expensive reasoning models.
- Hierarchical Budgets: Virtual keys can enforce hard budget ceilings on a monthly, weekly, or hourly basis, automatically returning standard HTTP 429 status codes when thresholds are breached.
- Granular Rate Limits: Request-per-minute (RPM) and token-per-minute (TPM) limits protect upstream quotas and insulate organizations against runaway loops in agentic software.
This architecture satisfies SOC 2 Logical Access controls (CC6.1) by ensuring that access to sensitive external services is uniquely identified, strictly authorized, and centrally revocable.
Core Best Practice 2: Embed Multi-Layer Runtime Guardrails in the Request Path
Post-hoc audit reviews do not prevent data exfiltration. If proprietary source code or customer personal data reaches an external LLM, the data has left the boundary regardless of whether it is flagged in an audit report hours later. Effective governance requires pre-request inspection and sanitization.
Inline guardrails act as an automated validation barrier on both inbound prompts and outbound completions. Security teams can configure multiple inspection engines in series:
Inbound Prompt
│
▼
┌──────────────────────────────────────────────────────────┐
│ Step 1: Secrets Detection (Gitleaks pattern scanning) │ ──► [Matched: Block Request]
└─────────────────────────────┬────────────────────────────┘
│ Passed
▼
┌──────────────────────────────────────────────────────────┐
│ Step 2: Custom Regex & PII Redaction (SSN, Email, Cards) │ ──► [Matched: Mask Tokens]
└─────────────────────────────┬────────────────────────────┘
│ Redacted
▼
┌──────────────────────────────────────────────────────────┐
│ Step 3: Content Safety Engine (Bedrock / Azure Safety) │ ──► [Unsafe: Reject Request]
└─────────────────────────────┬────────────────────────────┘
│ Approved
▼
Forwarded to Target LLM
- Secrets Detection: Scans prompt streams for high-entropy tokens, private keys, database connection strings, and cloud credentials before payloads depart the corporate network.
- PII Masking and Redaction: Intercepts identifiers like Social Security numbers, medical records, and credit card numbers, replacing them with redaction tokens to maintain prompt utility while preserving privacy obligations under GDPR and HIPAA.
- Semantic Safety Classifiers: Passes inputs and outputs through secondary safety models (such as AWS Bedrock Guardrails, Azure Content Safety, or Patronus AI) to evaluate prompt injection attempts, toxic phrasing, and out-of-domain interactions.
Because this scanning takes place directly on the proxy layer, engineering teams do not need to write bespoke sanitization logic into every application. Security teams maintain centralized governance policies, updating regex templates or tightening safety thresholds globally without requiring application redeployments.
Core Best Practice 3: Implement Zero-Trust Governance for MCP and AI Agents
The transition from static question-answering systems to autonomous agents introduces significant security challenges. Through protocols like the Model Context Protocol (MCP), LLMs are granted access to external tools: file systems, database connectors, code execution sandboxes, and enterprise APIs.
Unrestricted agent tool execution creates severe privilege escalation risks. If an untrusted prompt injection attack succeeds against an agent connected to an internal API, the attacker can execute commands with the full permissions of that agent. CISOs must apply Zero-Trust principles to agent capabilities through structured tool boundaries:
┌───────────────────────────────┐
│ Allowed Tool Group: │
│ "Customer-Support-Tier1" │
│ │
│ [X] Read CRM Record │
│ [X] Query Knowledge Base │
│ [ ] Delete Database Table │
│ [ ] Execute Shell Command │
└───────────────┬───────────────┘
│
┌───────────────────────────────┐ ▼ ┌─────────────────────────────┐
│ Agent Prompt: │ ┌───────────────────────┐ │ Downstream Enterprise API │
│ "Delete database record 402" │ ──► │ MCP Gateway Policy │ ──X │ Execution Denied: │
│ │ │ Enforcement │ │ Unauthorized MCP Tool Call │
└───────────────────────────────┘ └───────────────────────┘ └─────────────────────────────┘
- Tool Whitelisting and Grouping: Tools should never be globally accessible. Bifrost allows administrators to define explicit MCP tool groups attached to specific virtual keys. An internal analytical agent can be granted read-only SQL access while strictly prohibiting destructive mutation operations.
- Granular Execution Governance: Bifrost acts as a managed MCP gateway, intercepting tool discovery requests and execution payloads. Requests targeting tools outside an application's authorization profile are blocked at the proxy layer before reaching backend infrastructure.
- Token Optimization and Attack Surface Reduction: Using structured tool governance like Bifrost Code Mode reduces prompt bloat by orchestrating tools in controlled runtime environments, preventing the exposure of unnecessary API schemas to the model's reasoning loop.
Restricting agent tools programmatically addresses the requirements of ISO/IEC 42001 Control A.9 (System dependencies and external tool integrations), ensuring autonomous behaviors remain bounded within defensible blast radiuses.
Core Best Practice 4: Unify Gateway Controls with Endpoint AI Governance
A major blind spot in enterprise AI governance is shadow AI operating directly on employee workstations. While server-side microservices can be routed through an enterprise gateway, employees routinely install standalone desktop assistants (such as Claude Desktop), use browser-based interfaces, or install coding tools (such as Cursor, Claude Code, and Codex CLI) that connect directly to external provider APIs using unmanaged personal or corporate credit cards.
Beyond routing, Bifrost applies governance and security controls (virtual keys, budgets, guardrails, audit logs) centrally, and Bifrost Edge extends that same governance and security to AI traffic on employee machines, with endpoint enforcement on each device.
┌────────────────────────────────────────────────────────┐
│ Bifrost Control Plane │
│ Policies: Allow/Deny Apps, Virtual Keys, Budgets │
└───────────┬────────────────────────────────┬───────────┘
│ Central Policy Sync │
▼ ▼
┌───────────────────────┐ ┌───────────────────────┐
│ Developer Machine │ │ Analyst Machine │
│ ┌───────────────────┐ │ │ ┌───────────────────┐ │
│ │ Bifrost Edge │ │ │ │ Bifrost Edge │ │
│ └─────────┬─────────┘ │ │ └─────────┬─────────┘ │
│ │ Routes │ │ │ Enforces │
│ ┌─────┴─────┐ │ │ ┌─────┴─────┐ │
│ ▼ ▼ │ │ ▼ ▼ │
│ Claude Cursor │ │ Browser ChatGPT │
│ Code IDE │ │ Chat Desktop │
└───────────────────────┘ └───────────────────────┘
Operating in alpha, the Bifrost Edge lightweight daemon lives in the system tray across macOS, Windows, and Linux. When deployed fleet-wide via standard Mobile Device Management (MDM deployment) platforms such as Microsoft Intune, Jamf, Kandji, or JumpCloud, it enforces centralized policies without requiring manual reconfiguration of local application endpoints:
- Automatic Discovery and App Governance: Bifrost Edge identifies installed AI applications across workstations, allowing administrators to enforce app governance policies. Approved applications route transparently through the enterprise gateway, while unauthorized desktop tools are blocked on the endpoint before network requests leave the device.
- Local MCP Server Visibility: Bifrost Edge inventories the local MCP servers and external plugins that users configure inside tools like Claude Code or Cursor. Security teams gain visibility into which desktop tools have access to local file systems or enterprise repositories, stopping ungoverned data ingestion.
- Universal Policy Inheritance: Every prompt originating from an employee laptop inherits the same PII redaction, secrets interception, and audit logging configured on the centralized gateway. Developers authenticate via existing enterprise Single Sign-On (SSO) with zero manual API key distribution.
This unified approach ensures that compliance with ISO 42001 and NIST AI RMF applies consistently across both backend server architectures and distributed employee endpoints.
Core Best Practice 5: Maintain Continuous, Immutable Audit Trails for Compliance
Attestation under SOC 2 Type II or ISO/IEC 42001 requires verifiable, historical evidence demonstrating that configured controls operate effectively over time. In distributed architectures, LLM telemetry is frequently fragmented across separate application log groups, third-party vendor dashboards, and cloud provider monitoring tools.
To create defensible records, organizations must centralize request-level metadata into an immutable, unified schema:
{
"timestamp": "2026-09-03T09:14:22.184Z",
"request_id": "req_bifrost_9f82c4aa10",
"virtual_key_id": "vk_fin_analytics_04",
"user_identity": "j.doe@enterprise.com",
"provider": "anthropic",
"model_requested": "claude-3-5-sonnet",
"model_routed": "claude-3-5-sonnet",
"prompt_tokens": 1420,
"completion_tokens": 312,
"total_cost_usd": 0.00894,
"latency_ms": 642,
"guardrail_actions": [
{
"rule": "pii_detection",
"action": "masked",
"entity_type": "us_ssn",
"count": 1
}
],
"mcp_tools_called": [
"crm_fetch_customer_history"
],
"policy_decision": "allowed"
}
Capturing structured metadata at the gateway layer delivers three critical capabilities:
- Zero-Storage Data Isolation: In regulated environments (such as healthcare or banking), policies often prohibit retaining raw prompt contents. Bifrost supports zero-content telemetry logging, capturing tokens, costs, model parameters, and guardrail decisions while completely discarding raw prompt text to satisfy strict data access control mandates.
- Export to Security Information and Event Management (SIEM): Native streaming of structured audit events into enterprise data lakes, Splunk, Datadog, or Snowflake enables real-time anomaly detection and correlates AI events with wider enterprise security telemetry.
- Cryptographic Audit Defensibility: If a compliance auditor asks to inspect all interactions involving customer records over the preceding quarter, security teams can filter logs by virtual key, user identity, and guardrail execution, eliminating weeks of manual log reconstruction.
Technical Architecture: Deploying Bifrost for Enterprise Governance
To support strict compliance regimes, security leaders often require that the AI governance layer reside inside their private security perimeter rather than relying on external multi-tenant cloud proxies.
Bifrost is deployed directly within enterprise Virtual Private Clouds (in-VPC deployments) or air-gapped data centers on Kubernetes using official Helm charts. The gateway operates as an ultra-low-latency reverse proxy written in Go, adding only 11 microseconds of overhead per request at 5,000 requests per second in sustained benchmarks.
Enterprise VPC Boundary
┌──────────────────────────────────────────────────────────────────┐
│ │
│ Internal Clients & Microservices │
│ │ │
│ ▼ (OpenAI-Compatible REST / gRPC) │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Bifrost Cluster (In-VPC) │ │
│ │ │ │
│ │ ┌─────────────────┐ ┌────────────────┐ ┌─────────────┐ │ │
│ │ │ Virtual Keys │ │ Guardrails │ │ Rate Limits │ │ │
│ │ └─────────────────┘ └────────────────┘ └─────────────┘ │ │
│ │ ┌─────────────────┐ ┌────────────────┐ ┌─────────────┐ │ │
│ │ │ Semantic Cache │ │ Fallback Logic │ │ Audit Export│ │ │
│ │ └─────────────────┘ └────────────────┘ └─────────────┘ │ │
│ └─────────────────────────────┬────────────────────────────┘ │
│ │ │
└─────────────────────────────────┼────────────────────────────────┘
│ Encrypted TLS Egress
▼
┌──────────────────────────────────────────────────────────────────┐
│ External LLM Providers (AWS Bedrock, Azure OpenAI, Anthropic...) │
└──────────────────────────────────────────────────────────────────┘
Key architectural benefits for security teams include:
-
Drop-in Compatibility: Applications change only their
base_urlconfiguration to target the gateway, using standard OpenAI or Anthropic SDKs with no code refactoring required. - High Availability and Resilience: Built-in clustering ensures zero single points of failure, using gossip-based state replication to synchronize rate-limiting quotas and virtual key budgets across geographically distributed nodes.
- Cost Reduction via Semantic Caching: Identical or semantically similar queries are served directly from an encrypted cache, dramatically cutting downstream provider costs and reducing external network egress.
Security leaders evaluating enterprise gateway capabilities can explore technical selection criteria in detail within the LLM Gateway Buyer's Guide.
Frequently Asked Questions
What is the role of the CISO in AI governance?
The CISO is responsible for establishing the technical architecture, access boundaries, and continuous monitoring controls that protect organizational assets during AI adoption. While cross-functional councils define overall risk tolerance and ethical guidelines, the CISO ensures that data boundaries, regulatory frameworks, audit trails, and runtime protections are systematically enforced across all AI applications, infrastructure, and endpoints.
How does ISO 42001 differ from the NIST AI RMF?
ISO/IEC 42001 is a formal, certifiable international standard that specifies requirements for establishing, implementing, maintaining, and continually improving an Artificial Intelligence Management System (AIMS). The NIST AI Risk Management Framework (AI RMF 1.0) is a voluntary, non-certifiable guidance framework organized into four core functions (Govern, Map, Measure, Manage). Organizations frequently use NIST AI RMF for internal risk identification and technical taxonomy, while adopting ISO 42001 to achieve formal third-party certification for customers and regulators.
Can an AI gateway prevent prompt injection attacks?
An AI gateway mitigates prompt injection attacks by acting as a centralized enforcement layer that executes multi-layered guardrails before payloads reach downstream models. While no single defense eliminates all adversarial manipulation, a gateway combines high-entropy secrets scanning, heuristic pattern blocking, and secondary safety classifier models in series, systematically neutralizing unauthorized system instructions and blocking data exfiltration attempts.
How do CISOs control shadow AI on employee laptops?
CISOs govern shadow AI by pairing a centralized gateway with endpoint AI governance tools like Bifrost Edge. Deployed across corporate workstations via MDM systems, endpoint agents discover local desktop AI applications and command-line coding tools, enforce application allowlists, and route all local AI traffic through the organization's central gateway, ensuring corporate policies apply without requiring manual per-app configuration.
How does an AI gateway support SOC 2 compliance?
An AI gateway supports SOC 2 compliance across the Common Criteria by centralizing logical access controls via virtual keys (CC6.1), intercepting and redacting sensitive data before transmission (CC6.6), logging all request metadata to immutable audit records (CC7.2), and providing automated multi-provider failover to maintain system availability (CC7.1).
What are the biggest risks of using autonomous AI agents with tools?
The primary risk of autonomous AI agents is unintended action execution through external tools, including unauthorized database modifications, arbitrary code execution, and data exfiltration caused by indirect prompt injection. Mitigating this risk requires strict tool whitelisting, perimeter-level MCP tool governance, per-virtual-key permission boundaries, and mandatory human-in-the-loop validation for sensitive or destructive operations.
Next Steps
Operationalizing AI governance requires moving beyond static policy documents to programmatic controls embedded directly in the request path. By establishing centralized virtual keys, inline guardrails, and unified endpoint enforcement, security leaders ensure their organizations innovate rapidly while maintaining full compliance with modern security frameworks.
Teams evaluating AI gateways can request a Bifrost demo or examine the codebase in the open-source repository.



Top comments (0)