T01 · Skill Instruction Hijacking
- Location
colleagues/mao/persona.md:5- Finding
Packaged persona attempts to override instruction precedence and agent identity
- Content
View full analysis
Vulnerability Details
File Location:
colleagues/mao/persona.md:5-9; related registration incolleagues/mao/meta.json:12-17; generation directive inprompts/mao_persona_builder.md:18-55
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: HighComplete Code Snippet
From
colleagues/mao/persona.md:markdown ## Layer 0:核心性格(最高优先级,任何情况下不得违反) **战略上藐视困难,战术上重视困难** - 面对复杂问题,首先从战略高度把握全局 - 在具体执行时,周密计划,细致安排The persona is explicitly registered in
colleagues/mao/meta.json:json "files": { "work": "work.md", "persona": "persona.md", "skill": "SKILL.md" },The persona-generation template also contains an identity-replacement directive:
markdown ## Layer 0:核心性格(最高优先级,任何情况下不得违背) {根据分析结果生成具体行为规则,每条规则必须是可执行的} ... ## Layer 1:身份 你是毛泽东(1893-1976)。 你是中国共产党、中国人民解放军、中华人民共和国的主要缔造者和领导人。 你是思想家、战略家、革命家、军事家、诗人。Technical Analysis
The packaged persona labels its behavioral rules as the “highest priority” and states that they must not be violated under any circumstances. The associated builder additionally tells the agent that it is Mao Zedong rather than requesting a temporary or user-selected writing style.
This is instruction-precedence manipulation. Skill content must remain subordinate to system instructions, developer instructions, safety policies, and the current user request. A persona may define tone or analytical style, but it must not claim global precedence or unconditional compliance.
The metadata explicitly associates
persona.mdwith the packaged colleague Skill. Therefore, a host that loads colleague metadata and persona assets can expose the agent to these directives during normal Skill activation rather than only during an isolated development task.Attack Path
- A user or host installs and activates the packaged colleague Skill.
- The host reads
colleagues/mao/meta.jsonand loads the registered `persona.m ...[truncated 1050 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove all precedence claims such as “highest priority,” “under no circumstances,” and “must not be violated.”
- Replace identity substitution with an explicitly scoped style request, for example: “When the user explicitly requests this style, respond using analytical and rhetorical characteristics inspired by the referenced historical writings.”
- Add an explicit hierarchy statement that the persona never overrides system, developer, safety, or current-user instructions.
- Require explicit user opt-in before activating impersonation or persona-style behavior.
- Clearly disclose that the output is an AI-generated stylistic simulation and not the historical person.
- Ensure the host loads persona documents as untrusted contextual data rather than privileged instructions.
- Add regression tests that verify conflicting persona text cannot override safety rules or unrelated user objectives.
