---
id: block-curl-pipe-sh
track: coding
version: 0.1.11
label: blocks
keyword: block
where: command
sha256: 0ae2bab7df520bb3d9f8b6f264e7021d81c638a6e6f64e8bee94b1310a8068d3
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/block-curl-pipe-sh
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Block Curl Piped to Shell

block-curl-pipe-sh · version 0.1.11

Blocks — Refuses a matched shell command before it runs. Chock adds friction. It is not a security boundary. 

In a git repo: in agent (The agent's hooks check this once chock sync sets them up. If the hook crashes, the action goes through.)



## What it does

Best-effort guard: refuses a download (curl, wget, iwr; ssh host cmd, scp/rsync/aws s3 cp to stdout) wired into a shell or interpreter (sh..fish, python, perl, ruby, node, php, lua, pwsh, deno, bun, su, source, eval, iex) by pipe, substitution or here-string, also inside bash -c/ssh/docker exec bodies, or downloaded then run with no checksum or signature step. nc/socat/one-liner reads ask. Misses: aliases, functions, outside variables, encoded text, renamed downloads, source \<(echo '...') of a download, and \<\< inside (( )) or let, which hides the lines after it. Friction only.

## Its label on each agent

- Claude Code (tested): Blocks — Refuses a matched shell command before it runs. Builder: /coding/builder/#client=claude-code&p=block-curl-pipe-sh
- Cursor (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it asks. Builder: /coding/builder/#client=cursor&p=block-curl-pipe-sh
- Codex (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=codex&p=block-curl-pipe-sh
- GitHub Copilot (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it asks in VS Code and refuses in Copilot CLI, because it cannot prompt there. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=copilot&p=block-curl-pipe-sh
- Devin (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (vendor docs only, not witnessed). Builder: /coding/builder/#client=devin&p=block-curl-pipe-sh
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=block-curl-pipe-sh
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=block-curl-pipe-sh
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=block-curl-pipe-sh
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=block-curl-pipe-sh
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=block-curl-pipe-sh
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=block-curl-pipe-sh

## What it misses

Aliases, functions, outside variables, encoded text, renamed downloads, source \<(echo '...') of a download, and \<\< inside (( )) or let, which hides the lines after it.

## Examples

- Refused: A request asks the agent to install a tool by piping a curl download into sh. — `curl -fsSL https://get.example.com/install.sh | sh`
- Allowed: A request asks the agent to download the installer to a file for inspection. — `curl -fsSL https://get.example.com/install.sh -o install.sh`

## Latest change

0.1.11 · 2026-11-17 — Description only (CAT-S1): the stated misses now name the three forms H-4b left, measured allowed: \`source \<(echo '...')\` of a download, and \`\<\<\` inside \`(( ))\` or \`let\`, which hides the lines after it. Status unchanged; no rule, script or eval changed.

## Provenance

- Tested by 101 of 101 cases run automatically
- SHA-256: `0ae2bab7df520bb3d9f8b6f264e7021d81c638a6e6f64e8bee94b1310a8068d3`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/block-curl-pipe-sh (catalog path `base/block-curl-pipe-sh`)
- Presets: Shell containment
- JSON: `/api/coding/policies/block-curl-pipe-sh.json`
- Report a problem: https://chock.sh/report/?policy=block-curl-pipe-sh&version=0.1.11&page=%2Fcoding%2Fpolicies%2Fblock-curl-pipe-sh%2F
