Tamper detection and recovery
Checked with iron-vault 0.2.0-alpha (features: dev-mode), built from main at 378d57d.
Change the published config without an approval, see the service stop proxying, and bring it back. See the config approval design for the check.
Step 1 plays the attacker. Don’t do it to a service that holds real keys.
Prerequisites
- The service running and Ready, with the
mecaller andhttpbinroute from getting started, and the route’s rate limit set toburst = 2as in widen or narrow a route. - Your own config file,
dev-config.toml, holding the config you last approved, and the approval passphrase.
Steps
1. Change the published config
Raise the rate limit in the published copy, then ask the service to reload:
CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/iron-vault-dev/config.toml"
sed -i 's/burst = 2 }/burst = 500 }/' "$CONFIG"
pkill -HUP -u "$USER" -f 'iron-vault serve'
2. See what the service does
iron-vault status
service: unavailable
reason: policy invalid
profile: development — no isolation from malware running as alice
vault: locked
vault id: unknown
approval committed: unknown while the vault is locked
approval highest reserved: unknown while the vault is locked
memory protection: NOT protected, swap protection unavailable (RLIMIT_MEMLOCK soft limit is 8315834368 bytes, not unlimited)
recovery last checked: 2026-11-07 (today)
credentials: unknown while the vault is locked
Every request is refused, before anything leaves the machine:
curl -si -H "Proxy-Authorization: Bearer $(cat ~/.iron-vault-tokens/me)" http://127.0.0.1:7878/httpbin/headers
HTTP/1.1 503 Service Unavailable
content-type: text/plain; charset=utf-8
content-length: 14
policy invalid
The log says what happened:
jq -c 'select(.event == "config.reload-failed")' ~/iron-vault-dev.log
{"service":"iron-vault","service_version":"0.2.0-alpha","schema_version":1,"deployment_profile":"development","timestamp":"2026-11-07T10:24:23.474848Z","level":"WARN","message":"the reload failed, the service stops proxying","event":"config.reload-failed","committed_version":9,"unavailable_reason":"policy_invalid","detail":"the published config is not committed version 9: the config has changed since it was approved; approve it again","target":"iron-vault.audit"}
A config.check-failed record with the same detail comes just before it.
3. Find out how it happened
In a protected install only the iron-vault service account and root can write the published config. Look at what
else changed, and read the admin trail for approvals and
credential changes you didn’t make.
4. Approve your config again
Never fix the published copy by hand. Approve your own copy, after checking it is the one you mean:
iron-vault config approve dev-config.toml
No config is active, so everything is listed as added:
Approval summary
vault: 8c597c79-…
version to commit: 10
config digest: blake2b:f8020a2b…
committed version: 9
no active config
callers:
+ me: listener loopback, auth token, rate limits none
route grants:
+ me: granted httpbin
routes:
+ httpbin: prefix /httpbin, upstream https://httpbin.org/, credential httpbin_key, slot header Authorization format "Bearer {}", ca file none, methods GET, paths /anything/**, /gzip, /headers, rate limit 10 per 60s burst 2, confirm none
listeners:
+ loopback: endpoint tcp 127.0.0.1:7878, no tls, token header default
Approve this config as version 10? Type yes to approve: yes
Approval passphrase for "approval passphrase":
approved version 10 (blake2b:f8020a2b…)
callers: 1 added; route grants: 1 added; routes: 1 added; listeners: 1 added; limits: none; logging: none; recovery: none
Read every line: this is the whole policy, not a diff.
iron-vault status | head -6
service: ready
profile: development — no isolation from malware running as alice
vault: unlocked
vault id: 8c597c79-…
approval committed: 10
approval highest reserved: 10
The first request may get 429: the rate limit
starts empty.
What can go wrong
statusshowsvault: lockedwhile Unavailable, but the secrets are not out of memory. Unavailable keeps the vault identity in memory. To clear it while you investigate, runiron-vault lock, theniron-vault unlockbefore you approve. See service states.- You don’t have the config you last approved. Write a new one from scratch and approve it. The summary lists it all as added either way.
Reference
- Files and locations: the published config, its signature, and why never to edit them.
- Service states: Unavailable.
- Config approval design: reload and the config check.