Intent-Code Divergence
Medium
- Confidence
- 93% confidence
- Finding
- The function is documented and named as creating an in-memory KMS, but it actually uses a file-backed keystore (`KeysFileStorage("kms.json")`) that persists private keys to disk. This mismatch can cause developers and operators to apply weaker security controls under the false assumption that secrets are ephemeral, increasing the risk of key disclosure through filesystem access, backups, or artifact leakage.
