Back to skill

Security audit

taobao-shopping

Security checks for vulnerabilities and agentic risk

Overview

This Taobao shopping skill is purpose-aligned, but it relies on a logged-in browser session and can read or change account shopping data through an unpinned external tool.

Review before installing. Use only a dedicated Chrome profile for Taobao, avoid shared browser profiles, and confirm any cart-changing action before running it. Prefer a pinned and verified OpenCLI version and inspect the browser extension permissions/source before loading it.

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:16
Finding

Unpinned Globally Installed Dependency with Authenticated Browser Access

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 16-19
Vulnerability Type: Unpinned third-party dependency and unaudited browser extension
Risk Level: Medium

Relevant code snippet:

bash
npm install -g @jackwener/opencli

The same prerequisite section instructs the user to load the package's extension/ directory as an unpacked Chrome extension and states that all commands depend on cookie authentication.

Technical Analysis

The skill requires users to install the latest available version of @jackwener/opencli globally without specifying an audited version or package integrity value. A global npm installation can run package lifecycle scripts and places executable code in the user's global environment.

The installed component is also expected to interact with an unpacked Chrome extension and an existing Taobao-authenticated browser session. This creates a high-trust supply-chain boundary: the dependency and extension may execute locally and interact with authenticated browser state. The project does not provide a lockfile, integrity hash, reviewed source revision, extension manifest, or bundled extension source from which the required privileges could be verified.

This finding does not establish that the named dependency is malicious. The weakness is that an unpinned and externally maintained package is granted substantial trust without reproducible dependency verification.

Attack Path

  1. An attacker compromises the npm package, its maintainer account, publication pipeline, or a transitive dependency.
  2. The attacker publishes a modified release under the same package name.
  3. A user follows the documented global installation command, which resolves to the compromised current release.
  4. Malicious package code or npm lifecycle scripts execute with the installing user's privileges.
  5. The user loads or operates the associated unpacked browser extension.
  6. The compromised compo ...[truncated 915 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin @jackwener/opencli to an exact, reviewed version rather than installing the latest release implicitly.
  2. Publish and verify the expected npm integrity hash and provide a lockfile or equivalent reproducible installation mechanism.
  3. Link to the authoritative source repository and identify the exact reviewed commit corresponding to the pinned package version.
  4. Include the browser extension source and manifest in the auditable package, or provide cryptographic verification for the exact extension artifact.
  5. Restrict extension host permissions to the minimum required Taobao and Tmall origins, and avoid broad permissions such as access to all websites.
  6. Disable or separately audit npm lifecycle scripts before installation where operationally feasible.
  7. Prefer a project-local installation or an isolated environment over a global package installation.
  8. Document the browser data and account actions accessible to the extension, and require explicit user confirmation before state-changing operations.
  9. Conduct source and dependency review whenever the pinned package or extension version changes.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly depends on a Chrome session already logged into Taobao and can retrieve account-scoped shopping data such as cart contents, pricing, and reviews without any visible privacy warning or consent guidance in the skill description. This is dangerous because an agent could invoke the skill in a way that exposes personal shopping interests or account data from the authenticated browser context without the user clearly understanding that logged-in data will be accessed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill documents an account-modifying action, add-cart, that performs UI automation against a logged-in Taobao session and can change the user's shopping cart, yet it does not include a clear warning that this mutates account state. This is dangerous because an agent may trigger the command from a natural-language request or misunderstanding, causing unintended additions to the user's cart and potential downstream purchase confusion, tracking, or privacy effects.

Content

No source excerpt is available for this finding.