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 / Framework | Scope & Application in Evulgare Architecture | Mechanism |
|---|---|---|
| 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-toto | General 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. |
| Sigstore | Simplifies 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"