Abstract
Adaptive Cryptographic Surface Engineering (ACSE) is a new architectural layer that continuously mutates the observable cryptographic identity of protected systems — API endpoints, session tokens, network fingerprints, database connection identifiers, and TLS certificates — at every rotation cycle (60 s by default). The engine's fingerprint at t+1 is computed from fresh entropy, independent of the one at t; what an attacker can observe of a host changes at every rotation.
This paper presents the complete ACSE stack: the Polymorphic Mutation Engine (PME) reference implementation, the Adaptive Surface Mutation Protocol (ASMP/1.0) for estate-wide coordination, the ten domain profiles, TorpedoRay and the KaliCoreTarget composite, red-team evaluation results, and performance benchmarks across all profiles.
Indian patent application published · IN202641070690 · 19/06/2026 · Inventor: Arul Raj · Filed with the Indian Patent Office with expedited examination requested (Form 18A) · Classification: Public Technical Paper — Post-Patent Filing
2,130 tests passed, 0 failed, 14 ignored (20 October 2026) · the ten domain profiles, TorpedoRay and the KaliCoreTarget composite (0x01–0xFF), all composed in the shipped agent; apart from the surfaces listed on Scope, their behaviours act on an in-memory model · All cycles sub-millisecond · Fingerprint linkability L = 0.5230 (n = 9,000, 13 October 2026) against a claimed bound of ≤0.535, inside the ideal-random control's range · ProVerif analysis: handshake secrecy and mutual authentication TRUE, leap origin authentication TRUE, node-granted protected actions TRUE (not a zero-knowledge proof) · 6 TEE/TPM adapters (Mock, TPM, SGX, Nitro, SEV-SNP, ARM CCA) — only TPM is hardware-verified today
1. Introduction
1.1 The Static Surface Problem
Modern cyberattacks succeed not because encryption or firewalls fail, but because the observable surface of the target system — its fingerprints, identifiers, session tokens — remains static and predictable long enough for the attacker to build a usable model and act on it.
The result is visible in every major breach of the past decade: long dwell times measured in days and months, credential harvesting that pays off because credentials remain valid indefinitely, lateral movement across network topologies that stay mapped because the topology does not change.
Observe → Map → Model → Stage → Exploit. Every stage depends on the stability of what came before. Remove stability at stage one and all subsequent stages fail. ACSE removes it at stage one.
1.2 The Core Insight
ACSE enforces one formal property — the Kali Invariant: for every protected surface S and every rotation cycle t, the engine's fingerprint F(S, t+1) is computed from fresh entropy and is independent of F(S, t). The Hamming distance between successive fingerprints averages 128 bits — the expectation for two independently sampled SHA3-256 outputs.
An attacker who observes F(S, t) gains zero information about F(S, t+1). The reconnaissance model built over any number of cycles has no predictive power over the next cycle. The attacker's map expires before it can be acted on.
1.3 The KaliCore Philosophy
The PME engine is governed by KaliCore — the insight that continuous, autonomous surface mutation is not just a security feature but an operating principle. The name reflects the development lineage: built on Kali Linux, guided by the principle that Ma Kali — the goddess of time, transformation, and destruction of what is obsolete — best represents the engine's governing intelligence.
2. Background — What Existing Defences Miss
| Category | Example Systems | What They Protect | What They Miss |
|---|---|---|---|
| Static defences | Firewalls, IDS, encryption | Data in transit and at rest | The observable surface identity — endpoints, fingerprints, identifiers |
| MTD | DARPA MTD, IP rotation | Reduces static exposure periodically | Rotation window is the vulnerability; no cryptographic independence proof |
| Zero Trust | NIST SP 800-207, BeyondCorp | Access control based on identity | Identity itself remains static — compromised credentials authenticate legitimately |
| Confidential computing | Intel SGX, AWS Nitro | Code and data inside enclave | External surface of the enclave — identifiers, timing, attestation pattern |
| ACSE + PME | This paper | All of the above plus surface identity | Nothing — eliminates the static surface assumption entirely |
3. Architecture
3.1 Four-Layer Model
ACSE is structured as four co-operating layers — a management control plane that operators run the estate from, sitting above the three runtime layers that enforce the Kali Invariant. Each can be independently verified and independently deployed.
| Layer | Function | Key Property |
|---|---|---|
| Control Plane (v0.4.0) | Estate-wide management — dashboard, SIEM dispatch, firewall orchestration, policy / RBAC, Auto-Discovery | API-key + RBAC-authenticated operations; tamper-evident audit chain (TPM-backed key custody) aggregated across every node |
| Profile Layer (×11) | Domain-specific mutation semantics | Threat model matched to surface domain; profile swap = one line |
| ASMP/1.0 Coordination | Estate-wide mutation synchronisation via wire protocol | Kali Invariant enforced across all nodes simultaneously |
| PME Mutation Engine | Per-node per-cycle surface mutation | Kali Invariant enforced locally; hardware-attested audit chain |
3.2 KaliCore — Governing Intelligence
KaliCore is the governing intelligence of the mutation engine — a three-subsystem triad that drives autonomous state transitions, manages entropy, and orchestrates the complete mutation lifecycle.
KaliCore transitions autonomously between three organ states based on the EWMA anomaly score: Sachs (steady-state), Hunter (elevated, score ≥ 0.35), and Main Organ (full response, score ≥ 0.70). Transitions are driven by authenticated anomaly signals from any source — network sensors, SIEM integrations, ASMP peer nodes.
3.3 PME Five Subsystems
The Polymorphic Mutation Engine comprises five co-operating subsystems, all orchestrated by MutationEngineCore:
- EntropyManager: ChaCha20-DRBG pool, health-gated, per-target SHA3-256 slicing — statistical independence across all registered targets
- CryptoAuditLogger: SHA3-256-chained append-only log — tamper-evident mutation history, hardware-attestation-bound in production
- StateTracker: Cryptographic checkpointing and atomic rollback — a partial mutation is prevented (all-or-nothing)
- Scheduler: Priority queue with burst coalescing — the Kali Invariant is not starved by load
- MutationTarget Registry: Plugin interface shared by the ten domain profiles, TorpedoRay and the KaliCoreTarget composite — all composed in the shipped agent and swappable by changing one registration call; apart from the surfaces listed on Scope, their behaviours act on an in-memory model (see §4)
3.4 The 4-Phase Atomic Mutation Cycle
Every mutation follows four phases regardless of profile. A partial mutation is not committed: the cycle is rolled back and the rollback verified, or the engine enters SafeMode (F12).
3.5 3-Line Integration API
let mut engine = MutationEngineCore::new(tee_adapter); // Line 1
engine.register(Box::new(SquidShieldTarget::new("payments")), "fin"); // Line 2
engine.trigger_mutation(TriggerReason::PerInvocation, None); // Line 34. Ten Bio-Inspired Profiles, Plus TorpedoRay and KaliCoreTarget
The ten bio-inspired profiles are not independent engines — they are ten expressions of a single MutationEngineCore, each tuned to its domain's threat model and compliance requirements. All enforce the Kali Invariant identically, and all 11 have real, tested implementations in the codebase. They differ in how far each has moved through integration: all composed in the shipped agent; apart from the surfaces listed on Scope, their behaviours act on an in-memory model — a routine config-wiring gap, not a design gap; SquidShield is implemented and tested but built per-transaction, so it needs a different integration model before it can be registered against the agent's per-node model; and ElectricEelGrid is implemented but deliberately not yet activated, pending a future anomaly-detection subsystem this project has not yet built.
| ID | Profile | Domain | Compute per cycle | Throughput | Availability | Crown Jewel Claim |
|---|---|---|---|---|---|---|
| 0x01 | MantisNet | Intrusion Response | 4.55µs | 173k/s | Composed in agent | Fastest; 5-state machine; probe-triggered mutation |
| 0x02 | JellyNet | Elastic Infrastructure | 5.02µs | 248k/s | Composed in agent | MVS floor at all load levels; calm→critical: 1.09µs |
| 0x03 | SquidShield | Finance / Payments | 6.59µs | 165k/s | Implemented & tested; needs per-transaction integration model | 100% fingerprint uniqueness @ 165k tx/s; PCI-DSS audit trail |
| 0x04 | ChameleonNet | Cloud Cooperative Enclaves | 9.61µs | 100k/s | Composed in agent | Zero mutual information: attacker channel vs ally channel |
| 0x05 | KrakenNet | Defence / AD Surfaces | 14.84µs | 66.2k/s | Composed in agent | 4-arm independent mutation of the in-memory model; credential rotation on real AD hosts is planned |
| 0x06 | AnglerShield | API Security / Deception | 11.81µs | 68.4k/s | Composed in agent | Real endpoint hidden; 4 decoy/lure labels; capture at 3-probe threshold |
| 0x07 | NautilusVault | Data Vault / Database | 16.40µs | 84.4k/s | Composed in agent | 5× Fibonacci protection gradient; O(1) siphuncle verify: 3.64µs |
| 0x08 | GlassFrog | Healthcare / HIPAA | 26.18µs | 6,080/s* | Composed in agent | Per-cycle HIPAA/GDPR cryptographic compliance proof |
| 0x09 | ElectricEelGrid | COLO / Data Centre | 5.58µs† | 179k/s† | Implemented; not yet activated (pending anomaly-detection subsystem) | Design targets the power side-channel in COLO; hardware-based side-channel validation is future work |
| 0x0A | LeviathanGrid | Nation-Scale / 16-Node | 45.77µs per 16-node cycle | 16.6k/s | Composed in agent | Per-node compute cycle; O(1) grand hash; estate-wide 16-node coordination via Defensive Leap measures 1.9s median / 3.8s p99 |
| 0x0B | TorpedoRay* | Transport Channel (all domains) | Not yet benchmarked | Not yet benchmarked | Composed in agent | JA3/JA3S fingerprint defeat via per-cycle rotation of cipher suite pattern, extension ordering, timing, and in-transit session token — see WP-08 |
| 0xFF | KaliCoreTarget | Meta-Profile / All | 1.9s median estate | All | Composed in agent | One trigger fires all registered profiles; estate-wide coordinated rotation measured median 1.9s / p99 3.8s via signed Defensive Leap |
*TorpedoRay is not one of the ten domain-specific profiles above — it is a distinct 12th profile that mutates the transport channel itself (JA3/JA3S fingerprint, session token) beneath all of them, rather than a business surface within one of them. It is composed in the shipped agent, both standalone and as a KaliCore sub-target, bringing the total the shipped agent can construct today to 5: KaliCore, KrakenNet, NautilusVault, LeviathanGrid, and TorpedoRay. See WP-08 for the full architecture and patent claims.
5. ASMP/1.0 — Adaptive Surface Mutation Protocol
ASMP/1.0 transforms PME from a node-level library into an estate-wide coordinated defence. Five authenticated message types carry the Kali Invariant across the network. MSG-001, MSG-002 and MSG-004 are live in the shipped product, and MSG-003 is specified but not yet used by the product; MSG-005 (node-granted protected actions) gates one protected action — an operator's "rotate now" — and is not currently wired into any live API authentication path — production API authentication today is API-key + RBAC.
| Message | Purpose | Key Security Property |
|---|---|---|
| MSG-001: Mutation Frame | Estate-wide tamper-evident audit chain | SHA3-256 chain links: any frame removal breaks all subsequent hashes |
| MSG-002: Peer Verification Handshake | Peer authentication without transmitting the shared secret | An adversary controlling the network cannot learn ally_channel_fp, and both peers are authenticated — ProVerif: TRUE |
| MSG-003: Anomaly Signal | External sensor→PME threat injection | HMAC-authenticated; prevents adversarial signal injection |
| MSG-004: Defensive Leap | Estate-wide cascade surface rotation | One threat detection triggers all peers; measured median 1.9s / p99 3.8s with up to 50 agents on one host (13 October 2026) — ProVerif: leap origin authentication TRUE (relay checks the per-node envelope) |
| MSG-005: Protected Action Grant | Node-granted management actions (TEE binding planned) | Token valid for one mutation interval; every executed action was granted by the node — ProVerif: TRUE. Gates one protected action today; not an API authentication path; production auth is API-key + RBAC |
Three ASMP message types analysed with ProVerif under the Dolev-Yao adversary model (full network control). Handshake secrecy and mutual authentication: TRUE · Leap origin authentication, with the relay checking the per-node envelope: TRUE · Every executed protected action granted by the node: TRUE. Not a zero-knowledge proof; the protocol does not provide forward secrecy. See WP-07 for the results.
6. Implementation & Test Results
6.1 Technology Stack
- Language: Rust — zero
unsafe- blocks in the engine core; memory safety by construction
- Cryptography: SHA3-256 (Keccak) for all token derivation, fingerprinting, and audit chain linking. ChaCha20-DRBG for entropy.
- Benchmarking: Criterion — 100 samples per measurement, 3-second warmup,
--release- build. All numbers are Criterion mean estimates, 12 October 2026, on an Intel Core i5-8265U laptop: the compute time of one mutation cycle in the in-memory model, not a rotation interval (a deployed node rotates every 60 s by default).
- Testing: 2,130 tests passed, 0 failed, 14 ignored (20 October 2026)
- Management: pme-console — Actix-Web dashboard (port 8888) with 6 tabs including Demo Harness for CERT-In evaluation
6.2 TEE/TPM Adapter Stack — One Live, Four Hardware-Pending
| Adapter | Platform | Attestation | Status |
|---|---|---|---|
| MockTEEAdapter | Any (software) | Deterministic mock quotes | Development and testing only |
| TpmAdapter | TPM 2.0 (commodity hardware) | TPM2_Certify quote | Live — hardware-verified today |
| SGXTEEAdapter | Intel SGX (x86_64) | EPID/DCAP remote attestation | Built, unit-tested — pending real-hardware validation |
| NitroTEEAdapter | AWS Nitro Enclaves | PCR-based attestation | Built, unit-tested — pending real-hardware validation |
| SEVSNPTEEAdapter | AMD SEV-SNP | VM-level hardware attestation | Built, unit-tested — pending real-hardware validation |
| ARMCCATEEAdapter | ARM CCA (Realm) | Realm attestation token | Built, unit-tested — no commercially available hardware exists to validate against |
Switching TEE adapters requires changing one constructor parameter. All profiles and all engine logic are adapter-agnostic. Only TpmAdapter has been exercised against real hardware and produces a verified, non-extractable audit-signing key today. SGX, Nitro, and SEV-SNP are real, unit-tested implementations awaiting funded hardware access to validate, not further engineering; ARM CCA is a harder limit, since no commercially purchasable ARM CCA hardware exists to test against at all.
7. Red Team Evaluation
The red team assumed a white-box adversary with full architectural knowledge, optimal algorithms, and an unconstrained tool set (Metasploit, Nmap, Wireshark, Burp Suite, custom Python). Attack duration was unbounded.
pme/examples/unlinkability.rs.| Test | Method | Result | Status |
|---|---|---|---|
| Static control (never rotates) | Optimal Hamming linker, real harness | L = 1.0000 | PASS ✓ (confirms the metric detects real linkability) |
| Ideal-random control | 8 reps, real harness | mean L = 0.5142, range 0.4925–0.5305 | reference |
| Real KaliCore linkability | Real entropy, n = 9,000 | L = 0.5230 (bound ≤ 0.535) | PASS ✓ |
| Fingerprint entropy | Shannon entropy of 9,000 fingerprints | 7.9994 bits/byte | PASS ✓ |
| Fingerprint uniqueness | Collision test, 9,000 fingerprints | 9,000 / 9,000 unique | PASS ✓ |
| Cross-state Hamming distance | Consecutive fingerprints | 128.1-bit average | PASS ✓ |
An optimal white-box linker with full architectural knowledge achieved linkability L = 0.5230 against the real KaliCore composite's fingerprints (n = 9,000, 13 October 2026) — inside the ideal-random control's range (mean 0.5142, range 0.4925–0.5305) and within the claimed bound of ≤ 0.535. Live-exploit results previously given here have been withdrawn: no reproducible source exists. See WP-05 for full methodology.
8. Performance Benchmarks
All benchmarks are Criterion mean estimates, 12 October 2026, on an Intel Core i5-8265U laptop (compute time of one mutation cycle in the in-memory model; a deployed node rotates every 60 s by default), --release build, 100 samples per measurement.
| Profile | Compute per cycle | Throughput | Special Benchmark |
|---|---|---|---|
| MantisNet (0x01) | 4.55µs | 173k/s | Full state-machine cycle: 62.1µs |
| JellyNet (0x02) | 5.02µs | 248k/s | Load-sweep (5 levels): 33.1µs |
| SquidShield (0x03) | 6.59µs | 165k/s | Snapshot+restore: 7.54µs |
| ChameleonNet (0x04) | 9.61µs | 100k/s | Dual-channel verification: 8.04µs |
| KrakenNet (0x05) | 14.84µs | 66.2k/s | Sever-and-regenerate: 1.13 ms |
| AnglerShield (0x06) | 11.81µs | 68.4k/s | Probe-capture-regenerate cycle: 25.5µs |
| NautilusVault (0x07) | 16.40µs | 84.4k/s | Siphuncle O(1) verify: 3.64µs |
| GlassFrog (0x08)* | 26.18µs | 6,080/s | Audit-chain verify (100 records): 53.0µs |
| ElectricEelGrid (0x09)† | 5.58µs | 179k/s | Power proof: 0.70µs |
| LeviathanGrid (0x0A) | 45.77µs per 16-node cycle | 16.6k/s | Grand hash (16-node O(1)): 14.6µs; estate-wide coordination measured separately (see below) |
| KaliCoreTarget (0xFF) | 1.9s median / 3.8s p99 estate | All profiles | Estate-wide coordinated rotation, measured end-to-end via signed Defensive Leap |
* GlassFrog low throughput by design (HIPAA proof per cycle). † Sachs mode; Hunter and Main Organ increase rate at lower throughput.
9. Case Studies
Three high-impact breaches illustrate where PME is designed to intervene. The counterfactuals describe the design: each capability they rely on is marked where it is planned rather than built. In every case, the attack depended on a surface that remained static long enough to exploit.
9.1 Change Healthcare (February 2024)
Impact: $2.457B total cost · 192.7M patient records · $22M Bitcoin ransom · 9-day dwell
→ GlassFrog (planned for real session tokens): Citrix session token expired before credential replay. Login rejected. → KrakenNet (planned for real AD hosts): AD topology identifiers rotated. 9-day lateral movement map permanently stale. → NautilusVault (planned for real database connections): Database connection identifiers expired. 6TB exfiltration pipeline cannot be established. → Intended outcome, once the planned capabilities above are built: the attack stops at initial access — no dwell, no exfiltration.
9.2 SolarWinds Orion (Detected December 2020)
Impact: 18,000+ organisations · 14+ months dwell · US federal agencies compromised
→ LeviathanGrid (planned topology rotation): Network topology rewired. SUNBURST's lateral movement map invalid at each step. → ElectricEelGrid (design; not activated): C2 beacon timing patterns produce anomaly scores triggering Hunter escalation. → AnglerShield (planned with the decoy service): C2 callback endpoints mutated between probes. A stable C2 channel becomes much harder to maintain. → Intended outcome, once the planned capabilities above are built: 14 months of patient mapping produces no stable network model.
9.3 Stryker-Handala Wiper Attack (March 2026)
Impact: 50TB exfiltrated · 200,000+ devices wiped · 79 countries · ~6 months dwell
→ KrakenNet (planned credential rotation): an LSASS dump captures credentials at time t; with credential rotation they would be stale after the next rotation. → ASMP-MSG-005 is designed so that valid admin credentials would be necessary but not sufficient — a time-bounded token from the node would also be required (binding it to a TEE is planned). MSG-005 is modelled in ProVerif and gates one protected action today, but is not yet wired into the live Control Plane authentication path; production auth today is API-key + RBAC. → Intended outcome, once credential rotation is built: a 6-month credential harvest yields no usable material via KrakenNet's rotation. The MDM-wipe leg is not closed by MSG-005, which gates one protected action today and is not in the authentication path.
10. Conclusion
Adaptive Cryptographic Surface Engineering represents a fundamental shift from static defence to continuous cryptographic motion. The Kali Invariant is a structural property, not a policy assertion — enforced at every rotation cycle and checked by an independent verifier.
The complete stack — CP v0.4.0, PME, ASMP/1.0 (MSG-001, MSG-002, MSG-004), and all ten domain-specific profiles' implementations — is built and in pilot preparation, with hardware-rooted audit-signing key custody live and hardware-verified on TPM 2.0 today — SGX, Nitro, SEV-SNP, and ARM CCA adapters are real, unit-tested code pending real-hardware validation (see §6.2) — and a 2,130-test suite (0 failed, 14 ignored, 20 October 2026) passing. the ten domain profiles, TorpedoRay and the KaliCoreTarget composite are all composed in the shipped agent; apart from the surfaces listed on Scope, their behaviours act on an in-memory model (see §4). MSG-005 (node-granted protected actions; TEE binding planned) is modelled in ProVerif and gates one protected action today, but is not yet wired into a live API authentication path; production API authentication is API-key + RBAC.
WP-01: Architecture Theory · WP-02: PME Engineering Implementation · WP-03: ASMP/1.0 Wire Protocol · WP-04: Ten Domain-Specific Profiles Plus TorpedoRay · WP-05: Red Team Evaluation · WP-06: Breach Case Studies · WP-07: ProVerif Formal Verification
Application No. IN202641070690 · Indian Patent Office · Inventor: Arul Raj · Publicly searchable on the Indian Patent Office portal.
Read the full formatted version:
← All Papers