Back to skill

Security audit

查询全国油价

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward China oil-price lookup that uses a disclosed public API, with some documentation inaccuracies but no evidence of hidden access, persistence, or destructive behavior.

Before installing, be aware that the tool contacts v1.apizero.cn and sends the requested province name over HTTPS, and its output and documentation are Chinese. Treat the oil-price data as third-party API data that may be delayed or inaccurate; the package does not show hidden persistence or sensitive local access.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

文档标题和全文均以中文呈现,并将该技能描述为“中国油价查询技能”,但没有说明这是仅面向中文用户的区域性/语言性限制,也没有提供其他语言选项。根据规则,若技能强制特定语言而未提供用户选择或合理、明确的语言/区域约束说明,可构成语言/locale 政策问题。

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation first emphasizes that the API only provides province-level aggregate data and no city-level entries. It then says 'prices 数组包含该省份所有城市的油价数据' while also saying there are no separate city entries, which is an active contradiction about what the returned data represents.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
96% confidence
Finding

The skill documentation describes a Python script that performs outbound network requests to a third-party API, but the manifest header does not declare any tool scope such as allowed-tools or permissions. This creates a capability transparency and governance gap: an agent or reviewer cannot reliably tell from the skill declaration that external network access is required, which can enable unintended data egress or execution in environments that expect explicit permission boundaries.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The manifest description and main heading/content are entirely in Chinese and present the skill as operating in Chinese only. Under the policy, locale or language constraints should either be optional for users or explicitly justified as region-specific; this file does not state such an opt-in or justification.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

L015 声称技能会“自动计算油价涨跌趋势和幅度”,而后文 L274-L276 的脚本逻辑说明却表明趋势信息是“根据 API 返回的 price_change 和 price_change_trend 字段”进行展示。这不是单纯信息缺失,而是文档对实现方式作出了与实际逻辑相矛盾的表述,可能让使用者误以为技能具备独立分析能力。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The manifest description says the skill '仅支持省级查询' and describes returning prices for a queried province, which implies single-province lookup. The README additionally exposes a no-argument mode for '全国油价概览' over all 31 provinces, which is broader behavior than the manifest's stated scope.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

L244 声称 API 返回的油品名称“无空格”,并给出示例“92 号汽油而非92 号 汽油”,但该示例本身仍包含空格;同时标准化函数 L247-L251 会移除所有空白。这说明文档对输入/输出格式的描述互相冲突,可能误导维护者对该函数必要性和行为的理解。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This manifest-style JSON file uses exclusively Chinese field names and province labels, such as "省份编码" and "北京市", with no indication that the skill is intentionally China-specific or that users can choose a locale. Under the policy rule for natural-language violations, a skill that implicitly forces a specific language without opt-in or justification should be flagged.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The file’s docstring, usage text, status messages, and formatted output are all hard-coded in Chinese, with no indication that the skill is intentionally region-specific or that users may select another language. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.