2026-11-27 16:16 UTC

Piton offers lockfiles and scanning for MCP and coding-agent setups

state: seedheat: lowuncertainty: mediumrelevance: mediumagent-supply-chain mcp-securityTony Stark

What is this?

Piton is an open-source project presented by its GitHub maintainer, Tony Stark, as a lockfile and security scanner for MCP servers and coding-agent configurations. A Show HN post on Nov. 27, 2026 linked to the repository. The project describes static scans and CI checks for tool changes and risky agent configuration, plus runtime wrapping and policy replay with CEL/Cedar export. These are maintainer-described capabilities; the supplied evidence does not independently verify their security coverage, reliability, adoption, or production readiness.

Why it matters

As coding agents gain access to tools, shell hooks, and repository instructions, third-party tool or config changes can become a supply-chain risk. Piton’s notable idea is to apply familiar dependency-management controls—lockfiles, change review, and CI gates—to agent tooling, with an optional path toward runtime policy enforcement. If effective, that could make agent integrations easier to audit and govern. Whether its checks catch real attacks without disruptive false positives remains unestablished.

Current assessment

New: the maintainer publicly presented Piton on Show HN and linked an accessible GitHub repository. The repository describes split hashes for MCP tool schemas and descriptions, scans for selected risky hooks, tasks, and prompt/config content, lockfile-based CI checks, a wrapper for local STDIO MCP servers, and trace replay that can export policies to CEL or Cedar. These details establish what the project claims to offer, not that the controls are complete or effective. No independent evaluation, adoption evidence, or security audit is supplied; the web results provide context on a developing MCP-security tooling category but do not validate Piton. Useful follow-up: inspect the code and tests, validate detection and bypass rates against representative threats, assess false positives and runtime failure modes, and look for external users or audits. The opportunity is to bring reproducible change control and policy calibration to agent toolchains; the central uncertainty is whether implementation and operational maturity match the broad feature claims.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 26h
points/hour across evidence · reading as of 2026-11-28 02:25:52.099640+11:00 · deterministic, not a model opinion

How the heat travelled

