T09 · Insecure Skill Coding Practices
- Location
SKILL.md:51- Finding
Automatic Git Push May Publish Sensitive Project Code Without Review
- Content
View full analysis
' to glossary: " git push ``` The same preference is reinforced at `references/glossary-format.md:53`: ```markdown - Use real code when possible ``` ### Technical Analysis The skill combines a sensitive data source with an external publication sink: 1. It encourages the agent to copy real code from the project currently being examined. 2. It writes that content into a separate glossary repository. 3. It instructs the agent to commit and push the resulting file automatically. No instruction requires the agent to inspect the selected code for credentials, tokens, private URLs, customer data, internal paths, proprietary algorithms, or other confidential material. The workflow also lacks an explicit user-approval gate, a review of the staged diff, verification of the configured Git remote, and confirmation of the destination repository's visibility. Consequently, content can cross from the current project's trust boundary into a remote Git repository using credentials already available in the environment. A Git commit also preserves disclosed content in repository his ...[truncated 1681 chars]- Remediation
View remediation
