SWT3 Protocol Threat Model

Attack Vectors, Mitigations, and Residual Risk Analysis
TeNova | SWT3 Protocol v1.3.0 | May 2026 | engineering@tenovaai.com
Document Type
Security Threat Model
Audience
Security Teams, Auditors, C3PAOs, NBs
Threat Vectors
9 Analyzed

1. Protocol Overview

SWT3 is a cryptographic witnessing protocol that mints tamper-evident anchors for AI system events. The protocol has three layers that can be attacked independently:

The locked fingerprint formula is: SHA-256(WITNESS:{tenant}:{procedure}:{fa}:{fb}:{fc}:{ts_ms}) truncated to 12 hex characters.

2. Trust Boundaries

Boundary Trust Assumption Violated By
SDK to Server TLS 1.3 encrypts transit; HMAC-SHA256 signature authenticates origin Signing key compromise, TLS downgrade
Server to Ledger Service-role credentials, Row Level Security per tenant Service-role credential leak, RLS bypass
Ledger to Verifier Public fingerprint formula allows independent re-derivation Formula change, factor tampering before hashing
SDK Internal Factors are captured honestly at the point of observation Compromised SDK, malicious deployer, adversarial middleware

3. Threat Analysis

T-1: Fingerprint Truncation Collision

Attack: The fingerprint is truncated to 12 hex characters (48 bits). An attacker could attempt to find a second set of inputs that produces the same truncated hash, allowing them to substitute a FAIL anchor with a PASS anchor sharing the same fingerprint.
SeverityMEDIUM
Pre-image resistanceSHA-256 pre-image resistance is not reduced by truncation. Finding any input that produces a specific 48-bit output requires approximately 2^48 (281 trillion) hash operations.
Birthday boundCollision probability reaches 50% at approximately 2^24 (16.7 million) anchors per tenant. At current volumes (thousands per day), this threshold is years away for any single tenant.
Mitigation StatusMITIGATED
Mitigations:

T-2: Replay Attack (Valid Signature Replay)

Attack: An attacker intercepts a valid, signed witness payload and re-submits it to the ingestion endpoint. The signature is valid, so the server accepts the duplicate anchor.
SeverityMEDIUM
Mitigation StatusMITIGATED
Mitigations:

T-3: Clock Skew and Time Manipulation

Attack: An attacker manipulates the system clock on the machine running the SDK to backdate or future-date anchors, creating false evidence of compliance at a specific point in time.
SeverityHIGH
Mitigation StatusPARTIAL
Mitigations:
Residual risk: Within the 5-minute window, an attacker with local clock control can adjust timestamps by up to 5 minutes. For most compliance use cases, this precision is sufficient. For high-frequency trading or sub-second audit requirements, deployers should implement NTP monitoring independently.

T-4: Signing Key Compromise

Attack: An attacker obtains a tenant's HMAC-SHA256 signing key. They can now mint arbitrary anchors with valid signatures, fabricating compliance evidence for any procedure.
SeverityCRITICAL
Mitigation StatusPARTIAL
Mitigations:
Residual risk: Between key compromise and detection, the attacker can mint valid anchors. Detection depends on the deployer's key management practices and anomaly detection. The protocol spec recommends signing key rotation every 90 days (configurable). Future: OIDC ephemeral signing eliminates long-lived keys entirely.

T-5: Factor Manipulation Before Witnessing

Attack: A compromised SDK or malicious middleware intercepts factor values before they reach the fingerprint computation. For example, changing factor_b from 0 (guardrail missing) to 1 (guardrail active) before AI-GRD.1 is minted. The resulting anchor has a valid fingerprint and signature, but the factors are false.
SeverityCRITICAL
Mitigation StatusPARTIAL
Mitigations:
Residual risk: If the attacker controls the runtime environment where the SDK executes, they can manipulate factors before hashing. This is the fundamental "garbage in, garbage out" limitation of any cryptographic witnessing system. SWT3 guarantees that once factors are hashed, the record is immutable. It cannot guarantee that the factors were honest at the point of capture. This is why AI-HW.1 (hardware attestation) and AI-TRUST.1 (mutual trust verification) exist: they extend the trust boundary closer to the physical layer.

T-6: Insider with Ledger Access

Attack: A database administrator or service-role credential holder directly modifies, deletes, or inserts rows in the witness ledger, bypassing all application-level controls.
SeverityCRITICAL
Mitigation StatusMITIGATED
Mitigations:

T-7: Tenant Impersonation

Attack: An attacker submits witness payloads using another tenant's ID, polluting their compliance ledger with false records.
SeverityHIGH
Mitigation StatusMITIGATED
Mitigations:

T-8: Denial of Service on Ingestion

Attack: An attacker floods the ingestion endpoint with high volumes of witness payloads, preventing legitimate anchors from being recorded and creating gaps in the compliance timeline.
SeverityMEDIUM
Mitigation StatusMITIGATED
Mitigations:

T-9: Clearing Level Downgrade

Attack: An attacker or misconfigured SDK submits anchors at Clearing Level 0 (full context) when the tenant's policy requires Level 2 or 3, leaking sensitive AI context (prompts, model names, provider details) into the ledger.
SeverityHIGH
Mitigation StatusPARTIAL
Mitigations:
Residual risk: If the server-side minimum clearing level enforcement is not configured, a misconfigured SDK can leak context. Deployers operating in classified or sensitive environments must verify their tenant's minimum clearing level setting.

4. Summary Matrix

ID Threat Severity Status Primary Mitigation
T-1 Fingerprint truncation collision MEDIUM MITIGATED Payload signature (full 256-bit), Merkle rollup, extensible length
T-2 Replay attack MEDIUM MITIGATED Timestamp uniqueness, 5-min window, TLS 1.3
T-3 Clock skew / time manipulation HIGH PARTIAL Server-side received_at comparison, timestamp window
T-4 Signing key compromise CRITICAL PARTIAL AES-256-GCM at rest, key rotation, AI-REV.1 bulk revocation
T-5 Factor manipulation before witnessing CRITICAL PARTIAL Open-source SDK, server re-derivation, supply chain integrity
T-6 Insider with ledger access CRITICAL MITIGATED Daily Merkle rollup, domain-separated leaves, inclusion proofs
T-7 Tenant impersonation HIGH MITIGATED API key binding, tenant-scoped signatures, RLS
T-8 Denial of service on ingestion MEDIUM MITIGATED Rate limiting, SDK buffer, Connection limiting
T-9 Clearing level downgrade HIGH PARTIAL Server-side minimum enforcement, SDK configuration default

5. Residual Risk Statement

Three threat categories carry residual risk that cannot be fully mitigated by protocol design alone:

  1. T-4 (Signing key compromise): Mitigated by key rotation and revocation, but the window between compromise and detection remains a deployer responsibility. Future OIDC ephemeral signing will eliminate long-lived keys.
  2. T-5 (Factor manipulation): The fundamental "garbage in" problem. SWT3 guarantees immutability after hashing but cannot guarantee input honesty. AI-HW.1 and AI-TRUST.1 push the trust boundary closer to hardware but do not eliminate it entirely.
  3. T-3 (Clock manipulation): Server-side timestamps provide a secondary reference, but sub-minute precision depends on client clock integrity. NTP monitoring is a deployer responsibility.

All three residual risks are documented as deployer responsibilities in the Deployer Responsibility Matrix.

6. Threat Model Maintenance

This threat model is reviewed and updated: