T05 · Unauthorized Access and Privilege Escalation
- Location
context.md:84- Finding
Agent Guidance Encourages Access to Sensitive Environment Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a documentation-only skill, but it gives risky coding-agent workflow advice that could expose secrets or discard repository work if followed literally.
Install only if you are comfortable treating it as informal workflow advice, not a safe operating procedure. Before following it, avoid sharing unredacted screenshots, do not let agents read or print full `.env` files, use least-privilege database credentials, and do not run `git reset --hard` in a shared worktree unless all work is backed up and explicitly confirmed.
context.md:84Agent Guidance Encourages Access to Sensitive Environment Files
parallel.md:67Destructive Git Recovery Procedure Can Delete Concurrent Agents' Work
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- No persistent storage required
**This skill does NOT:**
- Access credentials or make network requests
- Execute code autonomously
The guidance tells users to use psql and specifically 'see .env for connection,' which normalizes accessing secrets from environment files during agent-assisted work. In this context, an AI coding agent may be given or infer permission to read .env, exposing database credentials or enabling onward misuse if the contents are pasted into prompts, logs, screenshots, or tool output.
Skip:
git reset --hard is a destructive command that forcefully rewrites the working tree to match a commit, and here it is presented as a simple recovery action with no guardrails. Because this skill is specifically about coordinating multiple concurrent agents in the same repository, the chance of accidental execution under confusion is higher, and the resulting loss of uncommitted or partially merged work can affect a larger blast radius than in a single-user workflow.
git stash # Save current state
git log --oneline # Find last good commit
git reset --hard # Reset to good state
git stash pop # Reapply if needed
The 'When to Use' section describes the skill as applicable whenever a user works with AI coding agents and wants to maximize productivity, workflow optimization, coordination, or context management. These conditions are broad and do not provide specific trigger phrases, exclusions, or negative examples, which could cause the skill to be invoked in many routine coding-assistance contexts.
The skill explicitly encourages dragging screenshots into the terminal and states that screenshots are essential, but it provides no warning about capturing secrets visible on screen such as API keys, customer data, internal URLs, or terminal output. In an agentic coding workflow, screenshots are often sent to external model providers or stored in logs, so this guidance materially increases the risk of inadvertent sensitive data disclosure.
The skill recommends git reset --hard as a recovery step without any warning that it permanently discards uncommitted changes in the working tree and index. In a multi-agent workflow, users may run this reflexively during conflict recovery and lose work from themselves or other agents, making the omission materially risky even if not overtly malicious.