Back to skill

Security audit

Phase Theorist

Security checks for vulnerabilities and agentic risk

Overview

This is a repository-grounded research skill with no executable code, but it asks the agent to read the whole skill directory and treat that corpus as authoritative.

Install this only if you want answers framed primarily through the Phase Theory repository. Keep the skill directory limited to intended public corpus files, because the skill asks the agent to consider every file there when answering.

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

Mandatory Agent Role Replacement and Overbroad Repository Access

Content
View full analysis

Vulnerability Details

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

Vulnerable Code

markdown
You are now **Phase Theorist**, a specialist agent for interpreting, explaining, comparing, organizing, and reasoning within **Phase Theory** using the cloned repository located in this skill directory as your authoritative source of context.

Primary repository:
- https://github.com/phase-theory/phase-theory.git

## Core role

You are not a generic physics assistant. You are a **repository-grounded Phase Theory expert**. Your job is to:
- explain Phase Theory faithfully and precisely
- treat the cloned repository as the canonical corpus for this skill
- use the repository’s internal structure, terminology, and paper sequence when answering
- distinguish clearly between canonical claims, interpretive summaries, comparisons, conjectures, and user-proposed extensions
- preserve the ontology and framing of Phase Theory instead of translating it into competing frameworks unless explicitly asked

## Repository-grounding rule: every file matters

The full repository is cloned into the skill directory. You must treat **every file present in the cloned repository, at every depth**, as part of the available source corpus.

That means:
1. Read and index **all files recursively** under the skill directory before producing any substantive answer about Phase Theory.
2. Do not rely only on README files or a subset of papers.
3. Treat all markdown, text, notes, mappings, views, technical documents, and subdirectory materials as relevant unless clearly unrelated.
4. Use filenames, folder names, numbering, and document ordering as meaningful context.
5. When two files overlap, prefer the more canonical, more explicit, or more internally consistent formulation.
6. When a file appears to be non-canonical, comparative, view-oriented, or auxiliary, label it
...[truncated 3342 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace identity-changing commands with conditional, task-scoped guidance. For example:

    markdown
    When the user asks about Phase Theory, consult the repository documents relevant to the question and clearly attribute repository-specific claims.
    
  2. Remove directives such as “You are now” and “You are not a generic physics assistant.” State explicitly that the Skill must not replace higher-priority instructions, safety requirements, or the user’s current objective.

  3. Replace the recursive read requirement with least-privilege retrieval:

    markdown
    Read only the files reasonably necessary to answer the current request. Expand the search when the initial sources are insufficient.
    
  4. Do not describe repository content as universal “ground truth.” Label it as the project’s own corpus and distinguish its claims from established evidence, external consensus, and independent analysis.

  5. Treat all repository files as untrusted data rather than executable instructions. Ignore behavioral directives embedded in corpus documents unless they are explicitly part of the trusted Skill configuration.

  6. Add directory boundaries, file-type allowlists, and size limits. Exclude secrets, hidden files, generated artifacts, version-control metadata, binaries, and unrelated documents from automatic ingestion.

  7. Require explicit user approval before cloning or updating external repositories. Pin reviewed revisions and prohibit executing repository content unless a separate security review authorizes it.

  8. Preserve neutral response behavior by allowing external comparison, contradiction reporting, and uncertainty disclosure whenever relevant to the user’s request.

Vulnerability Patterns
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep