Back to skill

Security audit

Shopee-商品长期趋势 | 青虎AI

Security checks for vulnerabilities and agentic risk

Overview

The skill’s Shopee trend-analysis purpose is clear, but it needs review because it tells the agent to install and update runtime tools and configure credentials automatically.

Install only if you are comfortable letting the agent set up qhkit and possibly Node/npm on the machine, store or use a Qinghu API token, and make paid Qinghu data calls after authorization. Prefer a preinstalled, pinned qhkit version and require explicit approval before any package install, upgrade, PATH/profile change, or credential configuration.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description says the skill must trigger when the user says the listed examples "或提出同类需求时必须触发", which leaves the activation scope undefined beyond two examples. This ambiguity can cause unintended invocation for loosely similar product-analysis requests because there are no explicit exclusions or negative examples.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The trigger example "这款是不是在走下坡路" is broad natural language that could describe many contexts beyond this specific monthly/quarterly/yearly Shopee long-term trend tool. Without qualifiers like platform, product-ID context, or trend-granularity constraints, it risks colliding with everyday analytical requests.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill’s stated purpose is querying Shopee product trends, but it also contains extensive environment bootstrapping logic: installing Node, installing npm packages globally, configuring tokens, and modifying runtime setup. That materially expands the agent’s authority from data retrieval into software installation and credential handling, increasing the blast radius if the skill is triggered unexpectedly or manipulated through user input.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
84% confidence
Finding

The skill instructs the agent to execute an unpinned package via npx @iqinghu/qhkit, which fetches whatever version is current at runtime. This creates a supply-chain risk: a compromised or breaking upstream release could execute unexpected code in the agent environment, especially because the skill also positions this as an automatic fallback when global install fails.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
95% confidence
Finding

This duplicated finding points to the same persistence behavior: downloading and unpacking a runtime into a user-controlled directory for reuse across commands. In the context of a narrow analytics skill, that is excessive privilege expansion and creates lasting system state changes unrelated to the core business function.

Content

Scanner excerpt · SKILL.md (reported line 95)May include surrounding context.

Linux 二进制安装(装到用户目录,无需 root;先校验官方 SHA256 再解包):

cd /tmp && curl -fsSLO https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-x64.tar.xz cd /tmp && curl -fsSL https://nodejs.org/dist/v22.22.3/SHASUMS256.txt | grep ' node-v22.22.3-linux-x64.tar.xz$' | sha256sum -c - mkdir -p "$HOME/.local/lib" && tar -xJf /tmp/node-v22.22.3-linux-x64.tar.xz -C "$HOME/.local/lib" export PATH="$HOME/.local/lib/node-v22.22.3-linux-x64/bin:$PATH"

text

Session Persistence

Medium
Category
Rogue Agent
Confidence
95% confidence
Finding

This duplicated finding points to the same persistence behavior: downloading and unpacking a runtime into a user-controlled directory for reuse across commands. In the context of a narrow analytics skill, that is excessive privilege expansion and creates lasting system state changes unrelated to the core business function.

Content

Scanner excerpt · SKILL.md (reported line 95)May include surrounding context.

Linux 二进制安装(装到用户目录,无需 root;先校验官方 SHA256 再解包):

cd /tmp && curl -fsSLO https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-x64.tar.xz cd /tmp && curl -fsSL https://nodejs.org/dist/v22.22.3/SHASUMS256.txt | grep ' node-v22.22.3-linux-x64.tar.xz$' | sha256sum -c - mkdir -p "$HOME/.local/lib" && tar -xJf /tmp/node-v22.22.3-linux-x64.tar.xz -C "$HOME/.local/lib" export PATH="$HOME/.local/lib/node-v22.22.3-linux-x64/bin:$PATH"

text

Static analysis

No suspicious patterns detected.