T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:64- Finding
Unverified Remote Installer Is Piped Directly into a Shell
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill's stated purpose is coherent, but installing or updating it runs an unverified remote script and it changes Gemini CLI configuration, so users should review it carefully first.
Before installing, review the asale installer source or use a verifiable release path if available. Expect this skill to read the local asale daemon token, talk to the local daemon, inspect Gemini CLI process state, and change Gemini CLI configuration so future Gemini sessions may route through asale.
SKILL.md:64Unverified Remote Installer Is Piped Directly into a Shell
SKILL-cn.md:59Localized Documentation Executes an Unverified Remote Installer
The metadata recommends installation via 'curl ... | sh' and PowerShell 'iex', which execute remote code directly without integrity verification or review. If the distribution endpoint, network path, or hosting account is compromised, users can be transparently infected with arbitrary code execution.
name: asale-buy-gemini-cli
version: 0.2.7
description: "Switch Gemini CLI between buying from the asale market and using its own subscription, and see which running sessions are still on the old config. 在「从 asale 市场买」和「用它自己的订阅」之间切换 Gemini CLI,并查看哪些正在运行的会话还用着旧配置。"
metadata: {"clawdbot":{"emoji":"📥","requires":{"bins":["curl"]},"install":"curl -fsSL https://asale.ai/dl/install.sh | sh","installAlternative":"irm https://asale.ai/dl/install.ps1 | iex","homepage":"https://asale.ai","source":"https://github.com/asale-ai/asale","author":"asale","license":"see-repo","configLocation":"~/.asale/daemon.token","apiEndpoints":["127.0.0.1:9700"]},"openclaw":{"systemPrompt":"Drive the asale daemon at 127.0.0.1:9700 with the token from ~/.asale/daemon.token. Always run buy_tools before set_buy_tool for tool gemini. tool_processes is listing only — never signal those pids."}}
---
# asale-buy-gemini-cli
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
curl -sS --noproxy 127.0.0.1 -X POST "http://127.0.0.1:9700/rpc/$1"
-H 'content-type: application/json' -H "x-asale-token: $TOKEN" -d "$body"
}
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
curl -sS --noproxy 127.0.0.1 -X POST "http://127.0.0.1:9700/rpc/$1"
-H 'content-type: application/json' -H "x-asale-token: $TOKEN" -d "$body"
}
The skill explicitly instructs the agent to modify Gemini CLI user configuration files under ~/.gemini, including endpoint and API key settings. This is a high-risk capability because it changes security-relevant local config for another tool and can redirect traffic or alter credential usage, even if the stated purpose is legitimate.
call set_buy_tool '{"tool":"gemini","enabled":true}'
不传 `models` 就保持当前选择,传 `[]` 是清空。会改写的配置:`~/.gemini/.env`(`GOOGLE_GEMINI_BASE_URL` / `GEMINI_API_KEY`)和 `~/.gemini/settings.json`。
### 3. 说清楚哪些会话还在用旧配置
The installation method executes a remote script directly from the network via 'curl ... | sh' (and PowerShell 'iex' on Windows), giving the remote server full code execution on the user's machine without prior verification. If the hosting infrastructure, DNS, TLS trust chain, or upstream release process is compromised, users receive arbitrary malicious code immediately.
name: asale-buy-gemini-cli
version: 0.2.7
description: "Switch Gemini CLI between buying from the asale market and using its own subscription, and see which running sessions are still on the old config. 在「从 asale 市场买」和「用它自己的订阅」之间切换 Gemini CLI,并查看哪些正在运行的会话还用着旧配置。"
metadata: {"clawdbot":{"emoji":"📥","requires":{"bins":["curl"]},"install":"curl -fsSL https://asale.ai/dl/install.sh | sh","installAlternative":"irm https://asale.ai/dl/install.ps1 | iex","homepage":"https://asale.ai","source":"https://github.com/asale-ai/asale","author":"asale","license":"see-repo","configLocation":"~/.asale/daemon.token","apiEndpoints":["127.0.0.1:9700"]},"openclaw":{"systemPrompt":"Drive the asale daemon at 127.0.0.1:9700 with the token from ~/.asale/daemon.token. Always run buy_tools before set_buy_tool for tool gemini. tool_processes is listing only — never signal those pids."}}
---
# asale-buy-gemini-cli
Referenced artifact was not completely inspected
[English](./SKILL.md) · [中文](./SKILL-cn.md)
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
curl -sS --noproxy 127.0.0.1 -X POST "http://127.0.0.1:9700/rpc/$1"
-H 'content-type: application/json' -H "x-asale-token: $TOKEN" -d "$body"
}
The skill is designed to rewrite Gemini CLI configuration files under the user's home directory, including ~/.gemini/.env and ~/.gemini/settings.json. Modifying another tool's auth and endpoint configuration is security-sensitive because it can redirect traffic, alter billing behavior, and affect future sessions; if the daemon or skill behavior is compromised, this becomes a high-impact local configuration hijack.
`models` omitted leaves the current selection alone; `[]` clears it. Config
rewritten: `~/.gemini/.env` (`GOOGLE_GEMINI_BASE_URL` / `GEMINI_API_KEY`) and `~/.gemini/settings.json`.
### 3. Say which sessions are still on the old config
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -sS --noproxy 127.0.0.1 -X POST "http://127.0.0.1:9700/rpc/$1"
-H 'content-type: application/json' -H "x-asale-token: $TOKEN" -d "$body"
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -sS --noproxy 127.0.0.1 -X POST "http://127.0.0.1:9700/rpc/$1"
-H 'content-type: application/json' -H "x-asale-token: $TOKEN" -d "$body"
}