Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The function name and comment claim an in-memory KMS, but it actually uses a file-backed keystore via `KeysFileStorage("kms.json")`. This mismatch can cause developers and users to assume keys are ephemeral when they are persisted on disk, increasing the chance of accidental key exposure, unsafe backup/sync behavior, or improper operational handling of sensitive material.
