T01 · Skill Instruction Hijacking
- Location
SKILL.md:36- Finding
Mandatory redirection of host Agent behavior to an external CLI
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coding delegator, but it routes broad development work into an external CLI with permission bypass and only optional containment, so users should review it carefully before installing.
Install only if you intentionally want coding tasks delegated to this external CLI. Use an isolated project directory, avoid running it from a home directory or secrets-bearing repository, verify the npm package and version yourself, enable a real write guard or sandbox, and do not use permission bypass unless you understand the filesystem access it grants.
SKILL.md:36Mandatory redirection of host Agent behavior to an external CLI
SKILL.md:52External coding assistant is granted bypassed permissions without mandatory containment
SKILL.md:54Unpinned third-party CLI is installed globally from the npm registry
SKILL.md:75Task descriptions and project paths are interpolated into a shell command
The skill claims commands run in a 'safe sandbox', but elsewhere it explicitly instructs use of --permission-mode bypassPermissions, which grants broad filesystem write capability. This contradiction can mislead users and downstream agents into trusting an execution path that is not sandboxed, increasing the chance of destructive file changes or secret exposure.
L38 declares an absolute rule: 'you never directly write code' and all programming tasks must be delegated through ai-assistant -p. However, L297 says that if the user explicitly asks 'you write it', the assistant may write code itself. That is a direct contradiction of the stated core rule, not merely an omitted exception.
The skill endorses bypassPermissions and only treats missing write protection as a warning, allowing execution to proceed with broad read/write access. Without a mandatory, explicit warning and user confirmation before each elevated execution, an agent may modify arbitrary repository files, configs, or nearby sensitive data with insufficient operator awareness.
The auto-trigger conditions are broad enough to route many normal development actions into delegated command execution, including file edits, testing, builds, and architecture tasks. In a skill that uses permission bypass, this increases the likelihood of unintended command execution and reduces opportunities for informed user consent at the moment risk is introduced.
The description is primarily in Chinese but embeds the directive Use when ... in English, creating a language expectation that is not presented as a user choice or opt-in. This can be a locale/language policy issue because the skill does not explicitly state which language it will use or offer language selection.