# TrollBridge /repo-scan

> TrollBridge /repo-scan is a paid API for AI agents from mini-tollbooth.onrender.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-10).

Scans a git repository or bundle for supply-chain threats: malicious hooks, fetch-and-execute patterns, embedded binaries, and verifies a claimed commit hash belongs to the stated repo.

## Facts

- Endpoint: GET https://mini-tollbooth.onrender.com/repo-scan?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trollbridge-repo-scan-349ac977
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7yae2e4Rus0lWqSXgFtDR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability trollbridge-repo-scan-349ac977
```

Example prompt: Can you run a repo-scan on https://github.com/suspicious-org/some-package at commit a3f9b12c... and tell me if that commit actually belongs to the repo and whether there are any malicious hooks or embedded binaries?

## When to prefer this

Use this endpoint when you need to verify the supply-chain integrity of a git repository or bundle before executing, deploying, or allowing an AI agent to consume it — especially when you have a claimed commit hash that needs to be verified against the stated repo, or when you have a raw git bundle that may contain malicious hooks or embedded binaries. Prefer this over generic static analysis tools when the threat model is supply-chain tampering or repo-identity spoofing.

## Known failure modes

- Missing required parameters: if repo is provided without commit or vice versa, the check may be incomplete
- Bundle exceeds 200KB limit, causing rejection
- Invalid or non-GitHub repo URL in v1 (only github.com supported)
- Invalid commit hash format (must be 40 or 64 hex characters)
- Repo or commit not publicly accessible, leading to binding check failure
- Network timeout when fetching the remote repo

## How this service works

The insurance booth for AI agents, with Mini's Agent Supply Store on the side of the road. One hundred checkpoints: pre-transaction safety lanes (honeypot, approval-risk, rug-score, receipt-check, tx-dryrun, permit-scan, airdrop-verdict, deployer-history, wallet-watch, secret-scan at $0.02 USDC per call; the protection tier — /contract-check, /approval-screen, /tx-plain-english, /honeypot-check, /tx-simulate, /redteam, /skill-scan, /verdict, /egress-audit, /tool-gate, /airlock, /repo-scan, /prove, /task-scope — at $0.10; the one-call /shield don't-get-rugged screen at $0.25; the full /preflight bundle at $0.05), bounty intel (bounties, fresh, verdicts, deadlines, sweepstakes, opportunities) at $0.02 USDC per call, trader intel (/prices and /quant at $0.02; /enrich and /token-check at $0.05; /contract-check and /honeypot-check at $0.10; /sec-facts at $0.05), market intel (/markets and /search at $0.05; /grants at $0.02), DeFi intel (/yields and /new-pairs at $0.05; /gas and /defi at $0.02), AI intel (/models at $0.02), agent-ops intel (/prompt-cost, /model-picks, /rpc-speed, /terms-tldr, /scrape, /gigs, /retry-verify, /idempotency, /verify-independent at $0.02; /site-watch, /wallet-check, /code-run, /regulatory-pack, /sage, /cron-watch, /caveat-check, /tripwire, /escrow, /trust, /bridge-fees, /dao-votes, /dev-activity, /dex-arb, /dydx-perps, /funding-rates, /gas-predict, /hack-tracker, /long-short-ratio, /lp-yields, /mev-scan, /open-interest, /perp-basis, /polymarket-odds, /rwa-watch, /sentiment, /stablecoin-flows, /tokenomics, /top-movers, /whale-watch, and /yield-stable at $0.05; /approval-screen, /tx-plain-english, /tx-simulate, and /task-scope at $0.10; /scam-scan deep scan at $5.00 or 30-day subscription at $30.00), supply store (/road-pack combo meal at $0.05; curated datasets, the /audit-prep pre-audit review, and the /prove-state symbolic-execution run at $1.00; the /audit AI-agent audit at $25.00). Every lane answers before money moves — heuristic verdicts, not audits. Don't get rugged.

## Output

A JSON object containing a lane identifier, a numeric risk score (0-100), a binding object (repo URL, commit hash, belongs boolean), a verdict string (CLEAN, REVIEW, or CONTAMINATED), a list of findings with check name, matched text, detail, and severity, the number of checks run, a description, and the number of bytes scanned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "repo": {
       "type": "string",
       "description": "https repo URL for the commit-vs-repo binding check (github.com in v1). Requires commit."
      },
      "bundle": {
       "type": "string",
       "description": "Pasted git bundle / .git listing text to scan for live hooks and embedded binaries. Max 200KB."
      },
      "commit": {
       "type": "string",
       "description": "Claimed 40/64-hex commit hash — verified against the claimed repo. Requires repo."
      },
      "bundle_b64": {
       "type": "string",
       "description": "Base64-encoded bundle (for binary bundles) — alternative to bundle."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lane": "/repo-scan",
  "score": 80,
  "binding": {
   "repo": "https://github.com/github/gitignore",
   "commit": "0e5d69…",
   "belongs": true
  },
  "verdict": "CONTAMINATED",
  "findings": [
   {
    "check": "hook-malice",
    "match": "…",
    "detail": "…",
    "severity": "high"
   }
  ],
  "checks_run": 4,
  "description": "NOT AN AUDIT — heuristic screen: repo-identity + bundled-.git supply-chain scan — paste a git bundle or .git listing and get live executable hooks, fetch-and-execute patterns, and embedded binaries flagged; or pass ?repo= + ?commit= to check a claimed commit hash actually belongs to the claimed repo. Verdict: CLEAN, REVIEW, or CONTAMINATED ($0.10).",
  "scanned_bytes": 2048
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trollbridge-repo-scan-349ac977/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mini-tollbooth.onrender.com](https://www.zero.xyz/host/mini-tollbooth.onrender.com/llms.txt)
