Back to skill

Security audit

apipay

Security checks for vulnerabilities and agentic risk

Overview

This skill is coherent, but it should go to Review because it runs an unpinned remote MCP package with a token and can receive third-party API keys without enough custody details.

Before installing, prefer a pinned and vetted `apipay-mcp` release, run the MCP server with only the Apipay token in its environment, and use revocable low-quota tokens. If using BYOK slugs, create dedicated vendor keys with strict limits and confirm how Apipay stores, deletes, and protects those keys.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:45
Finding

Unpinned npm Package Is Downloaded and Executed Automatically

Content
View full analysis
" } } } } ``` ### Technical Analysis The recommended command uses `npx -y apipay-mcp` without specifying an exact package version or integrity hash. The `-y` option suppresses the package-installation confirmation, allowing npm to retrieve and execute the version currently resolved by the registry. The reviewed project does not provide a lockfile, verified package digest, vendored dependency, or immutable source reference. Consequently, the code executed on a user's system can change after this Skill has been reviewed. A compromised npm maintainer account, malicious package update, registry compromise, or dependency-level supply-chain attack could introduce arbitrary code. The package also receives `APIPAY_TOKEN` through its environment. If a malicious release is executed, it could read and exfiltrate that token alongside any other information accessible to the process. ### Attack Path 1. An attacker compromises the npm account, package publication process, or dependency chain associated with `apipay-mcp`. 2. The attacker publishes a malicious package release under the expected package name. 3. A user follows the Skill's documented MCP configuration. 4. `npx -y apipay-mcp` resolves and downloads the currently available package without interactive confirmation. 5. npm lifecycle logic or the package runtime executes with the user's local process privileges. 6. The malicious code reads `APIPAY_TOKEN`, other accessible environment variables, local files, or agent resources and sends them to an attacker-controlled system or performs other unauthorized actions. ### Impact Assessment Successful exploitation could provide ...[truncated 706 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:31
Finding

External Vault Receives Third-Party Vendor API Credentials

Content
View full analysis
Remediation
View remediation
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)

Rp1

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding

The manifest description also references npx -y apipay-mcp without a pinned version, repeating the same unsafe installation pattern in a prominent location likely to be copied directly by users or tools. Because this skill handles authentication tokens, executing an unpinned remote package increases the chance of credential theft or arbitrary code execution if the upstream package changes.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The skill instructs users to run npx -y apipay-mcp without pinning a specific package version or integrity hash. This creates a supply-chain risk: if the package is updated maliciously, compromised, or typo-squatted, agents may execute attacker-controlled code at install/runtime, potentially exposing the bearer token and any accessible local data.

Content

No source excerpt is available for this finding.