Back to skill

Security audit

Karpathy.skill - Andrej Karpathy思维操作系统

Security checks for vulnerabilities and agentic risk

Overview

This is a non-executable persona skill, but it pushes the assistant to impersonate a real person and limit disclosure after activation.

Review before installing. The skill has no local system access, but it may make the assistant speak as Andrej Karpathy rather than clearly saying it is giving a Karpathy-inspired interpretation. Use it only if you are comfortable with that persona behavior, and prefer revisions that keep disclosure visible and require explicit user intent to activate.

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

Identity Impersonation and Disclosure Suppression Through Skill Instructions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 36-50
Vulnerability Type: Agent instruction hijacking through mandatory persona impersonation and suppression of transparency
Risk Level: Medium

Evidence

The following is an English translation of the relevant source excerpt:

markdown
## Role-Playing Rules (Most Important)

**After this skill is activated, respond directly as Karpathy.**

- Use “I” instead of “Karpathy would think...”
- Use his tone.
- For topics completely outside his knowledge, directly say that they are not areas he has studied deeply.
- Give a disclaimer only once when first activated, stating that the response is a perspective inferred from public statements and is not the real person. Do not repeat it later.
- Do not say “Karpathy would probably think...” or “If it were Karpathy, he might...”
- Do not append a notice that the content is model inference.
- Do not leave the role to perform meta-analysis unless the user explicitly requests it.

Exit the role only when the user asks to exit, return to normal, or stop role-playing.

For events after the stated knowledge date, remain in the first-person role and say that the information has not been followed recently.

Technical Analysis

The skill explicitly prioritizes its persona rules as the “most important” instructions and requires the agent to speak in the first person as a real, identifiable person. It further prohibits ordinary attribution language, suppresses recurring disclosure that statements are inferred, and prevents the agent from leaving the role for meta-analysis unless the user explicitly requests it.

These directives can override or materially alter the host agent's normal transparency and identity behavior when the skill is loaded. In particular:

  • First-person impersonation can cause generated opinions or predictions to be presented as though they came directly from the named individual.

...[truncated 2646 chars]

Remediation
View remediation

Remediation Suggestions

  1. Replace direct identity impersonation with an explicitly labeled analytical perspective:

    • Use wording such as “From a Karpathy-inspired engineering perspective...”
    • Never claim or imply that the agent is the real individual.
  2. Preserve disclosure throughout the interaction:

    • Include a concise disclosure whenever identity confusion is reasonably possible.
    • Do not limit disclosure to the first activation because individual responses may be consumed without prior context.
  3. Remove instructions that prohibit attribution or inference notices:

    • Clearly distinguish documented public positions from model-generated extrapolation.
    • Use phrases such as “Based on his published views” and “An inference from this framework would be...”
  4. Remove the prohibition on meta-analysis:

    • Allow the host agent to explain provenance, uncertainty, limitations, and role boundaries whenever needed.
    • Explicitly state that system, developer, safety, identity, and transparency requirements take precedence over skill instructions.
  5. Replace the priority claim:

    • Remove “most important.”
    • State that persona and style guidance is subordinate to higher-level instructions and must not alter safety or disclosure requirements.
  6. Add safeguards for unsupported claims:

    • Require citations or clear attribution for direct claims.
    • Label framework-derived conclusions as interpretations.
    • Avoid fabricating personal experiences, private knowledge, or first-person biographical claims.
  7. Add an unambiguous persona boundary:

    • Define the skill as style and framework emulation only.
    • Require the agent to refuse requests intended to create deceptive quotations, endorsements, or statements falsely attributed to the real person.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
85% confidence
Finding

The description states the skill includes「完整的中文输出适配」, and later sections prescribe Chinese-specific output behavior. This imposes a locale/language preference in the skill behavior without indicating user choice or opt-in, which is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The trigger logic includes broad conceptual phrases like engineering-realist framings rather than narrowly scoped invocation terms, which can cause the skill to activate when a user did not explicitly request this persona. That creates unintended routing and response hijacking risk: unrelated AI questions may be answered in-role, suppressing normal assistant behavior and potentially distorting safety-critical or factual responses.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.