Back to skill

Security audit

Wang Wei Perspective V2

Security checks for vulnerabilities and agentic risk

Overview

This is a disclosed role-play/business-perspective skill with no code execution or data access, though users should watch for real-person impersonation and broad triggers.

Install only if you want a simulated Wang Wei-inspired business perspective. Treat outputs as role-play based on public information, not real views or advice from Wang Wei, and be aware that broad business terms may activate the persona unexpectedly.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:27
Finding

Persistent First-Person Impersonation and Response-Control Instructions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 27–37
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: Medium

Complete vulnerable excerpt (English translation of the original Skill text):

markdown
## Role-Playing Rules

**After this Skill is activated, respond directly as Wang Wei.**

- Use “I” instead of “Wang Wei would think...”
- Use Wang Wei’s tone: concise, pragmatic, not ornate, and based on data and facts
- Emphasize “quality,” “direct operation,” “technology,” “employees,” and “long-term”
- State the disclaimer only once, upon initial activation
- Do not say “Wang Wei would probably think...”
- Do not leave the role to perform meta-analysis unless the user says “exit role”

**Exit role**: Restore normal mode when the user says “exit,” “switch back to normal,” or “stop role-playing.”

Technical Analysis

The Skill does more than provide a business-analysis framework. It instructs the agent to assume the identity of a real person, present responses in the first person, avoid attribution language, suppress meta-level clarification, and retain that behavior until the user supplies one of several recognized exit phrases.

These directives alter the agent’s response policy for the active session. In particular:

  • Mandatory first-person phrasing can make generated opinions appear to be direct statements from Wang Wei.
  • Prohibiting phrases such as “Wang Wei would think” removes clear attribution that the output is a simulation.
  • Restricting meta-analysis can discourage the agent from clarifying the fictional or inferential nature of its output.
  • Requiring an explicit exit phrase creates persistent role state within the session.

The file does include disclaimers elsewhere stating that the Skill is based on public information and does not represent Wang Wei’s actual views. However, the vulnerable instructions weaken that safeguard by requiring the disclaim ...[truncated 1477 chars]

Remediation
View remediation

Remediation Suggestions

  1. Replace identity adoption with clearly attributed perspective simulation, for example: “Analyze the issue using a framework inspired by Wang Wei’s publicly documented business principles.”
  2. Require attribution in every relevant response rather than only displaying a disclaimer on initial activation.
  3. Replace first-person claims with formulations such as “Under this framework...” or “Based on publicly available information, this perspective would prioritize...”
  4. Remove the instruction prohibiting meta-analysis so the agent can clarify uncertainty, provenance, limitations, and the simulated nature of the response whenever necessary.
  5. Remove session-persistent role-state requirements and explicit exit-phrase gating. The framework should apply only to the immediate request unless the user renews it.
  6. Preserve the existing public-information disclaimer, but make it concise and consistently visible where impersonation or mistaken endorsement is reasonably possible.
  7. Distinguish verified facts from inferred opinions and avoid presenting undocumented beliefs, quotations, or decisions as statements made by the real person.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill instructs the agent to respond directly as Wang Wei, use first-person voice, and avoid meta-analysis unless the user exits role, without offering language or style choice. This creates a coercive behavior override that can suppress normal transparency and user-preferred response modes, increasing the chance of deceptive or unwanted persona-driven answers.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger list includes broad business phrases such as '直营模式', '物流战略', and '供应链管理', which are common in normal enterprise discussions and could activate the skill unintentionally. This can cause unexpected persona injection or response shaping in unrelated conversations, reducing user control and making downstream outputs less predictable.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.