Back to skill

Security audit

Ethereum L2 Analytics 以太坊L2分析

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly Ethereum L2 analysis content, but it bundles under-disclosed paid verification, wallet-address transmission, and an exposed payment API key.

Review this before installing: it appears to be a paid Chinese-language L2 analytics skill with static data, not a reliable live-monitoring system. Do not provide a wallet address unless you accept that it may be sent to SkillPay, and treat any investment or bridge recommendations as informational rather than current financial advice.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Warning
Location
payment.py:15
Finding

Hard-Coded Payment API Credential Distributed with the Skill

Content
View full analysis
`. 5. Exercise any API operations permitted by that credential, potentially including payment-verification requests, until the key is revoked or rejected. ### Impact Assessment The exposed credential may allow unauthorized use of the associated SkillPay API identity. Potential impact includes API quota consumption, payment-verification probing, operational disrupt ...[truncated 359 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
payment.py:27
Finding

Undisclosed Transmission of a User Wallet Address to an External Payment Service

Content
View full analysis
dict: """ 验证用户支付状态 Args: user_address: 用户钱包地址 (可选) Returns: dict: 验证结果 """ try: headers = { "Authorization": f"Bearer {SKILLPAY_API_KEY}", "Content-Type": "application/json" } data = json.dumps({ "skill_slug": SKILL_SLUG, "user_address": user_address, "timestamp": datetime.utcnow().isoformat() }).encode('utf-8') req = urllib.request.Request( f"{SKILLPAY_API_URL}/verify", data=data, headers=headers, method='POST' ) with urllib.request.urlopen(req, timeout=10) as response: result = json.loads(response.read().decode('utf-8')) return result ``` ### Technical Analysis `verify_payment()` sends the supplied wallet address, the Skill identifier, and a timestamp to `https://api.skillpay.io/v1/verify`. Although a public wallet address is not a private key, it is a persistent pseudonymous identifier that can be correlated with public blockchain transactions and usage times. Remote payment verification is related to the package's enabled pricing configuration. However, the primary `SKILL.md` instructions describe L2 analytics and do not disclose that a wallet address will be transmitted to SkillPay, identify the destination, explain retention, or request informed consent. This network behavior therefore exceeds the behavior clearly disclosed by the Skill's main functional documentation. The request uses HTTPS, so plaintext transport was not observed. The finding concerns data minimization, transparency, and external disclosure rather than evid ...[truncated 1013 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
payment.py:68
Finding

Payment Verification Can Be Disabled Through an Environment Variable

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (17)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

声明描述的核心功能是 Ethereum L2 生态分析与情报生成,但提供的代码片段实际只处理访问控制/付费验证,主用途明显不同。代码访问的资源是 SkillPay 支付服务,而不是任何 Optimism、Arbitrum、Base、zkSync、Starknet、TVL、桥接或链上分析数据源。虽然付费校验可被视为某个技能的配套基础设施,但在当前片段中它是唯一可见行为,且声明中完全未提及收费验证或支付网关,因此构成明显描述-行为不匹配。另有安全问题:代码硬编码了 API key,但这不改变其与声明用途不一致的结论。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The description presents a comprehensive L2 ecosystem intelligence and analysis skill, including deep protocol analysis, live TVL monitoring, cross-chain bridge analysis, fund-flow tracking, and investment opportunity discovery. The supplied code only produces a simple report composed of static mock data for L2 TVL rankings, bridge TVL, and broad category comparisons. Although the topic domain matches Ethereum L2, the implemented behavior is materially narrower and lacks several core advertised capabilities. This is therefore a description-to-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The description presents a broad, comprehensive L2 ecosystem intelligence and monitoring tool with deep analysis across major Ethereum L2s, including TVL monitoring, bridge analysis, capital flow tracking, technical comparisons, and investment opportunity discovery. The supplied code does something narrower: it evaluates one L2 project at a time using hardcoded scoring thresholds and produces a report with strengths, weaknesses, and an investment recommendation. While this partially overlaps with 'assessing Rollup projects' and 'investment opportunity identification,' the primary behavior is a static rubric-based scorer, not a comprehensive ecosystem analysis platform. There is no evidence of network access, protocol-specific data ingestion, monitoring, bridge analytics, or comparative multi-project analysis. Therefore the declared description materially overstates the implemented capabilities.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description and primary documentation are written in Chinese, and the skill presents itself as the default interaction mode without any indication that users may choose another language. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicit and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description is written entirely in Chinese, indicating the skill is presented as Chinese-language only. Under the policy, forcing a specific language without offering user choice or documenting a justified locale restriction is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The module description and printed payment guidance are written in Chinese, and the code does not offer any locale selection or user opt-in for that language. This can violate language or locale policy when a skill forces a specific language for user-facing interactions.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The file introduces payment-gating and monetization logic that is not aligned with the stated purpose of an Ethereum L2 analytics skill. Hidden or undeclared monetization changes the trust model, can surprise users, and may be used to block access or steer them to external payment infrastructure without prior disclosure.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
99% confidence
Finding

