Back to skill

Security audit

ai-amazing-tech

Security checks for vulnerabilities and agentic risk

Overview

This skill is a patent and technology-intelligence report generator whose data access and HTML-report behavior are mostly disclosed and aligned with its purpose.

Install only if you are comfortable connecting the agent to your PatSnap MCP account and web-search tools for patent and industry research. Treat generated HTML reports as potentially sensitive business documents, and prefer bundled or integrity-pinned chart/style assets before sharing or opening reports in high-trust browser contexts.

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
SKILL.md:299
Finding

Generated Reports Execute Third-Party CDN Dependencies Without Integrity Verification

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:299-301
Additional Location: references/reference_ui_template.html:7-9
Vulnerability Type: Unverified third-party runtime dependencies
Risk Level: Medium

Vulnerable code:

html
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">

Technical Analysis

The Skill requires generated HTML reports to load JavaScript and stylesheets directly from third-party content delivery networks. The Tailwind dependency is not pinned to an immutable version, and neither JavaScript dependency uses Subresource Integrity or another mechanism that verifies the downloaded content against a trusted cryptographic hash.

Because these resources are retrieved when a user opens a generated report, their effective content can change after the Skill package has been reviewed. A compromise of a CDN, upstream package, publishing account, or delivery path could cause attacker-controlled JavaScript to execute in the browser.

This is classified as T08: Insecure Dependencies because the report relies on externally hosted third-party components without integrity enforcement.

Attack Path

  1. An attacker compromises an upstream dependency, CDN account, CDN delivery infrastructure, or another component capable of modifying a referenced JavaScript resource.
  2. The attacker replaces or alters the delivered Tailwind or ECharts script with malicious JavaScript.
  3. The Skill generates a report containing the mandated external script references.
  4. A user opens the generated HTML report while connected to the external CDN.
  5. The browser downloads and executes the modified script because no integrity hash or restrictive policy rejects it.
  6. The ...[truncated 1234 chars]
Remediation
View remediation

Remediation Suggestions

  1. Bundle audited versions of Tailwind CSS and ECharts with the Skill or generated report instead of downloading executable resources at report-view time.
  2. If external hosting is unavoidable, use immutable, explicitly versioned asset URLs. Do not use the unversioned https://cdn.tailwindcss.com browser runtime in production reports.
  3. Add Subresource Integrity hashes and anonymous cross-origin enforcement:
    html
    <script
      src="https://trusted-cdn.example/library.min.js"
      integrity="sha384-EXPECTED_HASH"
      crossorigin="anonymous"></script>
    
  4. Pin dependency versions and cryptographic hashes through a reviewed lockfile or asset manifest.
  5. Apply a restrictive Content Security Policy that permits scripts only from approved locations and avoids unsafe-eval and unsafe-inline where feasible.
  6. Consider generating static CSS and charts so reports do not require third-party JavaScript at runtime.
  7. Establish a dependency-update process that includes vulnerability scanning, provenance verification, hash updates, and security review before deployment.
  8. Apply the same controls to both the directives in SKILL.md and the implementation in references/reference_ui_template.html.
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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (11)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**三类报告 UI 风格必须完全一致**,参考 `references/reference_ui_template.html` 文件中的样式:

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**三类报告 UI 风格必须完全一致**,参考 `references/reference_ui_template.html` 文件中的样式:

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**三类报告 UI 风格必须完全一致**,参考 `references/reference_ui_template.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/reference_ui_template.html (reported line 64)May include surrounding context.

html
</head>
<body>

<!-- ========== HERO ========== -->
<section class="hero-gradient relative overflow-hidden" id="top">
  <div class="absolute inset-0 opacity-10 pointer-events-none">
    <svg viewBox="0 0 1200 480" class="w-full h-full">

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

文件开头的描述全文以中文规定技能行为,且后文多处以固定中文术语和格式约束用户交互,没有说明是否支持其他语言或允许用户选择输出语言。对于通用 skill,这构成了默认强制特定语言的自然语言策略问题。

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

模块一不仅用明确关键词触发,还将“用户面向的是 IPR、研发负责人、战略决策者”“需要做出 R&D 投入决策”等高层意图作为触发条件。这些条件边界较模糊,缺少可操作的限定或反例,容易把一般性的战略咨询误路由到该技能。

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

“用户描述了具体研发项目、技术问题、创新点”“用户是研发工程师,需要解决专利申请工作的各种卡点”等表述覆盖面很广,并非稳定、可判定的触发短语。这种写法缺少明确的触发约束,可能与一般研发讨论或技术答疑重叠。

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

“跟踪特定企业/技术领域的多维度动态”“以‘了解行业’‘跟踪动态’为主旨”等条件语义宽泛,与常见行业资讯查询高度重叠。虽然列出了一些关键词和时间范围,但仍缺少更明确的上下文限制或负例来界定触发边界。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

该段将“所有面向用户的输出”统一绑定到一套固定的语言规范和格式要求,但没有给出用户语言偏好选择或多语言例外。对所有用户一刀切地施加单一语言/表达规范,可能违反语言与地区适配要求。

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The root HTML tag sets lang="zh-CN", and the entire document content is presented only in Simplified Chinese. Under the policy, forcing a specific language or locale without user opt-in or a documented region-specific justification is a natural-language policy concern.

Content

No source excerpt is available for this finding.