Audience: Cloud security architects, platform engineers, MCP server operators, SOC analysts, DevSecOps teams, and AWS security reviewers building evidence chains for AI endpoint protection.

GA November 23, 2026. The AWS WAF AI Security managed rule group is now generally available, with automated discovery and protection for LLM, MCP, and A2A endpoints. MCP protocol versions 2025-06-18, 2025-11-25, and 2026-07-28 are validated. A2A protocol version 1.0 is validated. Organizations operating MCP servers behind AWS infrastructure should evaluate rule group activation immediately.

Perimeter + Interior = Complete Evidence. AWS WAF validates protocol conformance and blocks malformed requests at the perimeter. SWT3 witnesses what happens inside the MCP session: every tool call, every guardrail decision, every agent handoff. WAF is the lock on the door. SWT3 is the camera inside the room. Together they produce a complete evidence chain: perimeter protection (WAF logs) anchored to operational behavior (SWT3 anchors).

Contents

1. Scope and Architecture 2. AWS WAF AI Security Features 3. Requirement-to-Procedure Mapping 4. Procedure Evidence Cards 5. Transport Gap Analysis 6. Coverage Matrix 7. Quick Start 8. References

1. Scope and Architecture

The AWS WAF AI Security managed rule group operates at the network perimeter. It inspects HTTP/SSE traffic flowing to MCP and A2A endpoints, validates protocol conformance, and blocks requests that fail structural checks. SWT3 operates at the application layer inside the MCP session. It witnesses tool invocations, guardrail decisions, credential scoping, and agent delegation events as cryptographic anchors in an immutable ledger.

These two layers are complementary, not overlapping. WAF produces evidence of what was blocked at the boundary. SWT3 produces evidence of what was permitted and executed within the session. An auditor reviewing AI endpoint governance needs both: perimeter enforcement logs and interior operational attestations.

Architectural Layers

LayerComponentEvidence TypeTransport
PerimeterAWS WAF AI Security rule groupBlock/allow logs, protocol validation resultsHTTP, SSE
DiscoveryAPI PortalShadow/zombie/orphaned API inventoryHTTP metadata
GuardrailBedrock Guardrails (InvokeGuardrailsCheck)Prompt injection, jailbreak, PII detectionAWS API
PolicyCedar via AgentCoreDeterministic allow/deny decisionsInternal
IsolationNitro SandboxesCryptographic attestation, secret gatesHardware enclave
WitnessSWT3 SDKImmutable anchors per tool call, guardrail check, delegationAny (HTTP, stdio, IPC)

This crosswalk maps 16 SWT3 procedures across 8 namespaces (AI-MCP, AI-SEC, AI-GRD, AI-TOOL, AI-A2A, AI-AUDIT, AI-TRUST, INF) to specific AWS WAF AI Security capabilities. Each mapping identifies the WAF feature that produces perimeter evidence and the SWT3 procedure that produces interior evidence for the same governance concern.

2. AWS WAF AI Security Features

Managed Rule Group Capabilities

The rule group provides two validation tiers for MCP and A2A traffic:

Protocol Validation

Validated protocol versions as of GA:

Requests presenting unsupported protocol version identifiers are blocked at the Baseline tier. Requests with valid but outdated version identifiers can be flagged (not blocked) at the Stricter tier, producing WAF logs that identify clients needing upgrade.

Bedrock Guardrails Integration

The InvokeGuardrailsCheck API provides content-level inspection for requests that pass WAF structural validation. Detection categories include prompt injection, jailbreak attempts, harmful content, and sensitive data (PII/PHI). Guardrail decisions are logged independently from WAF decisions, creating a second evidence stream that SWT3 can anchor.

API Portal: Shadow Discovery

API Portal discovers three categories of unmanaged endpoints:

Discovery results feed directly into SWT3 AI-MCP.4 (Server Discovery Attestation), where the unauthorized_count factor records the number of unmanaged servers found.

Cedar Policy Enforcement

AgentCore uses Cedar, a deterministic policy language, to enforce access control decisions for agent-to-tool and agent-to-agent interactions. Cedar policies produce auditable allow/deny decisions with full policy trace. SWT3 witnesses the enforcement outcome, not the policy definition.

STS Scoped Credentials and Nitro Sandboxes

