Sovereign AI Security Gateway & Zero-Trust Perimeter
An enterprise-grade, zero-license-tax Sovereign AI Security Gateway & Zero-Trust Perimeter deployed on the Okustera Cloud platform.
This reference architecture demonstrates a hardened production integration of Okustera Advanced VPC Fabric (okustera_vpc, okustera_vpc_peering, okustera_route_table, okustera_vpc_endpoint, okustera_dns_zone), Fortinet FortiGate-VM Next-Generation Firewalls (NGFW), Okustera Managed Load Balancers, Microsoft Presidio in-line PII Sanitization, and Okustera AI Inference PaaS (okustera_ai_foundry_model, okustera_ai_oci_artifact, okustera_ai_rag_collection, okustera_ai_agent_sandbox, okustera_ai_mcp_token, okustera_ai_batch_job).
A live, publicly accessible instance of this workload is published at:
๐ Live Application Dashboard: https://shield.okustera.com
1. System Architecture & Packet Flowโ
The system employs a defense-in-depth, hub-and-spoke VPC perimeter where external traffic is scrubbed at the network edge, inspected by next-gen virtual firewalls, stripped of sensitive personal identifiers (PII) before reaching AI models, and guarded by custom route-table blackholes, kernel-isolated Managed Agent Sandboxes, and KMS-scoped MCP tokens during agentic tool execution:
2. Interactive Web UI Dashboard & Security NOCโ
The reference workload includes an interactive web dashboard and Network Operations Center (NOC) served over HTTPS (Port 443) at https://shield.okustera.com/:
- Live Security KPI Telemetry: Real-time counters for total prompts inspected, PII tokens sanitized, FortiGate threat blocks, MCP agent tools executed, vector RAG retrievals, and end-to-end latency.
- Pre-Configured Enterprise Scenarios:
- Banking & Financial Ledger: Ingests prompts with synthetic names, SSNs, and IBANs; sanitizes them with Presidio; executes an MCP tool call over PrivateLink (
com.okustera.dbaas) to query private account balances; and restores entities inside the session enclave. - Healthcare / HIPAA PHI: Ingests clinical inquiries containing Patient Names, Medical Record Numbers (MRN), and symptoms; strips PHI before model inference.
- Threat Drill 1 (MCP SSRF Exploit Probe): Simulates an agentic prompt injection attempting to probe link-local cloud metadata (
http://169.254.169.254/); demonstrates immediate FortiGate East-West & VPC Blackhole drop via policyFGT-POL-001-ANTI-SSRF-METADATA. - Threat Drill 2 (Ingress SQL Injection Attack): Injects an OWASP SQLi payload (
' OR 1=1--) in the prompt body; demonstrates immediate HTTP 403 Forbidden rejection at the edge firewall before compute or AI models are touched.
- Banking & Financial Ledger: Ingests prompts with synthetic names, SSNs, and IBANs; sanitizes them with Presidio; executes an MCP tool call over PrivateLink (
- 5-Stage Pipeline Execution Stepper:
- Managed Load Balancer & FortiGate Perimeter Inspection (WAF, rate limiting, and DDoS scrubbing)
- Microsoft Presidio Entity Recognition & Anonymization (in-line zero-retention masking)
- Model Context Protocol (MCP) & Vector RAG Execution (isolated agent sandbox & KMS-scoped JWT authorization)
- Sovereign Model Generation (
qwen2.5:1.5bwith Multi-LoRAokustera/qwen2.5-secops-lora:v1.0.0ordeepseek-r1:1.5b) - Reversible Deanonymization Enclave (ephemeral session-scoped entity restoration)
3. Core Capabilities Demonstratedโ
A. Advanced Perimeter & Load Balancing (Managed LB + FortiGate-VM)โ
- High-Availability Ingress Load Balancer: Layer 4/7 TCP load balancing distributes incoming traffic across redundant firewall appliances with automated health monitoring and active-standby failover.
- FortiGate Next-Gen Virtual Firewall (
vfw.small): Enforces Layer 7 WAF inspection, blocking SQLi, XSS, and remote code execution (RCE) attacks with immediate HTTP 403 responses, plus linear-time prompt leak guardrails (FGT-AIGW-3001-PROMPT-INJECTION-LEAK) immune to ReDoS backtracking. - FGCP Active-Passive Clustering: Heartbeat synchronization across an isolated HA subnet enables sub-second stateful failover with zero session drop.
B. Advanced VPC Fabric, VPC Peering & PrivateLink Endpointsโ
- Three-Tier Automated IPAM (
okustera_vpc): Provisions bothsovereign-security-hub-vpc(198.51.100.0/24) andsovereign-ai-agent-spoke-vpc(203.0.113.0/24) using thethree_tier_standardtopology preset. - Inter-VPC Peering (
okustera_vpc_peering): Establishes non-overlapping East-West peering (pcx-security-hub-to-ai-spoke) between the FortiGate inspection hub and the isolated AI spoke. - Zero-Trust Custom Route Tables (
okustera_route_table): Routes0.0.0.0/0spoke egress through the FortiGate LAN transit VIP (198.51.101.254) while enforcing a hardwareblackholeroute for169.254.169.254/32to block cloud IMDS SSRF probes at Layer 3. - PrivateLink VPC Endpoints (
okustera_vpc_endpoint): Connects the AI spoke VPC privately with zero public internet egress to:com.okustera.ai(vpce-sovereign-ai-foundry) โ Model Foundry, real-time serving & Vector RAGcom.okustera.s3(vpce-sovereign-s3) โ S3 Object Storage for SafeTensors weights & batch JSONL I/Ocom.okustera.registry(vpce-universal-registry-oci) โ Universal Artifact Registry for Multi-LoRA adapterscom.okustera.dbaas(vpce-core-banking-dbaas) โ Managed PostgreSQL financial ledger cluster
- Split-Horizon Private DNS (
okustera_dns_zone&okustera_dns_recordset): Resolvesfoundry.ai.internal.okustera.directly to the Spoke PrivateLink VIP.
C. In-Line Reversible PII Masking (Microsoft Presidio 2.2)โ
- Zero Model Data Retention: Uses a pre-installed spaCy
en_core_web_smNLP engine and custom enterprisePatternRecognizerrules to scan raw prompt text before it reaches any LLM or audit log, replacing sensitive entities with deterministic, type-aware tokens:- Person names:
<PERSON_1>,<PERSON_2> - Financial identifiers:
<IBAN_CODE_1>,<CREDIT_CARD_1> - Social Security Numbers:
<US_SSN_1> - Healthcare identifiers:
<MEDICAL_RECORD_NUMBER_1>
- Person names:
- Ephemeral Session Vault: Entity mappings remain strictly in an in-memory, session-scoped vault. When the model returns a response referencing
<PERSON_1>, the gateway restores the original entity before transmitting the final output to the authorized caller.
D. Model Context Protocol (MCP) in Isolated Agent Sandboxes with Scoped JWTsโ
- Managed Agent Sandbox (
okustera_ai_agent_sandbox): Executes MCP tools (query_customer_ledger,lookup_sovereign_policy,execute_risk_score) inside a kernel-isolated sandbox enforcing non-root execution, IMDS blocking, read-only skill mounts, FQDN egress allowlisting, and S3 prefix scoping. - Short-Lived KMS-Scoped MCP Tokens (
okustera_ai_mcp_token): Mints<= 900saudience-scoped (mcp.sovereign-banking-mcp) JWTs backed by the Okustera KMS Secrets Vault (secret_ref = "shield-mcp-ledger-secret",raw_secret_exposed = false) and enforces explicitallowed_tools(FGT-MCP-4001-KMS-SCOPE-VIOLATION). - Anti-SSRF Perimeter & Blackhole Protection: Prompt injection attacks attempting to probe cloud metadata (
169.254.169.254) or internal management networks are intercepted and dropped by both the VPC route-table blackhole and FortiGate policyFGT-POL-001-ANTI-SSRF-METADATA.
E. Sovereign AI-as-a-Service (Model Foundry, Multi-LoRA, Vector RAG & Batch)โ
- SafeTensors Model Verification (
okustera_ai_foundry_model): RegistersQwen/Qwen2.5-1.5B-Instructwith automated.safetensorsverification and.bin/.ptpickle rejection. - Multi-LoRA OCI Artifact Packaging (
okustera_ai_oci_artifact): Packages theokustera/qwen2.5-secops-lora:v1.0.0Rank-16 adapter into the Universal Artifact Registry (com.okustera.registry) for dynamic serving. - Managed Qdrant Compliance RAG (
okustera_ai_rag_collection): Queries the384-dimCosinesovereign_compliance_kbvector collection over PrivateLink (com.okustera.ai) for GDPR, HIPAA, EU AI Act, and DORA controls. - Frontier Batch Jobs (
okustera_ai_batch_job): Executes asynchronous regulatory compliance audits ondeepseek-v4-flash:284busing S3 JSONL inputs and outputs over PrivateLink (com.okustera.s3).
4. Network Topology & IP Allocation Planโ
| Segment / Network | Documentation CIDR (RFC 5737) | Gateway Interface | Role & Security Invariants |
|---|---|---|---|
| Hub WAN DMZ | 198.51.100.0/24 | 198.51.100.1 | โข Managed Load Balancer VIP: 198.51.100.10โข FortiGate-VM port1 (WAN): 198.51.100.254โข Public Floating IP attached to Load Balancer VIP. |
| Hub Transit LAN | 198.51.101.0/24 | 198.51.101.1 | โข FortiGate-VM port2 (LAN): 198.51.101.254โข AI Gateway & Presidio Pods: 198.51.101.50โข Transit forwarding enabled for Hub-to-Spoke traffic. |
| Hub HA Sync | 192.0.2.0/24 | None | โข FortiGate-VM port3 (HA): 192.0.2.1โข Dedicated FortiGate Clustering Protocol (FGCP) heartbeat link. |
| Spoke AI & MCP VPC | 203.0.113.0/24 | 203.0.113.1 | โข VPC Peering pcx-security-hub-to-ai-spokeโข Route Table rtb-ai-spoke-zero-trust: 0.0.0.0/0 โ 198.51.101.254, 169.254.169.254/32 โ blackholeโข 4 PrivateLink Endpoints ( com.okustera.ai, .s3, .registry, .dbaas). |
5. Project Structureโ
secure-ai-gateway/
โโโ README.md # Architecture and operations guide
โโโ app/
โ โโโ main.py # FastAPI application, OpenAI proxy & AIaaS endpoints
โ โโโ requirements.txt # Python dependencies (presidio-analyzer, presidio-anonymizer, fastapi, uvicorn)
โ โโโ Dockerfile # Multi-stage container definition with pre-installed en_core_web_sm
โ โโโ engine/
โ โ โโโ ai_gateway.py # Orchestrator coordinating VPC, Presidio, RAG, Multi-LoRA, MCP & Batch
โ โ โโโ presidio_service.py # Presidio Analyzer & Anonymizer with custom enterprise patterns
โ โ โโโ mcp_server.py # MCP server with KMS JWT scope guard, Vector RAG & anti-SSRF
โ โ โโโ prompt_filter.py # Linear-time O(N) prompt leak guardrail immune to ReDoS
โ โโโ templates/
โ โโโ index.html # Interactive visualizer dashboard and threat simulator
โโโ config/
โ โโโ fortigate.conf # Declarative FortiOS 7.x appliance configuration
โโโ terraform/
โ โโโ main.tf # Okustera Terraform Provider configuration
โ โโโ vpc_advanced_fabric.tf # Three-Tier VPCs, Peering, Route Tables, PrivateLink & Private DNS
โ โโโ ai_foundry_and_agents.tf # SafeTensors Foundry, Multi-LoRA OCI, RAG, Agent Sandbox, MCP JWT & Batch
โ โโโ networking_hub.tf # Hub VPC: WAN, LAN, HA Sync subnets & ports
โ โโโ networking_spoke.tf # Spoke VPC: MCP subnet & static route interception
โ โโโ loadbalancers.tf # Managed Ingress Load Balancer & VIP
โ โโโ fortigate_vm.tf # Multi-NIC FortiGate-VM instance provisioning
โ โโโ gateway_route.tf # Okustera API Gateway HTTPS route & WAF policy
โ โโโ variables.tf # Input variables and sizing parameters
โ โโโ outputs.tf # VIPs, PrivateLink endpoints, and AIaaS outputs
โโโ k8s/
โ โโโ shield-deployment.yaml # Kubernetes Deployment & Service in tenant-shield
โโโ tests/
โ โโโ test_prompt_filter_redos.py # Linear ReDoS immunity & prompt guardrail unit tests
โ โโโ test_vpc_and_aiaas.py # Advanced VPC & AIaaS unit tests
โโโ scripts/
โโโ deploy.sh # Local service manager (start, stop, status, test)
โโโ verify_security_suite.sh # Automated 10-stage security, VPC & AIaaS verification suite
6. Declarative Manifests & Code Implementationโ
A. Managed API Gateway Route & TLS (terraform/gateway_route.tf)โ
resource "okustera_apisix_route" "shield_gateway" {
name = "shield-gateway-route"
domain = "shield.okustera.com"
path = "/*"
upstream = {
service_name = "sovereign-ai-gateway-service"
port = 8080
timeout = 120
}
tls_enabled = true
cluster_issuer = "letsencrypt-prod"
waf_enabled = true
waf_mode = "Blocking"
cors_enabled = true
rate_limit = {
requests_per_minute = 600
burst = 50
}
}
B. Advanced VPC Fabric & Hub-and-Spoke Terraform (terraform/vpc_advanced_fabric.tf)โ
# 1. Security Inspection Hub VPC (Three-Tier Automated IPAM)
resource "okustera_vpc" "inspection_hub" {
name = "sovereign-security-hub-vpc"
cidr = "198.51.100.0/24"
topology_preset = "three_tier_standard"
enable_dns_hostnames = true
enable_dns_support = true
deletion_protection = true
}
# 2. Isolated AI & MCP Agent Spoke VPC (Three-Tier Automated IPAM)
resource "okustera_vpc" "ai_agent_spoke" {
name = "sovereign-ai-agent-spoke-vpc"
cidr = "203.0.113.0/24"
topology_preset = "three_tier_standard"
enable_dns_hostnames = true
enable_dns_support = true
enable_s3_endpoint = true
enable_ai_endpoint = true
}
# 3. Non-Overlapping CIDR Inter-VPC Peering (Hub <-> Spoke)
resource "okustera_vpc_peering" "hub_to_spoke" {
name = "pcx-security-hub-to-ai-spoke"
vpc_id = okustera_vpc.inspection_hub.id
peer_vpc_id = okustera_vpc.ai_agent_spoke.id
auto_accept = true
}
# 4. Custom Zero-Trust Spoke Route Table (Transit Inspection + Metadata Blackhole)
resource "okustera_route_table" "spoke_zero_trust_rtb" {
name = "rtb-ai-spoke-zero-trust"
vpc_id = okustera_vpc.ai_agent_spoke.id
routes = [
{
destination = "198.51.100.0/24"
target_type = "peering"
target = okustera_vpc_peering.hub_to_spoke.id
},
{
destination = "0.0.0.0/0"
target_type = "snat_gateway"
target = "198.51.101.254" # FortiGate-VM LAN Transit VIP
},
{
destination = "169.254.169.254/32"
target_type = "blackhole"
target = "blackhole" # Hardware drop for cloud IMDS SSRF mitigation
}
]
associated_subnet_ids = [
var.spoke_mcp_subnet_id
]
}
# 5. PrivateLink VPC Endpoints (AI Foundry, S3, Artifact Registry & Managed DBaaS)
resource "okustera_vpc_endpoint" "ai_foundry" {
name = "vpce-sovereign-ai-foundry"
vpc_id = okustera_vpc.ai_agent_spoke.id
service_name = "com.okustera.ai"
subnet_ids = [var.spoke_mcp_subnet_id]
private_dns_enabled = true
}
resource "okustera_vpc_endpoint" "ledger_dbaas" {
name = "vpce-core-banking-dbaas"
vpc_id = okustera_vpc.ai_agent_spoke.id
service_name = "com.okustera.dbaas"
subnet_ids = [var.spoke_mcp_subnet_id]
private_dns_enabled = true
}
# 6. Split-Horizon Private DNS Zone for Internal AI & MCP Service Discovery
resource "okustera_dns_zone" "internal_ai_zone" {
name = "ai.internal.okustera."
ttl = 300
}
C. AI Inference PaaS, Model Foundry & Managed Agent Sandbox (terraform/ai_foundry_and_agents.tf)โ
# 1. Model Foundry SafeTensors Registration (Pickle-Free Verification)
resource "okustera_ai_foundry_model" "qwen_sovereign" {
repo_id = "Qwen/Qwen2.5-1.5B-Instruct"
revision = "main"
}
# 2. Multi-LoRA OCI Artifact Packaging
resource "okustera_ai_oci_artifact" "secops_compliance_lora" {
name = "okustera/qwen2.5-secops-lora"
tag = "v1.0.0"
artifact_type = "lora-adapter"
base_model = okustera_ai_foundry_model.qwen_sovereign.repo_id
lora_rank = 16
files = ["adapter_model.safetensors", "adapter_config.json"]
}
# 3. Managed Qdrant RAG Vector Collection (Sovereign Compliance Knowledge Base)
resource "okustera_ai_rag_collection" "sovereign_compliance_kb" {
name = "sovereign_compliance_kb"
vector_size = 384
distance = "Cosine"
}
# 4. Isolated Managed Agent Sandbox
resource "okustera_ai_agent_sandbox" "mcp_tool_runner" {
name = "shield-mcp-agent-sandbox"
toolchain_profile = "ai-agent-full"
workspace_storage_gi = 10
ttl_minutes = 120
s3_allowed_prefix = "s3://shield-agent-workspaces/prod/"
egress_allowed_fqdns = [
"foundry.ai.internal.okustera",
"rag.ai.internal.okustera",
"gateway.ai.internal.okustera"
]
mounted_skills = ["sovereign-compliance-auditor", "pii-redaction-verifier"]
}
# 5. Short-Lived Audience-Scoped MCP JWT Token Backed by Okustera KMS
resource "okustera_ai_mcp_token" "sandbox_ledger_jwt" {
sandbox_id = okustera_ai_agent_sandbox.mcp_tool_runner.id
mcp_server = "sovereign-banking-mcp"
secret_ref = "shield-mcp-ledger-secret"
ttl_seconds = 900
allowed_tools = ["query_customer_ledger", "lookup_sovereign_policy", "execute_risk_score"]
}
# 6. Asynchronous Frontier Nightly Compliance Batch Job
resource "okustera_ai_batch_job" "nightly_compliance_audit" {
name = "shield-nightly-regulatory-audit"
model = "deepseek-v4-flash:284b"
input_s3_uri = "s3://shield-batch-inputs/prod/sanitized-audit-prompts.jsonl"
output_s3_uri = "s3://shield-batch-results/prod/compliance-audit-output.jsonl"
priority = "normal"
max_tokens = 2048
}
D. FortiOS 7.x Security Policies (config/fortigate.conf)โ
config firewall policy
edit 101
set name "WAN-TO-AIGATEWAY-VIP"
set srcintf "port1"
set dstintf "port2"
set srcaddr "all"
set dstaddr "VIP-AIGATEWAY-8080"
set action accept
set schedule "always"
set service "HTTP" "HTTPS"
set utm-status enable
set waf-profile "OKUSTERA-WAF-PROFILE"
set ips-sensor "default"
set logtraffic all
next
edit 201
set name "FGT-POL-001-ANTI-SSRF-METADATA"
set srcintf "port2"
set dstintf "any"
set srcaddr "AI-GATEWAY-HOSTS"
set dstaddr "CLOUD-METADATA-169.254.169.254"
set action deny
set schedule "always"
set service "ALL"
set logtraffic all
next
edit 202
set name "FGT-POL-202-MCP-TOOLS"
set srcintf "port2"
set dstintf "port4"
set srcaddr "AI-GATEWAY-HOSTS"
set dstaddr "SPOKE-MCP-SERVERS"
set action accept
set schedule "always"
set service "HTTP"
set logtraffic all
next
end
E. Microsoft Presidio Sanitization Engine (app/engine/presidio_service.py)โ
from presidio_analyzer import AnalyzerEngine, PatternRecognizer, Pattern
from presidio_analyzer.nlp_engine import NlpEngineProvider
class PresidioPIIEngine:
def __init__(self):
# Initialize Presidio Analyzer engine using pre-installed en_core_web_sm model
provider = NlpEngineProvider(
nlp_configuration={
"nlp_engine_name": "spacy",
"models": [{"lang_code": "en", "model_name": "en_core_web_sm"}],
}
)
self.analyzer = AnalyzerEngine(nlp_engine=provider.create_engine())
self._register_custom_patterns()
self.session_vaults = {}
def _register_custom_patterns(self):
iban_pattern = Pattern("iban_pattern", r"\b[A-Z]{2}[0-9]{2}[A-Z0-9]{4}[0-9]{7,26}\b", 0.95)
self.analyzer.registry.add_recognizer(
PatternRecognizer(supported_entity="IBAN_CODE", patterns=[iban_pattern])
)
mrn_pattern = Pattern("mrn_pattern", r"\bMRN-[A-Z0-9]{6,10}\b", 0.95)
self.analyzer.registry.add_recognizer(
PatternRecognizer(supported_entity="MEDICAL_RECORD_NUMBER", patterns=[mrn_pattern])
)
F. Model Context Protocol Server with KMS JWT Guard & Anti-SSRF (app/engine/mcp_server.py)โ
class MCPSecureToolServer:
def mint_scoped_mcp_token(
self,
sandbox_id: str = "sbx-shield-mcp-agent",
mcp_server: str = "sovereign-banking-mcp",
secret_ref: str = "shield-mcp-ledger-secret",
allowed_tools: list[str] | None = None,
ttl_seconds: int = 900,
) -> dict:
if ttl_seconds > 900 or ttl_seconds < 60:
raise ValueError("MCP token ttl_seconds must be between 60 and 900 seconds (15 minutes max).")
return {
"sandbox_id": sandbox_id,
"mcp_server": mcp_server,
"audience": f"mcp.{mcp_server}",
"allowed_tools": allowed_tools or ["query_customer_ledger", "lookup_sovereign_policy", "execute_risk_score"],
"expires_in_seconds": ttl_seconds,
"kms_secret_ref": f"kms://okustera/secrets/{secret_ref}",
"raw_secret_exposed": False,
}
def _validate_mcp_token_context(self, tool_name: str, ctx: dict) -> dict:
if ctx.get("raw_secret_exposed") is True:
return {"allowed": False, "rule": "FGT-MCP-4001-KMS-SCOPE-VIOLATION"}
if int(ctx.get("expires_in_seconds", 900)) > 900:
return {"allowed": False, "rule": "FGT-MCP-4001-KMS-SCOPE-VIOLATION"}
if tool_name not in ctx.get("allowed_tools", []):
return {"allowed": False, "rule": "FGT-MCP-4001-KMS-SCOPE-VIOLATION"}
return {"allowed": True, "rule": "MCP-JWT-VERIFIED"}
7. Deployment & Verification Runbookโ
Step 1: Provision Infrastructure & Deploy Workloadโ
# 1. Provision VPC fabric, FortiGate-VM, Load Balancer, API Gateway route, and AI resources
cd terraform
terraform init
terraform apply
# 2. Deploy the gateway workload to your Kubernetes cluster
kubectl apply -f ../k8s/shield-deployment.yaml
kubectl rollout status deployment/sovereign-ai-gateway -n tenant-shield
Step 2: Run the Automated 10-Stage Security, VPC & AIaaS Verification Suiteโ
Run unit tests and the end-to-end verification script against your deployed gateway:
python3 -m unittest discover -s tests -v
./scripts/verify_security_suite.sh https://shield.okustera.com
Test Suite Execution Output:โ
======================================================================
Okustera Sovereign AI Security Gateway: Test & Verification Suite
Target Gateway: https://shield.okustera.com
======================================================================
[TEST 1/10] Querying Gateway Telemetry & Registered Tools...
โ SUCCESS: Gateway telemetry responding normally.
[TEST 2/10] Verifying Microsoft Presidio PII Sanitization...
โ SUCCESS: Presidio masked personal entities to zero-retention placeholders.
Original: Sarah Connor, SSN 000-12-3456, IBAN CH93...
Masked : "Patient <PERSON_1>, SSN <US_SSN_1>, account IBAN <IBAN_CODE_1>, Card <CREDIT_CARD_1>"
[TEST 3/10] Verifying Authorized Model Context Protocol (MCP) Tool Call...
โ SUCCESS: MCP tool executed across VPC Peering & PrivateLink (com.okustera.dbaas).
Result: "Ledger Record for ACC-10928: Balance=48250.75 CHF | Status=ACTIVE"
[TEST 4/10] Simulating Threat: AI Agent SSRF Probe targeting 169.254.169.254...
โ SUCCESS (BLOCKED): FortiGate-VM & VPC Blackhole Route dropped unauthorized metadata egress.
Policy : FGT-POL-001-ANTI-SSRF-METADATA
Action : DROP_AND_ALERT
[TEST 5/10] Simulating Threat: Ingress SQL Injection Attack in Prompt...
โ SUCCESS (BLOCKED): FortiGate L7 WAF halted execution at network border.
Policy : FGT-WAF-1001-SQL-INJECTION
Status : HTTP 403 Forbidden
[TEST 6/10] Verifying Full Pipeline: Prompt -> Mask -> Vector RAG -> Multi-LoRA -> MCP -> Deanonymize...
โ SUCCESS: Complete Hub-and-Spoke VPC & AIaaS pipeline executed.
- Raw Model Output Referenced : <PERSON_1>
- Restored Client Output Holds: Alice Henderson
- VPC Peering : pcx-security-hub-to-ai-spoke
- Multi-LoRA Adapter : okustera/qwen2.5-secops-lora:v1.0.0
[TEST 7/10] Simulating Threat: Prompt Leak Attempt & Bounded Guardrail Defense...
โ SUCCESS (BLOCKED): Prompt leak attempt intercepted by linear guardrail.
Policy : FGT-AIGW-3001-PROMPT-INJECTION-LEAK
Status : HTTP 403 Forbidden
[TEST 8/10] Verifying Advanced VPC Fabric & AI Inference PaaS Status...
โ SUCCESS: Hub/Spoke VPCs, 4 PrivateLink endpoints, SafeTensors Foundry & Agent Sandbox active.
[TEST 9/10] Verifying KMS-Scoped MCP Token Minting & Scope Guard...
โ SUCCESS: Short-lived (600s) KMS-scoped MCP JWT minted with raw_secret_exposed=false.
โ SUCCESS (BLOCKED): Unauthorized MCP tool blocked by FGT-MCP-4001-KMS-SCOPE-VIOLATION.
[TEST 10/10] Verifying Compliance Vector RAG & Frontier Batch Job...
โ SUCCESS: Vector RAG (sovereign_compliance_kb) & Frontier Batch compliance job verified.
======================================================================
ALL 10 SECURITY, VPC & AIAAS VERIFICATION TESTS PASSED!
======================================================================
Step 3: Manual cURL Verificationโ
1. Test Ingress WAF SQL Injection Mitigation:
curl -s -X POST https://shield.okustera.com/api/v1/chat \
-H "Content-Type: application/json" \
-d '{"prompt": "SELECT * FROM credit_cards WHERE 1=1 OR 1=1 --", "enable_pii_masking": true}'
# Returns: status="BLOCKED" with rule FGT-WAF-1001-SQL-INJECTION
2. Test In-Line PII Tokenization:
curl -s -X POST https://shield.okustera.com/api/v1/sanitize \
-H "Content-Type: application/json" \
-d '{"text": "Transfer 1000 EUR to Alice Henderson at IBAN CH9300000000000000000"}'
# Returns: {"anonymized_text": "Transfer 1000 EUR to <PERSON_1> at IBAN <IBAN_CODE_1>", ...}
3. Mint a Short-Lived KMS-Scoped MCP Token & Query Compliance Vector RAG:
curl -s -X POST https://shield.okustera.com/api/v1/ai/mcp/token \
-H "Content-Type: application/json" \
-d '{"sandbox_id": "sbx-shield-mcp-agent", "mcp_server": "sovereign-banking-mcp", "secret_ref": "shield-mcp-ledger-secret", "allowed_tools": ["query_customer_ledger"], "ttl_seconds": 600}'
curl -s -X POST https://shield.okustera.com/api/v1/ai/rag/query \
-H "Content-Type: application/json" \
-d '{"query": "EU AI Act high-risk governance and DORA ICT protection", "top_k": 2}'
8. Regulatory & Sovereign Compliance Alignmentโ
| Standard / Regulation | Mandatory Mandate | Architectural Safeguard Implemented |
|---|---|---|
| GDPR (EU 2016/679) | Article 9 & Chapter V | In-line Presidio tokenization ensures sensitive personal data is never transmitted to untrusted models or logged to third-party endpoints. |
| HIPAA (45 CFR ยง 164.514) | Safe Harbor De-identification | Automated detection and masking of all 18 PHI identifiers (names, medical record numbers, dates, SSN). |
| EU AI Act (2024/1689) | Article 15 & Article 52 | FortiGate East-West firewall, kernel-isolated Managed Agent Sandbox, and KMS-scoped MCP JWTs mitigate prompt injection risks and enforce cryptographic tool auditability. |
| DORA (EU 2022/2554) | Article 9 ICT Protection | Hub-and-Spoke VPC Peering, PrivateLink (com.okustera.dbaas), and scheduled sovereign compliance batch audits protect financial ICT systems. |
| NIS2 Directive | Article 21 Cyber Risk Measures | Managed Load Balancer health monitoring paired with FortiGate FGCP active-standby clustering ensures business continuity and eliminates single points of failure. |
| Zero External Cloud Egress | Data Sovereignty Mandate | Full inference execution on in-region SafeTensors Model Foundry weights and Multi-LoRA OCI adapters over PrivateLink with zero external cloud dependencies. |