fix(skills): harden fix-findings and fix-review against untrusted input#14
Conversation
Remove Bash from fix-findings allowed-tools to prevent command injection. Add Security sections with path validation, content isolation, and no-auto-apply rules to both skills.
Summary of ChangesHello, 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 enhances the security posture of the Highlights
Changelog
Activity
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
|
There was a problem hiding this comment.
Code Review
This pull request introduces important security hardening for the fix-findings and fix-review skills. Removing Bash from fix-findings and adding comprehensive security sections with rules for path validation and handling untrusted input are excellent changes. My review includes a few suggestions to make the security rules even more explicit and consistent across the skills, particularly regarding the definition of sensitive files and adding a scope restriction rule to fix-findings.
Note: Security Review has been skipped due to the limited scope of the PR.
Make sensitive file patterns more specific with concrete examples. Add scope restriction rule to fix-findings for consistency with fix-review.
Summary
Bashfromfix-findingsallowed-tools to prevent command injection from malicious finding contentfix-findingsandfix-reviewwith path validation, content isolation, and no-auto-apply rulesfix-reviewStep 5 before reading/editing filesContext
skills.sh flagged
fix-findingsas High Risk (socket alert for shell access with untrusted input) andfix-reviewas Med Risk. These changes address both by:fix-findings..traversal, no sensitive files)Test plan
scripts/validate-skills.shpasses for all 12 skills