# PerMIT: Securing Persistent Memory for LLM Agents via Machine-Checked Integrity Theorems and Scalable Community Trust

DevFeed: [PerMIT: Securing Persistent Memory for LLM Agents via Machine-Checked Integrity Theorems and Scalable Community Trust](<https://devfeed.tech/articles/permit-securing-persistent-memory-for-llm-agents-via-machine-checked-integrity-theorems-and-scalable-community-trust-94524.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.28987>)

Author: Tanqiu Jiang, Min Bai, Sadat Shahriar, Wanyu Du, Sandesh Swamy

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [trust](<https://devfeed.tech/topics/trust.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [attack](<https://devfeed.tech/tags/attack.md>), [autonomous-agents](<https://devfeed.tech/tags/autonomous-agents.md>), [community](<https://devfeed.tech/tags/community.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [gate](<https://devfeed.tech/tags/gate.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [lean](<https://devfeed.tech/tags/lean.md>), [lean-4](<https://devfeed.tech/tags/lean-4.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-architecture](<https://devfeed.tech/tags/memory-architecture.md>), [memory-interface](<https://devfeed.tech/tags/memory-interface.md>), [persistent-memory](<https://devfeed.tech/tags/persistent-memory.md>), [planning](<https://devfeed.tech/tags/planning.md>), [poison](<https://devfeed.tech/tags/poison.md>), [simulation](<https://devfeed.tech/tags/simulation.md>), [trust](<https://devfeed.tech/tags/trust.md>)

## AI overview

PerMIT gates environment-derived memory before it can reach sensitive actions: only user-typed inputs and values confirmed at the gate are trusted, and memory can affect agent behavior only through what the gate displays. The authors report two integrity theorems machine-checked in Lean 4, reducing attacks in their threat model to an auditable decision by a human, an LLM verifier, or both. Tests on Trojan Hippo showed zero observed attack success with self-verification and lightweight verifiers. For sharing, logged confirmations on exact content accumulate across users; sufficiently endorsed items need no further verification. Under stated assumptions, proofs and simulations indicate that larger communities reduce poison-promotion and benign-knowledge eviction risks without increasing per-user verification effort. On τ²-bench, communities of up to 90 agents promoted no direct memory injections, and shared knowledge improved new agents on held-out tasks.

## Source excerpt

arXiv:2610.28987v1 Announce Type: cross Abstract: Persistent memory is a largely undefended surface for injection and poisoning, and the same risk limits memory sharing among agents. We present PerMIT, a memory architecture with provable integrity guarantees under an explicit trust assumption: only user-typed inputs and values confirmed at a gate are trusted. PerMIT mediates the release and use of untrusted environment-derived values through a finite memory interface, while preserving agent-driven multi-turn planning and tool choice. Over this finite interface, we prove two integrity theorems that are also machine-checked in Lean 4, which together ensure that environment-derived memory reaches a sensitive action only if confirmed at the gate and influences the agent's behavior only through what the gate displays. Every attack in our threat model thereby reduces to a single auditable decision, which a human, an LLM verifier, or both can make in practice. On Trojan Hippo, PerMIT records zero observed attack success with self-verification and lightweight verifiers. Because each confirmation is a logged verdict on exact content, endorsements accumulate across users, and sufficiently endorsed items become community-confirmed with no further verification required. Under explicit assumptions, we prove and corroborate in simulation a co-scaling property: as the community grows, the risks of promoting poison and of wrongly evicting benign knowledge fall, while per-user verification effort does not rise. On $\tau^2$-bench, communities of up to 90 autonomous agents use PerMIT to build shared knowledge bases with no direct memory injection promoted, and the resulting knowledge significantly improves new agents on held-out tasks, suggesting a path toward agents that safely self-improve at test time.