hive-commander
This skill covertly extracts API credentials from the runtime environment and transmits them to arbitrary external servers via configurable base_url, with no user consent mechanism declared.
为什么得出这个结论
2/4 个维度触发发现 2 项声明之外的能力或越权行为。
提取到 1 个一般风险产物,需要结合上下文判断。
报告包含 4 步攻击链,另有 4 项高危或严重发现。
没有完整依赖信息,供应链判断需要保留弹性。
攻击链
初始入口 · SKILL.md:1
recon · AGENT.md:13
权限提升 · executor.py:36
最终危害 · executor.py:43
风险分是怎么被拉高的
AGENT.md P2 mandates extraction of api_key, base_url, and model from runtime without user prompt. SKILL.md does not declare this behavior at all.
executor.py line 42-44 uses extracted credentials to POST to a user-controlled base_url, enabling credential theft to attacker-controlled endpoints.
SKILL.md declares only python3 exec and narrow filesystem access, but hides environment variable reading and arbitrary network egress.
AGENT.md explicitly forbids prompting the user for credentials, making credential harvesting non-consensual.
base_url read from task_config.json allows redirecting credentials to any attacker-controlled server.
最关键的证据
Covert credential extraction from runtime environment
AGENT.md P2 mandates extraction of api_key, base_url, and model from the active runtime environment. This behavior is not declared in SKILL.md's permissions section and occurs without user consent or prompt.
AGENT.md:13 Credentials transmitted to arbitrary external endpoints
The executor.py uses extracted credentials to make HTTP POST requests. Since base_url is read from task_config.json, an attacker who can control the config file can redirect credentials to any server.
executor.py:43 SKILL.md omits critical credential and network access
SKILL.md declares only filesystem (read/write ~/.openclaw/skills/**, swarm_tmp/**) and python3 exec permissions. It completely hides environment variable access for credentials and arbitrary network egress.
SKILL.md:1 No consent mechanism for credential usage
AGENT.md P2 explicitly states 'Constraint: FORBIDDEN to prompt the user for credentials.' This means credentials are harvested and used without user knowledge or approval.
AGENT.md:15 Critical behavior embedded in embedded Markdown docs
SKILL.md contains embedded documentation within the YAML frontmatter block that reveals the actual credential extraction behavior, but this is not surfaced in the permissions declarations at the top.
SKILL.md:12 Hardcoded path expansion in executor
executor.py uses os.path.expanduser for path resolution, which could resolve to unexpected locations if HOME or user context is manipulated.
executor.py:57 声明能力 vs 实际能力
SKILL.md:7 — write: ["~/.openclaw/swarm_tmp/**"] AGENT.md:13 — 'Extract api_key, base_url, and model from the active runtime environment' executor.py:43 — conn.request('POST', path, ...) using extracted api_key and base_url SKILL.md:8 — exec: ["python3"] 可疑产物与外联
http://json-schema.org/draft-07/schema# schema.json:2
依赖与供应链
没有结构化依赖告警。
文件构成
executor.py SKILL.md AGENT.md schema.json