Architecture Overview

AegisGate v3.2.0 secures AI interactions across five pillars — four protocol layers (HTTP API, MCP, A2A, RESPONSE) plus the Trust Framework — in a single 19 MB binary.

flowchart TB subgraph Client["Client Layer"] A["HTTP Client"] B["MCP Client"] C["A2A Agent"] D["ACP Agent"] E["ANP Client"] end subgraph AegisGate["AegisGate Platform v3.2.0"] G["HTTP Proxy :8080"] H["MCP Server :8081"] I["A2A Endpoint :8082"] J["ACP Gateway :8083"] K["ANP Router :8084"] L["RESPONSE Guard"] TR["Trust Framework\nPkg/trust/\n(NEW v3.2.0)"] M["Scanner - 144+ patterns"] N["ATLAS - 66 techniques"] O["Rate Limiter"] P["Audit Logger - RFC 5424"] Q["SSO - OIDC/SAML"] R["RBAC Engine"] S["License - ECDSA P-256"] T["Prometheus :8443"] end subgraph Upstream["Upstream"] U["AI Services"] V["MCP Tools"] W["Peer Agents"] end A --> G B --> H C --> I D --> J E --> K G --> M & O & P & L H --> M & O & P & L I --> M & O & P & L J --> M & O & P & L K --> M & O & P & L M --> N L --> M O --> T P --> T Q --> R S --> R M --> TR L --> TR P --> TR S --> TR

Five Pillars of AI Security

AegisGate v3.2.0 protects every AI interaction with four protocol pillars and one cross-cutting trust pillar. The Trust Framework is the 5th pillar, new in v3.2.0, and ties together the four protocol pillars with cryptographically-signed attestations and a per-session trust score.

1. HTTP API Security (v3.0+, port 8080)

Bidirectional scanning with 144+ detection patterns:

Pattern SetCountCoverage
MITRE ATLAS52Adversarial AI tactics
OWASP LLM Top 1049LLM01-LLM10
Secrets Scanning44+API keys, tokens, credentials
PII Detection12+GDPR/CCPA compliance

2. MCP Protocol Protection (v3.0+, port 8081)

8 guardrails for every MCP connection:

#GuardrailDescription
1Session AuthenticationAuth required for all MCP sessions
2Concurrent Session LimitsMax simultaneous sessions per tier
3Tools per SessionMax tools available per session
4STDIO ValidationCommand injection prevention
5Execution TimeoutMax execution time per tool call
6Memory MonitoringAlerts at configurable threshold
7Per-Client RPMMax requests/minute per client
8Tool AuthorizationRisk-based tool call approval matrix

3. A2A Agent-to-Agent Security (v2.0+, port 8082)

Zero-trust guardrails for inter-agent communication. ACP and ANP are routed through the A2A endpoint as sub-transports; their security mechanisms (HMAC, mTLS, capability enforcement) live inside this pillar.

#GuardrailDescription
1mTLS AuthenticationX.509 certificate verification
2HMAC-SHA256 IntegrityFull request body validation
3Capability EnforcementLeast-privilege per agent
4Token-Bucket Rate LimitingPer-agent request quotas
5Request Size LimitsConfigurable body size limit
6Timeout EnforcementConfigurable request timeouts
7License ValidationECDSA P-256 cryptographic enforcement
8Audit LoggingRFC 5424 structured logs

4. RESPONSE Security (v3.1, all ports)

AI response scanning for all protocols:

#GuardrailDescription
1PII ScannerSSN, credit cards, emails, phones, health info
2Secret DetectorAPI keys (Stripe, GitHub, AWS, OpenAI, Slack)
3Hallucination DetectorFalse statements, overconfidence, unverified claims
4Toxicity FilterHate speech, violence, harassment
5Token LimiterRate limiting for response token counts
6Response RedactorIntelligent redaction with multiple strategies
7Compliance ReportsAuto-generates GDPR, HIPAA, PCI-DSS, SOC2 reports
8Response Guard MiddlewareUnified scanning for HTTP, MCP, A2A, ACP, ANP

5. Trust Framework (v3.2.0, new)

The 5th pillar. Continuous, per-session trust scoring with cryptographically-signed attestations. Ties the four protocol pillars together into a single, auditable trust story. Available on Professional+ tiers.

