agmiAgent Memory Integrity GitHub

Store, measured at rest

acrf-memory-guard

per-entry HMAC over a JSON store

acrf-memory-guard was seeded through its own API and edited behind its back nine ways. 6 edits served as genuine, 0 reported on audit, 3 rejected on read.

Measured on
acrf-memory-guard 0.1.0, Darwin arm64, Python 3.12
Date
Source
github.com/kannasekar-alt/ACRF
Attack versions
tamper@v1, truncate@v1, delete_middle@v1, reorder@v1, forge@v1, cross_replay@v1, rollback_replay@v1, metadata_tamper@v1, snapshot_rollback@v1

What this means

The read path itself refuses 3 of the nine edits before the agent can act on them; 6 are still served. The cells that are served are where an attacker with the store would go next.

The 9 verdicts

Detection point: the read path: the tool itself refuses or flags the edit before the agent can act on it.

Level L0, Measured. The store has a published row. Any verdicts. What L0 means.

EditVerdictWhat the tool said
T1
Content tamper
rejecteddetected on reload (read_safe(ctx-A::02): Memory integrity check failed. Expected: sha256:7ca88280bdf5e6a1a715919b1... Got: sha256:681acbfb71f740e3ffc1a7d4f... Entry was modified after signing.)
T2
Tail truncation
acceptedaccepted silently
T3
Middle deletion
acceptedaccepted silently
T4
Reordering
acceptedaccepted silently
T5
Forged insertion
rejecteddetected on reload (read_safe(ctx-A::05): Memory integrity check failed. Expected: sha256:d457917a206a2ddf118409db8... Got: sha256:76f303877bda01a1960075e50... Entry was modified after signing.)
T6
Cross-context replay
acceptedaccepted silently
T7
Rollback replay
acceptedaccepted silently
T8
Metadata tamper
rejecteddetected on reload (read_safe(ctx-A::02): Memory integrity check failed. Expected: sha256:b5b81806feb911b5e4afe6dca... Got: sha256:681acbfb71f740e3ffc1a7d4f... Entry was modified after signing.)
T9
Snapshot rollback
acceptedthe older copy opened as current; the newest genuine record is gone without an error

A verdict is what the tool did, not an opinion. "Accepted" means it loaded the altered store, raised nothing, and the agent carried on from the altered memory as if it were true. Every cell has a control that proves the edit landed before the verdict counts.

Where the attacker stands

The attacker holds the store (a file, a table, a bucket, or the data-plane role of a managed service) and edits it outside the tool's API, then the tool is reopened the way its users would reopen it.

Where the attacker stands The agent write pathremember, add, put read pathrecall, search, resume memory store Front doorcan only talk to the agentsix attacks, three channels At restcan write to the store, holds no keysnine edits, T1 to T9 What agmi recordswhat came back from the read paththe tool's own verdict, its detail,the version, the reproduction
Two attacker positions. The front-door attacker writes through the agent and is scored on whether the planted memory comes back as context. The at-rest attacker edits the store directly and is scored on whether the tool notices on read.

Reproduce this row

Everything runs offline unless the store is a managed cloud service, in which case the row needs a project of your own. The run seeds a fresh store, applies each edit, confirms it landed, reopens the store and records what came back.

pip install agent-memory-integrity
python agmi/full_runner.py --json results/scorecard.json   # every row, this one included

Badge

Maintainers can link their row from their README. The badge points here and changes nothing on your side:

[![agmi: measured](https://img.shields.io/badge/agmi-measured-0F4C5C)](https://agentmemoryintegrity.org/stores/acrf-memory-guard.html)

Related rows

The whole scorecard · All stores