Back to skill

Security audit

Prd Reviewer

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent PRD review skill, but it asks the agent to consult persistent memory and unspecified workspace competitor documents without clear user approval or scoping.

Install only if you are comfortable with the skill using local workspace research and possible persistent memory as review inputs. Before use, tell the agent to use only the PRD and source files you explicitly name, and require confirmation before reading any workspace or memory file not provided in the current request.

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
references/行业适配规则.md:582
Finding

Overbroad Access to Agent Memory and Workspace Documents

Content
View full analysis

Vulnerability Details

File Location: references/行业适配规则.md, lines 582 and 590
Vulnerability Type: Least-privilege violation through access to unrelated memory and workspace files
Risk Level: Medium

Vulnerable Snippet

markdown
| **企迈数店** | 应用商店搜索或官网 | 已做深度调研(36功能入口,60+截图),参见 memory/2026-05-02.md |
markdown
1. 优先查阅已有调研报告(workspace中的竞品分析文档)

The first instruction directs the agent to consult a dated file in persistent memory. The second instructs it to search broadly for competitive-analysis documents in the workspace rather than limiting access to files explicitly supplied or approved by the user.

Technical Analysis

A PRD-review skill ordinarily needs access only to the PRD and related materials selected by the user. These instructions expand that scope to persistent agent memory and unspecified workspace content.

Because neither instruction establishes an approved root directory, an explicit allowlist, file sensitivity checks, or per-file user authorization, the skill may cause unrelated material to enter the model context. Persistent memory and workspace files can contain private conversation context, confidential business research, customer data, internal documents, or credentials.

This is an access-control and least-privilege issue. The audited text does not instruct the agent to modify memory, elevate operating-system permissions, or transmit retrieved information to an external party.

Attack Path

  1. A user invokes the skill to review a restaurant-system PRD.
  2. The competitive-analysis phase is activated.
  3. Following line 582, the agent attempts to read memory/2026-05-02.md.
  4. Following line 590, the agent may search the wider workspace for competitive-analysis documents.
  5. Unrelated or sensitive content from those sources enters the agent's context.
  6. That content may influence the review or be reproduced in an internal report, patch, or other generated output.

The path depends on the host exposing ...[truncated 854 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the direct reference to memory/2026-05-02.md.
  2. Replace broad workspace discovery with an explicit allowlist of user-approved files.
  3. Restrict reads to the current PRD project directory by resolving and validating canonical paths before access.
  4. Require explicit user confirmation before reading any file not supplied with the current request.
  5. Reject paths that escape the approved root through absolute paths, symbolic links, or .. traversal.
  6. Record every supplementary source used, including its path and the user's authorization.
  7. Add a rule prohibiting access to persistent memory, conversation archives, credential files, environment files, and unrelated projects.
  8. Prefer wording such as: “Use only competitive-analysis documents explicitly attached or identified by the user for this review.”
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 (4)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The finance section hardcodes compliance review against Chinese regulators such as the People's Bank of China and the CBIRC as a default requirement. In a general reference file covering multiple industries, this creates a locale-specific policy constraint without stating that it applies only to China-region deployments or offering any regional choice.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

该文件标题及全文规范均以中文表述,作为评审手册直接规定评审输出与标准环境为单一语言,但未说明这是经用户选择或仅适用于特定中文业务区域。根据语言/locale 政策,若未提供选择或明确的区域性正当说明,强制单一语言可能构成自然语言政策违规。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown template is entirely framed in Chinese, including its title and all section labels, with no indication that language selection is optional. Under the policy rule for natural-language violations, enforcing a specific language without user opt-in is a reportable issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown template is entirely written in Chinese and provides no indication that language selection is optional or context-specific. Under the policy rule, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale constraint is explicitly documented and justified.

Content

No source excerpt is available for this finding.