← Lab /AI/ML

ElephantAgent enforces verifiable continuity of an agent's contextual state

ElephantAgent can detect and prevent contextual state poisoning attacks on agentic systems

AI/ML arXiv 2 Jul 2026 Defense Prototype evidence

Published as “ElephantAgent: Contextual State Continuity in Agentic Systems”

Why it matters

ElephantAgent makes it feasible to harden agentic systems against tool and memory poisoning with only marginal runtime impact, enabling safer deployment of agents in security-critical domains.

Summary

ElephantAgent enforces contextual state continuity for agentic systems and adds historical traceability, and its measurements show only a 1.02×-1.04× per-query runtime overhead while incurring an 8.22× one-time initialization cost. The evidence comes from three realistic agent tasks (email triage, code bug-fix, calendar scheduling) run on Intel TDX-protected VMs, comparing the protected ElephantAgent against an unprotected baseline.

What they found 3

  1. Initialization overhead is 8.22× higher for ElephantAgent versus the baseline.

    “Across the three tasks, the mean initialization time is 219.15 ms for NoGuardAgent and 1800.46 ms for ElephantAgent, corresponding to an 8.22× initialization overhead.”

  2. Per-query end-to-end overhead ranges from 1.02× to 1.04× across tasks.

    “The resulting end-to-end overhead ranges from 1.02× to 1.04× across the three tasks.”

  3. State verification adds only 4.23-4.33 ms per query.

    “verification averages 4.23-4.33 ms”

Caveats 5

  • The one-time initialization cost is large (8.22×), which may be prohibitive for short-lived agents.
  • Running the MCP server inside a TDX VM adds 1.51× initialization overhead and up to 1.22× tool-invocation overhead, showing that full deployment can increase latency.
  • We also note that the attested-server mode guarantees that an MCP Server follows the agent’s invocations and faithfully executes the intended tool with the specified parameters, but it does not mitigate in-band semantic abuse caused by externally retrieved content.
  • We intentionally choose small tasks so that the millisecondscale CG/SCM costs are not overshadowed by LLM-driven task processing.
  • We defer deployment details for CG and SCM, including SCM failure handling, SCM endpoint authentication, and private signingkey management, to Appendix D due to space constraints.

What’s new here 4

  • Enforces verifiable continuity of the agent's contextual state (tool descriptors and memory) via a linearizable, tamper-evident ledger.
  • Provides conditional post-hoc audit and recovery (Historical Traceability) to handle in-band semantic abuse.
  • Implements the continuity mechanism using a replicated TEE-backed service (Nimble ledger on Intel TDX).
  • Demonstrates that the added security incurs only millisecond-scale per-query overhead on real tasks.