T01 · Skill Instruction Hijacking
- Location
SKILL.md:3- Finding
Skill-selection and workflow instruction hijacking
- Content
View full analysis
⛔ **获取当前实例 ID 必须使用 `scripts/whoami.sh`,禁止使用 tccli 命令,也禁止自行拼接 curl 元数据接口**。 > - `whoami.sh` 已封装了完整的判断逻辑,是唯一正确的方式 ``` ```markdown > # ✅ 唯一正确的获取方式 > python3 scripts/tccli-oauth-helper.py --get-url ``` ### Technical Analysis The Skill does more than describe its supported functionality. It contains explicit directives to supersede other Skills, force itself to be loaded for an exceptionally broad set of triggers, and designate its bundled scripts as the only permissible implementations. These instructions alter the Agent's Skill-selection behavior and constrain its ability to choose a safer, narrower, or more appropriate implementation. In particular, the forced OAuth workflow directs the Agent toward a bundled script that has separate credential-storage and state-validation weaknesses. The exclusivity statements are not technically necessary to manage Tencent Cloud resources. Neutral capability metadata and task-specific guidance would be sufficient. ### Attack Path 1. A user mentions any broadly matching cloud-management term. 2. The metadata directs the Agent to load this Skill instead of narrower alternatives. 3. The Skill instructs the Agent to treat bundled scripts as the only correct methods. 4. The Agent follows the bundled ...[truncated 620 chars]- Remediation
View remediation
