Back to skill

Security audit

rd-initiation-review

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent R&D proposal review workflow, but it can send sensitive proposal-derived details to external search providers and persist them in local evidence logs without clear user consent or sanitization.

Install only if users understand that proposal content may be turned into external patent, paper, or web-search queries and written into local evidence files. For confidential or unpublished R&D proposals, require an explicit approval step, sanitize search terms, restrict approved providers, and protect or delete query logs after use.

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

Proposal-Derived Confidential Information May Be Disclosed to External Search Providers and Plaintext Logs

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:124-166; related logging requirements appear in references/evidence-schema.md:3-14 and templates/query-log-template.csv:1
Vulnerability Type: Uncontrolled external disclosure and plaintext retention of potentially sensitive proposal data
Risk Level: Medium

Vulnerable Code Snippet

From SKILL.md:124-166:

markdown
## Tool Routing And Fallback

This skill works across multiple tool environments. Before retrieval, detect
which capabilities are available and select the highest tier that is reachable.

### Tier 0 (Always First): Proposal Materials

- User-provided proposal, initiation report, innovation package
- Extract project summary, research theme, innovation points, promised outputs,
  and proposal-stated claims BEFORE any external search
- Evidence grade: proposal-stated (not externally verified)

### Tier 1 (Recommended): Structured Patent/Paper Retrieval

- Use the host's best structured patent and paper retrieval stack to test
  novelty, feasibility, and frontier evidence around normalized innovation points.
- This usually means structured search plus record-level deep fetch.
- Evidence grade: S/A

### Tier 2 (Fallback): Exa Search + Companion Skills

- Use the host's best broad web research tool plus scholarly or finance
  companion lanes when available.
- Exa, Tavily, Brave, official filings, and domain-specific research databases
  are good examples, not hard requirements.
- Evidence grade: A/B
- Coverage loss vs Tier 1: no structured patent field search, no assignee
  filtering, novelty conclusions less precise

### Tier 3 (Fallback): Generic Web Tools

- Use generic web search and page/PDF reading tools available in the host.
- Evidence grade: B/C

### Tier 4 (Minimum): Pure LLM + Proposal Materials

- No external tools required
- Evidence grade: C/U
- The review can still extract and organize proposal claims,
...[truncated 4406 chars]
Remediation
View remediation

Remediation Suggestions

  1. Require a sensitivity check before retrieval

    • Classify input as public, internal, confidential, or restricted.
    • Default confidential and restricted proposals to offline processing until the user explicitly authorizes external research.
  2. Obtain informed authorization

    • Identify the external provider categories that may receive queries.
    • Explain that proposal-derived terms may be transmitted outside the local environment.
    • Require explicit consent before the first external query.
  3. Minimize and redact queries

    • Remove project names, organization names, people, customer identifiers, and unpublished code names.
    • Generalize unique measurements, compositions, tolerances, and parameter combinations unless essential.
    • Search abstract technical concepts first and disclose additional detail only when necessary and approved.
  4. Add provider controls

    • Prefer organization-approved retrieval services with suitable privacy and retention terms.
    • Support a provider allowlist and prohibit automatic fallback to unapproved services.
    • Do not place confidential information in URL query strings where it may also enter browser, proxy, or server logs.
  5. Harden local evidence logs

    • Store redacted query text or a query hash when full text is unnecessary.
    • Apply restrictive file permissions to the run directory and evidence files.
    • Define retention and secure-deletion policies.
    • Exclude confidential logs from source control, shared artifacts, and default report bundles.
  6. Provide a genuine offline mode

    • Permit proposal-only analysis without external retrieval.
    • Clearly lower confidence in novelty conclusions rather than transmitting confidential content.
    • Allow users to supply pre-approved public search terms or sanitized source material.
  7. Add an enforcement rule

    • State explicitly that proposal-deri ...[truncated 122 chars]
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • 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
Findings (6)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · SKILL.md (reported line 318)May include surrounding context.

md
Every claim must cite its source type and identifier, e.g., `[Patent: CN1234567B]`,
`[Paper: DOI or title]`, `[Web: source name]`, `[Proposal: section/page]`.

## Formal Output Rules

For formal review audiences such as large enterprises, public-sector bodies,
and research institutions:

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The activation criteria are broad enough to auto-trigger the skill when a user merely supplies proposal materials, even without clearly requesting a review. In an agent runtime, this can cause unintended execution of a high-impact workflow that performs external research, synthesizes judgments, and writes files, increasing the chance of unauthorized actions or disclosure of sensitive proposal content.

Content

No source excerpt is available for this finding.

External Model or Provider Selection

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 14)May include surrounding context.

md
material set — even if they only provide the proposal and do not explicitly
  say "review".
argument-hint: "[project proposal, initiation report, or review request]"
provider: "Patsnap Eureka"
compatibility: "Designed for Claude Code, Codex, and similar agent runtimes that can read/write local files and call whatever search tools are available."
deliverable-default: "Structured Markdown review report plus novelty note and traceable evidence files; docx/pdf export is optional."
fallback-policy: "Start from proposal materials; prefer structured patent/paper retrieval when available; otherwise downgrade through domain-specific sources, Exa, Tavily, Brave, web, and a known-URL reader without blocking the run."

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill instructs the agent to create or update multiple local workspace files by default, but it does not require prior user consent or a clear warning that the workspace will be modified. In shared or sensitive environments, this can lead to unexpected persistence of confidential proposal data, overwrite existing artifacts, or create audit and privacy issues.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The text instructs that Chinese formal reports should use specific Chinese document names, which imposes a language/locale requirement in natural language. Because the file does not explicitly present this as an opt-in choice by the user, it can be read as forcing a specific locale convention when that condition applies.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

Line L42 requires the exact phrase 内部查重边界未核验 when internal archives are unavailable. This imposes a specific language in the skill content without any stated user opt-in, alternative locale, or documented region-specific reason.

Content

No source excerpt is available for this finding.