-
-
Notifications
You must be signed in to change notification settings - Fork 512
adding new regex patterns #883
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
Conversation
Summary of ChangesHello @SecHoussam, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the tool's capability to identify sensitive data by integrating new regular expression patterns. These additions will improve the detection of various API keys and access tokens, thereby strengthening the overall security scanning and helping to prevent the accidental exposure of credentials from a wider range of platforms. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Signed-off-by: HAHWUL <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
| "dalfox-esii": `<esii-dalfox>`, | ||
| "dalfox-rsa-key": `-----BEGIN RSA PRIVATE KEY-----|-----END RSA PRIVATE KEY-----`, | ||
| "dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`, | ||
| "dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`, |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
the regular expression is used
| "dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`, | ||
| "dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`, | ||
| "dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`, | ||
| "dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`, |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
the regular expression is used
| "dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`, | ||
| "dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`, | ||
| "dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`, | ||
| "dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`, |
Check failure
Code scanning / CodeQL
Missing regular expression anchor High
| "dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`, | ||
| "dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`, | ||
| "dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`, | ||
| "dalfox-slack-webhook2": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8,10}/B[a-zA-Z0-9_]{8,10}/[a-zA-Z0-9_]{24}`, |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
the regular expression is used
| "dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`, | ||
| "dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`, | ||
| "dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`, | ||
| "dalfox-slack-webhook2": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8,10}/B[a-zA-Z0-9_]{8,10}/[a-zA-Z0-9_]{24}`, |
Check failure
Code scanning / CodeQL
Missing regular expression anchor High
| "dalfox-mailgun-api": `key-[0-9a-zA-Z]{32}`, | ||
| "dalfox-mailchamp-api": `[0-9a-f]{32}-us[0-9]{1,2}`, | ||
| "dalfox-picatic-api": `sk_live_[0-9a-z]{32}`, | ||
| "dalfox-google-oauth-id": `[0-9(+-[0-9A-Za-z_]{32}.apps.qooqleusercontent.com`, |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
the regular expression is used
| "dalfox-github-access-token": `[a-zA-Z0-9_-]*:[a-zA-Z0-9_\-]+@github\.com*`, | ||
| "dalfox-github": `[gG][iI][tT][hH][uU][bB].*['|"][0-9a-zA-Z]{35,40}['|"]`, | ||
| "dalfox-gitlab-token": `glpat-[0-9a-zA-Z-_]{20}`, | ||
| "dalfox-azure-storage": `[a-zA-Z0-9_-]*\.file.core.windows.net`, |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
the regular expression is used
hahwul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for adding the grep patterns. I made some fixes to the escape sequences in the regex patterns to resolve the build errors.
There are a few more codeql errors right now, so I'll correct the requirements separately!
Thank you again!
No description provided.