Repository navigation
KSV-0109 misses literal secret when colon and equals cause an evaluation conflict #11562
Closed
cadugevaerd
started this conversation in
False Detection
Replies: 1 comment
|
Hi @cadugevaerd , thanks for the report! Track #11565 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
KSV-0109 can fail to evaluate a ConfigMap when a line has both
:and=. Trivy logs an evaluation error, exits zero and can miss a literal secret. Previously filed as #11544, which was closed in favor of a Discussion.Reproduction
With Trivy v0.74.0 and the official trivy-checks v2.3.0 bundle (
sha256:b591e9190cff4aa4e385b1a25bccfd9ecf178d3c77fd194e1410b7ce7e1df058), scan this entirely synthetic file:Observed:
eval_conflict_error: functions must not produce multiple outputs for same inputs, exit code 0, and no KSV-0109 finding. Expected: a KSV-0109 finding, nonzero exit and no evaluation error.The v2.3.0 rule and current main use
some delimiter in {":", "="}in the single-outputconfig_map_secret_keyfunction. Please also consider shell expressions with a literal default such as${PASSWORD:-synthetic}and nested defaults; references with an empty default should not be reported as literal secrets.Rule: https://github.com/aquasecurity/trivy-checks/blob/v2.3.0/checks/kubernetes/configMap_with_secrets.rego
All reactions