Blog

Analysis on enterprise AI governance, inline policy enforcement, agentic AI security, and regulatory compliance.

Route Azure OpenAI Calls with Custom Blocklist Evidence

Azure custom blocklists are created and attached to content filters through management-plane operations, while inference calls expose only the filtering outcomes Microsoft returns. A route policy can pin an approved deployment and filter-evidence record, then classify prompt-side HTTP 400 responses separately from completion-side HTTP 200 responses with finish_reason content_filter.

AI Security Solutionsai-securityllm-securitycloud-securityarchitecturepolicy-enforcementaudit
Read post →

Turn Every Bedrock Stop Reason into a Response Policy

Amazon Bedrock Converse returns one of nine documented stopReason values. A production response path should parse the field before delivery, assign each value a route-specific disposition, preserve unknown values for review, and keep transport success separate from semantic completion. This guide defines the policy states, audit evidence, streaming checks, and destructive fixtures needed at an authenticated HTTP boundary.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementaudit
Read post →

Allowlist Bedrock Additional Response Field Paths

Amazon Bedrock Converse can surface model-native response fields requested through additionalModelResponseFieldPaths. Each entry is an RFC 6901 JSON Pointer, with AWS limits on count and path length. A production route should allowlist exact pointers by model, reject caller-controlled roots and wild guesses, verify required returned fields, and retain requested, returned, and missing paths as separate evidence.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementaudit
Read post →

Validate the Model Selected by a Bedrock Prompt Router

Amazon Bedrock Converse can return a prompt-router trace containing the model ID selected for a request. Production clients should validate that optional field against the exact router configuration approved for the route, preserve the raw value, and treat missing, malformed, unknown, or unexpected selections as explicit policy states before delivering the model response.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementaudit
Read post →

Allowlist S3 URIs for Amazon Bedrock Batch Inference

Amazon Bedrock batch inference reads input from one S3 location and writes results to another. An authenticated submission gateway can restrict those two URIs to approved buckets and prefixes before CreateModelInvocationJob reaches AWS. Durable enforcement still belongs in the Bedrock service role, S3 bucket policies, and KMS policies because the long-running job accesses S3 after submission.

AI Security Solutionsai-securityllm-securitycloud-securitypolicy-enforcementidentity-and-authorizationarchitecture
Read post →

Bind Bedrock Batch Output to an Approved KMS Key

Amazon Bedrock batch inference can write output with a customer managed KMS key selected through s3EncryptionKeyId. A safe design binds the submitted key ARN to the output bucket and prefix, grants the batch service role only the required cryptographic actions, and restricts key use through Amazon S3. DeepInspect can inspect the submission while AWS KMS, IAM, and S3 enforce encryption after submission.

AI Security Solutionsai-securityllm-securitycloud-securitypolicy-enforcementidentity-and-authorizationaudit
Read post →

Bind Every Bedrock Batch Job to an Approved Service Role

Amazon Bedrock CreateModelInvocationJob requires a service-role ARN that Bedrock assumes for batch inference. Production gateways should resolve that role from trusted route policy, verify its account and exact ARN, bind it to approved S3, KMS, model, and VPC settings, and retain the role plus job ARN as evidence instead of accepting a caller-selected execution identity.

Platform & Architectureai-securitycloud-securityidentity-and-authorizationpolicy-enforcementarchitectureaudit
Read post →

Bind Bedrock Batch Retries to One Client Request Token

Amazon Bedrock CreateModelInvocationJob accepts an optional clientRequestToken that makes repeated submissions idempotent. A safe batch client creates the token before attempt one, binds it to a canonical request digest, and reuses both after ambiguous transport failures. This guide keeps provider idempotency, local retry state, and the returned job ARN separate while limiting DeepInspect to the authenticated HTTP submission boundary.

Platform & Architectureai-securityllm-securitycloud-securityarchitectureauditpolicy-enforcement
Read post →

Bind Vertex AI Quota to the Intended Google Cloud Project

A Google Cloud access token identifies the calling principal, while the quota project identifies the consumer project used for quota and billing attribution on supported requests. This guide binds both identities to an approved Vertex route, controls x-goog-user-project, verifies serviceusage.services.use, and records the resolved resource project and quota project before authenticated AI traffic leaves the gateway.

Platform & Architectureai-securitycloud-securityidentity-and-authorizationpolicy-enforcementarchitectureaudit
Read post →

Set a Vertex Grounding Check Score Policy Around corroborateContent

Google Cloud corroborateContent returns an overall corroborationScore and extracted claims with per-claim scores and supporting fact indexes. Its citationThreshold controls which claims are returned, while a separate application policy defines overall acceptance. This guide separates provider filtering from a versioned release decision, preserves omitted-claim risk, and tests the response before grounded content reaches a user or downstream action.

Platform & Architectureai-securityllm-securitypolicy-enforcementarchitectureauditdevsecops
Read post →

Validate the Service Tier Returned by Amazon Bedrock

Amazon Bedrock Converse can return a serviceTier object whose type is priority, default, flex, or reserved. Production clients should preserve the requested and returned values, reject malformed response shapes, and route an unexpected or unknown value to review. The field is response evidence, not proof of entitlement, availability, fallback behavior, performance, or billing.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementaudit
Read post →

Validate Bedrock Prompt Variables Before Converse

Amazon Bedrock Converse accepts promptVariables as a map when modelId identifies a Prompt management resource. Each documented variable value is a union whose current member is text. This guide validates the final JSON shape, binds variable names to an approved prompt version, rejects unsafe ambiguity, and avoids inventing AWS variable-name, map-size, or text-length limits.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementdevsecops
Read post →