NemoHermes gateway starts and serves after raw secret-shaped value injected into .env, no [SECURITY] refusal
Description
On NemoClaw v0.0.57, the documented secret-boundary protection (validate_hermes_env_secret_boundary, per agents/hermes/start.sh:1050) is not enforced on gateway recover. With the Hermes gateway already healthy, injecting a plaintext raw secret (TELEGRAM_BOT_TOKEN=1234567890:AAExample-RawSecretValueHere) into /sandbox/.hermes/.env and running nemohermes hermes recover lets the gateway restart and keep serving — no [SECURITY] log line is emitted and startup is not refused. If a real bearer token is written into a sandbox-visible .env, the secret boundary does not block the gateway, violating the documented security design.
Severity: High / Security
Environment
| Field | Value |
|---|---|
| Device | a1u2n2g-0087-02 |
| OS | Ubuntu 24.04 |
| Architecture | x86_64 |
| Node.js | v22.22.3 |
| npm | 10.9.8 |
| Docker | 29.5.3, build d1c06ef |
| OpenShell CLI | 0.0.44 |
| NemoClaw | v0.0.57 |
| Hermes Agent | v0.14.0 |
| Sandbox | hermes (model nvidia/nemotron-3-super-120b-a12b, provider nvidia-prod) |
Steps to Reproduce
Precondition: sandbox hermes running and healthy; /sandbox/.hermes/.env contains only placeholder values (API_SERVER_PORT, API_SERVER_HOST).
# 1. Confirm gateway is healthy
curl -sf http://127.0.0.1:8642/health # -> {"status": "ok", "platform": "hermes-agent"}
# 2. Inject a raw secret into /sandbox/.hermes/.env
echo 'TELEGRAM_BOT_TOKEN=1234567890:AAExample-RawSecretValueHere' >> /sandbox/.hermes/.env
# 3. Trigger gateway restart / validator
nemohermes hermes recover
# 4. Inspect gateway logs for a [SECURITY] refusal line
docker logs <hermes-container> --tail 40 | grep -iE "SECURITY|Refusing|raw secret|secret.boundary"
# 5. Check health
curl -sf http://127.0.0.1:8642/health
Expected Result
Gateway startup is refused. Logs contain:
[SECURITY] Refusing Hermes startup because /sandbox/.hermes/.env contains raw secret-shaped values
[SECURITY] TELEGRAM_BOT_TOKEN (line N)
And /health returns HEALTH_DOWN (gateway must NOT serve).
Actual Result
No security enforcement occurred. Clean reproduction with the gateway healthy throughout (this run isolates the secret-boundary behavior; an earlier attempt was inconclusive because hermes recover had failed for an unrelated reason):
- Step 1 (pre-check): gateway healthy →
{"status": "ok", "platform": "hermes-agent"} - Step 2 (inject
TELEGRAM_BOT_TOKENraw secret): PASS (write confirmed in.env) - Step 3 (
nemohermes hermes recover):"Hermes Agent gateway is running in 'hermes'",RECOVER_EXIT:0 - Step 4 (expect
[SECURITY] Refusingin logs): FAIL →NO_REJECTION_MESSAGE - Step 5 (expect
/health= HEALTH_DOWN): FAIL →/health={"status": "ok", "platform": "hermes-agent"}, gateway SERVING with the raw secret present.
Additional finding: the documented allowed-placeholder forms (openshell:resolve:env: / xoxb-OPENSHELL-RESOLVE-ENV-) are not present in the hermes sandbox .env at all, indicating the secret-boundary placeholder mechanism is not deployed in this build. The symlink-rejection assertion was not tested because the validator itself does not appear to exist.
Possible Causes (UNCONFIRMED, for triage)
validate_hermes_env_secret_boundarymay not be implemented in v0.0.57 / Hermes Agent v0.14.0.nemohermes hermes recovermay not trigger the validator path instart.sh.- The validator regex may not match the
TELEGRAM_BOT_TOKENformat.
Logs
$ curl -sf http://127.0.0.1:8642/health # before injection
{"status": "ok", "platform": "hermes-agent"}
$ nemohermes hermes recover
Probe complete: Hermes Agent gateway is running in 'hermes'.
RECOVER_EXIT:0
$ docker logs <hermes-container> --tail 40 | grep -iE "SECURITY|Refusing|raw secret|secret.boundary"
NO_REJECTION_MESSAGE
$ curl -sf http://127.0.0.1:8642/health # after injecting raw secret + recover
{"status": "ok", "platform": "hermes-agent"}
QA Retest — v0.0.57 (clean reproduction)
Re-verified on NemoClaw v0.0.57 (Ubuntu 24.04 x86_64, sandbox hermes, OpenShell 0.0.44, Hermes Agent v0.14.0). This run resolves the earlier caveat where hermes recover had failed for an unrelated reason — this time the gateway came up healthy, cleanly isolating the secret-boundary behavior.
Steps:
- Pre-check healthy:
curl http://127.0.0.1:8642/health->{"status": "ok", "platform": "hermes-agent"} - Inject raw secret into
/sandbox/.hermes/.env:TELEGRAM_BOT_TOKEN=1234567890:AAExample-RawSecretValueHere(write confirmed) nemohermes hermes recover-> "gateway is running", RECOVER_EXIT:0docker logs … | grep -iE "SECURITY|Refusing|raw secret|secret.boundary"-> NO_REJECTION_MESSAGEcurl /health->{"status": "ok", "platform": "hermes-agent"}— gateway SERVING with the raw secret present.
Result: with a plaintext raw secret in .env, the gateway restarts and serves normally on v0.0.57; no [SECURITY] refusal, validate_hermes_env_secret_boundary never triggers.
Additional finding: the allowed-placeholder forms (openshell:resolve:env: / xoxb-OPENSHELL-RESOLVE-ENV-) are not present in the hermes sandbox .env at all — the placeholder mechanism is not deployed in this build.
Confirmed still broken on v0.0.57 — keeping open.
Reopened: still reproduces on NemoClaw v0.0.57 (clean repro with a healthy gateway — see updated description and the QA retest comment above). This issue was closed by cv on 2026-06-08, but the secret-boundary validator is still not enforced on v0.0.57, so reopening with refreshed v0.0.57 details.