Security Architecture

AegisGate secures AI infrastructure across three pillars — every request is verified, every agent is authenticated, and every failure denies by default.

Fail-Closed Default

AegisGate is a security product. When in doubt, we deny. If any security check fails, encounters an error, or receives unexpected input, the request is rejected — never silently allowed through. This applies across all three pillars:

ScenarioBehavior
Missing authentication header403 Forbidden
Unregistered compliance frameworkError + fail
Invalid license key403 Forbidden (no silent downgrade)
Nil/missing security handlerDeny
Internal panicRecover + deny
Missing A2A capability header403 Forbidden

Pillar 1: HTTP API Security

AegisGate scans all HTTP traffic using 176 detection patterns covering:

  • Secrets & API Keys: Detects exposed credentials before they leak
  • PII/PHI: Identifies personally identifiable and health information
  • Prompt Injection: Blocks adversarial instructions trying to manipulate AI behavior
  • Data Exfiltration: Prevents sensitive data from leaving your environment

Pillar 2: MCP Protocol Protection

The Model Context Protocol (MCP) guardrails protect tool-use interactions:

  1. Session Authentication — Verify identity of AI agents before allowing tool access
  2. Tool Authorization — Risk-matrix based control over which tools each agent can access
  3. Input Validation — Sanitize all inputs before reaching AI services
  4. Output Filtering — Remove sensitive data from responses
  5. Rate Limiting — Prevent abuse and DoS attacks
  6. Audit Logging — Complete trail of all tool executions
  7. Resource Boundaries — Limit memory and computation per session
  8. Supply Chain Verification — Validate MCP server authenticity

Fail-closed MCP guarantees:

ConditionBehavior
Untracked sessionDenied
nil tool authorizerAll tools denied
nil stdio validatorAll commands denied
Session counter driftOnSessionDestroy corrects on close

Pillar 3: A2A (Agent-to-Agent) Security

A2A guardrails protect inter-agent communication — the newest attack surface for AI systems:

  1. mTLS Authentication — Mutual TLS verifies both caller and callee identities via client certificates
  2. HMAC-SHA256 Integrity — Every request body is signed; tampering is detected and rejected
  3. Capability Enforcement — Each agent can only exercise explicitly declared capabilities
  4. License-Aware Gating — Advanced capabilities require the appropriate license tier
  5. Per-Agent Rate Limiting — Token bucket limits prevent any single agent from overwhelming the system
  6. Structured Error Codes — 14 diagnostic A2A_* error codes for fast debugging
  7. Panic Recovery — If the middleware panics, the request is denied (never allowed through)
  8. Persistent Capabilities — Agent capability maps survive restarts via atomic JSON persistence

A2A Request Flow

Client → mTLS Auth → HMAC Verify → License Check → Rate Limit → Capability Check → Handler
                                                                        ↓ (fail)
                                                                      403/429 + A2A_ERR_*

A2A Error Codes

All A2A errors use structured codes for programmatic handling. See the API Reference for the complete list of 14 error codes, HTTP statuses, and remediation steps.

Quick reference:

CodeWhy
A2A_AUTH_FAILEDBad or missing client certificate
A2A_LICENSE_MISSINGNo license key for paid-tier capability
A2A_LICENSE_INVALIDInvalid or expired license
A2A_RATE_LIMITEDToo many requests from this agent
A2A_INTEGRITY_MISSINGNo HMAC signature
A2A_INTEGRITY_INVALIDHMAC doesn’t match body
A2A_CAP_MISSINGNo capability header
A2A_CAP_DENIEDAgent lacks the requested capability
A2A_CAP_UNKNOWN_AGENTAgent not in capability map
A2A_INTERNAL_ERRORUnexpected error (recover + deny)

A2A Configuration

FilePurpose
configs/a2a.yamlHMAC shared secret, rate limits
configs/a2a_caps.yamlAgent capability map
Environment varsAEGISGATE_A2A_ENABLED, AEGISGATE_A2A_CONFIG_FILE, AEGISGATE_A2A_CAPS_FILE

