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 zulipchat scanner #411

Merged
merged 10 commits into from
Apr 29, 2022
Merged

Added zulipchat scanner #411

merged 10 commits into from
Apr 29, 2022

Conversation

roxanne-tampus
Copy link
Contributor

No description provided.

//Make sure that your group is surrounded in boundry characters such as below to reduce false positives
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat"}) + `\b([0-9a-zA-Z]{32})\b`)
idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat"}) + `\b([a-z0-9]{4,25}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,6})\b`)
domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat domain"}) + `\b([0-9a-z]{6,20})\b`)
Copy link
Contributor

Choose a reason for hiding this comment

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

zulipchat domain is unlikely to be found within 40 characters of the pattern in the wild. Just zulipchat for the keyword.

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

* added new detectors

* added zulipchat scanner

* modified 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