GetScopedCredentials provides least-privilege credential scoping for agents and sub-agents. Nitro Sandboxes provide hardware-isolated microVMs where agent code executes, with cryptographic attestation gates controlling secret release. SWT3 witnesses credential binding events (AI-MCP.5) and trust verification outcomes (AI-TRUST.1).

3. Requirement-to-Procedure Mapping

Each row maps an AWS WAF AI Security capability to the SWT3 procedure that provides complementary interior evidence.

AWS CapabilitySWT3 ProcedureEvidence Relationship
MCP protocol validation (Baseline)AI-MCP.1WAF validates structure. SWT3 records posture score for the session.
MCP protocol validation (Stricter)AI-MCP.2WAF flags outdated clients. SWT3 records tool schema drift.
A2A protocol validationAI-A2A.1WAF validates A2A envelope. SWT3 records delegation lifecycle.
API Portal shadow discoveryAI-MCP.4Portal finds unmanaged servers. SWT3 anchors the discovery event.
Bedrock Guardrails (prompt injection)AI-SEC.1Guardrails detect threats. SWT3 records detection and blocking counts.
Bedrock Guardrails (input validation)AI-SEC.2Guardrails validate inputs. SWT3 records validator pass/fail counts.
Bedrock Guardrails (content safety)AI-GRD.2Guardrails filter content. SWT3 records filter activation.
Bedrock Guardrails (PII detection)AI-GRD.3Guardrails detect PII. SWT3 records redaction status.
Cedar policy enforcementAI-GRD.1Cedar enforces policy. SWT3 records guardrail active counts.
STS GetScopedCredentialsAI-MCP.5STS scopes credentials. SWT3 records binding strength.
Nitro Sandbox attestationAI-TRUST.1Nitro attests isolation. SWT3 records trust verification outcome.
Agent card discovery (A2A)AI-A2A.2WAF protects discovery. SWT3 records agents found and verified.

4. Procedure Evidence Cards

Each card describes the SWT3 procedure, its factor schema, verdict logic, and an assessor tip for reviewing anchors in the context of AWS WAF deployments.

AI-MCP.1

MCP Security Posture Attestation

Factor A (total_checks): Total number of security checks executed against the MCP session, including WAF rule evaluations.

Factor B (checks_passed): Number of checks that returned a passing result.

Factor C (posture_score): Computed posture score (0-100). Reflects the ratio of passed checks to total checks.

Verdict logic: PASS when posture_score >= 80 and checks_passed == total_checks. FAIL otherwise.

AWS mapping: WAF Baseline rule group validation results feed into total_checks. Each WAF ALLOW decision increments checks_passed.

Assessor Tip

Filter the ledger by AI-MCP.1. Look for anchors where posture_score drops below 80 after WAF rule group updates. A score drop correlated with a rule group version change indicates newly discovered protocol nonconformance.

AI-MCP.2

Tool Integrity Attestation

Factor A (schema_hash): SHA-256 hash of the tool's JSON Schema definition at invocation time.

Factor B (invocation_seq): Sequential invocation counter for the tool within this session.

Factor C (drift_detected): Boolean (0/1). Set to 1 when the schema hash differs from the registered baseline.

Verdict logic: PASS when drift_detected == 0. FAIL when drift is detected.

AWS mapping: WAF Stricter tier flags malformed tool calls from outdated clients. SWT3 records whether the tool schema itself has changed, complementing protocol-level validation with application-level integrity.

Assessor Tip

Filter the ledger by AI-MCP.2 where drift_detected == 1. Cross-reference timestamps with WAF Stricter tier logs. If WAF allowed the request but schema drift was detected, the tool definition changed server-side without a corresponding protocol version bump.

AI-MCP.4

Server Discovery Attestation

Factor A (discovery_method): Method used for discovery (e.g., api_portal, dns_scan, registry_query).

Factor B (servers_found): Total number of MCP servers discovered in this scan cycle.

Factor C (unauthorized_count): Number of servers found that are not registered in the authorized inventory.

Verdict logic: PASS when unauthorized_count == 0. FAIL when any unauthorized servers are discovered.

AWS mapping: API Portal shadow/zombie/orphaned API discovery results map directly to servers_found and unauthorized_count. Each Portal scan cycle generates one SWT3 anchor.

Assessor Tip

Filter the ledger by AI-MCP.4 where unauthorized_count > 0. Correlate with API Portal reports to confirm that shadow APIs were remediated. A sequence of FAIL followed by PASS anchors demonstrates a closed-loop discovery and remediation cycle.

AI-MCP.5

OAuth Token Binding Attestation

Factor A (event_type): Token lifecycle event (e.g., grant, refresh, revoke, scope_reduction).

Factor B (scope_count): Number of scopes granted in this credential binding.

Factor C (binding_strength): Credential binding strength indicator. scoped for STS-scoped credentials, bearer for unscoped tokens.

Verdict logic: PASS when binding_strength == "scoped". FAIL when bearer tokens are used without scope reduction.

AWS mapping: STS GetScopedCredentials calls produce scope_reduction events with binding_strength = "scoped". Unscoped bearer tokens from legacy integrations produce FAIL anchors.

Assessor Tip

Filter the ledger by AI-MCP.5. Look for anchors where binding_strength is bearer. These indicate agents operating with overprivileged credentials that bypass STS scoping.

AI-SEC.1

Adversarial Threat Detection

Factor A (threats_checked): Number of threat patterns evaluated against the input.

Factor B (threats_detected): Number of patterns that triggered detection.

Factor C (blocked): Number of detected threats that were blocked before reaching the model.

Verdict logic: PASS when threats_detected == blocked (all detected threats were blocked). FAIL when any detected threat was not blocked.

AWS mapping: Bedrock Guardrails prompt injection and jailbreak detection results feed threats_detected. WAF-level blocks feed blocked. Combined, these two layers produce evidence of defense in depth.

Assessor Tip

Filter the ledger by AI-SEC.1 where threats_detected > blocked. This gap indicates threats that passed the guardrail but were not blocked, requiring investigation into guardrail configuration or model-level mitigations.

AI-SEC.2

Input Validation and Sanitization

Factor A (validators_required): Number of input validation rules configured.

Factor B (validators_passed): Number of validators that the input satisfied.

Factor C (input_rejected): Boolean (0/1). Set to 1 when input was rejected due to validation failure.

Verdict logic: PASS when validators_passed == validators_required. FAIL when any validator fails.

AWS mapping: Bedrock Guardrails input validation category results map to validators_passed. WAF rule group structural checks provide a first layer that feeds into the total required count.

Assessor Tip

Filter the ledger by AI-SEC.2 where input_rejected == 1. High rejection rates from a single client IP (correlated with WAF logs) may indicate an adversarial probing pattern rather than legitimate misconfiguration.

AI-GRD.1

Guardrail Enforcement

Factor A (guardrails_required): Number of guardrails that must be active for this model or endpoint.

Factor B (guardrails_active): Number of guardrails confirmed active at invocation time.

Factor C (reserved): Reserved for future use.

Verdict logic: PASS when guardrails_active >= guardrails_required. FAIL when any required guardrail is inactive.

AWS mapping: Cedar policy enforcement via AgentCore produces deterministic allow/deny decisions. Each Cedar policy evaluation counts as one active guardrail. SWT3 records whether all required policies were evaluated.

Assessor Tip

Filter the ledger by AI-GRD.1 where guardrails_active < guardrails_required. This indicates a guardrail gap. Cross-reference with Cedar policy deployment logs to identify which policy was not loaded.

AI-GRD.3

PII Redaction

Factor A (redaction_required): Boolean (0/1). Whether PII redaction is mandated for this endpoint.

Factor B (redaction_active): Boolean (0/1). Whether the redaction engine was active during this invocation.

Factor C (reserved): Reserved for future use.

Verdict logic: PASS when redaction_required == 0 or redaction_active == 1. FAIL when redaction is required but inactive.

AWS mapping: Bedrock Guardrails sensitive data detection (PII/PHI categories) feeds redaction_active. When Guardrails detects and redacts PII before it reaches the model, SWT3 records this as an active redaction event.

Assessor Tip

Filter the ledger by AI-GRD.3 where redaction_required == 1 and redaction_active == 0. This is a critical finding: PII-mandated endpoints operating without active redaction.

AI-A2A.1

Task Delegation Lifecycle Attestation

Factor A (state_code): A2A task state (e.g., submitted, working, completed, failed, canceled).

Factor B (latency_ms): Time in milliseconds from task submission to current state transition.

Factor C (depth): Delegation depth. Increments each time a task is re-delegated to a sub-agent.

Verdict logic: PASS when task reaches completed state. FAIL on failed or canceled without completion.

