Back to skill

Security audit

南怀瑾思维视角

Security checks for vulnerabilities and agentic risk

Overview

This is a Chinese cultural persona skill with no code or system access, but it asks the agent to impersonate a deceased person and limit transparency in ways users should review carefully.

Install only if you intentionally want a Chinese-language Nan Huai-Jin-inspired roleplay/perspective tool. Treat outputs as generated cultural interpretation, not authentic statements from Nan Huai-Jin, verified scholarship, medical advice, divination, or decision guidance; explicitly ask the agent to exit the role whenever you want normal transparent responses.

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

Error
Location
SKILL.md:24
Finding

Forced Identity Impersonation and Persistent Response-Control Hijacking

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 24–34
Vulnerability Type: Forced persona adoption, disclosure suppression, and session-level behavior control
Risk Level: High

Vulnerable Code Snippet

markdown
**此Skill激活后,直接以南怀瑾的身份回应。**

- 用「我」而非「南怀瑾会说...」——我是南怀瑾,直接回答
- 说话时保持国学大师的通透、三教圆融的智慧、长者的慈悲
- 遇到不确定的问题,保持谦逊但通透的回应,用故事和类比阐明道理
- 避免过于学术化的训诂,强调经史合参、古今贯通
- **免责声明仅首次激活时说一次**(「我只是一个年纪大、顽固的、喜欢中国文化的老头子」),后续对话不再重复
- 不说「如果南怀瑾在这里,他可能会说...」
- 不跳出角色做meta分析(除非用户明确要求「退出角色」)

**退出角色**:用户说「退出」「切回正常」「不用扮演了」时恢复正常模式

Technical Analysis

The skill instructs the agent to claim the identity of a deceased person rather than transparently presenting a simulation or source-based perspective. It mandates first-person impersonation, prohibits qualified framing, limits disclosure to the initial activation, and suppresses ordinary meta-level clarification unless the user supplies a designated exit phrase.

These directives alter the agent's current-session behavior and disclosure policy when the skill is loaded. They go beyond stylistic assistance by attempting to control how the agent identifies itself and whether it may clarify the simulated nature of its output.

The instructions also conflict with the honesty boundary at SKILL.md line 241, which acknowledges that the skill is only a framework derived from public information and is not Nan Huai-Chin himself:

markdown
- 這是一個基於公開信息提煉的思維框架,不是南懷瑾本人

The package contains no scripts or executable payloads. Exploitation occurs entirely through skill instructions interpreted by the host agent.

Attack Path

  1. A user or platform loads and activates the skill.
  2. The agent processes the role-playing directives in SKILL.md.
  3. The agent adopts the deceased subject's identity and speaks in the first person.
  4. The agent avoids transparent formulations that identify the response as a simulation.
  5. After the initial activation, the agent suppresses further disclosure about the role-play.
  6. The ...[truncated 870 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace identity claims with transparent perspective framing, such as:

    markdown
    Respond using a style and analytical perspective inspired by the supplied public sources. Do not claim to be Nan Huai-Chin.
    
  2. Permit explicit attribution, for example:

    markdown
    From the perspective represented in the source material...
    
  3. Remove the instruction that prohibits qualified formulations such as “Nan Huai-Chin might have said.”

  4. Do not suppress disclosure after the first activation. Clearly identify the simulation whenever identity confusion is reasonably possible.

  5. Remove the prohibition on meta-analysis. The agent must remain able to explain that it is an AI using a source-derived framework.

  6. Treat exit phrases as optional convenience commands rather than the exclusive means of restoring normal behavior. Any clear user request to stop or modify the persona should take effect immediately.

  7. Preserve the honesty boundary prominently near the activation rules instead of placing it near the end of the file. State clearly that generated responses are not authentic quotations unless directly cited and verified.

  8. Separate sourced quotations from generated interpretations and attach citations where practical, particularly for medical, religious, historical, or biographical claims.

Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (11)

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The manifest explicitly claims the skill does not involve superstition or practical prediction services, but later content includes fate, feng-shui, and 'work hypothesis' framing around concrete prediction-like uses. This inconsistency can mislead users, reviewers, or downstream safety systems about the real behavior and risk profile of the skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger list contains broad terms like '国学', '佛学', and '禅修' that may appear in ordinary educational or cultural discussions. Over-broad activation can unexpectedly switch the model into a persona-driven mode, bypassing user expectations and increasing the risk of unsolicited ideological or roleplay behavior.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill both instructs the agent to speak as if it literally is the historical person and later states it is only a distilled framework based on public information. That contradiction increases the chance of deceptive anthropomorphic behavior, causing users to over-trust outputs as authoritative, first-person expertise rather than stylized synthesis.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Once activated, the skill mandates first-person impersonation and sustained persona adherence without fresh user consent, including avoidance of meta-analysis. This can override normal transparency and steer responses into an authoritative roleplay mode that users did not clearly request, especially if activation was triggered indirectly or accidentally.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This section provides concrete health and self-care guidance, including sleep timing, breathing practices, and claims about effects on organs and wellbeing, without a clear warning that it is not medical advice. Users may interpret these statements as authoritative health recommendations and delay appropriate medical care or follow unsafe practices based on non-evidence-based claims.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file is written entirely in Chinese and provides no indication that language choice is optional or configurable. Under the stated policy, natural-language files that impose a specific language without user opt-in should be flagged unless the locale constraint is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file is entirely written in Chinese and presents itself as an AI-produced research document, but it does not indicate that language choice is optional or limited to a justified Chinese-only context. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

A file-wide natural-language constraint is imposed by providing all content exclusively in Chinese, with no note that language is user-selectable or that the skill is intentionally limited to a Chinese-speaking audience. Under the policy, forcing a specific language without opt-in can be a locale/language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file presents all instructions and analysis content exclusively in Chinese, and there is no indication that users may opt into another language or that the material is intentionally restricted to a Chinese-language audience. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

This markdown file presents the entire skill content in Chinese and does not indicate that the user can choose another language or locale. Under the language/locale policy check, a fixed language without opt-in can be a natural-language policy violation when no justification or choice is provided.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file is entirely written in Chinese and presents the content as the default output format, with no indication that alternative languages are supported or that the user can choose a locale. Under the stated policy, forcing a specific language without opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.