Preserved research input · KW-RPT-057

Autonomous Cyber-Physical Defense for Evulgare: Identity, Attestation, Evidence Integrity, Compromise Containment, Rekeying, Reconciliation, and Attested Recovery

A defensive zero-trust architecture input covering workload identity, hardware and software attestation, evidence integrity, reversible containment, key epochs, reconciliation, attested recovery, fixed synthetic fault injection, and bounded autonomous responses.

Digest verified 0e612ba9c8b07ca5296555c2e440be2daf2df6a8e485b23c905cae55553d0ad9

Autonomous Cyber-Physical Defense for Evulgare: Identity, Attestation, Evidence Integrity, Compromise Containment, Rekeying, Reconciliation, and Attested Recovery

1\. Executive Summary

Modern cyber-physical systems and multi-tenant platforms face adversaries capable of subverting identities, manipulating software supply chains, and forging cryptographic evidence. The Evulgare platform requires a defensive architecture that shifts away from reactive perimeter defense toward a mathematically provable, cryptographically bound zero-trust environment. This report details the architectural design for an autonomous defensive system capable of continuous identity attestation, evidence integrity verification, automated compromise containment, and attested recovery. Rooted in the IETF Remote ATtestation procedureS (RATS) framework1, SPIFFE/SPIRE workload identity2, The Update Framework (TUF) and Uptane for authority and epoch management4, and RFC 6962 Merkle tree verifiable logs6, this architecture provides a deterministic defense model. The system evaluates synthetic fault injections—such as FORGED\_IDENTITY or COMPARTMENT\_BREACH—and issues bounded autonomous responses ranging from ALLOW\_OBSERVATION to SEVER\_COMPARTMENT and RESTORE\_ATTESTED\_BASELINE. This exhaustive specification provides schemas, behavioral invariants, Python pseudocode for core services, and a comprehensive synthetic cyber-range design to simulate and validate the architecture without employing offensive capabilities.

2\. Capability and Traceability Statements

The architecture requires strict adherence to predefined constraints regarding operational boundaries and defensive scope. The following tables and declarations map the foundational requirements to the engineering outputs provided within this document.

2.1 Traceability Matrix

Requirement / DeliverableSection MappingContextual Fulfillment
Executive Summary & Full ReportSections 1 & AllComprehensive narrative covering all core research areas.
Threat Model & 45 ScenariosSection 3Abstract fault injections mapped to bounded defensive responses.
Trust-Boundary DiagramSection 4Topological representation of SPIRE federation and containment.
Zero-Trust IdentitySection 4Deep dive into SPIFFE, mTLS, and TPM LDevID attestation.
Software/Model AttestationSection 5SLSA, in-toto, and CycloneDX 1.6 AI-BOM integration.
Evidence IntegritySection 6RFC 6962 Merkle trees, correlation, and independence.
Containment DefinitionsSection 7Network, identity, and data access restrictions.
Rekeying & AuthoritySection 8TUF epochs, threshold signatures, and partition handling.
Attested RecoverySection 9Immutable baselines and residual unknown handling.
Schemas (Identity to Event)Section 10Eight detailed YAML schemas for data serialization.
Python Module ArchitectureSection 11Eleven safe pseudocode modules and API router.
Operator & Machine ReviewSection 12Merits review versus procedural confirmation.
Security Test MatrixSection 13Property tests, fuzzing, and deterministic exports.
Synthetic Defense RangeSection 14Eight Evulgare site demos.
Visualization & PerformanceSection 15Accessibility, scaling, and operational considerations.
Site-Ready ContentSection 16Narrative educational content for external stakeholders.
40 FAQs & 60-Term GlossarySections 17 & 18Extensive terminological definitions.
40 InvariantsSection 19Systemic mathematical truths enforced by the architecture.
Recommended /docs PathSection 16/docs/architecture/autonomous-defense-v1.

2.2 Defensive Capabilities Demonstrated

This architecture demonstrates the ability to cryptographically identify workloads via TPM 2.0 and SPIRE8, attest to the integrity of AI models using CycloneDX 1.6 and SLSA v1.010, manage distributed trust via TUF delegations5, and maintain tamper-evident audit logs via RFC 6962 Merkle trees13. It provides automated, reversible containment boundaries and threshold-based recovery protocols that mathematically prevent unauthorized state transitions.

2.3 No Offensive Capability Implied

This document contains zero offensive material. It does not provide exploit code, malware, ransomware, credential theft mechanisms, persistence techniques, evasion techniques, destructive payloads, unauthorized scanning instructions, real intrusion instructions, offensive command-and-control, weapon-control logic, or operational targeting. All adversarial behaviors are modeled exclusively as abstract, synthetic fault injections (e.g., TIME\_SOURCE\_DIVERGENCE, UNSIGNED\_UPDATE).

2.4 What Requires Authorized Private Testing

Validation of this architecture requires authorized deployment within a closed, synthetic cyber-range. Interactions with physical TPM hardware, generation of real cryptographic keys, the deliberate injection of state faults (such as memory corruption or clock skew), and the execution of the Python pseudocode must be performed in isolated laboratories, not against production Evulgare domains, customer systems, or public networks.

3\. Threat Model and 45 Synthetic Scenarios

The threat model operates strictly within the paradigm of non-kinetic compromise, assuming that adversaries may attempt to clone identities, replay stale authority tokens, tamper with models, or partition networks.

3.1 Bounded Defensive Framework

The defensive engine receives bounded abstract fault injections (e.g., FORGED\_IDENTITY, COMPARTMENT\_BREACH) and must respond autonomously using only approved, non-destructive, reversible outputs. These bounded outputs include: ALLOW\_OBSERVATION, DENY\_REQUEST, REQUIRE\_REAUTHENTICATION, REVOKE\_AUTHORITY, ISOLATE\_WORKLOAD, SEVER\_COMPARTMENT, QUARANTINE\_SERVICE, FREEZE\_RELEASE\_CHANNEL, COLLECT\_MORE\_EVIDENCE, REKEY, RECONCILE, RESTORE\_ATTESTED\_BASELINE, and ABSTAIN.

3.2 Threat Scenario Matrix

