Back to skill

Security audit

ADC专利监控(ADC Patent Monitoring)

Security checks for vulnerabilities and agentic risk

Overview

This is a purpose-aligned patent report skill, but it needs Review because its core renderer script is missing from the package and generated reports load third-party JavaScript without integrity protection.

Install only if you are comfortable configuring the PatSnap MCP/API access and storing generated patent data locally. Before relying on it, obtain and inspect the missing build_adc_report.py renderer, and prefer a bundled or SRI-protected Chart.js dependency before opening generated reports with network access.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
references/adc_report_template_v4.1.html:7
Finding

Third-Party JavaScript Loaded Without Integrity Verification

Content
View full analysis

Vulnerability Details

File Location: references/adc_report_template_v4.1.html:7
Vulnerability Type: Unverified remote executable dependency
Risk Level: Medium

Vulnerable Code

html
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>

Technical Analysis

The report template downloads and executes Chart.js from a third-party CDN whenever a generated report is opened. Although the dependency version is pinned to 4.4.0, the script element does not provide a Subresource Integrity hash. No restrictive Content Security Policy was identified in the reviewed template.

Consequently, the browser has no cryptographic mechanism to verify that the downloaded script matches the version reviewed by the project author. If the CDN asset, package publication, CDN infrastructure, or relevant delivery trust chain is compromised, an attacker could substitute malicious JavaScript that executes in the report's browser context.

This finding concerns an unsafe remote dependency. The reviewed files contain no evidence that the current Chart.js resource is malicious.

Attack Path

  1. An attacker compromises the remote package asset, CDN infrastructure, or another relevant part of its delivery chain.
  2. The attacker replaces or alters the JavaScript returned for the referenced Chart.js URL.
  3. A user opens an HTML report generated from this template while network access is available.
  4. The browser retrieves the modified remote resource.
  5. Because no integrity hash is specified, the browser accepts and executes the attacker-controlled JavaScript.
  6. The injected code can inspect or modify the report DOM and issue outbound requests permitted by the browser environment.

Impact Assessment

Successful exploitation grants script execution within the generated report's browser origin and security context. The malicious script could:

  • Read patent intelligence and other report content rendered in the DOM.
  • Fals ...[truncated 452 chars]
Remediation
View remediation

Remediation Suggestions

  1. Preferred: bundle the dependency locally

    • Download Chart.js from an authenticated release source.
    • Verify its official checksum or signature.
    • Review and store the approved artifact inside the project.
    • Reference the local file instead of a CDN URL.
  2. If remote hosting must remain, enforce Subresource Integrity

    • Generate or obtain the correct SHA-384 or SHA-512 digest for the exact approved file.
    • Add integrity and crossorigin="anonymous" attributes:
html
<script
  src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"
  integrity="sha384-REPLACE_WITH_VERIFIED_DIGEST"
  crossorigin="anonymous"></script>

The placeholder must be replaced with the verified digest of the exact resource; an invented or unverified hash must not be used.

  1. Add a restrictive Content Security Policy

    • Prefer locally hosted scripts with a policy such as script-src 'self'.
    • If the CDN remains necessary, allow only the exact required source and avoid permissive directives such as unsafe-eval.
    • Restrict outbound connections through connect-src to reduce exfiltration opportunities.
  2. Harden dependency governance

    • Record the approved Chart.js version and checksum.
    • Monitor upstream security advisories.
    • Revalidate the artifact and update the integrity hash during controlled upgrades.
    • Test generated reports with network access disabled when using a fully local dependency.
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 (17)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- 最终 HTML 必须由 `scripts/build_adc_report.py` 渲染 `references/adc_report_template_v4.1.html`,不得手写一次性 HTML。

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 245)May include surrounding context.

html
</head>
<body>

<!-- ══════════ HEADER ══════════ -->
<div class="header">
  <h1>🧬 ADC专利动态周报</h1>
  <div class="subtitle">Antibody-Drug Conjugate Patent Intelligence Weekly</div>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 310)May include surrounding context.

html
</thead>
        <tbody>
        <!-- SUMMARY_TABLE_TBODY_START -->
          <!-- ★★★ 示例行1 – 重点专利 ★★★ -->
          <tr>
            <td>1 ⭐</td>
            <td><a href="#" target="_blank">WO2026XXXXXX</a></td>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 340)May include surrounding context.

