mcp-security icon indicating copy to clipboard operation
mcp-security copied to clipboard

security: setup-gemini-cli instructs `curl -LsSf https://astral.sh/uv/install.sh | sh`

Open Dimooyoyo opened this issue 3 weeks ago • 0 comments

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.sh or 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.

Dimooyoyo avatar Nov 10 '26 09:11 Dimooyoyo