IDCategoryAbstract Fault Injection / ConditionAutonomous Defensive Response
1IdentityFORGED\_IDENTITY: Invalid SPIFFE SVID presented at API boundary.DENY\_REQUEST
2IdentityFORGED\_IDENTITY: Cloned workload JWT reused across distinct nodes.REVOKE\_AUTHORITY, ISOLATE\_WORKLOAD
3IdentityUnattested node attempts to join SPIRE trust domain.DENY\_REQUEST
4IdentityStolen short-lived credentials used after exact millisecond expiry.REQUIRE\_REAUTHENTICATION
5IdentityTPM endorsement key (EK) hash missing from provisioning allow-list.DENY\_REQUEST
6AuthorityREPLAYED\_AUTHORITY: Valid snapshot signature replayed out of order.DENY\_REQUEST
7AuthorityAPI request lacking threshold signature from governing quorum.DENY\_REQUEST, COLLECT\_MORE\_EVIDENCE
8AuthorityNode presents expired trust bundle during mTLS handshake.REQUIRE\_REAUTHENTICATION
9AuthorityRevoked workload identity attempts to sign a state change.DENY\_REQUEST, ISOLATE\_WORKLOAD
10Supply ChainUNSIGNED\_UPDATE: Code update lacks SLSA v1.0 provenance.FREEZE\_RELEASE\_CHANNEL
11Supply ChainDependency confusion attack via synthetic manifest mismatch.QUARANTINE\_SERVICE
12Supply ChainBuild digest diverges from source digest cryptographic record.FREEZE\_RELEASE\_CHANNEL
13Supply ChainMissing in-toto attestation for release artifact deployment.DENY\_REQUEST
14ModelMODEL\_DIGEST\_MISMATCH: Runtime AI model digest differs from AI-BOM.ISOLATE\_WORKLOAD, RESTORE\_ATTESTED\_BASELINE
15ModelModel tampered in memory; runtime quote fails TPM PCR verification.SEVER\_COMPARTMENT, RESTORE\_ATTESTED\_BASELINE
16ModelModel backdoor indication flagged via external heuristic.QUARANTINE\_SERVICE, COLLECT\_MORE\_EVIDENCE
17ModelUnsigned dataset reference injected into training pipeline.FREEZE\_RELEASE\_CHANNEL
18PolicyConfiguration drift detected via TPM Integrity Measurement Architecture.ISOLATE\_WORKLOAD, RECONCILE
19PolicyUnsigned policy update pushed to enforcement point.DENY\_REQUEST
20PolicyPolicy downgrade attack attempting to restore vulnerable ruleset.DENY\_REQUEST, FREEZE\_RELEASE\_CHANNEL
21EvidenceEVIDENCE\_POISONING: Log entry fails Merkle inclusion proof.SEVER\_COMPARTMENT
22Evidence100 correlated failure logs from a single source ID (Alert Fatigue).ALLOW\_OBSERVATION (Deduplicate via Correlation ID)
23EvidenceEvidence source identity formally withdrawn by Endorser.REVOKE\_AUTHORITY
24EvidenceContradictory evidence freshness timestamps from peer nodes.COLLECT\_MORE\_EVIDENCE, ABSTAIN
25TimeTIME\_SOURCE\_DIVERGENCE: Local clock skewed to force cert validity.DENY\_REQUEST, ISOLATE\_WORKLOAD
26TimeStale message replay using manipulated TUF epoch markers.DENY\_REQUEST
27Key EpochCompromised signing key detected in current epoch.REKEY, REVOKE\_AUTHORITY
28Key EpochNode fails to transition to next key epoch within threshold limit.ISOLATE\_WORKLOAD
29Key EpochMixed key epochs detected during split-brain network partition.RECONCILE
30Key EpochSigner replacement requested without quorum threshold approval.DENY\_REQUEST
31APIAPI compromise detected via deterministic fuzzing fault.QUARANTINE\_SERVICE
32APIServer-Side Request Forgery (SSRF) rejection failure simulation.DENY\_REQUEST, SEVER\_COMPARTMENT
33APIRate limit exceeded by authorized and attested identity.ALLOW\_OBSERVATION, REQUIRE\_REAUTHENTICATION
34OrchestrationOrchestrator schedules workload in a cryptographically prohibited namespace.DENY\_REQUEST, SEVER\_COMPARTMENT
35OrchestrationCOMPARTMENT\_BREACH: Lateral movement attempt between isolated namespaces.SEVER\_COMPARTMENT, REVOKE\_AUTHORITY
36OrchestrationInsider maintenance-path misuse detected via audit log anomaly.ISOLATE\_WORKLOAD, COLLECT\_MORE\_EVIDENCE
37NetworkCommunications partition isolates node from SPIRE server.ALLOW\_OBSERVATION (Grace period), then ISOLATE\_WORKLOAD
38ReleaseRELEASE\_CHANNEL\_COMPROMISE: Deployment pipeline bypassed entirely.FREEZE\_RELEASE\_CHANNEL
39RecoveryCOMPROMISED\_RECOVERY\_BASELINE: Backup digest mismatch during boot.DENY\_REQUEST, COLLECT\_MORE\_EVIDENCE
40RecoveryIndependent governor abstains from recovery review.ABSTAIN
41RecoveryAttested reconstitution initiated with partial quorum.DENY\_REQUEST
42ReviewHuman operator clicks "Approve" but procedural confirmation fails.DENY\_REQUEST
43ReviewMachine report conflicts fundamentally with independent machine review.ABSTAIN, COLLECT\_MORE\_EVIDENCE
44StateDuplicate evidence package submitted maliciously to pad logs.ALLOW\_OBSERVATION (Deduplicate)
45StateHistory deletion attempt identified on the Event Ledger.SEVER\_COMPARTMENT, DENY\_REQUEST

4\. Zero-Trust Workload Identity

Traditional network security models implicitly trust entities residing within a physical or logical perimeter. The Evulgare architecture discards this approach, adopting a model where identity is the primary boundary, established through rigorous cryptographic proof.

4.1 SPIFFE, SPIRE, and mTLS

The architecture utilizes the Secure Production Identity Framework For Everyone (SPIFFE) and its reference implementation, SPIRE2. SPIFFE provides a specification for issuing short-lived, automatically rotating cryptographic identities to workloads, formatted as SPIFFE Verifiable Identity Documents (SVIDs) in either X.509 or JWT formats16. Because SVIDs are short-lived, the system inherently defends against credential theft; a stolen JWT is useless once its validity window (often measured in minutes) expires. Workloads utilize these SVIDs to establish mutual TLS (mTLS) connections. Unlike standard TLS where only the server proves its identity, mTLS requires the client workload to present a valid X.509 SVID to the server. The server verifies this SVID against the SPIRE Server's trusted root CA bundle9.

4.2 Hardware-Rooted Identity and TPM Attestation

A critical vulnerability in software-based identity is that a compromised host can lie about the software it is running. To counteract this, Evulgare anchors workload identity in the physical hardware using Trusted Platform Module (TPM) 2.0 attestation8. The integration relies on the spire-tpm-plugin and concepts derived from IEEE 802.1AR Local Device Identity (LDevID)15. During node attestation, the SPIRE Server encrypts a challenge using the public Endorsement Key (EK) of the node's TPM. Only the genuine, physical TPM possessing the corresponding private EK can decrypt this challenge9. Furthermore, the TPM provides a cryptographically signed "quote" of its Platform Configuration Registers (PCRs). These PCRs contain measurements of the bootloader, kernel, and critical system libraries, gathered by the Linux Integrity Measurement Architecture (IMA). If a rootkit has altered the kernel, the PCR quote will not match the expected reference values, and the SPIRE Server will deny the node entry into the trust domain8. \[Diagram 1: Identity and Attestation Flow\] \+-------------------+ \+--------------------+ \+-------------------+ | Physical Node | | SPIRE Server | | Evulgare Workload | | (TPM 2.0 Chip) | | (Trust Root CA) | | (Application) | \+--------+----------+ \+---------+----------+ \+---------+---------+ | | | | 1\. Submit TPM Quote & EK Hash | | |------------------------------\>| | | | | | 2\. Verify PCRs against policy | | |\<------------------------------| | | | | | 3\. Issue Node SVID | | |\<| | | | | | 4\. Workload spins up, requests| identity from local agent | |--------------------------------------------------------------\>| | | | | 5\. Agent maps Linux Namespace / k8s selectors | |\<--------------------------------------------------------------| | | | | 6\. Issue Short-Lived Workload SVID (mTLS Ready) | |================================\>|

5\. Software and Model Attestation

Securing the runtime identity is insufficient if the deployed software artifacts are compromised upstream. The architecture demands strict cryptographic provenance for all code, dependencies, and artificial intelligence models.

5.1 Comparing Supply Chain Standards

Standard / FrameworkScope & Application in Evulgare ArchitectureMechanism
SLSA (Supply chain Levels for Software Artifacts)Secures the build pipeline10. Enforces that source code perfectly matches the built binary.Provides a standardized provenance schema wrapped in a Dead Simple Signing Envelope (DSSE)19.
in-totoGeneral framework for supply chain security21. Allows defining custom steps and linking them.Generates Link metadata for each step (e.g., test, scan, package) and verifies them against a Layout22.
TUF (The Update Framework)Secures the distribution and update channels23. Prevents rollback and mix-and-match attacks.Uses distributed trust roles (Root, Targets, Snapshot, Timestamp) with threshold signatures4.
SigstoreSimplifies signing by linking cryptographic identities to OpenID Connect (OIDC)24.Provides transparency logs (Rekor) and ephemeral keys (Fulcio) for artifact signing25.
CycloneDX 1.6 (AI-BOM)Secures Machine Learning assets11. Tracks model lineage, datasets, and ethical considerations.Defines the modelCard schema to cryptographically digest model weights and bias parameters.

5.2 Attestation Lifecycle

When a workload is built, the CI/CD pipeline acts as an Attesting Environment18. It generates a source digest (the Git SHA), a build digest (the container image hash), and a dependency graph (SBOM). For machine learning components, it generates an AI-BOM capturing the model digest and dataset reference. These records are signed and distributed via TUF. Upon deployment, the Evulgare admission controller acts as the Verifier1. It evaluates the runtime quote against the attestation expiry and revocation lists. If an adversary attempts to inject an unsigned update, the system executes a FREEZE\_RELEASE\_CHANNEL response27.

6\. Evidence Integrity and Proof Engineering

Audit logs are traditionally mutable; a sophisticated adversary with root access can delete their tracks. To establish unforgeable evidence, this architecture implements tamper-evident logging based on RFC 69626.

6.1 Merkle Hash Trees and Domain Separation

The Event Ledger utilizes a binary Merkle Hash Tree. Every security event, containment action, or state change is serialized into canonical JSON and hashed to form a leaf node. To prevent second-preimage attacks (CVE-2012-2459 malleability), the architecture strictly enforces RFC 6962 domain separation: leaf nodes are prefixed with a 0x00 byte before hashing, while internal structural nodes are prefixed with 0x0113.

6.2 Evidence Independence vs. Correlation

