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 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 2 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
reconnaissance · N/A
exploitation · scripts/dream.sh:79
Impact · N/A
What drove the risk score up
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
Most important evidence
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 Declared capability vs actual capability
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 Suspicious artifacts and egress
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
Dependencies and supply chain
There are no structured dependency warnings.
File composition
scripts/install.sh scripts/dream.sh