T09 · Insecure Skill Coding Practices
- Location
scripts/git-guardian.sh:72- Finding
Unrestricted Disclosure, Staging, and Remote Publication of Sensitive Files
- Content
View full analysis
&1 ``` ### Technical Analysis The `diff` operation enumerates every non-ignored untracked file and prints its first 50 lines without inspecting its type, sensitivity, size, or ownership. A credentials file, private configuration, environment file, or other sensitive workspace artifact can therefore be disclosed directly in terminal output or any agent conversation that captures command output. The `commit` operation subsequently executes `git add -A`, staging all tracked modifications, deletions, and non-ignored untracked files in the entire repository. It does not restrict staging to files created or modified by the current agent operation, scan files for secrets, or verify that the user previously reviewed and approved the displayed diff. The `finish` operation pushes the resulting branch to the repository-configured `origin`. Consequently, sensitive files can progress from local untracked data to permanent Git history and remote publication. This behavior contradicts the documented assertion in `SKILL.md:50-53` and `README.md:55-58` that secrets are not tracked. The documented approval workflow is also advisory rather than technica ...[truncated 1896 chars]- Remediation
View remediation
