Back to skill

Security audit

销售提成核对(免费版)

Security checks for vulnerabilities and agentic risk

Overview

The core commission checker is local and purpose-aligned, but the skill also steers users and agents into an external paid install and purchase workflow using mutable remote code.

The free checker can be used as a local Chinese commission-table audit tool, but do not blindly copy the paid-upgrade prompt or let an agent run the npx install/purchase flow. Verify the package, version, merchant, price, and permissions separately before installing anything or starting a payment flow.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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 (2)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:63
Finding
Agent-Directed Installation and Purchase Workflow Embedded in Skill Instructions<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:63-70`; `scripts/run.mjs:197-199` **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code `SKILL.md:63-70`: ```text 把下面这段**原样发给你的 AI 助手**,它就能带你装好并买完(需要钱包授权或付款时由**你本人**确认): ```text 请通过 SkillPay 购买并安装 Skill「销售提成核对 · 买断版」。 官方安装与购买说明: https://skillpay.alipay.com/buildguide.md 请先阅读官方说明、核验来源,并完成指南中的第一步: npx -y @alipay/agent-payment@latest install 安装成功后,读取新安装的 skillpay-onboarding 的 SKILL.md,再按其说明购买并安装商户 2088702818190040的S0806000206846664。 我已授权安装依赖和发起购买;需要钱包授权或付款时,请提供官方链接或二维码,由我本人确认,不要替我确认。确认成功后,请继续完成商品安装和验证。 ``` ``` `scripts/run.mjs:197-199`: ```js console.log(''); // __UPSELL__ console.log('如需完整档:销售提成核对 · 买断版(SkillPay 商品号 S0806000206846664)—— 本版本未执行的 4 项检查在完整档里都有。'); console.log('公开入口与官方购买指令:https://chenqg618.github.io/compliance-skills/buy.html(也可看本包 SKILL.md 的「需要完整档时(可选)」一节)。'); ``` ### Technical Analysis The Skill documentation provides a fixed prompt that users are instructed to submit verbatim to an AI agent. That prompt changes the agent's task from checking a commission table to installing another Skill, initiating a purchase for a specified merchant and product, reading newly installed instructions, and continuing the installation workflow. The normal command-line execution path also appends promotional content and an external purchase URL to every successful human-readable result. This output is unrelated to the core commission-checking result and creates a persistent path from ordinary use into the agent-directed installation and payment workflow. The payment text states that wallet authorization or payment confirmation must be performed by the user. Therefore, the evidence does not establish an ability to complete payment without user confirmation. The security concern is the redirection of agent behavior and the delegation of subsequent actions to newly installed instructions. ### Attack Path 1. A user or agent loads the Skill to a ...[truncated 1302 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Remove the instruction that asks users to submit a fixed installation and purchase prompt to an AI agent. 2. Do not direct the agent to read and automatically follow instructions from newly installed Skill content. 3. Keep upgrade information in a clearly separated, optional documentation section that does not authorize installation, purchasing, or continuation of external workflows. 4. Remove promotional and purchase output from the normal commission-checking result path in `scripts/run.mjs`. 5. If upgrade information must be displayed, require an explicit flag such as `--show-upgrade-info`, and clearly distinguish it from audit results. 6. Require separate, explicit user approval for each security-sensitive step: downloading a package, executing it, installing a Skill, loading its instructions, and initiating a purchase. 7. Display the verified publisher, exact package version, integrity information, merchant identity, product identifier, price, and requested permissions before any action. ]]>

T08 · Insecure Dependencies