#ComponentDescription
1Session Trust Score0–100 score accumulated per session from MCP, A2A, Proxy, and Response events
2Ed25519 AttestationsEvery event emits a signed attestation (pkg/trust/attestation/signer.go)
3Attestation VerifierAny party can verify a signed attestation offline (pkg/trust/attestation/verifier.go)
4Cross-Pillar CorrelationFindings from all 4 protocol pillars feed into a single trust score
5Trust Score APIGET /api/v1/trust/score?session=ID returns the live score and component breakdown
6Attestations FeedGET /api/v1/trust/attestations?since=TIMESTAMP returns the rolling event log
7Tier-Gated ActivationThe TRUST_PILLAR_ENABLED feature flag gates the API behind Professional+
8Compliance Scan EnginePowers the /api/v1/compliance/scan and /api/v1/compliance/report endpoints

Trust Framework API

GET /api/v1/trust/score?session=SESSION_ID
→ { "session_id": "...", "score": 87, "components": { "threat_blocks": 5, "tool_risk_avg": 2.3, "a2a_caps_used": 1, "response_findings": 0 } }

GET /api/v1/trust/attestations?since=TIMESTAMP&limit=100
→ { "attestations": [
    { "id": "att_...", "session_id": "...", "timestamp": "...", "pillar": "mcp", "verdict": "blocked_threat", "signature": "ed25519:..." },
    ...
] }

Attestation Format

Each attestation is a JSON object signed with Ed25519. The signature is computed over the canonicalized attestation body (excluding the signature field) and verified using the platform’s public key. Attestations are append-only and intended for offline audit and external verification.

Tier Gating

The Trust Framework is enabled by the TRUST_PILLAR_ENABLED feature flag, which is set automatically for Professional and Enterprise tiers. Developer and lower tiers receive HTTP 402 (Payment Required) from the trust API endpoints.


Enterprise Authentication (v3.0+)

FeatureTierDetails
OIDC / OAuth 2.0Community+Full OpenID Connect with PKCE
SAML 2.0Community+Pre-configured Azure AD, Okta, Google Workspace
RBACCommunity+Role-based access control
Tool Authorization MatrixCommunity+Risk-weighted tool approval by role
License EnforcementCommunity+ECDSA P-256 cryptographic validation
API Key FallbackCommunity+Key-based auth for CI/CD

Compliance Frameworks (v3.1)

FrameworkCoverageTier
MITRE ATLAS66 techniquesCommunity
NIST AI RMF 1.500Full coverageCommunity
OWASP LLM Top 1049 patternsCommunity
GDPRPII detectionCommunity
HIPAAPHI detectionProfessional
PCI-DSSCard data detectionProfessional
SOC2 Type IIEnterprise controlsProfessional
ISO 27001Information securityProfessional
ISO 42001AI managementProfessional

Performance (v3.2.0)

MetricTargetAchieved
Test Coverage95%+97.8%
Total TestsAll5,484
PII Detection Latency< 1ms94.7 us
Secret Detection Latency< 1ms121.3 us
Token Counting Speed< 1ms97 ns
Error Rate< 0.1%0.00%
Docker Image Size< 20MB19 MB
CVEs00

Deployment

docker run -d \
  -p 8080:8080 \
  -p 8081:8081 \
  -p 8082:8082 \
  -p 8443:8443 \
  ghcr.io/aegisgatesecurity/aegisgate-platform:v3.2.0

Kubernetes (Helm)

helm repo add aegisgate https://aegisgatesecurity.github.io/aegisgate-platform
helm install aegisgate aegisgate/aegisgate-platform

The Helm chart includes HPA autoscaling (1-10 replicas), NetworkPolicy, ServiceMonitor for Prometheus, and rolling update strategy.


Configuration

Environment Variables

VariableDescription
AEGISGATE_HTTP_PORTHTTP proxy port (default: 8080)
AEGISGATE_MCP_PORTMCP server port (default: 8081)
AEGISGATE_A2A_PORTA2A endpoint port (default: 8082)
AEGISGATE_ACP_PORTACP gateway port (default: 8083)
AEGISGATE_ANP_PORTANP router port (default: 8084)
AEGISGATE_METRICS_PORTPrometheus metrics port (default: 8443)
AEGISGATE_LICENSE_KEYLicense key for commercial tiers

For API documentation, see docs/API.md.