mcp-security
mcp-security copied to clipboard
security: setup-gemini-cli instructs `curl -LsSf https://astral.sh/uv/install.sh | sh`
Affected file (branch main)
extensions/google-secops/skills/setup-gemini-cli/SKILL.md:18:
* If not, guide: `curl -LsSf https://astral.sh/uv/install.sh | sh`
What the text does
When uv is missing, the skill tells the agent to guide the user into piping a
remote installer into sh, with no checksum and no review.
Why it matters
- A compromise of
astral.shor its DNS/TLS path executes arbitrary code with the user's privileges, inside a SecOps setup flow that then handles Google Cloud credentials and security tooling configuration. - The skill is designed to guide agents through setup, so the instruction is reproduced unattended.
- There is no verification step at all before execution.
Suggested fix
- Prefer a pinned package-manager install (e.g.
pipx install uv==<version>or the distribution package) or a verified release artifact. - If the installer must be used, download it, verify a published checksum, then
execute; never pipe it directly into
sh.