skill-publisher
upload_to_github.py 包含硬编码 GitHub Token 且 SKILL.md 声明与实际行为严重不符,构成文档欺骗和凭证泄露双重高危行为
upload_to_github.py 第7行硬编码真实 GitHub PAT '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',任何获取此文件的人可提取并滥用该凭证访问 EdwardWason 的 GitHub 账户
upload_to_github.py:7 Why this conclusion was reached
3/4 dimensions flagged3 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 5 attack-chain steps and 3 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
Attack Chain
Entry · SKILL.md:1
Entry · upload_to_github.py:1
Escalation · upload_to_github.py:7
Impact · upload_to_github.py:15
Impact · upload_to_github.py:10
What drove the risk score up
upload_to_github.py:7 包含真实 GitHub PAT (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),可被提取滥用
SKILL.md 声明 requires_api_key:false 且推送方法为 git/gh CLI,但代码使用 Python REST API + 硬编码凭证
BASE_DIR 硬编码为 'd:\TRAE SOLO CN\project\skill-publisher',违反 SKILL.md 安全审计标准
Most important evidence
硬编码 GitHub Personal Access Token
upload_to_github.py 第7行硬编码真实 GitHub PAT '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',任何获取此文件的人可提取并滥用该凭证访问 EdwardWason 的 GitHub 账户
upload_to_github.py:7 SKILL.md 声明与实际行为严重不符
SKILL.md frontmatter 声明 requires_api_key:false,推送方法声明为 'git push → gh CLI → REST API',但 upload_to_github.py 使用 Python 脚本 + 硬编码凭证直接调用 GitHub REST API,与文档描述完全不符
SKILL.md:6 本地路径硬编码泄露用户目录结构
BASE_DIR 硬编码为 'd:\TRAE SOLO CN\project\skill-publisher',暴露用户本地项目路径,违反 SKILL.md 中安全审计的本地路径扫描标准
upload_to_github.py:10 未声明的 Python 脚本执行能力
SKILL.md 描述的工作流基于 bash 命令和 AI Agent 手动操作,但实际存在 upload_to_github.py Python 脚本可自动执行所有发布操作
upload_to_github.py:1 Declared capability vs actual capability
upload_to_github.py:1 使用 urllib.request 向 GitHub API 写入数据 upload_to_github.py:46-49 读取本地文件上传到 GitHub TOKEN 硬编码而非从环境变量读取 Suspicious artifacts and egress
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 upload_to_github.py:7
https://img.shields.io/github/stars/EdwardWason/skill-publisher?style=flat-square README.en.md:5
https://img.shields.io/badge/license-MIT--0-green?style=flat-square README.en.md:6
https://img.shields.io/badge/ClawHub-skill--publisher-orange?style=flat-square README.en.md:7
https://clawhub.ai/skills/skill-publisher README.en.md:7
https://img.shields.io/badge/Claude%20Code-Skill-blue?style=flat-square README.en.md:8
https://img.shields.io/github/stars/ references/repo-structure.md:64
https://img.shields.io/badge/ClawHub- references/repo-structure.md:66
https://clawhub.ai/skills/ references/repo-structure.md:66
https://evil.com/collect?data=... references/security-audit.md:50
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| urllib | Python stdlib | builtin | No | 仅使用标准库,无第三方依赖 |
| json | Python stdlib | builtin | No | 仅使用标准库,无第三方依赖 |
| base64 | Python stdlib | builtin | No | 仅使用标准库,无第三方依赖 |
| os | Python stdlib | builtin | No | 仅使用标准库,无第三方依赖 |
| time | Python stdlib | builtin | No | 仅使用标准库,无第三方依赖 |
File composition
SKILL.md references/repo-structure.md references/publish-procedures.md README.en.md upload_to_github.py references/security-audit.md