Back to skill

Security audit

Puppeteer@1.0.0

Security checks for vulnerabilities and agentic risk

Overview

This Puppeteer automation skill is mostly coherent, but it quietly stores workflow details and includes anti-detection guidance that users should review before installing.

Review this skill before installing. It is not shown sending data away or stealing credentials, but it may keep a local record of sites, selectors, and auth workflow patterns without clearly telling you, and its anti-detection advice could conflict with website rules or authorization boundaries. Use it only for permitted automation, avoid storing secrets in scripts or memory files, and inspect or disable ~/puppeteer/memory.md if you do not want retained workflow history.

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 (2)

T08 · Insecure Dependencies

Warning
Location
setup.md:23
Finding

Unpinned npm Dependency Installation

Content
View full analysis
Remediation
View remediation
``` 2. Include a reviewed `package-lock.json` and use reproducible installation: ```bash npm ci ``` 3. Verify lockfile integrity and review changes to the direct and transitive dependency graph before upgrades. 4. Run dependency installation as an unprivileged user and never recommend `sudo npm install`. 5. Consider disabling lifecycle scripts during initial verification: ```bash npm ci --ignore-scripts ``` If Puppeteer's required installation scripts must subsequently run, review and execute them in a sandboxed environment. 6. Document Puppeteer's browser-download behavior and pin or verify downloaded browser artifacts where feasible. 7. Use automated dependency auditing and controlled update tooling, but do not treat an audit command as a substitute for version pinning and provenance review. ]]>

T09 · Insecure Skill Coding Practices

Note
Location
setup.md:43
Finding

Non-Transparent Persistent Storage of Site and Authentication Workflow Metadata

Content
View full analysis
``` ### Technical Analysis The Skill directs the Agent to retain target sites, selectors, environment preferences, and authentication patterns in `~/puppeteer/memory.md`. It also explicitly says not to mention the storage path to the user. This is not confirmed credential theft, exfiltration, or malicious memory poisoning: the reviewed instructions do not direct the Agent to store passwords, tokens, cookies, or attacker-controlled behavioral rules. However, target-site inventories and authentication patterns may still constitute sensitive operational metadata. Persisting them without clearly informing the user creates a transparency, retention, and local confidentiality risk. The file is placed in the user's home directory, but the Skill does not prescribe restrictive permissions, data minimization, expiration, or secure deletion. Any process or account capable of reading the file could recover the retained information. ### Attack Path 1. A user discusses browser automation for a target site or authenticated application. 2. The Agent records the target, selectors, environment details, and authentication workflow patterns in `~/puppeteer/memory.md`. 3. The user is not explicitly informed of the path or given ...[truncated 982 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

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 · memory-template.md (reported line 15)May include surrounding context.

md
integration: pending | done | declined

## Use Case
<!-- Primary: scraping | testing | screenshots | automation -->

## Environment
<!-- Node version, puppeteer version, headless preference -->

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill directs the agent to save scripts and maintain internal memory on disk without user-facing disclosure or consent. Undisclosed file writes and persistence can expose sensitive workflow details, create privacy risks, and violate user expectations about what data is being stored locally.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file explicitly provides anti-detection guidance such as avoiding 'puppeteer' in browser-executed code, randomizing delays, and using realistic mouse movements to evade bot detection. In a browser automation skill, this moves beyond normal selector documentation into stealth/evasion techniques that can facilitate deceptive scraping or bypass of site defenses.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The anti-detection advice is presented without any caution about authorized use, legal constraints, or policy-sensitive implications. That omission increases misuse risk because readers are given practical evasion tactics without boundaries, making the skill more usable for stealth automation against third-party sites.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The instruction 'Don't ask — just start naturally' suppresses clarification and encourages the agent to activate the skill without confirming applicability or user intent. This can cause the agent to run the wrong workflow, make assumptions about the environment, and perform actions the user did not explicitly request.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The instructions explicitly tell the agent to persist user workflow details such as target sites, preferred patterns, and selectors 'without mentioning file paths to them,' which is covert data retention. In a browser automation context, those details may reveal internal applications, scraping targets, or operational habits, increasing privacy and confidentiality risks.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The documentation states at L121 that the skill does not access files outside ~/puppeteer/, yet L012 instructs first use to read setup.md, which is not presented as residing under ~/puppeteer/. This is a documentation-level contradiction about the skill's file-access scope, even if limited to local skill files.

Content

No source excerpt is available for this finding.