11-26 13:00⭐ origin echo-reconstructedThe repository README presents Piton as a “Lockfile and static supply-chain scanner for MCP servers, Claude Code hooks, and Cursor rules,” a
Tony-Stark2025 (GitHub account; HN user says they are the author, and gives contact [email protected]) on github (echo) · attributed from hn.story.50664409
—
11-27 08:37first on hacker news · published · +19.6hShow HN: Piton Lockfile and static supply-chain scanner for MCP/coding agent
tony_starkling
—
11-27 08:37amplified on hacker news 👑hn.story.50664409
tony_starkling
peak 1 · 1 comments · 104% of case engagement
11-27 09:21our radar first saw it · +20.4hdiscovery anchor: hn.story.50664409—
pace: p41 vs 1560 stories at the 24h mark (now 26h old) — ahead of 42loop-agent-operated-product-experiment (2.0x), behind agentfx-agent-animation-tool (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Piton Lockfile and static supply-chain scanner for MCP/coding agent
Retrieved article excerpt

Open article · Retrieved 2026-11-27T09:21:57.189472+00:00

# Piton

**Lockfile and static supply-chain scanner for MCP servers, Claude Code hooks, and Cursor rules.**

> Don't wrap your agents in a probabilistic prompt firewall. Hammer deterministic split-hash pins into every MCP tool, Claude/Cursor hook, and schema.

[Piton CLI Live Demo — piton scan, piton init, piton lock --diff, and piton replay exporting Cedar](https://github.com/Tony-Stark2025/piton/blob/main/docs/piton_demo.gif)

Every AI coding agent (`Claude Code`, `Cursor`, `Claude Desktop`, `OpenCode`) now pulls unpinned third-party MCP tool descriptions, executes `.claude/settings.json` shell hooks, and ingests `.cursor/rules` / skill markdown files straight into privileged developer sessions. One silent upstream description edit (an MCP rug pull) or a malicious PR hook turns your repo into instant RCE.

**Piton** gives you a 30-second deterministic lockfile and PR gate—and scales all the way to shadow-to-enforce policy replay (`CEL`/`Cedar` export) and a production Go Envoy v3 `ext_proc` sidecar.

---

## 30-Second Quickstart

Slim Python CLI — **only 2 runtime dependencies (`pydantic` + `pyyaml`)**:

```
# Zero-install instant scan (works anywhere with uv):
uvx piton-cli scan --repo .

# Or install permanently via pipx / pip:
pipx install piton-cli   # or: pip install piton-cli

# 1. Zero-config scan: catches .claude/settings.json hook RCE, .vscode/tasks.json folderOpen autorun,
#    malicious STDIO MCP commands, and hidden-Unicode / prompt-injection poisoning in .cursor/rules & CLAUDE.md
piton scan --repo .

# 2. Pin every MCP server with split SHA-256 hashes (probing live HTTP/SSE & STDIO servers)
#    Quarantines Day-1 poisoned tools before writing piton.yaml + piton.lock
piton init --repo . --probe

# 3. Wrap any local STDIO MCP server in Cursor / Claude Code to block live rug pulls & over-bounds calls
piton wrap --enforce --server github -- npx -y @modelcontextprotocol/server-github
```

### Drop Into Any Repo in 5 Lines of GitHub Actions

```
- name: Piton — AI Agent Supply-Chain & MCP Lockfile Gate
  uses: Tony-Stark2025/[email protected]
  with:
    scan-only: "true" # or `probe: "true"` / `manifest: observed_tools.json` for MCP lockfile diffs
```

Fails pull requests loudly on:

- **Third-party MCP rug pulls** (`description_sha256` drift on `third_party` servers)
- **Structural `inputSchema` drift** (`structural_sha256` drift on **all** servers—while `internal` docstring edits only warn so you never break deploys)
- **Cross-server tool shadowing** (duplicate tool names across distinct MCP servers)
- **Day-1 MCP tool poisoning** (NFKC homoglyphs, zero-width/bidi Unicode, covert tags, exfil directives)
- **Coding-agent config RCE** (`.claude/settings.json` `curl|sh` / reverse shell / credential-harvesting hooks, unsafe `Bash(*)` wildcards, `.vscode/tasks.json` `folderOpen` autorun, poisoned `.cursor/rules` & skill files)

---

## Why Split-Hash Pinning + Shadow Replay?

1. **Split-Hash Lockfiles (`structural_sha256` vs `description_sha256`)** — Naive single-hash pinning breaks CI every time an internal team fixes a typo in a docstring. Piton separates machine contract hashes (`name` + structural `inputSchema`, always hard-blocked) from prose hashes (`description` + property descriptions: hard-blocked on `third_party` MCPs, warning-only on `internal` MCPs unless poisoning lint triggers).
2. **Shadow-to-Enforce Policy Calibration (`piton replay`)** — The #1 reason teams disable agent security proxies is false blocks and hand-writing policy. Piton records **PII-preserving tokenized traces** (`[email protected]` → `[email protected]`, keeping domains and numeric ceilings replayable without storing raw PII) OR ingests existing **OpenTelemetry (OTel) JSONL spans**, replays them offline to compute exact false-block rates, and exports calibrated policies straight to your existing gateway:

```
# Calibrate bounds offline against shadow traces or OTel spans until false-block rate = 0%
piton replay --config piton.yaml --traces .piton/traces.jsonl --simulate-enforce

# Export calibrated policies directly to agentgateway (CEL) or ToolHive / AWS AgentCore (Cedar)
piton replay --config piton.yaml --traces .piton/traces.jsonl --export cel
piton replay --config piton.yaml --traces .piton/traces.jsonl --export cedar
```

---

## Try the 60-Second End-to-End Local Demo

Runs live Day-1 poisoning quarantine, zero-secret `/gw` egress key swapping + chunk-boundary response secret scrubbing, shadow recording, Go↔Python HMAC ledger verification, and `replay` calibration with zero external API keys:

```
git clone https://github.com/Tony-Stark2025/piton.git
cd piton
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
bash examples/quickstart-billing-agent/run_demo.sh
```

---

## Enterprise Runtime & Gateway Integration

When you move from local coding agents and CI gates into production multi-agent Kubernetes fleets, Piton includes a **hardened static Go sidecar** (`sidecar/`, prebuilt multi-arch binaries + distroless GHCR image) and a **zero-dependency Control Plane**:

```
  [ Repo / CI ] ──► piton scan + piton init --probe ──► piton.yaml + piton.lock
                                                                │
  [ Envoy / agentgateway / Agent ] ◄──► [ Go Sidecar (Envoy v3 ext_proc gRPC + /mcp + /gw) ]
                                           • RS256/ES256 OIDC JWKS + RFC 8693 OBO (`sub`/`act`)
                                           • Live tools/list Rug-Pull Pin (`BodyMutation` -32001)
                                           • Declarative Response Projection (token & exfil reduction)
                                           • MCP 2026-07-28 MRTR `input_required` + signed approval retry
                                           • Optional Redis/Valkey shared 1h budgets across K8s replicas
                                           • Sliding-window multi-encoding secret scrubber
                                                                │
                                                                ▼
                                        [ Piton Control Plane (`piton control-plane`) ]
                                           • Slack Block Kit & Web UI MRTR Approval Bridge
                                           • Multi-Pod Signed Ledger Collector (Go↔Python HMAC)
                                           • Per-Agent Shadow→Enforce Readiness Scorecards
                                           • Tamper-Evident Signed SOC2 / EU AI Act Audit Export
```

### Kubernetes + Envoy Gateway Deployment (Helm)

```
helm install piton-sidecar ./deploy/helm/piton-sidecar \
  --set image.repository=ghcr.io/tony-stark2025/piton-sidecar \
  --set secrets.existingSecret=piton-sidecar-keys \
  --set redis.enabled=true \
  --set redis.addr=redis-master.default.svc.cluster.local:6379 \
  --set controlPlane.collectorUrl=http://piton-control-plane:8090 \
  --set envoyGateway.enabled=true \
  --set envoyGateway.targetRef.name=mcp-agents-route
```

### Real Envoy Proxy v1.33 Wire E2E Harness

Every commit is verified in CI against a live `envoyproxy/envoy:v1.33-latest` container wired to our distroless Go sidecar over HTTP/2 gRPC `ext_proc`:

```
cd deploy/envoy-e2e
docker compose up -d --build
python3 verify_envoy_e2e.py
docker compose down -v
```

### Enterprise Control Plane (MRTR Slack/Web Approval Bridge + Fleet Ledger)

```
# Terminal 1: Start central Governance UI, Fleet Ledger Collector & MRTR Slack/Web Approval Bridge
PITON_LEDGER_SIGNING_KEY="dev-secret-key-32-bytes-minimum" \
  piton control-plane --host 127.0.0.1 --port 8090

# Terminal 2: Run agent with zero real secrets in env, streaming telemetry & escalations to Control Plane
PITON_LEDGER_SIGNING_KEY="dev-secret-key-32-bytes-minimum" \
  piton run --collector-url http://127.0.0.1:8090 -- python my_agent.py
```

---

## CLI Reference

```
piton scan --repo .                                         # Scan Claude/Cursor hooks, tasks, rules & skills
piton init --repo . [--probe] [--manifest tools.json]       # Generate piton.yaml (shadow), piton.lock & .env.agent
piton lock --diff [--probe | --manifest tools.json]         # PR gate: split-hash drift + shadowing + hook RCE
piton lock --update [--probe | --manifest tools.json]       # Refresh approved lockfile hashes after review
piton wrap --server <name> -- <stdio-mcp-cmd>               # Runtime STDIO pin & bounds for Cursor / Claude Code
piton replay --simulate-enforce [--export cel|cedar]        # Calibrate bounds from ledger or OTel spans
piton run [--collector-url URL] -- <agent-cmd>              # Zero-secret local agent runner (auto-fetches sidecar)
piton top --traces .piton/traces.jsonl [--follow]      # Live PII-tokenized flight recorder
piton ledger-verify --traces .piton/traces.jsonl       # Verify Go↔Python HMAC chain integrity
piton control-plane --host 127.0.0.1 --port 8090            # Fleet ledger collector, MRTR bridge & SOC2 export UI
```

---

## Running All Tests

```
# Go sidecar race tests (Envoy v3 gRPC ext_proc, OIDC RS256/ES256, Redis store, Response Projection)
(cd sidecar && go test -race -v ./...)

# Python supply-chain, live MCP probe/wrap, Control Plane E2E & cross-language Go↔Python suites
pytest tests/ -v
```
tony_starkling11
🟧 echo.github ⭐The repository README presents Piton as a “Lockfile and static supply-chain scanner for MCP servers, Claude Code hooks, and Cursor rules,” aTony-Stark2025 (GitHub account; HN user says they are the author, and gives contact [email protected])——

Interpretation history

Decision trace