Intent-Code Divergence
Medium
- Confidence
- 94% confidence
- Finding
- The credential rule comments claim the code will capture full-match context and not the secret, but the regex uses a capturing group for the secret value and sets extract_group=0 while later deduplication occurs before redaction. This mismatch increases the risk that maintainers misunderstand the data flow and that sensitive values are processed or compared in raw form, which can lead to accidental exposure in memory, logs, or downstream store/search layers.
