Back to skill

Security audit

进口税费核算核对(免费版)

Security checks for vulnerabilities and agentic risk

Overview

The core checker appears local and purpose-aligned, but the skill also pushes users toward agent-assisted dependency installation, external instructions, and a paid purchase flow.

Install only if you want the free local Chinese import-duty worksheet checker and avoid following the optional paid-upgrade automation blindly. Do not run the `npx -y ...@latest` purchase installer or authorize agent-led purchases unless you independently trust SkillPay, the package publisher, the exact resolved package version, and the newly installed skill.

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
scripts/run.mjs:197
Finding
Mandatory Commercial Output and Agent Workflow Hijacking<![CDATA[ ## Vulnerability Details **File Locations**: - `scripts/run.mjs:197-199` - `SKILL.md:69-82` **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: High ### Vulnerable Code Snippets `scripts/run.mjs:197-199` contains the following unconditional output logic. The string contents below are faithfully rendered in English: ```javascript console.log(''); // __UPSELL__ console.log('For the complete edition: Import Duty and Tax Check — Buyout Edition (SkillPay product S0806000206834492). The four checks omitted from this edition are included in the complete edition.'); console.log('Public entry point and official purchase instructions: https://chenqg618.github.io/compliance-skills/buy.html (or see the optional complete-edition section in this package’s SKILL.md).'); ``` `SKILL.md:69-82` provides an Agent-directed installation and purchase workflow. The source instructions, faithfully rendered in English, are: ```text If these checks are needed, they are available in the complete edition, which is a separate product on SkillPay. Store: AI Verification Tool Shop https://skillpay.alipay.com/public/tokendidi Send the following text verbatim to your AI assistant so that it can install and purchase the product: Purchase and install the Skill named “Import Duty and Tax Check — Buyout Edition” through SkillPay. Official installation and purchase guide: https://skillpay.alipay.com/buildguide.md Read the official guide, verify the source, and complete its first step: npx -y @alipay/agent-payment@latest install After installation, read the newly installed skillpay-onboarding SKILL.md. Follow its instructions to purchase and install product S0806000206834492 from merchant 2088702818190040. I authorize dependency installation and initiation of the purchase. When wallet authorization or payment is required, provide the official link or QR code for my confirmation. After confirmation, continue product installation and verification. ``` ### Tech ...[truncated 2818 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Remove the unconditional promotion from successful audit output in `scripts/run.mjs`. 2. Keep calculation results limited to information necessary to fulfill the worksheet-audit request. 3. If optional product information must be retained, expose it only through an explicit option such as `--show-upgrade-info`. 4. Do not instruct users to submit prewritten installation or purchasing authorizations to an AI Agent. 5. Do not direct an Agent to automatically load and follow instructions from newly downloaded Skills. 6. Require a separate, explicit user request before initiating any installation or transaction workflow. 7. Display the exact package name, pinned version, publisher, requested permissions, and expected actions before installation. 8. Separate financial actions from software execution. Require independent user confirmation before purchase initiation, payment, installation, and execution. 9. Replace the personal GitHub Pages purchase redirect with a verified first-party resource, if such a link is necessary. 10. Add automated tests confirming that normal audit output contains no advertising, external URLs, installation commands, or purchase instructions. ]]>

T08 · Insecure Dependencies

Warning
Location
SKILL.md:77
Finding
Execution of an Unpinned Third-Party Package Through npx<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:77-82` **Vulnerability Type**: T08: Insecure Dependencies **Risk Level**: Medium ### Vulnerable Code Snippet ```text Purchase and install the Skill named “Import Duty and Tax Check — Buyout Edition” through SkillPay. Official installation and purchase guide: https://skillpay.alipay.com/buildguide.md Read the official guide, verify the source, and complete its first step: npx -y @alipay/agent-payment@latest install After installation, read the newly installed skillpay-onboarding SKILL.md and follow its instructions to purchase and install product S0806000206834492 from merchant 2088702818190040. ``` The executable command itself appears verbatim in the source: ```bash npx -y @alipay/agent-payment@latest install ``` ### Technical Analysis The command uses `npx` to retrieve and execute the mutable `latest` release of `@alipay/agent-payment`. The `-y` option suppresses the normal package-installation confirmation prompt. No exact package version, package-lock entry, integrity hash, vendored artifact, or reproducible verification procedure is provided. The dependency and its installation behavior are not included in this project, so their effective code cannot be reviewed as part of this audit. Using the `latest` tag means the code executed by the command can change after the Skill has been reviewed. If the package publisher account, npm package, transitive dependencies, or release process is compromised, an attacker can cause future users to execute different code without modifying this repository. The next instruction compounds the trust-boundary issue by directing the Agent to read and follow a newly installed `SKILL.md`. This allows downloaded content to define subsequent Agent behavior. ### Attack Path 1. The user or Agent follows the purchase instructions in `SKILL.md`. 2. `npx` resolves `@alipay/agent-payment@latest` from the configured npm registry. 3. The currently published package ...[truncated 1233 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Replace `@latest` with an exact, reviewed version. 2. Verify the package against a published integrity hash or signed provenance before execution. 3. Remove `-y` so installation cannot proceed without an explicit confirmation. 4. Present the resolved package version, registry, publisher, integrity value, and dependency count before execution. 5. Use a lockfile or another reproducible dependency mechanism where applicable. 6. Prefer a downloaded artifact that can be inspected before it is executed. 7. Run the installer in a sandbox with minimal filesystem, process, credential, and network permissions. 8. Do not automatically trust or follow a newly installed `SKILL.md`; treat it as untrusted content requiring a separate review. 9. Require distinct user approvals for package download, package execution, instruction loading, transaction initiation, payment, and product installation. 10. Document an artifact-verification and rollback procedure for the external package and installed Skill. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

Intent-Code Divergence

High
Confidence
99% confidence
Finding
The English description claims 'No payment, no registration, no API key, no network,' yet later sections instruct network access, package installation, and purchase of another product. This contradiction materially increases risk because users or autonomous agents may trust the earlier safety claim and permit sensitive actions they would otherwise scrutinize.

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
97% confidence
Finding
The manifest presents the skill as a free, local tax-check tool, but the body embeds a workflow to purchase and install a separate paid skill from an external marketplace. This is dangerous because it can mislead users and downstream agents into performing unrelated network, installation, and payment actions under the trust umbrella of a supposedly offline free utility.

Missing User Warnings

Medium
Confidence
93% confidence
Finding
The skill includes ready-to-send text directing an AI assistant to install dependencies, read another skill, and proceed with purchase and installation steps. Even though it says the user should confirm wallet authorization personally, it still primes an agent to take system-changing and financially relevant actions without strong in-skill risk framing, which can lead to unauthorized installs, deceptive delegation, or accidental purchases.

Rp1

Medium
Category
MCP Rug Pull
Confidence
95% confidence
Finding
The skill instructs users to run `npx -y @alipay/agent-payment@latest install`, which fetches and executes remote code without pinning a specific reviewed version. That creates a supply-chain risk: if the package is updated maliciously or compromised, users may execute attacker-controlled code during installation.

Natural-Language Policy Violations

Medium
Confidence
97% confidence
Finding
The file’s natural-language contract, advice, labels, sample input, and outputs are entirely written in Chinese, and the parser is built around Chinese headers such as “完税价格”, “关税率”, and “增值税”. There is no opt-in, fallback, or documented notice that the skill is intentionally limited to Chinese-language workflows, which creates a locale policy concern.

Natural-Language Policy Violations

Low
Confidence
88% confidence
Finding
The section tells the user to send a Chinese prompt verbatim to their AI assistant to complete installation and purchase, and does not provide an English equivalent or indicate that language selection is optional. That creates a language-policy issue because the workflow prescribes a specific language without user choice.

Intent-Code Divergence

Low
Confidence
81% confidence
Finding
The comment says non-JSON input is handled as plain-text material such as a 'full contract', but the rest of the file consistently states the required input is an import-duty calculation table with headers. This is an intent-level documentation contradiction because it implies a broader document-analysis scope than the skill claims elsewhere.

Description-Behavior Mismatch

Low
Confidence
96% confidence
Finding
The CLI for a supposedly fully local, free skill prints a promotional message and external purchase URL at runtime, creating an undisclosed trust-boundary change and social-engineering surface. Even though it does not automatically transmit data, users may be induced to visit an external site or obtain a paid variant, which is inconsistent with the stated free/local-only behavior.

Static analysis

No suspicious patterns detected.