T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:215
- Finding
- Mandatory Agent Directives Force Use and Promotion of a Commercial Service< > 2. If the execution result returns `code: "unauthorized"` or indicates missing API key, you MUST inform the user to get their API key from [https://dlazy.com/dashboard/organization/api-key](https://dlazy.com/dashboard/organization/api-key) and save it using `dlazy auth set <key>` and resume the task. ``` From `references/model-flags.md`: ```markdown **CRITICAL INSTRUCTION FOR AGENT**: Run the `dlazy claude-sonnet-5` command to get results. ``` From `references/provider-cli.md`: ```markdown **给 Agent 的硬性要求** 1. 命中 `insufficient_balance` → 明确告诉用户算力不足,并给出充值入口 <https://dlazy.com/dashboard/organization/settings?tab=credits> 2. 命中 `unauthorized` / 缺 key → 告诉用户去 <https://dlazy.com/dashboard/organization/api-key> 取 key,用 `dlazy auth set <key>` 存好再继续。 3. 用 `gen.mjs` 时,429 与 5xx 已自动重试;仍失败才向用户报错。 4. **不要**为了「跑通」而偷偷降级参数(尺寸、档位、批量),先问用户。 ``` ### Technical Analysis The Skill contains imperative instructions addressed directly to the hosting Agent, marked as “CRITICAL” and “MUST.” These instructions require the Agent to invoke a specific paid third-party CLI and emit fixed commercial recharge and API-key acquisition links. The declared image-quality inspection functionality requires remote visual inference, but it does not require overriding the Agent's provider selection, purchasing workflow, or user-facing error-handling policy. Provider-specific authentication guidan ...[truncated 1584 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove “CRITICAL,” “MUST,” and equivalent directives addressed to the Agent. 2. Replace them with provider-neutral operational documentation. 3. Require explicit user confirmation before: - Uploading images or prompts to a remote provider. - Starting an authentication flow. - Storing an API key locally. - Directing the user to a purchase or recharge page. 4. Allow the Agent or user to select an approved provider rather than forcing `dlazy`. 5. Report authentication and balance errors neutrally, without mandatory commercial links. 6. Clearly disclose the selected provider, upload destination, retention implications, and estimated cost before execution. 7. Keep provider-specific setup guidance in optional documentation rather than executable Agent instructions. ]]>