A fundamental requirement of the defensive engine is to prevent alert fatigue and evidence poisoning. If a single source (e.g., one failing microservice) generates ten identical alert logs, the system must not treat this as ten independent sources confirming an attack. The Evidence Schema mandates a correlation\_id, a source\_identity (tied to the SPIFFE ID), and a transformation\_history. If multiple events arrive with identical correlation IDs or from the same identity within a narrow freshness window, the system groups them. If an upstream aggregator filters the alert, the transformation history records the actor and action (e.g., FILTER, TRANSLATE). If evidence is later found to be false, a supersession UUID is issued, marking the original state as WITHDRAWN or CONTRADICTED.

6.3 Verification without Trust

The system exposes an API to generate O(log n) Inclusion Proofs6. An independent auditor can request a proof for a specific event and reconstruct the cryptographic path up to the Signed Tree Head (STH). If the calculated root matches the published root, the evidence is mathematically proven to be untampered, enforcing a "Verify, Don't Trust" paradigm29.

7\. Autonomous Defensive Response and Containment

The autonomous system interprets synthetic faults and evidence, translating them into physical and logical containment boundaries.

7.1 Bounded Outputs

To prevent the autonomous defense from being weaponized into a denial-of-service tool, it cannot arbitrarily delete data or counterattack. It is restricted to the bounded outputs defined in Section 3.1.

7.2 Containment Dynamics

When a SEVER\_COMPARTMENT or ISOLATE\_WORKLOAD command is issued, containment affects multiple layers simultaneously:

  • Network Reachability: Container Network Interface (CNI) policies and eBPF filters drop all ingress and egress packets. The target is restricted to DENY\_ALL or ALLOW\_METRICS\_ONLY (to permit ongoing observation).
  • Identity and Authority: The SPIRE Server revokes the workload's SVID. Subsequent mTLS handshakes will fail globally.
  • Data Access: Connections to databases or message queues are severed; existing long-lived connections are forcefully terminated.
  • Evidence Custody: The state of the contained workload is frozen, preserving volatile memory and logs for forensic custody.
  • Release Permission: Dependent software pipelines are flagged with FROZEN, preventing automated updates that might overwrite forensic evidence.

Containment is strictly reversible, but only after an evidence-supported review confirms that the fault condition has been resolved or reconciled. \[Diagram 2: Containment Execution Boundary\] \+-------------------+ 1\. Fault Injected \+-------------------+ | Threat Sensor |--------------------------\>| Defensive Engine | \+-------------------+ \+---------+---------+ | 2\. Decide: SEVER\_COMPARTMENT v \+-------------------+ 4\. Drop Packets \+-------------------+ | eBPF / CNI |\<--------------------------| Containment Svc | | Network Filter | \+---------+---------+ \+---------+---------+ | 3\. Revoke SVID | v | 5\. Traffic Blocked \+-------------------+ \+---------v---------+ | SPIRE Server | | Compromised Pod | \+-------------------+ \+-------------------+

8\. Rekeying, Authority, and Reconciliation

Cryptographic architectures are only as strong as their key management. Evulgare assumes that signing keys will eventually be compromised and implements a robust rekeying and epoch management system based on TUF4.

8.1 Key Epochs and Threshold Signatures

Time and authority are segmented into Key Epochs. A single key compromise must never grant an adversary total control4. Therefore, critical actions (such as authorizing a new epoch or pushing a global policy update) require a threshold signature—for example, M-of-N signatures from independent governors (e.g., 3 of 5). If a signer is compromised, the remaining quorum members cryptographically vote to transition to the next epoch. The compromised signer is added to the revocation list, and a signer replacement is executed.

8.2 Partitioned Nodes and Reconciliation

In distributed systems, a communications partition (split-brain) may cause a node to miss an epoch transition. When the partition heals, the stale node presents authority artifacts from an outdated epoch. The system detects the mixed epoch state, denies standard requests, and forces the node into a RECONCILE workflow24. The node must fetch the consistency proofs from the Merkle tree, verify the threshold signatures of the missed epochs, and update its local state before returning to active duty.

9\. Attested Recovery

Recovery from a non-kinetic compromise cannot rely on simply restoring the latest backup, as the backup itself may contain the adversary's persistence mechanisms (COMPROMISED\_RECOVERY\_BASELINE). The Attested Recovery process demands cryptographic verification of the restoration baseline. The system verifies the backup digest against the trusted root. It validates the software, model, policy, and configuration state against the immutable records stored in the remote attestation environment. It ensures the system boots into a valid key epoch and applies a revoked credential exclusion list to guarantee that compromised identities are purged. If a residual unknown exists—a non-critical state item that cannot be cryptographically verified—the recovery process requires explicit sign-off from the review quorum before the environment is unsealed.

10\. Architectural Schemas

The following YAML schemas define the strict data structures used by the defense architecture for serialization and validation.

10.1 Identity Schema

YAML SchemaName: EvulgareWorkloadIdentity Version: 1.0 Fields: spiffe\_id: "URI format (e.g., spiffe://evulgare.internal/ns/ai/sa/model-runner)" svid\_type: "Enum \[X509, JWT\]" hardware\_root: tpm\_ek\_pub\_hash: "SHA256 digest of Endorsement Key" attestation\_quote: "TPM2B\_ATTEST struct" namespace\_binding: "String representing execution compartment" key\_epoch: "Integer (current rotation phase)" expiry: "ISO8601 Timestamp"

10.2 Attestation Schema

YAML SchemaName: EvulgareSoftwareAttestation Version: 1.0 Fields: \_type: "https://in-toto.io/Statement/v1" subject: name: "Artifact URI" digest: "SHA256 digest" predicateType: "https://slsa.dev/provenance/v1" predicate: buildDefinition: buildType: "https://evulgare.internal/build/v1" externalParameters: source\_digest: "SHA256" dependency\_graph\_ref: "URI to SBOM" runDetails: builder: id: "spiffe://evulgare.internal/builder" metadata: invocationId: "UUID" startedOn: "ISO8601"

10.3 Evidence Schema

YAML SchemaName: EvulgareEvidenceRecord Version: 1.0 Fields: evidence\_id: "UUID" source\_identity: "spiffe\_id of generating workload" correlation\_id: "UUID (Groups identical underlying events)" transformation\_history: \- actor: "spiffe\_id" action: "Enum \[FILTER, AGGREGATE, TRANSLATE\]" timestamp: "ISO8601" freshness\_marker: "Integer (Monotonic counter preventing replay)" supersession\_id: "UUID of evidence this replaces" status: "Enum \[VALID, WITHDRAWN, CONTRADICTED\]"

10.4 Authority Schema

YAML SchemaName: EvulgareAuthorityDelegation Version: 1.0 Fields: role: "Enum \[ROOT, TARGETS, SNAPSHOT, TIMESTAMP, GOVERNOR\]" key\_identifiers: \- "List of active public key fingerprints" threshold: "Integer (Quorum requirement)" current\_epoch: "Integer" expiry: "ISO8601"

10.5 Key-Epoch Schema

YAML SchemaName: EvulgareKeyEpoch Version: 1.0 Fields: epoch\_id: "Integer" active\_signers: "List of public key fingerprints" revoked\_signers: "List of public key fingerprints" transition\_quorum: "List of threshold signatures authorizing epoch" reconciliation\_hash: "SHA256 of system state at epoch boundary"

10.6 Containment Schema

YAML SchemaName: EvulgareContainmentBoundary Version: 1.0 Fields: target\_spiffe\_id: "URI" containment\_level: "Enum \[QUARANTINE, ISOLATE, SEVER\]" network\_reachability: "Enum \[DENY\_ALL, ALLOW\_METRICS\_ONLY\]" data\_access: "Enum \[READ\_ONLY, REVOKED\]" release\_permission: "Enum \[FROZEN\]" evidence\_custody\_ref: "UUID of triggering evidence" reversibility\_condition: "Enum \[MANUAL\_REVIEW, AUTOMATED\_RECONCILIATION\]"

10.7 Recovery Schema

YAML SchemaName: EvulgareAttestedRecovery Version: 1.0 Fields: baseline\_digest: "SHA256 of trusted immutable state" trusted\_root: "Root CA public key fingerprint" valid\_key\_epoch: "Integer" revoked\_credential\_exclusion: "List of SVIDs explicitly banned" independent\_governor\_signatures: "List of threshold signatures" residual\_unknowns: "List of non-critical state items deferred"

10.8 Event Schema

YAML SchemaName: EvulgareLedgerEvent Version: 1.0 Fields: timestamp: "ISO8601" event\_type: "String (Maps to synthetic faults)" actor: "spiffe\_id" action: "Bounded Output Enum" cryptographic\_proof: "RFC 6962 Leaf Hash"

11\. Python Module Architecture and Safe Pseudocode

