Back to skill

Security audit

TRPG Convert to Briefing Package

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a TRPG conversion helper, but it tells agents to modify active source files outside the intended briefing package without clear limits or user approval.

Review this skill before installing if your project contains authoritative rulebooks, scenarios, or character sheets outside briefing_package. Use it only in a version-controlled workspace or instruct the agent to treat source files outside briefing_package as read-only unless you approve a precise file list and diff.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:20
Finding
Overbroad Modification of Files Outside the Intended Output Package<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 20–22 and line 74 **Vulnerability Type**: T05: Unauthorized Access and Privilege Escalation **Risk Level**: Medium ### Vulnerable Instruction Snippet The following is a faithful English translation of the relevant instructions: ```text The scope of files you need to modify is: ✅ All official files inside briefing_package (config.yaml, system_prompt.md, rules_compact.md, scenarios/*.yaml, data/*.yaml, rules_sections/*.md, maps/*.yaml) ✅ The latest official rules files, scenario files, character sheets, and other official files still in use outside briefing_package ⚠️ Inspection scope: not only files inside briefing_package; rules and scenario files outside briefing_package must undergo the same inspection. ``` ### Technical Analysis The Skill's declared function is to convert TRPG rules into a `briefing_package`. Producing that package only requires reading source documents and writing conversion results to the designated output directory. However, the instructions explicitly direct the agent to modify active rules, scenarios, character sheets, and other files outside `briefing_package`. No explicit path allowlist, per-file approval, backup requirement, dry-run mode, or diff review is required before those modifications occur. This violates least-privilege principles by expanding write operations beyond the files necessary to create the requested output. The risk is amplified by other transformation requirements in the Skill, including terminology normalization and removal or omission of multiplayer content. If applied directly to canonical source documents, those operations can cause destructive or semantically significant changes. The Skill does not independently acquire new operating-system privileges. It instead encourages overuse of whatever filesystem write permissions the hosting agent already possesses. ### Attack Path 1. A user invokes the Skill to conv ...[truncated 1541 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Restrict all generated and modified files to an explicitly designated directory, such as `briefing_package/`. 2. Treat source rules, scenarios, and character sheets outside that directory as read-only by default. 3. Remove the instruction requiring normalization or modification of files outside the output package. 4. If source-file editing is genuinely required, obtain explicit user approval for a precise file allowlist before writing. 5. Present a proposed modification plan and diff for review before changing any existing source document. 6. Create backups or require a clean version-control checkpoint before approved source-file modifications. 7. Resolve and validate paths before writing, rejecting path traversal and targets outside the approved output root. 8. Separate conversion behavior from optional source-maintenance behavior so users can authorize them independently. ]]>
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
Findings (2)

Missing User Warnings

Medium
Confidence
94% confidence
Finding
The skill instructs the agent to modify multiple files in the current folder and even outside the briefing_package without requiring an explicit user confirmation or a clear warning that file writes will occur. In an agent environment, this can cause unintended bulk edits to unrelated or authoritative files, especially because the skill also encourages broad scanning and batch processing across many paths.

Natural-Language Policy Violations

Medium
Confidence
97% confidence
Finding
These instructions mandate that all Chinese content must be written in Traditional Chinese and explicitly forbid Simplified Chinese. This is a language/locale policy constraint presented as unconditional behavior, with no opt-in choice for the user and no clear region-specific justification documented in the file.

Static analysis

No suspicious patterns detected.