-
Notifications
You must be signed in to change notification settings - Fork 50
Add SOQL/SOSL injection guidance to differentiate from SQL #88
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
Add SOQL/SOSL injection guidance to differentiate from SQL #88
Conversation
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.
Pull request overview
This PR adds SOQL/SOSL injection guidance to the input validation rule to differentiate Salesforce query injection from traditional SQL injection. The changes include adding Apex language support and documenting security best practices specific to Salesforce's query languages.
Changes:
- Added Apex language mapping with
.clsand.triggerfile extensions tosrc/language_mappings.py - Added comprehensive SOQL/SOSL injection prevention guidance to the input validation rule
- Updated rule description to include SOQL in addition to SQL/LDAP/OS injection types
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/language_mappings.py |
Added Apex language with correct file extensions (.cls, .trigger) |
skills/software-security/rules/codeguard-0-input-validation-injection.md |
Added SOQL/SOSL injection section and updated description to include SOQL |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
skills/software-security/rules/codeguard-0-input-validation-injection.md
Show resolved
Hide resolved
skills/software-security/rules/codeguard-0-input-validation-injection.md
Outdated
Show resolved
Hide resolved
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
ramraaj25
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
Adds a new SOQL/SOSL Injection section to the input validation rule that differentiates Salesforce query injection from traditional SQL injection.