huo15-memory-evolution
Critical: hardcoded API key exposed in source code at scripts/dream.sh:79 enables unauthorized API usage if repository is accessed.
A MiniMax API key is hardcoded in plain text at scripts/dream.sh:79. This key is visible to anyone with repository access and could be extracted and misused if the repo is public, shared, or leaked.
scripts/dream.sh:79 为什么得出这个结论
3/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 1 个高危 IOC 或外联信号。
报告包含 3 步攻击链,另有 2 项高危或严重发现。
没有完整依赖信息,供应链判断需要保留弹性。
攻击链
reconnaissance · N/A
exploitation · scripts/dream.sh:79
最终危害 · N/A
风险分是怎么被拉高的
API_KEY hardcoded in plain text at dream.sh:79 - credential exposure if repo is accessed or shared
POST to api.minimaxi.com not declared in SKILL.md capabilities
API key sent in Authorization header to external service without declared intent
最关键的证据
Hardcoded API Key in Source Code
A MiniMax API key is hardcoded in plain text at scripts/dream.sh:79. This key is visible to anyone with repository access and could be extracted and misused if the repo is public, shared, or leaked.
scripts/dream.sh:79 Undeclared Network Access
The SKILL.md makes no mention of network access. The dream.sh script makes HTTP POST requests to api.minimaxi.com, transmitting the API key as Bearer authentication.
scripts/dream.sh:89 Undeclared Filesystem Write to ~/.openclaw/
Multiple scripts (install.sh, migrate.sh, batch-install.sh) write to $HOME/.openclaw/workspace and related directories without explicit declaration in SKILL.md.
scripts/install.sh:53 声明能力 vs 实际能力
install.sh, migrate.sh, batch-install.sh write to ~/.openclaw/ without explicit declaration dream.sh:89 - curl POST to api.minimaxi.com with API key OC_AGENT_ID environment variable read for routing - legitimate behavior documented 可疑产物与外联
API_KEY="sk-cp-pD1WY6KcHeUNXDeKmG4ZnzDch-sXsZKmAsNn7rXZDoAbGwc7u6XJn55Z6GbgW3qngTC-i5geM4PzDwkaSj8sQUSk2TPPj-lrLc-Yamjn-S2j4mfOT8RGKUY" scripts/dream.sh:79
https://api.minimaxi.com/v1/text/chatcompletion_v2 scripts/dream.sh:80
依赖与供应链
没有结构化依赖告警。
文件构成
scripts/install.sh scripts/dream.sh