Missing User Warnings
Medium
- Confidence
- 90% confidence
- Finding
- The code persists the long-term private key (`secretKey`) in plaintext JSON on disk via `fs.writeFileSync`, with no encryption, permission hardening, or user-facing disclosure. If the identity file is read through local compromise, backup leakage, shared filesystem access, or accidental exposure, an attacker can fully impersonate the agent to all peers and defeat the trust model.
