-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve handling of !!binary in yaml files #202
Comments
It seems like there are two issues here. Consider this file:
As of 220b37d our YamlFileParser gives this result to the high-entropy plugin:
The fist problem is that our parser doesn't output it in the The second problem is that Side note: TODO: How does the Yaml parser handle other tags |
is parsed as However, I'm inclined not to care, since it seems really unlikely that anyone would put secrets into a set. On the other hand, it might be easy to support this, would need to investigate further |
We seem to handle |
Having application-specific tags just break YAML parsing since we haven't registered the tag in the |
Our parser also doesn't parse multi-doc YAML files properly:
results in an error. |
@KevinHock and talked about this offline. We discovered the following. Binary secrets, once we remove the This is a opposed to the above GIF data in my first comment, which with its In addition, there's some denylisting opportunities. For example, clearly the above is a negative because it starts with |
Supports git-defenders/detect-secrets-discuss#203
Supports git-defenders/detect-secrets-discuss#203
There are various explicit tags in yaml https://yaml.org/spec/1.2/spec.html, after some testing I don't think we handle
!!binary
that well, for instance. Resulting in false-negatives. I will investigate more thoroughly and update this issue later.The text was updated successfully, but these errors were encountered: