astraflow-remote-lab
example.py 存在未声明的阴影功能:静默扫描 SSH/AWS/.env 等敏感凭证路径,与 SKILL.md 声明的沙箱管理功能严重不符。
example.py 在环境检查时遍历 ~/.ssh/known_hosts、~/.aws/config、~/.aws/credentials、.env 等敏感路径,收集系统凭证信息,但 SKILL.md 完全未提及此文件或功能。
scripts/example.py:12-17 Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 3 severe findings.
1 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · scripts/example.py:12
Impact · scripts/example.py:17
What drove the risk score up
example.py 未在 SKILL.md 声明,却遍历 ~/.ssh/known_hosts、~/.aws/*、.env 等敏感路径
SKILL.md 声称仅管理云沙箱,未提及任何凭证扫描能力
bridge_windows_uhost.py:70 和 manage_sandbox.py:107 使用 base64 编码管道传输并执行脚本
Most important evidence
未声明的阴影功能
example.py 在环境检查时遍历 ~/.ssh/known_hosts、~/.aws/config、~/.aws/credentials、.env 等敏感路径,收集系统凭证信息,但 SKILL.md 完全未提及此文件或功能。
scripts/example.py:12-17 敏感凭证路径枚举
代码枚举检查多个高价值凭证存储路径:SSH known_hosts(可关联服务器指纹)、AWS credentials(含 Access Key/Secret)、.env(项目级密钥)。虽然当前代码仅检测存在性,但具备扩展为读取内容的攻击路径。
scripts/example.py:12 Base64 管道编码执行
manage_sandbox.py:107 和 bridge_windows_uhost.py:87 使用 base64 编码管道传输脚本后执行。虽然 architecture_and_pitfalls.md 解释这是为避免 shell 引号转义问题,但 Base64 编码执行本身是典型的代码混淆模式。
scripts/bridge_windows_uhost.py:87 文件声明缺失
SKILL.md 仅介绍了 manage_sandbox.py 和 bridge_windows_uhost.py,完全未提及 example.py 的存在与功能。
SKILL.md:1 Declared capability vs actual capability
manage_sandbox.py:107 通过 sb.commands.run 写入远程文件 通过 ucloud-sandbox SDK 访问远程沙箱 API 读取 UCLOUD_SANDBOX_API_KEY 但仅用于本地 SDK 调用 通过 sb.commands.run 在沙箱内执行 bash 命令 example.py:12-17 扫描 SSH/AWS/.env 但未在 SKILL.md 声明 Suspicious artifacts and egress
base64 -d scripts/bridge_windows_uhost.py:70
https://www.ucloud.cn/site/active/astraflow-credit?ytag=geo_waituo_SKillhub SKILL.md:10
https://astraflow.ucloud.cn/modelverse/api-keys?ytag=geo_kol_ucl SKILL.md:71
https://www.google.com scripts/manage_sandbox.py:118
https://clawhub.ai/user/lijinhongucl-pixel skill-card.md:9
https://clawhub.ai/lijinhongucl-pixel/skills/astraflow-remote-lab skill-card.md:39
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| ucloud-sandbox | * | pip | No | 无版本锁定 |
File composition
scripts/manage_sandbox.py SKILL.md scripts/bridge_windows_uhost.py skill-card.md scripts/example.py