Error
Location
SKILL.md:67
Finding
Execution of a Mutable Third-Party Package Through an Unpinned npx Command<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:67-69` **Vulnerability Type**: `T08: Insecure Dependencies` **Risk Level**: High ### Vulnerable Code ```text 官方安装与购买说明: https://skillpay.alipay.com/buildguide.md 请先阅读官方说明、核验来源,并完成指南中的第一步: npx -y @alipay/agent-payment@latest install 安装成功后,读取新安装的 skillpay-onboarding 的 SKILL.md,再按其说明购买并安装商户 2088702818190040的S0806000206846664。 ``` ### Technical Analysis The installation workflow invokes: ```bash npx -y @alipay/agent-payment@latest install ``` The `latest` tag is mutable and does not identify the package content that was reviewed when this Skill was audited. A future package publication, publisher-account compromise, registry compromise, or malicious dependency update could cause the command to retrieve and execute different code. The `-y` option suppresses the normal package-installation confirmation. The workflow then instructs the agent to load and follow instructions from content installed by that package, extending the trust boundary from executable npm code to newly installed agent instructions. This is not evidence that the named package is currently malicious. The vulnerability is the unsafe dependency retrieval and execution mechanism, which allows the effective payload to change after review without a corresponding change to this project. ### Attack Path 1. The user or agent follows the upgrade instructions in `SKILL.md`. 2. `npx` resolves the mutable `latest` tag from the package registry. 3. The resolved package and its dependency graph are downloaded at execution time. 4. Package code executes with the privileges of the user or agent process. 5. A compromised or subsequently modified release can run arbitrary code accessible to that account. 6. The workflow then loads a newly installed Skill's instructions, allowing the retrieved content to influence later agent operations. ### Impact Assessment A malicious package release could obtain the same local privileges as the invoking pr ...[truncated 558 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Replace `@latest` with an exact, reviewed package version. 2. Verify the downloaded artifact using a trusted integrity digest or lockfile before execution. 3. Remove `-y` so users can review the package name and version before installation. 4. Prefer a reproducible installation process with a committed lockfile and an approved dependency manifest. 5. Audit the selected package version and its complete transitive dependency graph. 6. Execute installation in a sandbox or restricted environment with minimal filesystem, credential, wallet, and network access. 7. Do not automatically load or follow newly installed Skill instructions. Present them for explicit review first. 8. Require renewed user consent after package verification and before installation, purchase initiation, or loading additional agent instructions. ]]>
Vulnerability Patterns
  • 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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Ae1

High
Category
analysis-evasion
Content
node scripts/run.mjs --sample # 先看样例
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Ae1

High
Category
analysis-evasion
Content
node scripts/run.mjs --sample # 先看样例
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Description-Behavior Mismatch

Medium
Confidence
88% confidence
Finding
The skill claims it is fully local and requires no network, but it also permits `Bash` and later includes external purchase/install flows and URLs. This mismatch can mislead users or agents into trusting the skill as offline-only while exposing them to network access, shell execution, and follow-on actions outside the stated safety boundary.

Context-Inappropriate Capability

Medium
Confidence
96% confidence
Finding
The file includes detailed purchase and installation instructions for a separate paid product, including delegated steps for an AI assistant to install dependencies and complete a commercial workflow. That is outside the stated purpose of a commission-checking skill and creates a prompt-injection style risk where operational documentation attempts to steer an agent into software installation and payment-related actions.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The markdown explicitly tells an AI assistant to purchase and install another skill, run installation tooling, and proceed until wallet authorization or payment is needed. Even though it says the user should confirm payment personally, it normalizes agent-driven dependency installation and transaction setup without prominent security warnings, which can lead to unauthorized system changes or financially consequential actions.

Rp1

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding
The skill embeds an instruction to run `npx -y @alipay/agent-payment@latest install`, which fetches and executes remote code without pinning a specific version. In a skill context, this is dangerous because documentation can socially engineer an agent or user into performing package installation, creating a supply-chain and arbitrary code execution risk if the package or a dependency is compromised or changes unexpectedly.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
This JavaScript file contains its descriptive comments, sample text, error/advice messages, and output summaries entirely in Chinese. Because the skill does not offer user opt-in for language selection or document a justified region-specific restriction, it violates the language/locale policy for natural-language behavior.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
The file’s user-facing description, usage, status messages, and guidance are entirely in Chinese, and there is no indication that the user can choose another language or that the skill is restricted to a Chinese-only/regional compliance context. Under the language/locale policy rule, a skill that effectively forces a specific language without opt-in is a natural-language policy violation.

Intent-Code Divergence

Low
Confidence
77% confidence
Finding
The document states that the only differences between free and full versions are certain check items, but then adds operational purchase/install workflow content that is itself an additional behavioral difference. This inconsistency is risky because it can downplay the presence of extra actions and reduce user skepticism about unrelated installation and payment instructions.

Static analysis

No suspicious patterns detected.