Skip to content
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

Added image4 scanner #345

Merged
merged 5 commits into from
Apr 19, 2022
Merged

Added image4 scanner #345

merged 5 commits into from
Apr 19, 2022

Conversation

roxanne-tampus
Copy link
Contributor

No description provided.

client = common.SaneHttpClient()

//Make sure that your group is surrounded in boundry characters such as below to reduce false positives
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"image4"}) + `\b([0-9a-zA-Z]{22}\==)`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a base64 encoded token. The == at the end is padding, and might not always be like that.

This would be more correct:
\b([0-9a-zA-Z]{22}[0-9a-zA-Z\=]{2})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just commited the changes in regex

@dustin-decker dustin-decker merged commit 92c34ee into trufflesecurity:main Apr 19, 2022
bill-rich pushed a commit that referenced this pull request May 2, 2022
* added new protos

* added image4 scanner

* Updated the regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants