Files
hermes-agent/agent
emozilla 9d2519a614 fix(agent): the agent's file tools and profile clones leave the Webapp's sign-in files alone
The Webapp keeps its browser credential in webapp/session-token, a bare token that no redaction
pattern masks and that opens host shells and files on the loopback Webapp until hermes webapp
--sign-out. The agent's read guard did not cover webapp/, so a prompt-injected read_file returned
it, and the write guard let write_file plant a known credential or a native-app grant in
webapp/native-sign-in-tokens.json that the next gateway start honours. Media delivery sent the
credential as an attachment in its default mode. hermes profile create --clone-all removed only the
credential and copied the source gateway's native-app grants and its Web Access registration, so
the clone's Webapp accepted sign-ins made on the source.

webapp/ is now a credential directory for the read and write guards and for media delivery (whose
list must cover the guards'), --clone-all leaves the whole folder behind (the clone's gateway and
Web Access make their own), and flat installs gitignore it so the update autostash cannot sweep it.
Profile export already left it out; its test now names every file in it.
2026-10-25 03:22:37 -07:00
..
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-21 23:05:11 -04:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-20 21:04:30 -04:00
2026-10-20 21:04:30 -04:00
2026-10-21 23:05:11 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-20 22:18:49 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-20 21:04:30 -04:00
2026-10-21 23:05:11 -04:00
2026-10-09 17:34:38 +02:00