dex-arbitrage
Skill contains a hardcoded API key exposed in source code and makes undeclared network requests, but scripts are benign calculators and generators without malicious execution capabilities.
A BILLING_API_KEY is hardcoded directly in payment.py line 12. This API key is exposed in the package distribution and could be stolen if the source code is accessed. API keys should be stored in environment variables, not hardcoded.
payment.py:12 为什么得出这个结论
3/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 1 个高危 IOC 或外联信号。
报告包含 0 步攻击链,另有 1 项高危或严重发现。
发现 1 项需要关注的依赖或供应链线索。
风险分是怎么被拉高的
BILLING_API_KEY hardcoded in payment.py:12 - exposed in package distribution
Scripts make requests to skillpay.me and crypto APIs not declared in SKILL.md
最关键的证据
Hardcoded API Key in Source Code
A BILLING_API_KEY is hardcoded directly in payment.py line 12. This API key is exposed in the package distribution and could be stolen if the source code is accessed. API keys should be stored in environment variables, not hardcoded.
payment.py:12 Undeclared Network Access
SKILL.md does not declare any network permissions, but scripts make requests to external services: skillpay.me (billing), thegraph.com (DEX data), coingecko.com (prices), curve.fi (pool data). This violates the doc-to-code matching principle.
SKILL.md:1 Unpinned Dependency (requests library)
payment.py uses 'import requests' without version pinning, which could allow malicious updates.
payment.py:3 声明能力 vs 实际能力
payment.py:25 requests.get(f'{BILLING_API_URL}/api/v1/billing/balance') No file operations found in scripts No subprocess/os.system calls found 可疑产物与外联
API_KEY = "sk_f03aa8f8bbcf79f7aa11c112d904780f22e62add1464e3c41a79600a451eb1d2" payment.py:12
https://skillpay.me payment.py:11
https://dexscreener.com/ references/arbitrage-tools.md:7
https://www.coingecko.com/ references/arbitrage-tools.md:25
https://api.coingecko.com/api/v3/simple/price?ids= references/arbitrage-tools.md:32
https://portal.1inch.dev/ references/arbitrage-tools.md:47
https://api.1inch.dev/swap/v5.2/1/quote? references/arbitrage-tools.md:58
https://eth.llamarpc.com references/arbitrage-tools.md:99
https://api.0x.org/swap/v1/quote? references/arbitrage-tools.md:144
https://li.quest/v1/quote references/arbitrage-tools.md:163
https://socket.tech/ references/arbitrage-tools.md:177
https://across.to/ references/arbitrage-tools.md:186
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| requests | * | pip | 否 | Version not pinned |
文件构成
scripts/flashloan_generator.py SKILL.md scripts/price_monitor.py references/arbitrage-tools.md references/mev-protection.md payment.py skill-card.md