Secrets injected as environment variables are easy to leak, while Secrets mounted as volumes are the recommended pattern. The Secret Exposure Scanner parses a pasted Pod or workload and reports every Secret reference, classifying env-based usage as high exposure and volume mounts as recommended.
It detects env.valueFrom.secretKeyRef, envFrom.secretRef and volume mounts of Secret-type volumes. The pod template is extracted automatically from Deployments/StatefulSets/DaemonSets.
Parsing uses a small tolerant YAML reader (no external dependency). Nothing is uploaded. Everything runs locally.