Back to skill

Security audit

需求调度官

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent Chinese requirements-management workflow, but it trusts a project-controlled path file for writes and background task state without enough containment.

Before installing, treat cloned repositories' `.wdp-prd` files as untrusted. Verify that the pointer resolves to the intended `<PRD_ROOT>/<project-slug>/` directory before running write-capable commands, and be cautious with dispatch because it can start background agents that modify code before review and merge gates.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:16
Finding

Unvalidated Project-Controlled Pointer Allows Writes Outside the Intended Storage Root

Content
View full analysis
//`, containing: - `backlog/R-###.md` requirement cards - `execution-plan.md` scheduling view - `plans/` implementation-plan archives - Bridge: the `.wdp-prd` file in the project root contains the absolute path to the project's global root, namely `//`. Read it before every command operation. ``` The unsafe pointer is subsequently used by write operations, including: ```markdown 4. Update the field, set `updated` to the current date, and preserve `created`. 5. Rewrite `execution-plan.md` when affected. ``` ```markdown After the subagent produces an implementation plan, archive it to `/plans/.md`. ``` ```markdown Create the new card as `backlog/R-###.md`. Rewrite `execution-plan.md`. ``` ### Technical Analysis The Skill treats `.wdp-prd`, a file located in and therefore potentially controlled by the current project, as an authoritative absolute filesystem pointer. The instructions do not require the agent to: - Canonicalize the pointer with a real-path operation. - Confirm that the resolved target is beneath the canonical `PRD_ROOT`. - Reject symbolic links or path redirections. - Verify ownership or expected directory structure. - Ask for approval when an existing pointer targets an unexpected directory. - Prevent overwriting pre-existing files unrelated to the current project. Multiple commands then perform writes relative to this pointer, inc ...[truncated 2340 chars]
Remediation
View remediation
//`. - Require `.wdp-prd` to resolve exactly to that directory unless the user explicitly approves a migration. - Validate the slug against a restrictive pattern such as `^[a-z0-9]+(?:-[a-z0-9]+)*$`. 3. **Defend against symbolic-link traversal** - Reject a `.wdp-prd` file that is itself a symbolic link. - Check every existing path component from `PRD_ROOT` to the destination. - Refuse writes when `backlog`, `plans`, `execution-plan.md`, or their parent components resolve through unexpected symbolic links. 4. **Require confirmation for existing unexpected pointers** - Display the canonical source and destination paths. - Stop the operation unless the destination matches the expected project storage directory. - Do not silently accept a pointer supplied by a cloned repository. 5. **Use safe file-write procedures** - Create files with exclusive-create semantics when replacement is not intended. - For intended updates, write to a temporary file inside the validated destination and atomically rename it. - Verify the final destination immediately before replacement to reduce path-swap risks. 6. **Add negative security tests** - Test a pointer outside `PRD_ROOT`. - Test relative paths and traversal sequences. - Test a symlinked `.wdp-prd`. - Test symlinked `backlog` and `plans` directories. - Test an unexpected existing `execution-plan.md`. - Confirm that all such cases stop before any read or write occurs. ]]>
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 (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The manifest description and title explicitly present this skill as a Chinese-version requirements manager ("中文版需求管理" / "需求管理") without offering any language choice or opt-in. This is a natural-language policy issue because it constrains the interaction locale by default rather than documenting a user-selectable language preference.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file title and all user-facing expected messages are written in Chinese, and the scenarios implicitly require the skill to present warnings and status text in Chinese. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The file content is entirely written in Chinese and does not indicate that the skill offers a language choice or that the locale restriction is intentional for a region-specific use case. This can violate language/locale policy when users are not given an explicit opt-in or alternative language.

Content

No source excerpt is available for this finding.