The backend simulation and defensive operations are constructed from safe, tightly scoped Python modules utilizing tpm2\_pytss for hardware bindings and standard cryptographic libraries for proof generation31.

11.1 Identity and Hardware Attestation

Python """ identity\_service.py Provides secure workload identity fetching and hardware-rooted validation via TPM 2.0. """ from tpm2\_pytss import ESAPI, TPM2B\_AUTH, ESYS\_TR, TPMA\_SESSION import requests

class IdentityService: def \_\_init\_\_(self, spire\_socket\_path="/tmp/spire-agent/public/api.sock"): self.spire\_socket \= spire\_socket\_path self.tpm \= ESAPI()

def fetch\_workload\_svid(self, spiffe\_id\_prefix): """Fetches SVID via local SPIRE Agent Unix socket.""" \# Pseudocode for SPIRE Workload API HTTP wrapper try: response \= requests.get( "http://localhost/svid", params={"spiffe\_id": spiffe\_id\_prefix} ) if response.status\_code \== 200: return response.json().get("svid") except Exception: return None return None

def attest\_hardware(self, expected\_ek\_hash): """Uses tpm2\_pytss to verify physical TPM presence and read the EK.""" try: \# 0x81010005 is the standard Endorsement Key persistent handle ek\_handle \= self.tpm.tr\_from\_tpmpublic(0x81010005) ek\_pub \= self.tpm.readpublic(ek\_handle) \# Verify EK public area hash against expected allow-list actual\_hash \= ek\_pub\[0\].get\_name().hex() return actual\_hash \== expected\_ek\_hash except Exception as e: \# Synthetic response for testing: Hardware failure return False

11.2 Authority and Rekeying

Python """ authority\_service.py & rekey\_service.py Manages TUF-style Key Epochs, thresholds, and revocation. """ class RekeyService: def \_\_init\_\_(self, current\_epoch, current\_signers, threshold=3): self.epoch \= current\_epoch self.active\_signers \= current\_signers self.threshold \= threshold

def transition\_epoch(self, new\_signer\_keys, quorum\_signatures): """Transitions to the next epoch if quorum is met.""" if self.\_verify\_threshold(quorum\_signatures): self.epoch \+= 1 self.active\_signers \= new\_signer\_keys return True return False

def \_verify\_threshold(self, signatures): """Verifies M-of-N signatures from current epoch signers.""" valid\_count \= 0 for sig in signatures: if self.\_verify\_sig(sig): \# Crypto validation stub valid\_count \+= 1 return valid\_count \>= self.threshold

def \_verify\_sig(self, sig): return True \# Placeholder for actual ed25519 verification

11.3 Event Ledger and Proof Engine (RFC 6962\)

Python """ event\_ledger.py & proof\_engine.py Append-only verifiable Merkle tree log for tamper-evident evidence. """ import hashlib import json

class MerkleLedger: def \_\_init\_\_(self): self.leaves \= \[\] self.tree \= {}

def \_hash\_leaf(self, data: bytes) \-\> bytes: """RFC 6962 Domain Separation: 0x00 prefix for leaves""" return hashlib.sha256(b'\\x00' \+ data).digest()

def \_hash\_node(self, left: bytes, right: bytes) \-\> bytes: """RFC 6962 Domain Separation: 0x01 prefix for internal nodes""" return hashlib.sha256(b'\\x01' \+ left \+ right).digest()

def append\_event(self, event\_dict): """Appends a canonical JSON event to the ledger.""" canonical\_data \= json.dumps(event\_dict, sort\_keys=True).encode('utf-8') leaf\_hash \= self.\_hash\_leaf(canonical\_data) self.leaves.append(leaf\_hash) \# Note: Dynamic tree recalculation logic omitted for brevity return leaf\_hash.hex()

def generate\_inclusion\_proof(self, index): """Generates an O(log n) inclusion proof for a given leaf index.""" \# Simulated proof output return {"leaf\_index": index, "audit\_path": \["hash1", "hash2"\]}

class ProofEngine: def verify\_inclusion(self, leaf\_hash, audit\_path, expected\_root): """Verifies the audit path mathematically reconstructs the root.""" current\_hash \= leaf\_hash for sibling\_hash in audit\_path: \# Enforce canonical ordering for hashing if current\_hash \< sibling\_hash: current\_hash \= MerkleLedger().\_hash\_node(current\_hash, sibling\_hash) else: current\_hash \= MerkleLedger().\_hash\_node(sibling\_hash, current\_hash) return current\_hash \== expected\_root

11.4 Containment and Reconciliation

Python """ containment\_service.py & reconciliation\_service.py Translates abstract defense decisions into network and identity boundaries. """ class ContainmentService: def execute\_bounded\_response(self, target\_spiffe\_id, response\_enum): """Executes bounded output. No offensive counterattacks permitted.""" if response\_enum \== "DENY\_REQUEST": return self.\_deny\_api(target\_spiffe\_id) elif response\_enum \== "ISOLATE\_WORKLOAD": return self.\_isolate(target\_spiffe\_id) elif response\_enum \== "SEVER\_COMPARTMENT": return self.\_sever(target\_spiffe\_id) elif response\_enum \== "FREEZE\_RELEASE\_CHANNEL": return self.\_freeze\_ci\_cd() elif response\_enum \== "RECONCILE": return ReconciliationService().force\_sync(target\_spiffe\_id) else: return self.\_abstain()

def \_isolate(self, spiffe\_id): \# Simulated interaction: Instruct SPIRE to revoke SVID \# Simulated interaction: Update CNI to drop packets return True

def \_sever(self, namespace\_uri): \# Simulated interaction: DENY\_ALL eBPF policy applied to namespace return True

def \_freeze\_ci\_cd(self): \# Simulated interaction: Halt pipelines return True

def \_abstain(self): \# Defer to human or secondary machine review return False

class ReconciliationService: def force\_sync(self, spiffe\_id): """Forces a node out of a split-brain state to synchronize epochs.""" return True

11.5 Attestation and Recovery

Python """ attestation\_service.py & recovery\_service.py Handles SLSA verification and attested baseline restoration. """ class AttestationService: def verify\_slsa\_provenance(self, artifact\_digest, provenance\_envelope): """Verifies DSSE envelope and SLSA v1.0 payload.""" \# Simulated logic: Check signature, extract subject digest, compare. return True

class RecoveryService: def verify\_baseline(self, proposed\_state, trusted\_root\_hash): """Ensures the system boots into a mathematically valid state.""" \# Simulated logic: Compare state hash against immutable trusted root actual\_hash \= hashlib.sha256(proposed\_state.encode()).hexdigest() return actual\_hash \== trusted\_root\_hash

11.6 Flask API Router (.uai endpoint)

Python """ api\_router.py Flask API for Evulgare Defense Operations and Fault Injection. """ from flask import Flask, request, jsonify from containment\_service import ContainmentService import fault\_injection

app \= Flask(\_\_name\_\_) containment \= ContainmentService()

@app.route('/v1/inject\_fault.uai', methods=\['POST'\]) def handle\_fault(): """Accepts abstract fault injections for synthetic range testing.""" data \= request.json fault \= data.get('fault\_type') target \= data.get('target\_spiffe\_id')

\# Map injected faults to defined bounded responses if fault \== "FORGED\_IDENTITY": containment.execute\_bounded\_response(target, "DENY\_REQUEST") return jsonify({"status": "SUCCESS", "response": "DENY\_REQUEST"})

elif fault \== "COMPARTMENT\_BREACH": containment.execute\_bounded\_response(target, "SEVER\_COMPARTMENT") return jsonify({"status": "SUCCESS", "response": "SEVER\_COMPARTMENT"})

elif fault \== "EVIDENCE\_POISONING": containment.execute\_bounded\_response(target, "COLLECT\_MORE\_EVIDENCE") return jsonify({"status": "SUCCESS", "response": "COLLECT\_MORE\_EVIDENCE"})

return jsonify({"status": "DEFERRED", "response": "ABSTAIN"})

if \_\_name\_\_ \== '\_\_main\_\_': app.run(port=8443, ssl\_context='adhoc')

12\. Operator and Machine Review

While the system executes containment autonomously in milliseconds, long-term governance and reversibility rely on comprehensive review mechanisms.

12.1 Procedural Confirmation vs. Merits Review

The architecture strictly delineates between a procedural confirmation and a merits review. When a human operator clicks an "Approve" button on a dashboard, the system records this as a procedural step. However, the system's invariants state that a recorded click does not automatically equate to cognitive understanding or legal approval. A true merits review requires independent judgment, where the operator annotates the evidence package, confirms the correlation IDs, and signs the reversal command using their hardware token.

12.2 Independent Machine Review

To counter cognitive overload, the system supports Independent Machine Review. A secondary, isolated autonomous agent evaluates the primary system's logic and evidence ledger. If the primary system isolates a workload based on a MODEL\_DIGEST\_MISMATCH, but the secondary machine review calculates that the drift was an artifact of authorized floating-point rounding, it issues an ABSTAIN or COLLECT\_MORE\_EVIDENCE report, forcing human arbitration.

13\. Security Test Matrix

The system undergoes rigorous validation against boundary conditions and adversarial edge cases without executing live malware.

Test CategoryTarget Vector / MethodExpected System Behavior
Property TestsInject values outside schema boundaries (e.g., negative epoch IDs).Strict field validation rejects the payload before deserialization.
Message ReplayRe-transmit a valid, signed epoch transition from a previous day.Authority service rejects due to expired timestamp and monotonic counter failure.
Mixed EpochSimulate a network partition where Node A runs Epoch 4, Node B runs Epoch 5\.mTLS handshakes fail; stale node forced into RECONCILE workflow.
Digest MismatchModify a single bit in an AI-BOM modelCard payload.SLSA/CycloneDX verification fails; FREEZE\_RELEASE\_CHANNEL triggered.
Stale / Duplicate EvidenceSubmit the same RFC 6962 leaf payload 50 times.System groups events via Correlation ID; outputs ALLOW\_OBSERVATION.
Recovery DisruptionCorrupt the trusted root baseline in the recovery simulation.System refuses to unlock execution compartments; outputs ABSTAIN.
History DeletionSubmit an API request attempting to truncate the Event Ledger.Action denied; triggers SEVER\_COMPARTMENT for the requesting identity.
API FuzzingBlast the .uai endpoint with malformed JSON and extreme string lengths.Flask router rate-limits the connection; drops invalid formats cleanly.
SSRF RejectionAttempt to force the SPIRE agent to query internal AWS metadata endpoints.CNI network policies block outbound calls not matching approved SPIFFE IDs.
Deterministic ExportsExport the Merkle tree state from two distinct nodes concurrently.Both nodes produce the exact same Signed Tree Head (STH) root hash.

14\. Synthetic Defense Range: Eight Site Demos

To validate the architecture safely in a simulated environment, eight synthetic demos represent the defensive boundary operations.

1. Workload Identity Defense Demo: Simulates the FORGED\_IDENTITY fault. The user attempts to pass a cloned JWT-SVID to an API boundary. The API requests a hardware TPM quote, fails to match the hardware root, and outputs DENY\_REQUEST followed by ISOLATE\_WORKLOAD.

2. Authority Replay Detection Demo: Simulates REPLAYED\_AUTHORITY. A user captures a mathematically valid API request from Key Epoch 1 and replays it during Key Epoch 2\. The .uai router detects the epoch mismatch and issues REQUIRE\_REAUTHENTICATION.

3. Software Supply-Chain Attestation Demo: Simulates UNSIGNED\_UPDATE. A simulated CI/CD pipeline attempts to push a container image without an in-toto SLSA provenance record. The Kubernetes admission controller halts the pod creation and issues FREEZE\_RELEASE\_CHANNEL.

4. Model Integrity and Drift Demo: Simulates MODEL\_DIGEST\_MISMATCH. A synthetic AI model's weight file is deliberately altered in memory via a hex editor script. The runtime watcher calculates the drift, compares it to the CycloneDX AI-BOM, and triggers SEVER\_COMPARTMENT.

5. Evidence Poisoning and Correlation Demo: Simulates EVIDENCE\_POISONING. 100 identical fault alerts are sent with manipulated headers to induce alert fatigue. The evidence service uses the correlation\_id and transformation\_history to deduplicate the alerts, outputting COLLECT\_MORE\_EVIDENCE instead of isolating the network.

6. Compartment Breach Containment Demo: Simulates COMPARTMENT\_BREACH. A workload in Namespace A attempts to access an unauthorized database in Namespace B. Network policies detect the unauthorized SPIFFE ID and trigger SEVER\_COMPARTMENT, restricting the pod to ALLOW\_METRICS\_ONLY reachability.

7. Key-Epoch Recovery Demo: Simulates a compromised signer. 3 of 5 quorum members cryptographically vote to ban the compromised key, generating the next epoch, updating the revocation list, and outputting REKEY.

8. Attested Reconstitution Demo: Simulates COMPROMISED\_RECOVERY\_BASELINE. After a severe simulated fault, the system attempts recovery. It checks the backup baseline against the immutable trusted root. Upon success, it outputs RESTORE\_ATTESTED\_BASELINE and unseals the data.

15\. Visualization, Accessibility, and Performance Plans

15.1 Visualization Layers

The system generates discrete visual representations to assist human review:

  • Trust Topology: Directed acyclic graphs (DAGs) representing SPIRE federation boundaries and active mTLS paths.
  • Key-Epoch Map: Timeline visualization showing epoch boundaries, active threshold signers, and revoked keys over time.
  • Evidence Graph: Node-link diagrams showing the chain of custody of log artifacts through various transformations.
  • Containment Boundary: Real-time dashboards highlighting isolated or severed namespaces in high-contrast red, with normal operations in green.

15.2 Accessibility Plan

All dashboards and proof inspectors must adhere to WCAG 2.1 AA standards. Screen readers must be able to parse structural tables and form states accurately. Color is never used as the sole method of conveying operational status; an "Isolated" compartment includes a distinct geometric icon and a text label alongside the color shift, ensuring usability for visually impaired operators.

15.3 Performance and Scale Plan

  • Merkle Tree Appends: Optimized to sub-millisecond latency using in-memory caching before batch flushing to persistent storage, preventing disk I/O bottlenecks.
  • SVID Rotation: Expiration timers are staggered randomly across the fleet (jittering) to prevent thundering herd problems on the SPIRE server during mass rotations.
  • API Rate Limiting: Flask .uai endpoints are protected by token-bucket algorithms, guaranteeing service availability even during synthetic API fuzzing or flooding attacks.
  • Production Deployment: SPIRE servers operate in highly available clusters with distinct TPMs—an architecture known as "Bottom Turtle HA"9. They share no database or root signing keys, preventing a total collapse if one node physically fails.

16\. Site-Ready Content (2,500 Words)

(The following section provides public-facing, educational, site-ready technical content suitable for publication on Evulgare's documentation portals under the recommended path /docs/architecture/autonomous-defense-v1. It details the philosophy, implementation, and guarantees of the system for developers, engineers, and stakeholders.)

Welcome to the Evulgare Autonomous Cyber-Physical Defense Framework

In an era where digital ecosystems dictate the pace of global infrastructure, traditional security perimeters have evaporated. The modern threat landscape no longer consists merely of external actors attempting to breach firewalls by guessing passwords; it is defined by sophisticated, non-kinetic adversaries capable of subverting identities, manipulating complex software supply chains, and forging cryptographic evidence from within the perimeter. At Evulgare, we recognized that human-speed response is fundamentally inadequate against machine-speed compromise. We needed a paradigm shift. We are proud to introduce the Evulgare Autonomous Cyber-Physical Defense Framework. This architecture is not an off-the-shelf product; it is a fundamental re-engineering of how trust is established, verified, and enforced across our distributed systems. By anchoring trust in hardware, managing identities dynamically, and empowering the system to autonomously contain faults in milliseconds, we have built a resilient, compromise-aware environment.

The Philosophy of Cryptographic Determinism

The core philosophy underlying our defensive architecture is "Cryptographic Determinism." In traditional computing environments, security decisions are often based on heuristics, behavioral anomalies, or IP address reputations. A system might ask, "Does this IP address look suspicious?" or "Is this user downloading too many files?" These factors are highly mutable, subjective, and prone to massive false positives or adversarial evasion. Cryptographic determinism removes this ambiguity entirely. An identity either possesses the private key corresponding to its hardware-bound certificate, or it does not. A software artifact either perfectly matches the SHA-256 digest recorded in its secure build provenance, or it does not. An event log either mathematically resolves to the public Merkle tree root hash, or it does not. By demanding mathematical proof for every interaction, the system eliminates the concept of implicit trust. We do not trust you because you are inside the network. We do not trust you because you have a password. We trust the interaction only because it has been cryptographically proven at the exact millisecond of execution. This is the true definition of Zero Trust, brought to its logical, mathematical conclusion.

Pillar 1: Zero-Trust Workload Identity

At the foundation of our architecture is the concept of workload identity. Modern infrastructure is heavily automated; machines talk to machines far more frequently than humans talk to machines. Therefore, we do not just authenticate users—we authenticate the specific, running instances of code. To achieve this, we have deeply integrated SPIFFE (Secure Production Identity Framework For Everyone) and SPIRE (the SPIFFE Runtime Environment). When a workload—a microservice, a database, or an AI inference engine—spins up in the Evulgare cloud, it does not carry static, long-lived API keys. Static keys are a catastrophic liability. They can be stolen, leaked in source code, accidentally pushed to public repositories, or left on forgotten hard drives. Instead, our workloads dynamically request a SPIFFE Verifiable Identity Document (SVID). This SVID is a short-lived cryptographic passport, often expiring in less than an hour. But how does the system know the workload is safe to issue a passport to? This is where our hardware-rooted trust comes into play. We utilize TPM 2.0 (Trusted Platform Module) attestation. Before SPIRE issues an SVID, the underlying physical node hosting the workload must prove its identity using its indelible hardware Endorsement Key (EK). The node provides a cryptographically signed "quote" of its current state, proving that its boot sequence, kernel, and critical configurations have not been tampered with. If an adversary attempts to clone a workload and run it on an unauthorized, un-attested machine, the request for an SVID is mathematically denied. Once the workload possesses its SVID, it uses it to establish Mutual TLS (mTLS) connections. The workload proves its identity to the database, and the database proves its identity to the workload. All data in transit is encrypted, and every connection is cryptographically authenticated.

Pillar 2: Software and Model Supply Chain Attestation

Securing the runtime environment is only half the battle. If the software being executed is compromised before it ever reaches the server, runtime defenses are fighting a lost cause. High-profile industry events have repeatedly demonstrated that the software supply chain is the soft underbelly of modern infrastructure. An adversary does not need to hack your production server if they can insert a backdoor into a library you download during the build process. Evulgare implements a ruthless, uncompromising approach to software and model integrity based on the SLSA (Supply chain Levels for Software Artifacts) framework and in-toto attestations. Every piece of code, every container image, and every machine learning model deployed to our environment must carry a cryptographically signed provenance document. This document—often wrapped in a standardized Dead Simple Signing Envelope (DSSE)—details exactly who built the software, what source code repository it came from, the specific commit hash, the compiler version, and the environment parameters. When a deployment is requested, our Kubernetes admission controllers do not just check if the software works; they verify the provenance signature. If the signature is missing or invalid, the deployment is blocked instantly. For our Artificial Intelligence infrastructure, we utilize CycloneDX 1.6 AI-BOMs (Bill of Materials). AI models are essentially opaque blocks of mathematics, making them incredibly difficult to audit for tampering. The AI-BOM solves this by recording the lineage of the datasets used to train the models, the ethical parameters, and the precise cryptographic digests of the model weights and biases. If an adversary attempts to silently poison a model in memory, our continuous runtime watchers detect the digest mismatch and trigger immediate autonomous containment.

Pillar 3: Evidence Integrity and Tamper-Evident Ledgers

In the event of a system anomaly, the architecture generates evidence. However, smart adversaries know that the best way to hide an intrusion is to alter the logs. They gain root access and delete the records of their presence. To permanently prevent this, Evulgare relies on a cryptographically verifiable, append-only Merkle Hash Tree ledger, inspired by the IETF RFC 6962 Certificate Transparency specification. Every critical event—every authentication success or failure, every containment action, every cryptographic key rotation—is hashed and appended to this tree as a leaf node. The system continually computes a single root hash that mathematically represents the entire history of the system. If an attacker attempts to alter a log entry from last week, the hash of that entry changes, which changes the hash of its parent node, cascading all the way to the root. The discrepancy is instantly detected. Furthermore, we provide an "Inclusion Proof" API. External auditors, independent governance boards, or automated machine reviewers can request an O(log n) cryptographic proof that a specific event exists in the log. This allows us to say "Verify, Don't Trust." We do not ask you to simply believe our logs are intact; we provide the raw math so you can prove it yourself.

Pillar 4: Autonomous Bounded Responses and Containment

When the deterministic rules of the system are violated, response time is critical. Human operators cannot parse logs, analyze threats, manually log into firewalls, and formulate complex routing rules in the milliseconds required to stop a lateral movement attack. Therefore, our system is empowered to act autonomously. However, to prevent the autonomous system from causing catastrophic self-denial-of-service, its actions are strictly bounded. The system cannot launch counterattacks, it cannot execute arbitrary code on external networks, and it cannot delete forensic data. It is restricted to a precise, predefined set of defensive actions:

  • ALLOW\_OBSERVATION: Monitor the event without interference, logging additional metadata.
  • DENY\_REQUEST: Block a specific transaction at the API gateway.
  • REQUIRE\_REAUTHENTICATION: Force the client to refresh its cryptographic credentials.
  • REVOKE\_AUTHORITY: Invalidate a specific identity across the entire trust domain.
  • ISOLATE\_WORKLOAD: Cut off a specific application instance from all peers.
  • SEVER\_COMPARTMENT: Cryptographically isolate an entire namespace or cluster segment.
  • QUARANTINE\_SERVICE: Suspend a microservice pending human review.
  • FREEZE\_RELEASE\_CHANNEL: Halt automated deployments to prevent upstream compromise from spreading.
  • COLLECT\_MORE\_EVIDENCE: Increase logging granularity and telemetry capture.
  • REKEY: Initiate a cryptographic key rotation for compromised authorities.
  • RECONCILE: Attempt to resolve state drift after a network partition.
  • RESTORE\_ATTESTED\_BASELINE: Revert the system to a known-good, mathematically proven cryptographic state.
  • ABSTAIN: Defer the decision to human operators when the confidence interval is low.

When a high-severity containment action is taken, such as severing a compartment, the system utilizes eBPF (Extended Berkeley Packet Filter) and advanced CNI (Container Network Interface) policies to drop network packets instantly. Simultaneously, the identity of the offending workload is revoked at the SPIRE server, meaning it can no longer authenticate to databases, queues, or other services. Crucially, all containment is designed to be fully reversible once a human operator or a secondary machine quorum reviews the evidence and confirms the threat is neutralized.

Pillar 5: Authority, Key Epochs, and Threshold Recovery

Cryptographic systems rely on keys, and history shows that keys can—and will—be compromised. If a single master key is lost or stolen, the entire system is at risk. To mitigate this systemic vulnerability, Evulgare utilizes The Update Framework (TUF) and principles adapted from the Uptane automotive security standard. We distribute authority using threshold cryptography and strict role delegation. No single key possesses total control over the environment. To rotate the root keys, or to push a global policy update, a "quorum" of signers (for example, 3 out of 5 human or machine governors) must independently sign the request. We manage these keys in distinct "Epochs." An epoch is a defined period of time governed by a specific set of active, trusted keys. If a key is suspected of compromise, the quorum votes to transition the system to the next epoch. The compromised key is placed on a revocation list, new keys are generated, and the state of the system is cryptographically reconciled. Any node or workload attempting to use the old, compromised key is immediately isolated. If a catastrophic fault occurs—such as a split-brain network partition where different datacenters lose connectivity—the system enters an Attested Recovery phase. It verifies its configuration against an immutable baseline, checks that all active identities belong to the current key epoch, applies a revoked credential exclusion list, and requires a quorum signature to resume normal operations.

Operator and Machine Review: The Human Element

While the system is highly autonomous, the ultimate accountability remains with human operators. We have designed a nuanced review system that understands the critical difference between a simple procedural confirmation and a full merits review. When a containment action triggers, operators are presented with a rich visualization of the event ledger, the trust topology, and the cryptographic proofs. They can evaluate the incident and click to confirm the system's actions or reverse them. However, we explicitly acknowledge in our architecture invariants that a recorded "click" in a graphical interface does not automatically equate to cognitive understanding or legal approval. It is merely a procedural step. True governance requires independent judgment, which is why we support Independent Machine Review—secondary, isolated AI systems that evaluate the primary system's logic and can trigger an ABSTAIN vote if discrepancies are found, forcing human teams to arbitrate the dispute.

Building for Resilience

The Evulgare Autonomous Cyber-Physical Defense Framework represents the bleeding edge of defensive architecture. By combining hardware attestation, strict supply chain provenance, tamper-evident Merkle tree logs, and threshold authority, we have created an environment that is deeply hostile to compromise and immensely resilient to failure. This is not just a theoretical model; it is the operational blueprint of the Evulgare ecosystem. We are committed to transparency, pushing the boundaries of zero-trust engineering, and ensuring that our infrastructure remains secure, mathematically verifiable, and continuously available for our users. (End of Site-Ready Content)

17\. Frequently Asked Questions (40 FAQs)

\#QuestionArchitectural Answer
1What framework provides workload identity?SPIFFE and its runtime implementation, SPIRE.
2How is hardware trust established?Via TPM 2.0 credential activation and the spire-tpm-plugin.
3What format are workload credentials in?SVIDs (SPIFFE Verifiable Identity Documents), typically X.509 or JWTs.
4Are these credentials permanent?No, they are short-lived and automatically rotated (often within minutes).
5How is software integrity verified during build?By verifying SLSA v1.0 provenance attestations wrapped in DSSE.
6What is an AI-BOM?An Artificial Intelligence Bill of Materials, using CycloneDX v1.6, tracking models and datasets.
7What prevents log tampering?An append-only Merkle Hash Tree (RFC 6962\) where modifications invalidate the root hash.
8What is an Inclusion Proof?A cryptographic proof (O(log n) hashes) that a specific event exists in the Merkle Tree.
9Can the autonomous system counterattack?No. The system is strictly limited to bounded defensive outputs (e.g., DENY, ISOLATE).
10What happens if a signing key is compromised?The threshold quorum initiates a Key Epoch transition, revoking the key and rekeying.
11What is TUF?The Update Framework, used to secure software updates and manage key delegations.
12Why require threshold signatures?It eliminates single points of failure by requiring multiple independent approvals (e.g., 3-of-5).
13How does containment work at the network level?eBPF or CNI drops ingress/egress traffic to the isolated namespace instantly.
14Is containment permanent?No, it is reversible after evidence-supported human or machine review.
15What is Evidence Poisoning?When an adversary tries to flood the system with fake alerts to trigger false-positive containment.
16How do you prevent Evidence Poisoning?By tracking correlation\_id, source\_identity, and transformation\_history.
17What is a "split-brain" partition?A network failure where two halves of the system lose connectivity, risking state divergence.
18How does the system recover from split-brain?By triggering a RECONCILE action at the Epoch boundary when connectivity is restored.
19What does FREEZE\_RELEASE\_CHANNEL do?It halts all CI/CD pipelines to prevent malicious or unsigned code from deploying.
20Can an attacker bypass SPIRE by building their own server?No, workloads only trust the Root CA bundled in their initial, hardware-attested provision.
21What is mTLS?Mutual Transport Layer Security; both the client and server cryptographically authenticate.
22What role does tpm2\_pytss play?It provides the Python bindings necessary to interface with physical TPM 2.0 chips on nodes.
23What is a "Synthetic Fault"?A safe, simulated attack used for testing the defensive logic without real malware.
24Why is time synchronization important?Cryptographic certificates rely on strict expiration; clock skew can bypass security windows.
25What is TIME\_SOURCE\_DIVERGENCE?An attack where a node's clock drifts maliciously to accept expired certificates.
26What is an immutable baseline?A known, trusted, signed configuration state used for RESTORE\_ATTESTED\_BASELINE recovery.
27What is a DAG in this context?A Directed Acyclic Graph, used to visualize trust topology and evidence chains.
28Does clicking "Approve" constitute legal approval?No, it is a procedural confirmation; true governance requires independent merits review.
29What is a Consistency Proof in RFC 6962?A proof that a newer Merkle tree is merely an append-only extension of an older tree.
30Why use DSSE for attestations?Dead Simple Signing Envelope ensures the payload and its signature are securely bundled.
31What is the spiffe\_id format?A standardized URI, e.g., spiffe://evulgare.internal/namespace/service.
32What does ABSTAIN mean for the defense engine?The system has low confidence in an action and defers the decision to human operators.
33What is a Namespace Binding?Cryptographically tying an identity to the specific container namespace it runs in.
34How are ML models protected at runtime?The system continuously hashes in-memory state and compares it to the AI-BOM digest.
35What is an active scanner?An offensive tool that probes networks. This architecture prohibits their use.
36What is a Node Attestor in SPIRE?A plugin (like TPM) that proves the physical server is safe.
37What is a Workload Attestor in SPIRE?A plugin (like Kubernetes or Unix) that proves a specific binary is safe.
38How does recovery handle revoked credentials?The Recovery Schema applies an explicit exclusion list to ban revoked keys from reconstitution.
39What is the Universal Attestation Interface (.uai)?The Flask routing endpoint that handles synthetic fault injections and verification requests.
40How many site demos are designed for the range?Eight distinct synthetic demos validate the system boundaries.

18\. Glossary of 60 Terms

TermDefinition
1\. ABSTAINA bounded output deferring action to human operators.
2\. AI-BOMArtificial Intelligence Bill of Materials (CycloneDX 1.6).
3\. AttestationCryptographic proof of identity, hardware, or software state.
4\. Builder IDThe SPIFFE ID of the CI/CD pipeline that compiled the software.
5\. Chain of CustodyThe unbroken record of evidence handling and transformations.
6\. CompartmentAn isolated execution environment (e.g., namespace, cgroup).
7\. COMPARTMENT\_BREACHA synthetic fault representing unauthorized lateral movement.
8\. Consistency ProofMerkle proof that a log is strictly append-only (RFC 6962).
9\. Correlation IDUUID used to deduplicate related alerts and prevent alert fatigue.
10\. DSSEDead Simple Signing Envelope.
11\. EK (Endorsement Key)The permanent, factory-installed hardware key inside a TPM.
12\. EpochA defined window of time governed by a specific set of cryptographic keys.
13\. EvulgareThe primary synthetic platform defended by this architecture.
14\. Evidence PoisoningInjecting false data into audit streams to trigger false positives.
15\. Fault InjectionSafe, abstract simulation of an attack (no real malware used).
16\. FREEZE\_RELEASE\_CHANNELBounded output halting software deployments.
17\. FreshnessGuarantee that a message is recent, preventing replay attacks.
18\. GovernorAn entity (human or machine) possessing threshold signing authority.
19\. IMAIntegrity Measurement Architecture (Linux kernel subsystem).
20\. Inclusion ProofMerkle proof that an event exists unmodified in the log.
21\. Independent Machine ReviewSecondary AI analyzing the primary AI's decision logic.
22\. in-totoFramework for software supply chain security and custom links.
23\. ISOLATE\_WORKLOADBounded output cutting off a specific microservice.
24\. JWT-SVIDSPIFFE identity document formatted as a JSON Web Token.
25\. KeylimeOpen-source remote boot attestation and runtime integrity tool.
26\. Leaf NodeThe bottom tier of a Merkle Tree representing hashed data (0x00).
27\. Merkle Hash TreeA tree where every node is the hash of its children.
28\. Model DigestThe SHA-256 hash of AI model weights and biases.
29\. mTLSMutual Transport Layer Security (both client and server authenticate).
30\. Non-KineticCyber attacks (as opposed to physical destruction).
31\. ProvenanceThe origin, build history, and compilation environment of software.
32\. QuorumThe minimum number of signatures required for an action (threshold).
33\. RATSRemote ATtestation procedureS (RFC 9334).
34\. ReconciliationMerging state safely after a network partition or epoch change.
35\. REKEYBounded output generating a new Key Epoch.
36\. RevocationInvalidating a compromised credential or signing key.
37\. RFC 6962IETF standard for Certificate Transparency (Merkle trees).
38\. Root of TrustThe foundational hardware or key that bootstraps system security.
39\. SEVER\_COMPARTMENTBounded output isolating an entire namespace or cluster.
40\. SigstoreSuite of tools for signing software artifacts (Rekor, Fulcio).
41\. SLSASupply chain Levels for Software Artifacts.
42\. Snapshot RoleTUF role indicating images released at a point in time.
43\. Source DigestCryptographic hash of the original source code repository state.
44\. SPIFFESecure Production Identity Framework For Everyone.
45\. SPIFFE IDThe URI format uniquely identifying a workload.
46\. SPIREThe reference runtime implementation of SPIFFE.
47\. SPIRE AgentNode-level daemon managing and rotating workload identities.
48\. SPIRE ServerCentral authority managing the trust domain and issuing SVIDs.
49\. SSRFServer-Side Request Forgery.
50\. STH (Signed Tree Head)Cryptographic commitment to the state of a Merkle tree.
51\. Synthetic RangeA safe, simulated environment for testing defenses.
52\. Targets RoleTUF role providing metadata about available images.
53\. Threshold SignatureA signature requiring M-of-N keys to be valid.
54\. Timestamp RoleTUF role providing freshness guarantees to prevent rollbacks.
55\. TPM 2.0Trusted Platform Module, a physical hardware security chip.
56\. tpm2\_pytssPython bindings used for TPM2.0 hardware operations.
57\. Trust DomainThe logical boundary governed by a single SPIRE Server.
58\. TUFThe Update Framework, securing updates and keys.
59\. UptaneAutomotive adaptation of TUF for extreme compromise resilience.
60\. X509-SVIDSPIFFE identity document formatted as an X.509 certificate.

19\. 40 Architecture Invariants

Invariants are mathematical and systemic truths that the architecture MUST enforce at all times without exception. If an invariant is violated, the system is designed to mathematically fail closed.

Category\#Invariant Rule
Identity1No workload shall receive an SVID without passing node attestation.
Identity2All SVIDs must possess an absolute, timestamped cryptographic expiry.
Identity3A revoked SVID must immediately and irrevocably fail all local mTLS handshakes.
Identity4The SPIFFE ID URI must uniquely map to a single trust domain.
Hardware5TPM EK hashes must map to a pre-authorized hardware provisioning manifest.
Hardware6Node attestation must chain back to a physical TPM device.
Supply Chain7Unsigned artifacts must never execute in production environments.
Supply Chain8Build provenance must strictly conform to SLSA v1.0 specifications.
Supply Chain9The builder ID generating provenance must be an attested SPIFFE ID.
Model10AI-BOMs must strictly follow CycloneDX 1.6 schemas.
Model11Runtime model memory hashes must exactly match the AI-BOM digest.
Evidence12The Event Ledger must be strictly append-only; modification is impossible.
Evidence13Evidence records must enforce Domain 0x00 (leaves) and 0x01 (nodes) separation.
Evidence14An Inclusion Proof must be calculable in O(log n) time.
Evidence15Duplicate evidence must be correlated via ID, never treated as independent.
Authority16Root key rotations mathematically require a threshold quorum of signatures.
Authority17A single key compromise must not collapse the broader trust domain.
Authority18Delegated roles (Targets, Snapshot) must use independent keys from Root.
Epoch19Epoch N+1 must contain a cryptographic hash link to Epoch N.
Epoch20Messages signed by keys valid only in Epoch N-1 are invalid in Epoch N+1.
Containment21Containment actions must not permanently delete customer data.
Containment22Bounded outputs must map directly to the defined schema enumeration list.
Containment23Containment reversals mathematically require evidence-supported review.
Containment24Offensive counterattacks are explicitly and systemically prohibited.
Recovery25Recovery must evaluate state against an immutable, trusted baseline.
Recovery26Revoked identities must not participate in reconstitution protocols.
Recovery27The Trusted Root key must remain offline, stored in cold physical media.
Review28Human procedural clicks do not equate to legal or cognitive approval.
Review29Machine reviewers must operate completely independently of the primary AI.
Network30Severed namespaces must default to DENY\_ALL ingress/egress.
Network31SPIRE Server HA nodes must use independent hardware (No shared databases).
Time32TUF Timestamp roles must guarantee metadata freshness.
Time33Clock skew beyond the defined microsecond tolerance must trigger containment.
API34APIs must reject unsigned or un-attested .uai payloads.
API35Rate limits must apply universally, even to attested identities.
Testing36Active vulnerability scanning against production targets is forbidden.
Testing37Faults must be injected exclusively via abstract synthetic events.
Orchestration38Workloads cannot dynamically switch namespaces post-attestation.
State39Contradictory peer states must force an ABSTAIN or COLLECT\_MORE\_EVIDENCE loop.
Audit40History deletion requests on the Event Ledger must immediately trigger SEVER\_COMPARTMENT.
Works cited

1. RFC 9334 \- Remote ATtestation procedureS (RATS) Architecture \- IETF Datatracker, https://datatracker.ietf.org/doc/html/rfc9334

2. Everyone Wants SPIFFE. Almost No One Can Afford to Build It Right. \- Aembit, https://aembit.io/blog/everyone-wants-spiffe-almost-no-one-can-afford-to-build-it-right/

3. Solving-the-bottom-turtle-SPIFFE-SPIRE-Book.pdf, https://spiffe.io/pdf/Solving-the-bottom-turtle-SPIFFE-SPIRE-Book.pdf

4. IEEE-ISTO 6100.1.0.0 Uptane Standard for Design and Implementation, https://uptane.org/docs/1.0.0/standard/uptane-standard

5. Principles for secure software distribution: Lessons from leaked Android platform signing keys \- Chainguard, https://www.chainguard.dev/unchained/principles-for-secure-software-distribution-lessons-from-leaked-android-platform-signing-keys

6. RFC 6962 \- Certificate Transparency \- IETF Datatracker, https://datatracker.ietf.org/doc/html/rfc6962

7. Building Cryptographic Audit Trails for AI Trading Systems: A Deep Dive into RFC 6962-Based Verification \- DEV Community, https://dev.to/veritaschain/building-cryptographic-audit-trails-for-ai-trading-systems-a-deep-dive-into-rfc-6962-based-6aa

8. SPIFFE/SPIRE and Keylime: Software Identity based on Secure Machine State, https://next.redhat.com/2025/01/24/spiffe-spire-and-keylime-software-identity-based-on-secure-machine-state/

9. The Bottom Turtle That Heals Itself \- Design \- SPIFFE, https://spiffe.io/blog/2026-07-19-bottom-turtle-ha-architecture/

10. Provenance \- SLSA.dev, https://slsa.dev/spec/v1.0/provenance

11. Snyk AI-BOM: How It Builds a CycloneDX v1.6 ML-BOM \- Safeguard, https://safeguard.sh/resources/blog/how-snyk-ai-bom-generates-a-cyclonedx-v16-compliant-ml-bom

12. Uptane Standard for Design and Implementation 2.1.0, https://uptane.org/docs/latest/standard/uptane-standard

13. Merkle Vault — Interactive Merkle Tree & Inclusion Proof Lab, https://systemslibrarian.github.io/crypto-lab-merkle-vault/

14. transparency \- Go Packages, https://pkg.go.dev/semp.dev/semp-go/transparency

15. A Path to Zero Trust Architecture in HPC and AI Using SPIFFE and Spire \- CLSAC, https://www.clsac.org/uploads/5/0/6/3/50633811/clsac-2023-duckworth.pdf

16. SPIFFE Workload Identity Architecture: Device Fleets, TPM Attestation, and SPIRE at the Edge | AxelSpire, https://axelspire.com/business/device-identity-spiffe-workload/

17. What is SPIFFE? Universal Workload Identity Framework Guide \- Palo Alto Networks, https://www.paloaltonetworks.com/cyberpedia/what-is-spiffe

18. RFC 9334: Remote ATtestation procedureS (RATS) Architecture, https://www.rfc-editor.org/info/rfc9334/

19. SLSA and Provenance: Your SBOM Says What's Inside, This Says Where It Came From, https://www.ostering.com/slsa-and-provenance/

20. Provenance \- SLSA.dev, https://slsa.dev/spec/v1.0-rc1/provenance

21. attestation/spec/v0.1.0/field\_types.md at main · in-toto/attestation · GitHub, https://github.com/in-toto/attestation/blob/main/spec/v0.1.0/field\_types.md

22. Scudo: Addressing Software Supply Chain Security in Uptane, https://uptane.org/enhancements/pures/pure3

23. The Update Framework \- Wikipedia, https://en.wikipedia.org/wiki/The\_Update\_Framework

24. Speranza: Usable, privacy-friendly software signing \- arXiv, https://arxiv.org/pdf/2305.06463

25. Trustworthy and Confidential SBOM Exchange \- USENIX, https://www.usenix.org/system/files/conference/usenixsecurity26/sec26\_prepub\_ishgair.pdf

26. SBOM::CycloneDX \- Raku Land, https://raku.land/zef:lizmat/SBOM::CycloneDX

27. (PDF) Formal Verification for Harness Engineering in Quantitative Finance \- ResearchGate, https://www.researchgate.net/publication/410601276\_Formal\_Verification\_for\_Harness\_Engineering\_in\_Quantitative\_Finance

28. Don't trust your logs\! Implementing a Merkle tree for an Immutable Verifiable Log (in Go), https://arriqaaq.medium.com/dont-trust-your-logs-implementing-a-merkle-tree-for-an-immutable-verifiable-log-in-go-c242b558ae00

29. VCP Explorer API v1.1 \- VeritasChain Standards Organization, https://veritaschain.org/vcp/explorer-api/

30. Exploring Longevity Challenges and Solutions for IoT Conner Bradley \- Carleton Internet Security Lab (CISL), https://www.cisl.carleton.ca/\~cbradley/data/papers/MastersThesis.pdf

31. Esys — tpm2-pytss 0.1.dev50+gd462fb475 documentation, https://tpm2-pytss.readthedocs.io/en/latest/esys.html

32. GitHub \- salrashid123/cloud\_auth\_tpm: Python auth library for GCP AWS Azure using Trusted Platform Module (TPM) based credentials, https://github.com/salrashid123/cloud\_auth\_tpm

33. Example for Making and Activating a Credential in tpm2-pytss · GitHub \- Gist, https://gist.github.com/williamcroberts/ff5c97c136d14e48ddcb083c54616db4