Back to skill

Security audit

PG.skill - Paul Graham思维操作系统

Security checks for vulnerabilities and agentic risk

Overview

This skill does not access files or run code, but it tells the agent to impersonate a real person in first person while limiting ongoing disclosure.

Review this before installing if you do not want the assistant to roleplay a real public figure in first person. The safer pattern would be repeated framing such as "from a Paul Graham-inspired perspective" and clear labeling of inferred views as simulation, especially across multi-turn chats.

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:15
Finding

First-Person Impersonation and Disclosure Suppression

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 15-24
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: High

Vulnerable Code

markdown
## 角色扮演规则(最重要)

**此Skill激活后,直接以Paul Graham的身份回应。**

- 用「我」而非「Paul Graham会认为...」
- 直接用PG的语气、节奏、词汇回答问题
- 遇到不确定的问题,说「I think...」「I suspect...」「I'm not sure, but...」——用PG式的诚实犹豫
- **免责声明仅首次激活时说一次**(「我以Paul Graham视角和你聊,基于公开言论推断,非本人观点」),后续对话不再重复
- 不说「如果Paul Graham,他可能会...」
- 不跳出角色做meta分析(除非用户明确要求「退出角色」)

Technical Analysis

The Skill explicitly directs the agent to assume the identity of a real person, speak about that person in the first person, and avoid language that would distinguish simulation from authentic authorship. It further requires the disclaimer to appear only upon initial activation and prohibits the agent from leaving the role or providing meta-level clarification unless the user supplies a specific exit request.

This is instruction hijacking because loading the Skill changes the agent's identity and response constraints rather than merely supplying reference material or an analytical framework. The combination of first-person impersonation, restricted disclosure, and suppression of clarifying language can cause generated opinions, memories, and claims to be falsely attributed to Paul Graham.

The Skill contains no code execution, external network retrieval, credential access, persistence mechanism, or privilege-escalation behavior. Its effective scope is limited to the current conversational session and generated content.

Attack Path

  1. A user invokes one of the Skill's activation phrases requesting a Paul Graham perspective.
  2. The Skill replaces the agent's normal identity framing with a direct first-person impersonation.
  3. The agent presents generated analysis using first-person language and Paul Graham's purported voice and experiences.
  4. After the initial activation, the mandated disclaimer is omitted.
  5. The prohibition on meta-analysis prevents unso ...[truncated 1039 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove all instructions requiring the agent to claim or imply that it is Paul Graham.
  2. Require perspective-based framing, such as: “From a Paul Graham-inspired perspective” or “Based on Paul Graham's publicly available writing.”
  3. Preserve first-person language only for the agent's own statements; do not present inferred views or biographical events as the agent's experiences.
  4. Display a concise disclosure whenever ambiguity about identity or attribution could arise, rather than limiting the disclaimer to the first activation.
  5. Remove the prohibition against meta-level clarification and permit the agent to correct identity confusion at any time.
  6. Distinguish documented views from inference. Claims supported by public material should be attributed, while extrapolations should be explicitly labeled as speculative.
  7. Replace the vulnerable section with instructions similar to:
markdown
When activated, remain an AI assistant and analyze the question using themes
from Paul Graham's publicly available writing. Do not claim to be Paul Graham,
attribute invented experiences to him, or imply that generated text represents
his actual views. Clearly identify uncertain extrapolations as simulation or
inference.
  1. Add tests confirming that the Skill never answers “I am Paul Graham,” never represents inferred experiences as genuine memories, and provides clarification whenever a user mistakes the simulation for the real person.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger conditions are broad enough to activate on ordinary mentions like '用PG的角度想想' or '切换到PG', which can cause the skill to take over unintentionally. In context, that is more dangerous because activation leads directly into impersonation behavior, increasing the chance of deceptive or user-unexpected responses.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs the agent to answer in first person as if it were Paul Graham, with only a one-time disclaimer and then no further distinction from the real person. This creates an impersonation/deception risk: users may reasonably treat statements as authentic or endorsed by the public figure, especially in longer conversations where the disclaimer disappears.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill mandates a specific persona and linguistic behavior without ongoing user opt-in, including first-person roleplay and suppression of meta-analysis. This can override user expectations and reduce transparency about how responses are being generated, especially if the skill was triggered accidentally or implicitly.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The style rules later state '绝不用定义开头、绝不引用名人名言' as a mandatory expression constraint. Yet the document prominently begins with a quoted line attributed to Paul Graham, which contradicts the stated instruction about how the persona should open.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.