Processing Integrity Controls

AegisGate Security Platform processing integrity controls. Validation methods, error handling, and data accuracy assurance for SOC 2 Processing Integrity criteria.

Processing Integrity Controls

Version: 1.0 Owner: AegisGate Security, LLC Review Cycle: Annual (next review: Q3 2027) Contact: security@aegisgatesecurity.io


1. Purpose

This document describes the processing integrity controls implemented in AegisGate Security Platform, mapping to SOC 2 Trust Services Criteria for Processing Integrity (PI1). Processing integrity addresses whether system processing is complete, valid, accurate, timely, and authorized.


2. Processing Integrity Principles

PrincipleDefinitionAegisGate Control
CompletenessAll processing steps execute without omissionFail-closed architecture — if any check fails, the request is rejected
ValidityProcessing follows defined business rules857+ compliance CheckFuncs validate rules at runtime
AccuracyProcessing produces correct resultsHash-chained audit logs verify output integrity
TimelinessProcessing occurs within defined timeframesPer-tier rate limiting ensures timely processing
AuthorizationProcessing is initiated by authorized partiesRBAC + MFA + OIDC/SAML enforce authorization

3. Control Implementation

3.1 Input Validation

ControlImplementationVerification
Request authenticationECDSA P-256 license key validation on every requestLicense check logging
Input sanitizationRegex pattern matching against 153+ detection patternsScanner metrics dashboard
Schema validationgRPC Protobuf schema validation for all 50 RPC methodsProtobuf compiler enforcement
Rate limitingPer-tier RPM enforcement (Community: 120, Starter: 150, Developer: 500, Professional: 2,500, Enterprise: unlimited)Rate limit headers in response
AuthorizationRBAC policy evaluation on every requestPolicy engine audit log

3.2 Processing Controls

ControlImplementationVerification
Fail-closed defaultIf any security check fails, encounters an error, or receives unexpected input, the request is rejectedTest coverage: nil handler recovery + deny
Compliance engine857+ CheckFuncs validate processing against 27 frameworks at runtimeCompliance status API endpoint
MCP guardrails8 guardrails validate MCP protocol interactionsGuardrail metrics per session
Threat detection153+ patterns scanned per request/response pairDetection metrics dashboard
PII/PHI scanningRegex and pattern-based detection of 8 PHI identifiers and 12 PII categoriesScanner hit rates and false positive metrics

3.3 Output Validation

ControlImplementationVerification
Response scanningBidirectional scanning (request and response)Scanner configuration audit
Redaction enforcementConfigurable redaction strategies (mask, replace, hash, remove)Redaction policy audit
Trust attestationECDSA P-256 signed attestation for every processed eventAttestation verification CLI
Audit log integrityHash-chained append-only logs with SHA-256Chain integrity verification tool
Error handlingStructured error responses with correlation IDsError rate monitoring

3.4 Data Accuracy

ControlImplementationVerification
Hash-chained audit logsSHA-256 hash chain ensures log entries cannot be modified without detectionPeriodic chain integrity checks
Compliance reportingAutomated reports generated from verified log dataReport-to-log reconciliation
Configuration validationDeclarative YAML with schema validationConfiguration drift detection
Metric accuracyPrometheus-compatible metrics with counter monotonicityMetric audit procedures

4. Error Handling

4.1 Error Classification

Error TypeResponseLoggingAlert
Invalid input400 Bad RequestStructured JSONNo
Authentication failure401 UnauthorizedStructured JSON + source IPIf >10/min per IP
Authorization failure403 ForbiddenStructured JSON + policy evaluationIf >10/min per user
Rate limit exceeded429 Too Many RequestsStructured JSON + tier infoIf sustained >5 min
License invalid403 Forbidden (grace period: 7 days)Structured JSON + license metadataImmediate
Internal error500 Internal Server ErrorStructured JSON + stack trace (internal only)Immediate
Security violation403 Forbidden + logStructured JSON + threat classificationImmediate

4.2 Fail-Closed Architecture

AegisGate processes every request through a security-first pipeline:

Request → License Check → AuthN → AuthZ → Rate Limit → Scanner → Compliance → MCP Guardrails → Response

If any step fails, encounters an error, or produces unexpected output, the request is rejected — never silently allowed. This applies to:

  • Missing or invalid authentication headers → 403 Forbidden
  • Unregistered compliance framework → Error + fail
  • Invalid or expired license key → 403 Forbidden (7-day grace period)
  • Nil or missing security handler → Deny by default
  • Internal panic → Recover + deny + log
  • MCP session validation failure → Session terminated + audit

4.3 Data Reconciliation

ReconciliationFrequencyMethodException Handling
Audit log chain integrityEvery 1,000 entriesSHA-256 chain verificationAlert + quarantine affected entries
Compliance engine stateOn startup + every 5 minutesFramework registration count vs expectedAlert + fail-closed
License validationEvery requestECDSA P-256 signature verification7-day grace period, then fail-closed
Scanner pattern countOn startupPattern count vs expected (153+)Alert + degraded mode
Rate limit counter accuracyEvery requestAtomic counter incrementOver-limit → 429

5. Processing Integrity by Tier

ControlCommunityStarterDeveloperProfessionalEnterprise
Input validation
Fail-closed processing
Bidirectional scanning
Hash-chained audit logs
Compliance engine (frameworks)ATLAS, NIST, OWASP+ HIPAA, PCI+ Full+ Full+ Custom
Trust attestation
Processing integrity reportsBasicStandardFullCustom

6. Monitoring and Reporting

6.1 Automated Monitoring

MetricCollection MethodAlert Threshold
Processing error rateStructured log analysis>0.1% of requests
Scanner false positive rateManual sampling + feedback loop>5% of flagged requests
Rate limit rejection rateRate limit headers>10% of requests
Audit log chain breaksPeriodic integrity checkAny break
License validation failuresLicense check logging>0 (grace period excluded)

6.2 Processing Integrity Reports

ReportFrequencyAvailable To
Compliance status summaryOn demand via APIAll tiers
Processing volume and error ratesDailyDeveloper+
Detailed processing integrity auditMonthlyProfessional+
Custom processing integrity metricsOn demandEnterprise

7. Subprocessor Processing Integrity

SubprocessorProcessing RoleIntegrity ControlsData Accessed
CloudflareCDN, DDoS protectionSOC 2 Type II, ISO 27001DNS queries, edge traffic metadata
NetlifyWebsite hosting, CI/CDSOC 2 Type IIStatic website assets
GitHubSource code hosting, CI/CDSOC 2 Type II, ISO 27001Source code, CI artifacts
StripePayment processingSOC 2 Type II, PCI-DSS Level 1Tokenized payment data

AegisGate’s self-hosted architecture ensures subprocessors never process customer Platform data. All customer data remains on customer-controlled infrastructure.


Attestation

This document was reviewed and approved by:

RoleNameDate
VP EngineeringAegisGate Security, LLC2026-07-29
Security LeadAegisGate Security, LLC2026-07-29