Intent-Code Divergence
Medium
- Confidence
- 94% confidence
- Finding
- The function is explicitly presented as creating an in-memory KMS, but it uses a file-backed keystore (`KeysFileStorage("kms.json")`) that persists private key material to disk. This mismatch can cause callers to make unsafe assumptions about key lifetime and secrecy, increasing the chance that sensitive keys are left behind on shared hosts, containers, or developer machines.
