security-defense-line
Skill contains hardcoded API key in payment.py and undeclared network access for billing integration. While no malicious behavior observed, the hardcoded credential represents significant supply chain risk.
A valid-looking API key is hardcoded directly in payment.py line 12. This is a supply chain security risk as the key could be extracted and abused.
payment.py:12 为什么得出这个结论
3/4 个维度触发发现 2 项声明之外的能力或越权行为。
提取到 1 个高危 IOC 或外联信号。
报告包含 0 步攻击链,另有 1 项高危或严重发现。
发现 1 项需要关注的依赖或供应链线索。
风险分是怎么被拉高的
BILLING_API_KEY hardcoded at payment.py:12 with value 'sk_f03aa8f8bbcf79f7aa11c112d904780f22e62add1464e3c41a79600a451eb1d2'
payment.py makes HTTP requests to skillpay.me but network:READ is not declared in SKILL.md capability map
SKILL.md mentions SkillPay but doesn't explicitly declare required network permissions
最关键的证据
Hardcoded API Key in Source Code
A valid-looking API key is hardcoded directly in payment.py line 12. This is a supply chain security risk as the key could be extracted and abused.
payment.py:12 Undeclared Network Access
The skill makes HTTP requests to external service skillpay.me but network access is not declared in SKILL.md capability declarations.
payment.py:26 Unpinned Dependencies
The skill uses requests library without version pinning. requests==2.31.0 is recommended.
payment.py:3 声明能力 vs 实际能力
No file operations found payment.py:26-45 makes HTTP requests to skillpay.me SKILL.md shows bash examples but scripts use no shell:WRITE payment.py:60 reads SKILLPAY_USER_ID from os.environ 可疑产物与外联
API_KEY = "sk_f03aa8f8bbcf79f7aa11c112d904780f22e62add1464e3c41a79600a451eb1d2" payment.py:12
https://suspicious-site.com SKILL.md:106
https://skillpay.me payment.py:11
https://swcregistry.io/ references/contract-auditing.md:238
https://consensys.github.io/smart-contract-best-practices/ references/contract-auditing.md:239
https://docs.openzeppelin.com/contracts/ references/contract-auditing.md:240
https://www.certora.com/ references/contract-auditing.md:241
https://swcregistry.io/docs/SWC-107 scripts/contract_auditor.py:160
https://consensys.github.io/smart-contract-best-practices/attacks/reentrancy/ scripts/contract_auditor.py:161
https://swcregistry.io/docs/SWC-104 scripts/contract_auditor.py:164
https://swcregistry.io/docs/SWC-115 scripts/contract_auditor.py:167
https://docs.soliditylang.org/en/v0.8.0/080-breaking-changes.html scripts/contract_auditor.py:190
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| requests | * | pip | 否 | Version not pinned, no known vulnerabilities |
文件构成
scripts/phishing_detector.py scripts/contract_auditor.py scripts/tx_validator.py scripts/multisig_manager.py scripts/wallet_guardian.py SKILL.md references/contract-auditing.md payment.py