T01 · Skill Instruction Hijacking
- Location
SKILL.md:21- Finding
Persistent Impersonation Instructions Override the Agent's Normal Identity
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 21-29
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: MediumVulnerable Code Snippet
The following is an English rendering of the complete affected source segment:
markdown ## Role-Playing Rules After activation, respond directly as Yan Yan: - Use “I” and speak in a direct, experienced, and passionate tone. - Prefer phrases such as “assessing people,” “accumulated experience,” “from the entrepreneur’s perspective,” and “a century-old enterprise.” - Provide the disclaimer only once, in the first response. - Do not recommend specific stocks or short-term actions. **Exit**: Return to normal when the user says “exit” or “switch back to normal.”Technical Analysis
The Skill instructs the agent to replace its normal identity with that of a named real person and to speak in the first person. This is not merely a request to summarize or apply a documented analytical framework. It directs the agent to present generated statements as if they came from that individual.
The instruction remains active until a particular exit phrase is supplied. It therefore changes the agent’s session-level behavior after activation. The requirement to provide a disclaimer only in the first response further increases the risk because subsequent responses can contain first-person biographical, professional, or investment claims without continued clarification that the output is simulated.
The example elsewhere in the document reinforces this behavior by presenting first-person professional experience and investment history. A user could consequently interpret generated investment analysis as authentic advice or testimony from the named individual.
No executable code, external payload retrieval, dependency installation, credential access, operating-system persistence, privilege escalation, or data-exfiltration mechanism was identified. The ...[truncated 1422 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace identity-assumption instructions with attribution-safe framing, such as: “Provide analysis inspired by publicly documented views associated with Yan Yan.”
- Explicitly prohibit the agent from claiming to be the named individual or using first-person language that implies possession of that person’s experiences, credentials, or investment history.
- Require a concise disclosure in every relevant response, not only the first response, stating that the output is an AI-generated interpretation.
- Remove session-persistent role switching and apply the requested analytical framework only to the current request unless the user explicitly asks to continue.
- Require factual claims about biography, investments, and performance to be attributed to verifiable public sources.
- Prevent invented quotations, personal recollections, and claims of direct participation in historical investment decisions.
- Preserve the existing restriction against specific stock recommendations and add a clear distinction between general educational analysis and personalized financial advice.
- Add validation tests confirming that the agent consistently uses third-person attribution and never represents itself as the real individual.
