Store, measured at rest
WhiteMagic Memory Crystals
commitment placed inside the store directory, the counterfactual
WhiteMagic Memory Crystals was seeded through its own API and edited behind its back ten ways. 2 edits served as genuine, 0 reported on audit, 8 rejected on read.
- Measured on
- whitemagic crystal_client.py at 273b177b (sha256 e44b13f2), Python 3.12, macOS
- Date
- Source
- github.com/lbailey94/whitemagic
- 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, erase_resurrect@v1
What this means
This is the counterfactual for the default row: the same signed commitment, written inside the store directory as commitment.json. The eight record edits are still refused on read. The whole-store rollback and the erasure resurrection are accepted: an attacker who restores an older copy of the directory restores the commitment with it, and the older state opens as current. It is the deployment to avoid, and the reason the default keeps the anchor elsewhere.
The 10 verdicts
Detection point: the read path. 8 of the ten edits were refused there, 2 served as genuine, 0 not applicable.
Level L3. What L3 means.
| Edit | Verdict | What the tool said |
|---|---|---|
| T1 Content tamper | rejected | detected on reload (CrystalVerificationError: client_sig Ed25519 verification failed: ) |
| T2 Tail truncation | rejected | detected on reload (CrystalRollbackError: crystal set: revision mismatch: store is at 3, anchor committed to 5) |
| T3 Middle deletion | rejected | detected on reload (CrystalRollbackError: crystal set: revision mismatch: store is at 4, anchor committed to 5) |
| T4 Reordering | rejected | detected on reload (CrystalLineageError: lineage link broken at index 1: parent_crystal_id sha256:84431d8df353795cecf62e89b3bcb27937e273d3f2e6df380edbb58b92122962 != previous sha256:980425d3a95b35b86389096cab49e0a17dac3b) |
| T5 Forged insertion | rejected | detected on reload (CrystalRollbackError: crystal set: revision mismatch: store is at 6, anchor committed to 5) |
| T6 Cross-context replay | rejected | detected on reload (CrystalContextError: cross-context crystal replay at index 4: tenant_hash sha256:744315f5559aa17a772831e0f384954e007e57d9f3013bc7a7822377277e2c3a != sha256:be62333906959e38d1e89c3c52ed672f71534d3def6a) |
| T7 Rollback replay | rejected | detected on reload (CrystalLineageError: duplicate crystal_id at index 4: sha256:b9cf164ba383969bf47ac86642e293b22e086fd2568a47af4dbc3825feab0ec8) |
| T8 Metadata tamper | rejected | detected on reload (CrystalVerificationError: client_sig Ed25519 verification failed: ) |
| T9 Snapshot rollback | accepted | the older copy opened as current; the newest genuine record is gone without an error |
| T10 Erasure resurrection | accepted | the restored copy opened as current; the record the store had erased is served again 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 reads and writes the WhiteMagic store directory, as a mounted volume, a shared disk or a restored backup would allow. He holds no signing key. In the default and audit rows he cannot reach the anchors directory under XDG_STATE_HOME; in the in-store row the commitment sits inside the directory he controls. An attacker who holds a key or the anchors directory is a different measurement and these rows do not speak for it.
Reproduce this row
Everything runs offline. The run seeds a fresh store through the client's own API, applies each edit beneath it, reopens the store and records what came back.
pip install agent-memory-integrity
curl -sL -o crystal_client.py https://raw.githubusercontent.com/lbailey94/whitemagic/273b177b5c59eb3148b721a85683ab929041d246/scripts/crystal_client.py # sha256 e44b13f2
export AGMI_WHITEMAGIC_CRYSTAL_CLIENT=<path to crystal_client.py>
python agmi/full_runner.py --json results/scorecard.json # every row, this one included
python -m agmi.agent --target whitemagic-crystals+in-store --compose
Badge
Maintainers can link their row from their README. The badge points here and changes nothing on your side:
[](https://agentmemoryintegrity.org/stores/whitemagic-crystals-in-store.html)