Back to skill

Security audit

Extract Design

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent webpage design-extraction helper, but it should be used with normal caution around browser access, file output paths, and third-party dependencies.

Install and run this in a normal isolated project or virtual environment, prefer public/trusted target URLs, avoid pointing it at localhost, private network, cloud metadata, or sensitive internal pages, and keep any --out path under the skill's assets/theme directory unless you intentionally want an intermediate file elsewhere. Pin Playwright in controlled environments and be aware that some sample HTML specimens may load external fonts when opened.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/extract-styles.py:159
Finding

Unrestricted URL Navigation Enables Server-Side Request Forgery

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:606
Finding

Unpinned Playwright and Chromium Installation Creates Supply-Chain Risk

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
assets/theme/planetono-style-specimen.html:8
Finding

Supposedly Self-Contained HTML Specimens Load Undeclared External Fonts

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (37)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

This is the same underlying issue expressed with more detail: the skill claims narrowly scoped, full design-system extraction with local asset-only writes, while the implementation behavior described by analysis allows arbitrary path output and only partial JSON extraction. Such description-behavior drift can bypass reviewer expectations and lead to unsafe use of the helper scripts in more privileged contexts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

This is the same underlying issue expressed with more detail: the skill claims narrowly scoped, full design-system extraction with local asset-only writes, while the implementation behavior described by analysis allows arbitrary path output and only partial JSON extraction. Such description-behavior drift can bypass reviewer expectations and lead to unsafe use of the helper scripts in more privileged contexts.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
The directory containing that `SKILL.md` file is `SKILL_DIR`. All output goes under `SKILL_DIR/assets/theme/`.

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/style-specimen.html (reported line 887)May include surrounding context.

html
<button class="btn btn-secondary theme-toggle" id="themeToggle">Toggle theme</button>
    </div>

    <!-- SECTION: Visual Character — replace component CSS below with extracted styles from target site -->
    <section class="section hero">
      <h2 style="margin-top:0;">Visual Character</h2>
      <p class="muted">Replace this with a concise summary of the extracted design language, including atmosphere and motifs.</p>

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/style-specimen.html (reported line 898)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Color Board — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Color Board</h2>
      <div class="grid grid-3">

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/style-specimen.html (reported line 917)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Typography — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Typography</h2>
      <div class="card">

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/style-specimen.html (reported line 930)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Background System — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Background System</h2>
      <!-- Add/remove bg-sample cards based on actual background layers found -->

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/style-specimen.html (reported line 933)May include surrounding context.

html
<!-- SECTION: Background System — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Background System</h2>
      <!-- Add/remove bg-sample cards based on actual background layers found -->
      <div class="background-board">
        <div class="bg-sample bg-page-base">
          <div class="bg-label">Page Base</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/style-specimen.html (reported line 968)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Motif Library — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Motif Library</h2>
      <!-- Add/remove motif cards based on what motifs were actually found in the target site -->

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/style-specimen.html (reported line 971)May include surrounding context.

html
<!-- SECTION: Motif Library — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Motif Library</h2>
      <!-- Add/remove motif cards based on what motifs were actually found in the target site -->
      <div class="motif-grid">
        <div class="motif-card motif-stripe">Diagonal Stripe</div>
        <div class="motif-card motif-gridline">Gridline</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/style-specimen.html (reported line 980)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Cards — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Cards</h2>
      <div class="grid grid-3">

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/style-specimen.html (reported line 1000)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Forms — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Forms</h2>
      <div class="card">

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/style-specimen.html (reported line 1024)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Navigation — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Navigation</h2>
      <div class="card">

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/style-specimen.html (reported line 1037)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Table — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Table</h2>
      <table class="table">

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/style-specimen.html (reported line 1068)May include surrounding context.

html
</table>
    </section>

    <!-- SECTION: Prose — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Prose</h2>
      <div class="card prose">

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/style-specimen.html (reported line 1076)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Code Block — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Code Block</h2>
      <div class="code">

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/style-specimen.html (reported line 1093)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Callouts — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Callouts</h2>
      <div class="grid grid-2">

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/style-specimen.html (reported line 1104)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Overlay — replace component CSS below with extracted styles from target site -->
    <section class="section">
      <h2>Overlay</h2>
      <div class="overlay-demo">

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/style-specimen.html (reported line 1119)May include surrounding context.

html
</div>
    </section>

    <!-- SECTION: Animation System — add extracted @keyframes demos below -->
    <section class="section">
      <h2>Animation System</h2>
      <p class="muted" style="margin-bottom:16px;">Replace this section with extracted @keyframes from the site's CSS. Add animation demo boxes and the @keyframes definitions in the CSS section above.</p>

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The script accepts a caller-supplied output path and writes JSON there without constraining it to the skill’s declared assets/theme directory. In an agent context, this can violate the skill boundary and allow overwriting or planting files elsewhere on the filesystem, which is especially risky because the skill metadata explicitly promises it will never write into the user’s project.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The script accepts an arbitrary --out path and writes extracted page data directly to that location without constraining it to the skill’s assets/theme directory. In an agent context, this can violate the skill’s stated boundary and enable overwriting files outside the skill workspace, including user project files or other sensitive local paths if the caller can influence arguments.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill instructs the agent to write files into its own assets/theme directory but does not declare any explicit tool scope such as allowed-tools or permissions. That creates an avoidable overprivilege gap: if the runtime grants broader file-write capability than intended, the skill can write beyond its documented boundary or be combined with prompt-injected path changes in future edits.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

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

Before writing any output file, resolve the skill directory by running:

text
Glob pattern: **/skills/extract-design/SKILL.md

The directory containing that SKILL.md file is SKILL_DIR. All output goes under SKILL_DIR/assets/theme/.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

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

Before writing any output file, resolve the skill directory by running:

text
Glob pattern: **/skills/extract-design/SKILL.md

The directory containing that SKILL.md file is SKILL_DIR. All output goes under SKILL_DIR/assets/theme/.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The 'When to use' and 'Do not use' trigger guidance is presented in Chinese bullet points, which imposes a specific language on users or maintainers reading the skill. The file does not state that Chinese is optional, provide an alternative language version for these instructions, or offer a user language choice.

Content

No source excerpt is available for this finding.