T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unaudited Third-Party MCP Package Is Installed Globally and Executed with an API Credential
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 5–20 and 48–71
Vulnerability Type: Third-party dependency and supply-chain exposure
Risk Level: MediumVulnerable Code Snippet
yaml metadata: openclaw: requires: env: - PIPIADS_API_KEY bins: - npm install: command: npm args: - install - -g - "pipiads-mcp-server@1.0.3" primaryEnv: PIPIADS_API_KEY emoji: "📊" homepage: https://www.pipiads.com mcpServers: pipiads: command: pipiads-mcp-server env: PIPIADS_API_KEY: "{{PIPIADS_API_KEY}}"markdown ## Trust & Execution Model This skill installs `pipiads-mcp-server@1.0.3` from the npm registry and runs it locally as an MCP server. This means: - npm install scripts may run during installation - the installed package executes on the local machine - all API access is mediated through that local MCP server If you require stricter controls, review the npm package contents and run it in an isolated environment before using it on a primary workstation. ## Verification This skill depends on: - official website: `https://pipiads.com/` - API portal: `https://www.pipispy.com/` - npm package: `pipiads-mcp-server@1.0.3` Review the package source, publisher, and release history if you need stronger supply-chain assurance before installation.Technical Analysis
The Skill directs the host to retrieve
pipiads-mcp-server@1.0.3from the npm registry, install it globally, and execute its binary while providingPIPIADS_API_KEYin the process environment. The audited project contains no local copy of the server source, lockfile, expected registry integrity hash, cryptographic signature, or other mechanism that independently verifies the retrieved artifact.Pinning the package version reduces unintended version drift, but it does not establish the integrity or trustworthiness of that release. If the package artifac ...[truncated 2752 chars]
- Remediation
View remediation
Remediation Suggestions
-
Verify the exact artifact
- Record and enforce the expected npm integrity hash for
pipiads-mcp-server@1.0.3. - Use a lockfile or equivalent immutable dependency manifest.
- Confirm package provenance, publisher identity, source repository, and release history.
- Record and enforce the expected npm integrity hash for
-
Avoid global installation
- Install the dependency into a dedicated project directory rather than using
npm install -g. - Invoke the project-local binary through an explicit, immutable path.
- Prevent the package from replacing or shadowing unrelated global tools.
- Install the dependency into a dedicated project directory rather than using
-
Restrict installation-time execution
- Disable npm lifecycle scripts with
--ignore-scriptswhere compatible. - If lifecycle scripts are required, inspect and allowlist them before execution.
- Perform installation in an isolated build environment without production credentials.
- Disable npm lifecycle scripts with
-
Sandbox the MCP process
- Run it in a container or restricted service account.
- Deny access to unrelated home-directory files, SSH keys, credential stores, and host sockets.
- Restrict outbound network access to verified PipiAds endpoints.
- Use read-only filesystems and resource limits where practical.
-
Reduce credential exposure
- Supply a narrowly scoped, revocable API token with the minimum required permissions.
- Keep the token unavailable during package installation.
- Rotate the token after suspected package or publisher compromise.
- Apply spending and usage limits to reduce the consequences of unauthorized API calls.
-
Audit before deployment
- Vendor or independently review the MCP implementation and its transitive dependencies.
- Scan the resolved package for lifecycle scripts, dynamic code retrieval, credential access, and undeclared network destinations.
- Revalidate the artifact before use on primary or sensitive workstations.
-