AWS mapping: WAF validates the A2A protocol envelope structure. SWT3 records each state transition within the delegation lifecycle, producing a chain of anchors linked by task ID.

Assessor Tip

Filter the ledger by AI-A2A.1. Look for anchors where depth > 3. Deep delegation chains increase the attack surface and latency. Correlate with Cedar policy decisions to verify that each delegation level was explicitly authorized.

AI-A2A.2

Agent Card Discovery Attestation

Factor A (discovery_method): How agents were discovered (e.g., well_known, registry, dns).

Factor B (agents_discovered): Total agents found during discovery.

Factor C (verified_count): Number of discovered agents whose cards passed integrity verification.

Verdict logic: PASS when verified_count == agents_discovered. FAIL when any agent card fails verification.

AWS mapping: WAF protects the /.well-known/agent.json discovery endpoint. SWT3 records the discovery outcome, including how many agent cards were verified as authentic.

Assessor Tip

Filter the ledger by AI-A2A.2 where verified_count < agents_discovered. Unverified agent cards indicate either spoofed agents or card signing failures. Cross-reference with WAF logs for the discovery endpoint.

AI-TOOL.1

Tool Call Witnessing

Factor A (tool_name_hash): SHA-256 hash of the tool name. Prevents tool name enumeration in the ledger.

Factor B (args_hash): SHA-256 hash of the tool call arguments.

Factor C (outcome): Tool call result code (e.g., success, error, timeout, denied).

Verdict logic: PASS on success. FAIL on error, timeout, or denied.

AWS mapping: WAF validates the tool call request structure. Cedar authorizes the call. Bedrock Guardrails inspect the content. SWT3 records the final execution outcome after all three layers have processed the request.

Assessor Tip

Filter the ledger by AI-TOOL.1 where outcome == "denied". Cross-reference with Cedar policy trace logs to confirm that the denial was policy-driven, not a transient error.

AI-TRUST.1

Trust Verification

Factor A (trust_level): Assigned trust level after verification (e.g., hardware_attested, software_verified, unverified).

Factor B (checks_passed): Number of trust checks that passed.

Factor C (checks_total): Total trust checks evaluated.

Verdict logic: PASS when checks_passed == checks_total. FAIL otherwise.

AWS mapping: Nitro Sandbox cryptographic attestation provides hardware-level trust evidence. SWT3 records trust_level = "hardware_attested" when Nitro attestation gates pass, providing auditable evidence that agent code executed in an isolated enclave.

Assessor Tip

Filter the ledger by AI-TRUST.1. Look for anchors where trust_level != "hardware_attested" in environments that require Nitro isolation. Any software_verified or unverified anchor in a Nitro-required deployment is a finding.

5. Transport Gap Analysis

AWS WAF inspects HTTP and SSE traffic. This creates a known gap for MCP servers that use non-HTTP transports.

Critical gap: AWS WAF cannot inspect stdio or non-HTTP transports. Local MCP servers communicating over stdio are invisible to the firewall. Bypass via alternate client configuration is a known risk. SWT3 SDK-level witnessing operates inside the process and is transport-agnostic, providing evidence for sessions that WAF cannot observe.

TransportAWS WAF VisibilitySWT3 SDK VisibilityGap
HTTP/SSE (remote MCP)Full inspection. Protocol validation, content checks.Full witnessing. Tool calls, guardrails, delegation.None. Both layers produce evidence.
stdio (local MCP)No visibility. Traffic never crosses a network boundary.Full witnessing. SDK wraps the client process.Perimeter evidence missing. SDK-level witnessing provides visibility.
IPC / Unix socketNo visibility. Same-host communication.Full witnessing. SDK intercepts at the call site.Perimeter evidence missing. SDK-level witnessing provides visibility.
Streamable HTTP (2026-07-28)Full inspection. Same as HTTP/SSE.Full witnessing.None.

Implications for Assessors

When reviewing environments with mixed transport configurations, assessors should request both WAF logs (for HTTP/SSE endpoints) and SWT3 ledger exports (for all endpoints including stdio). The absence of WAF logs for a known MCP server is not necessarily a finding if that server uses stdio transport and has SWT3 SDK-level witnessing active. The absence of both WAF logs and SWT3 anchors for a known server is a gap.

