Back to skill

Security audit

figma-pixel

Security checks for vulnerabilities and agentic risk

Overview

The skill has a coherent Figma visual comparison purpose, but it needs review because it runs broad local automation with weak containment and mutable setup steps.

Install only if you are comfortable running it in an isolated workspace or container, with a read-only/minimum-scope Figma token and only trusted page URLs. Pin dependencies yourself before setup, avoid running install commands as root, and do not share or commit figma-pixel-runs artifacts without reviewing them for sensitive screenshots or Figma data.

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
lib/run-manifest.cjs:12
Finding

Path Traversal Through Unsanitized Run Identifier

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
lib/page-render.cjs:102
Finding

Unrestricted Page Rendering in Chromium With Browser Sandbox Disabled

Content
View full analysis
{ failedRequests.push({ url: request.url(), error: request.failure()?.errorText || 'unknown' }); }); page.on('response', (httpResponse) => { const status = httpResponse.status(); if (status >= 400) { badResponses.push({ url: httpResponse.url(), status }); } }); ``` ### Technical Analysis The renderer accepts a caller-provided URL and allows the page to load arbitrary subresources. It does not restrict navigation to HTTP(S), approved hosts, the user-provided implementation origin, or expected local development addresses. A browser is an active network client. Loading an untrusted page permits attacker-controlled JavaScript, images, forms, scripts, redirects, and other resources to initiate requests using the host's network reachability. Depending on the direct URL and browser security behavior, this can reach: - Loopback services. - Private network addresses. - Development services accessible only from the host. - Cloud instance metadata or link-local services. - Other internal HTTP endpoints. Same-origin policy limits JavaScript's ability to read many cross-orig ...[truncated 2140 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:44
Finding

Unpinned Host-Level Dependencies and Ambiguous npx Execution

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (41)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/run-pipeline.cjs` as the primary orchestration entry point.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 17)May include surrounding context.

md
if (!token) {
    throw new Error(
      'FIGMA_TOKEN is required. Create a Figma personal access token and pass it via environment variable.'
    );
  }

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · lib/config.cjs (reported line 6)May include surrounding context.

js
if (!token) {
    throw new Error(
      'FIGMA_TOKEN is required. Create a Figma personal access token and pass it via environment variable.'
    );
  }

Lp1

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'network' capability that is not listed in its permissions. This may indicate deceptive intent or missing permission declarations.

Content

No source excerpt is available for this finding.

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 · CLAW_HUB_SECURITY_NOTE.md (reported line 11)May include surrounding context.

md
The required network flow is:
- read `FIGMA_TOKEN` in `lib/config.cjs`
- call `https://api.figma.com/v1/files/...`
- call `https://api.figma.com/v1/images/...`
- download the Figma-generated reference image for visual comparison without sending the token to that image URL

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 · CLAW_HUB_SECURITY_NOTE.md (reported line 12)May include surrounding context.

md
The required network flow is:
- read `FIGMA_TOKEN` in `lib/config.cjs`
- call `https://api.figma.com/v1/files/...`
- call `https://api.figma.com/v1/images/...`
- download the Figma-generated reference image for visual comparison without sending the token to that image URL

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 · lib/figma-api.cjs (reported line 64)May include surrounding context.

js
The required network flow is:
- read `FIGMA_TOKEN` in `lib/config.cjs`
- call `https://api.figma.com/v1/files/...`
- call `https://api.figma.com/v1/images/...`
- download the Figma-generated reference image for visual comparison without sending the token to that image URL

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 · lib/figma-export.cjs (reported line 58)May include surrounding context.

js
The required network flow is:
- read `FIGMA_TOKEN` in `lib/config.cjs`
- call `https://api.figma.com/v1/files/...`
- call `https://api.figma.com/v1/images/...`
- download the Figma-generated reference image for visual comparison without sending the token to that image URL

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 36)May include surrounding context.

md
Without these packages, system libraries, and a working browser executable, the skill will not work fully.
Rendering, image diffing, or diff-region analysis may fail immediately depending on what is missing.

How to create a Figma token:
- https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens

Main packages used by the skill:

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
85% 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 · README.md (reported line 52)May include surrounding context.

Copy this skill into your global skills directory:

bash
mkdir -p ~/.claude/skills/figma-pixel
cp -r . ~/.claude/skills/figma-pixel/

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
85% 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 · README.md (reported line 59)May include surrounding context.

Or for a specific project:

bash
mkdir -p .claude/skills/figma-pixel
cp -r . .claude/skills/figma-pixel/

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill description broadens from visual QA/reporting into directly editing implementation code and adding project assets. That expansion increases the blast radius of a skill invoked for comparison work, because it can modify application code and static resources in response to external Figma content and browser-rendered observations.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The invocation terms are broad enough to match many common UI requests, which can cause this high-privilege skill to activate in situations where the user did not specifically intend browser automation, external API access, or code modification. In context, the skill has Bash, Write, Edit, and network-capable browser behavior, so overbroad routing increases the chance of unintended sensitive actions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill states that it should 'never create working folders, scratch files, or runtime artifacts inside the implementation project directory' and that all run outputs go under the skill-owned figma-pixel-runs directory. Later, L110 instructs saving exported child-node PNGs to the implementation project's public/static directory, which contradicts the earlier prohibition against placing generated artifacts in the project tree.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
87% confidence
Finding

The skill instructs use of npx playwright without pinning an exact package version, which can fetch whatever version is current at execution time. In a security-sensitive workflow that loads pages and browser tooling, this creates supply-chain and reproducibility risk because behavior and transitive code can change unexpectedly.

Content

No source excerpt is available for this finding.