T01 · Skill Instruction Hijacking
- Location
SKILL.md:24- Finding
Mandatory Approval Bypass and Unrestricted Sandbox Access
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a disclosed automation workflow, but it asks the agent to disable approvals, run with full filesystem access, persist cross-session logs, and push commits/tags to GitHub without user confirmation.
Install only if you are comfortable with a highly autonomous coding workflow. Before use, keep approval prompts enabled, avoid danger-full-access unless narrowly justified, remove the automatic GitHub push/tag step or require explicit review, and redirect persistent logs from ~/.claude to a project-local location with sensitive details minimized.
SKILL.md:24Mandatory Approval Bypass and Unrestricted Sandbox Access
SKILL.md:39Session Trust Manipulation Intended to Avoid Later Confirmations
SKILL.md:574Automatic Commit, Tag, and GitHub Push Without User Confirmation
SKILL.md:758Cross-Session Agent State Writes and Mandatory Future Ingestion
SKILL.md:18Unpinned Global Third-Party Tool Installation
The skill instructs configuration of ~/.codex/config.toml with ask_for_approval = "never" and sandbox_mode = "danger-full-access". This deliberately disables human approval checkpoints and grants unrestricted filesystem access, substantially increasing the impact of any prompt injection, tool misuse, destructive command, or unintended exfiltration performed by the automated workflow.
关键要求:Builder 必须有完整文件系统访问权限,能执行 npx/node/tsc 等命令。
以 Codex 为例,~/.codex/config.toml 需配置:
ask_for_approval = "never"
sandbox_mode = "danger-full-access"
The skill claims documentation should only be staged, but later mandates direct updates to project documentation and GitHub synchronization before delivery. This scope mismatch can cause the agent to make persistent repository changes that the user did not clearly authorize, increasing the risk of unintended modification or publication.
The skill instructs automatic GitHub commit/tag/push with no user confirmation. Given the surrounding instructions to disable approvals and use full filesystem access, this can publish sensitive code, secrets, or erroneous changes to a remote repository without an interactive checkpoint.
Automatic commit, tag, and push functionality extends beyond code-generation orchestration into publication and source-control mutation. In the context of a skill already requiring ask_for_approval = "never" and danger-full-access, this greatly increases the blast radius by allowing autonomous exfiltration of work product and irreversible repository history changes.
The skill states formal documents are read-only and only staging files may be written, but elsewhere requires direct updates to README, CHANGELOG, and persistent logs. This contradiction can mislead users about what the agent will modify, undermining informed consent and making unauthorized persistence more likely.
Appending to ~/.claude/windtunnel/experiments/... writes persistent data into a user-level agent configuration area outside the project. This creates cross-session state and a durable sink for potentially sensitive project information, and in combination with autonomous execution can silently alter the agent's broader operating context.
写入命令(PM 在第四步后执行):
cat >> ~/.claude/windtunnel/experiments/$(date '+%Y-%m-%d')-log.md << 'EOF'
{上述格式内容}
EOF
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
The instruction '使用英文编写 Spec' imposes a specific language choice as a rule because the builder 'understands English more precisely.' This is a locale/language policy issue because it does not offer the user a choice or document a justified region-specific constraint.
The workflow requires automatic writes to local staging files and other logs as part of execution, without clearly surfacing that user-provided task content may be persisted. This creates a retention path for potentially sensitive information and expands side effects beyond the immediate coding task.
The skill directs reads and writes under ~/.claude, creating persistent user-level state outside the project workspace. That broadens access from task execution to cross-project data retention, which can expose unrelated context, leak sensitive task details into long-lived logs, and violate least-privilege expectations.
The skill explicitly reads prior session/project files and appends detailed task inputs, outputs, and conclusions to persistent logs. In a coding assistant context, those logs can naturally capture sensitive user data, proprietary requirements, or security-relevant details, creating a durable disclosure and retention channel.
No suspicious patterns detected.