The module hardcodes a live SkillPay API endpoint together with a bearer API key, enabling external transmission and exposing a reusable secret in source code. Hardcoded credentials are highly dangerous because anyone with file access can extract the key, impersonate the skill, query payment status, or abuse the remote billing API.

Content

Scanner excerpt · payment.py (reported line 15)May include surrounding context.

python
from datetime import datetime

# SkillPay API 配置
SKILLPAY_API_URL = "https://api.skillpay.io/v1"
SKILLPAY_API_KEY = "sk_f03aa8f8bbcf79f7aa11c112d904780f22e62add1464e3c41a79600a451eb1d2"
SKILL_SLUG = "shenmeng-ethereum-l2-analytics"
PRICE = "0.01"  # USDT

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The code sends user payment-verification data, including wallet address and timestamp, to a third-party API without any just-in-time notice or consent flow. In the context of a blockchain analytics skill, wallet addresses are sensitive because they enable transaction-history correlation and profiling, so undisclosed transmission increases privacy and compliance risk.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The environment variable SKILLPAY_SKIP_VERIFICATION allows payment enforcement to be bypassed entirely, creating a built-in authentication and authorization backdoor. Even if intended for testing, such a switch is dangerous when present in production code because anyone controlling the runtime environment can disable verification and gain unpaid access.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This guide gives concrete recommendations for moving funds across bridges, choosing providers, and handling urgent transfers, but it does not prominently warn users about irreversible loss from sending to wrong addresses, phishing sites, fake bridge frontends, or malicious token approvals. In a crypto-asset context, those omissions materially increase user-harm risk because the document may be used as actionable operational guidance for real fund transfers.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code file contains natural-language descriptions and user-facing output in Chinese, and the script does not provide any opt-in, fallback, or documented justification for enforcing that locale. The policy allows locale constraints only when the user is given a choice or the restriction is clearly documented as justified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes an Ethereum L2 analytics and monitoring tool, which implies read-oriented data collection and reporting. In addition to generating analytics output, the script persists a JSON report under /tmp, which is a side effect not stated in the manifest description.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This Python file contains natural-language descriptions and report strings entirely in Chinese, indicating the skill is designed to operate in a fixed language. The file does not provide any user opt-in, locale selection, or documented justification for restricting output to Chinese, which can violate language/locale policy requirements.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

A natural-language policy issue exists when a skill or reference material forces a specific language without user opt-in. This file presents all guidance solely in Chinese and does not indicate that the locale is optional or intentionally restricted to a Chinese-language audience for a documented reason.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

This markdown file is entirely presented in Chinese, starting with the title, and does not indicate that language selection is optional or user-configurable. Under the policy, forcing a specific language without user opt-in is a natural-language locale violation.

Content

No source excerpt is available for this finding.