T01 · Skill Instruction Hijacking
- Location
SKILL.md:28- Finding
Mandatory Cross-Task Agent Behavior Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28-39
Vulnerability Type: Mandatory automatic workflow activation without user confirmation
Risk Level: HighComplete Evidence Snippet:
text > **不需要 Jason 说触发词。只要进入研发场景——无论什么产品——麦麦自动启动 Maya Loop。** 麦麦在以下任何时刻**必须**自动对照 Maya Loop 走六步,不等待、不询问、不跳过: | 触发信号 | 麦麦自动行为 | |:---|:---| | `Write` / `Edit` 工具被调用修改代码或配置 | 自动启动 Loop,跑完「定→拆→做→验→备→记」 | | `Bash` 执行 `docker compose` / `git push` / `systemctl restart` / `scp` 等部署命令 | 自动启动 Loop | | 对话中出现"部署""上线""发布""改一下""修一下""加个功能" | 自动启动 Loop | | 任何涉及文件修改 + 需要回滚能力的操作 | 自动启动 Loop | **这不叫"等 Jason 说"——这叫"麦麦的肌肉记忆"**。就像呼吸一样,不经过大脑决策。这是 Maya Loop 存在的唯一意义。Technical Analysis
The Skill directs the Agent to activate its workflow in every product-development context and explicitly says not to wait, ask questions, or skip steps. Activation can be triggered by generic phrases or ordinary editing and deployment tool calls rather than explicit invocation of the Skill.
This changes the Agent's decision-making and authorization boundaries when the Skill is loaded. The mandatory workflow includes backup, persistent recording, deployment verification, and other actions that may exceed the scope of the user's immediate request.
Attack Path
- The Skill is loaded into an Agent session.
- A user makes an ordinary engineering request or invokes an editing or deployment tool.
- The broad trigger conditions activate the six-step workflow automatically.
- The Agent follows the instruction not to wait for or request further confirmation.
- Backup, record-keeping, deployment, or other workflow stages may be performed even when the user requested only a narrowly scoped change.
Impact Assessment
The instruction can redirect unrelated engineering tasks and cause unauthorized file writes, backup operations, or deployment-related actions. The exact privileges available depend on the Agent's tool permissions, ...[truncated 147 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user invocation before activating the workflow.
- Remove universal triggers based on generic phrases, editing tools, or deployment tools.
- Remove instructions stating that the Agent must not wait, ask, or skip steps.
- Require separate confirmation before backups, deployments, remote copies, service changes, and persistent-state writes.
- Scope the workflow to the current project and task rather than every product-development context.
- Present a concrete action plan and affected resources before executing any operation.