html
<td>—</td>
            <td>RNA-ADC平台linker</td>
          </tr>
          <!-- 示例行3 -->
          <tr>
            <td>3</td>
            <td><a href="#" target="_blank">WO2026ZZZZZZ</a></td>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 365)May include surrounding context.

html
</div>
  </div>

  <!-- ══════════ CHARTS ══════════ -->
  <div id="charts" class="section">
    <div class="section-title">统计分析</div>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 365)May include surrounding context.

html
</div>
  </div>

  <!-- ══════════ CHARTS ══════════ -->
  <div id="charts" class="section">
    <div class="section-title">统计分析</div>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 398)May include surrounding context.

html
<!-- ══════════ DEEP DIVE ══════════ -->
  <div id="deep-dive" class="section">
    <div class="section-title">重点专利深度解读</div>
    <!-- DEEP_DIVE_START --><!-- DEEP_DIVE_END -->
  </div>

  <!-- ══════════ PATENT DETAIL ══════════ -->

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 425)May include surrounding context.

html
<div class="ai-interpret">
          <div class="ai-interpret-title">🤖 AI 专利解读</div>

          <!-- 核心保护点 -->
          <div class="interpret-block">
            <div class="interpret-label label-protect">🔑 核心保护点</div>
            <div class="interpret-text">

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 517)May include surrounding context.

html
</div>
    <!-- ╚═══ 卡片2结束 ╝ -->

    <!-- ╔═══ 示例卡片3:DAC新模式(标准版) ╗ -->
    <div class="patent-card" id="card-3">
      <div class="card-header collapsed" onclick="toggleCard('card-3')">
        <div class="pn-row">

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 517)May include surrounding context.

html
</div>
    <!-- ╚═══ 卡片2结束 ╝ -->

    <!-- ╔═══ 示例卡片3:DAC新模式(标准版) ╗ -->
    <div class="patent-card" id="card-3">
      <div class="card-header collapsed" onclick="toggleCard('card-3')">
        <div class="pn-row">

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 562)May include surrounding context.

html
</div>
    </div>
    <!-- ╚═══ 卡片3结束 ╝ -->
    <!-- PATENT_CARDS_END -->

  </div><!-- /patents section -->

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/adc_report_template_v4.1.html (reported line 562)May include surrounding context.

html
</div>
    </div>
    <!-- ╚═══ 卡片3结束 ╝ -->
    <!-- PATENT_CARDS_END -->

  </div><!-- /patents section -->

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
- 最终 HTML 必须由 `scripts/build_adc_report.py` 渲染 `references/adc_report_template_v4.1.html`,不得手写一次性 HTML。
- 周报只描述本周公开数据,不输出"本周首次出现的申请人""格局变化"等需要跨周历史基线才能成立的判断。
- 检索字段必须使用 `F_PBD`,不再使用旧版 `PBD`,不再执行旧检索式二次兜底。
- 专利详情链接固定为 `https://analytics.zhihuiya.com/patent-view/abst?patentId={patent_id}`。
- "专利关联管线"和"研发阶段"本轮只预留字段;没有确定管线关联时填 `—`,不得臆测。
- AI 解读必须基于 PatSnap/Eureka 工具返回的结构化字段、本周最终专利集、P025/tech_summary、claims、bibliography、family/legal_status、必要图像证据改写,不得凭空补外部事实。
- 禁止使用 web search、新闻搜索或开放网页结果生成 `核心保护点`、`创新/新颖性`、`竞争意义`。

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The markdown explicitly states that Eureka Desktop will write the final patent data to a local JSON file. Although this is part of the workflow, the document does not clearly warn users that report input data will be persisted locally in the workspace, which is a data-handling behavior relevant to user awareness.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill description documents environment variables such as EUREKA_PATENT_DATA_FILE and EUREKA_PATENT_DATA that carry report input data into the renderer. The file explains how to configure them, but it does not warn users that patent content may be exposed via local files or process environment in the execution context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The natural-language instruction in the default prompt is written as a mandatory English command ('Use $adc-patent-monitoring...') with no indication that users may choose another language. This can violate language/locale policy when a skill imposes a specific language without offering opt-in or alternatives.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The HTML document declares lang="zh-CN", and the visible report content is consistently Chinese, which imposes a specific language/locale by default. The file does not mention any user opt-in, alternative language support, or business justification that this template must be China-specific.

Content

No source excerpt is available for this finding.