ATLAS Threat Coverage

A2A guardrails map directly to MITRE ATLAS adversarial techniques:

ATLAS PatternA2A Guardrail
Agent ImpersonationmTLS Authentication
Malicious Task InjectionCapability Enforcement
Inter-Agent Data ExfiltrationCapability + Rate Limiting
Agent Privilege EscalationLicense-Aware Gating
A2A Supply Chain AttackmTLS + HMAC Integrity
Task HijackingCapability Enforcement
Agent Prompt InjectionCapability Scope
Agent Resource ExhaustionPer-Agent Rate Limiting

Compliance Frameworks

AegisGate provides automated compliance mapping across 31 security and AI governance frameworks — 4 at the free Community tier, 6 at Developer, 16 at Professional, and 5 at Enterprise. No competitor covers more than 5.

Community (Free, Apache 2.0) — 4 frameworks

FrameworkCoverage
MITRE ATLASAdversarial AI threat matrix (66 technique patterns)
OWASP LLM Top 10Large language model vulnerabilities (10 categories)
OWASP Web Top 10Web application security risks (10 categories)
NIST AI RMF 1.0AI risk management framework (50 controls)

Developer — 6 frameworks ($149/mo each, add-on)

FrameworkCoverage
HIPAAHealth information protection (54 controls)
PCI-DSS v4.0Payment card data security (152 controls)
SOC 2 Type IISecurity, availability, confidentiality (64 controls)
ISO 27001:2022Information security management (116 controls)
CCPA/CPRACalifornia consumer privacy (26 controls)
GDPREU data protection regulation (99 controls)

Professional — 4 Security Foundation ($79/mo each) + 12 Industry-Specific ($199/mo each)

Security Foundation:

FrameworkCoverage
CIS Controls v8Critical security controls (50 controls)
NIST CSF 2.0Cybersecurity framework (131 controls)
CSA STAR Level 1Cloud security assurance (16 controls)
NIST AI 600-1GenAI risk profile (12 controls)

Industry-Specific:

FrameworkCoverage
ISO 42001:2023AI management system (38 controls)
EU AI ActEuropean AI regulation (120 controls)
FIPS 140-2/3Cryptographic module validation (40 controls)
SOXFinancial reporting and controls (80 controls)
GLBAFinancial data privacy (14 controls)
CJIS Security Policy v5.9.1Criminal justice info systems (64 controls)
NERC CIPCritical infrastructure protection (55 controls)
FERPAStudent education records privacy (45 controls)
HITECHHealth information technology (35 controls)
FFIECFinancial institution security (40 controls)
TSA SDTransportation security (35 controls)
ISO 21434Automotive cybersecurity (42 controls)

Enterprise — 5 frameworks ($499/mo each)

FrameworkCoverage
FedRAMP ModerateUS federal cloud authorization (170 controls)
CMMC Level 2DoD contractor cybersecurity (150 controls)
NIST SP 800-171Controlled unclassified information (110 controls)
HITRUST CSF v11.2Health information trust alliance (200 controls)
TISAX AL2Automotive information security (65 controls)

If a compliance framework returns unregistered, AegisGate fails closed — it reports an error and marks the check as failed, rather than silently passing.


Zero-Trust Architecture

Every request is verified:

# All traffic is authenticated
curl -H "X-API-Key: your-key" http://localhost:8443/api/v1/scan

# A2A agents must present certificates, signatures, and capabilities
curl -H "X-A2A-Agent-ID: agent-001" \
     -H "A2A-Capability: send_message" \
     -H "A2A-Signature: <hmac-sha256>" \
     http://localhost:8443/api/v1/a2a/message

RBAC is enforced on all endpoints. Audit logs record every operation.


Encryption

  • In Transit: TLS 1.3 for all external connections; mTLS for A2A inter-agent
  • At Rest: AES-256 encryption for stored data
  • Secrets: HashiCorp Vault integration for key management
  • Integrity: HMAC-SHA256 for A2A message authentication