API Portal shadow discovery (AI-MCP.4) only identifies HTTP-reachable endpoints. stdio-based MCP servers must be inventoried through host-level process enumeration, not network scanning. SWT3 anchors from AI-MCP.4 should be cross-referenced with host-level inventory tools to confirm complete coverage.

Evidence Correlation

AWS WAF logs are delivered to CloudTrail, S3, or CloudWatch Logs depending on the web ACL logging configuration. SWT3 anchors are stored in the witness ledger with timestamps and fingerprints. To correlate the two evidence streams, match the WAF request ID and timestamp against the SWT3 anchor timestamp for the same MCP session. The SWT3 AI-AUDIT.1 procedure can attest the integrity of both log sources in a single verification cycle, recording entries_checked across WAF logs and SWT3 anchors together.

6. Coverage Matrix

This matrix shows which AWS WAF AI Security features produce evidence that maps to each SWT3 procedure. A checkmark indicates a direct evidence relationship.

Procedure WAF Rule Group Bedrock Guardrails API Portal Cedar / AgentCore STS Scoped Creds Nitro Sandbox
AI-MCP.1 ✓
AI-MCP.2 ✓
AI-MCP.4 ✓
AI-MCP.5 ✓
AI-SEC.1 ✓✓
AI-SEC.2 ✓✓
AI-GRD.1 ✓
AI-GRD.2 ✓
AI-GRD.3 ✓
AI-TOOL.1 ✓✓✓
AI-A2A.1 ✓✓
AI-A2A.2 ✓
AI-AUDIT.1 ✓✓✓✓✓✓
AI-TRUST.1 ✓
INF-CONTAINER.1 ✓

AI-AUDIT.1 spans all six AWS features because audit log integrity witnessing applies to every evidence source. Each feature produces logs. SWT3 anchors the integrity of those logs as a cross-cutting concern.

7. Quick Start

Python: MCP Server with WAF and Guardrail Witnessing

from swt3_ai import Witness

witness = Witness(
    api_key="axm_your_key",
    endpoint="https://sovereign.tenova.io/api/v1/witness",
    agent_id="mcp-server-payments",
    signing_key="your_hmac_key"
)

# Witness WAF protocol validation result
witness.witness(
    procedure="AI-MCP.1",
    factor_a=12,          # total_checks (WAF rules evaluated)
    factor_b=12,          # checks_passed
    factor_c=100,         # posture_score
    clearing_level=1
)

# Witness Bedrock Guardrails threat detection
witness.witness(
    procedure="AI-SEC.1",
    factor_a=5,           # threats_checked
    factor_b=1,           # threats_detected (prompt injection)
    factor_c=1,           # blocked
    clearing_level=2
)

# Witness tool call after WAF + Cedar + Guardrails pass
witness.wrap_tool(
    tool_name="execute_payment",
    args={"amount": 500, "currency": "USD"},
    outcome="success"
)

# Witness API Portal discovery scan
witness.witness(
    procedure="AI-MCP.4",
    factor_a=1,             # discovery_method (1=api_portal)
    factor_b=8,             # servers_found
    factor_c=1,             # unauthorized_count (1 shadow API)
    clearing_level=1
)

witness.flush()

TypeScript: MCP Server with WAF and A2A Witnessing

import { Witness } from "@tenova/swt3-ai";

const witness = new Witness({
  apiKey: "axm_your_key",
  endpoint: "https://sovereign.tenova.io/api/v1/witness",
  agentId: "mcp-server-analytics",
  signingKey: "your_hmac_key",
});

// Witness A2A delegation lifecycle
await witness.witness({
  procedure: "AI-A2A.1",
  factorA: 4,             // state_code (4=completed)
  factorB: 1250,          // latency_ms
  factorC: 2,             // depth (delegated once)
  clearingLevel: 1,
});

// Witness Nitro Sandbox trust verification
await witness.witness({
  procedure: "AI-TRUST.1",
  factorA: 3,             // trust_level (3=hardware_attested)
  factorB: 4,             // checks_passed
  factorC: 4,             // checks_total
  clearingLevel: 2,
});

// Witness STS scoped credential binding
await witness.witness({
  procedure: "AI-MCP.5",
  factorA: 3,             // event_type (3=scope_reduction)
  factorB: 3,             // scope_count
  factorC: 2,             // binding_strength (2=scoped)
  clearingLevel: 1,
});

await witness.flush();

8. References