nim-ensemble / free-scaling
免费AI模型集成库,代码功能正常但存在文档未声明的凭证访问行为(Copilot token刷新机制扫描本地GitHub OAuth令牌),存在文档-行为差异。
Why this conclusion was reached
0/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
3 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
_refresh_copilot_token() 扫描 ~/.openclaw/agents/*/auth-profiles.json 查找 ghu_* GitHub OAuth令牌,用于刷新Copilot会话
SKILL.md未提及Copilot API集成和GitHub OAuth认证机制
依赖 OPENCLAW_WORKSPACE 环境变量访问外部凭证目录
Most important evidence
Copilot token刷新机制未在文档中声明
_refresh_copilot_token() 函数扫描本地auth-profiles.json文件查找GitHub OAuth令牌(ghu_*)以刷新Copilot API会话令牌,但SKILL.md未提及此功能或GitHub Copilot集成。
nim_ensemble/voter.py:73-91 依赖OpenClaw凭证存储目录
代码依赖 ~/.openclaw/credentials/ 存储Copilot会话令牌,且会读取其他agent的auth-profiles.json,存在凭证访问边界超出skill范围的潜在问题。
nim_ensemble/voter.py:56-57 无版本锁定的间接依赖
代码使用Python标准库 urllib.request 作为HTTP客户端,虽无外部依赖但也意味着没有安全更新机制。
nim_ensemble/voter.py:119-142 Declared capability vs actual capability
voter.py:73-91 扫描 auth-profiles.json urllib NIM/Copilot API调用 读取 NVIDIA_API_KEY 无subprocess调用 Suspicious artifacts and egress
https://build.nvidia.com README.md:3
https://integrate.api.nvidia.com/v1/chat/completions nim_ensemble/models.py:3
https://api.individual.githubcopilot.com/chat/completions nim_ensemble/voter.py:39
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| urllib | stdlib | Python | No | 标准库HTTP客户端,无外部依赖 |
File composition
nim_ensemble/voter.py README.md