# GitHub Repo Supply-Chain Security Scanner

> GitHub Repo Supply-Chain Security Scanner is a paid API for AI agents from agents.samedaydesk.com, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-13).

Performs static security analysis of a public GitHub repository to detect supply-chain threats like exfiltration sinks, obfuscated code execution, credential reads, and install-time curl|bash before an agent installs or runs it.

## Facts

- Endpoint: GET https://agents.samedaydesk.com/scan?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repo-supply-chain-security-scanner-662b3233
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kwmWZRjPJ3l2fyxaCm3OC

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 github-repo-supply-chain-security-scanner-662b3233
```

Example prompt: Before I install that MCP server at github.com/acme/mcp-filesystem-tool, can you do a static supply-chain security scan on it and tell me if it's clean, suspicious, or dangerous?

## When to prefer this

Choose this endpoint when an AI agent needs to vet a GitHub-hosted dependency, MCP server, Claude skill, or any open-source tool before installing or executing it. It is purpose-built for agentic supply-chain security with low false positives, and is ideal as a pre-install gate in automated pipelines. Prefer this over generic code analysis tools when the threat model is specifically supply-chain attacks (exfil, env harvesting, install-time execution) rather than general code quality or vulnerability scanning.

## Known failure modes

- Private or non-existent GitHub repo returns an error (repo must be public)
- Invalid repo format (must be owner/name or full GitHub URL) returns a validation error
- Rate limiting or payment failure for the $0.20 USDC per-call fee
- Very large repos may time out or return partial results
- Highly novel obfuscation techniques may not be detected (static analysis limitation)

## How this service works

Static supply-chain SECURITY scan of a public GitHub repo BEFORE an agent installs/runs it (a dependency, a Claude/MCP skill, an MCP server). Flags exfil sinks, obfuscated code execution, credential-file reads, env-harvest+network, install-time curl|bash. Returns risk = clean|suspicious|dangerous + findings. Static only, never runs the code. Low false positives.

## Output

Returns a risk classification of clean, suspicious, or dangerous along with a list of specific findings covering detected threat categories such as exfiltration sinks, obfuscated code execution patterns, credential file reads, environment variable harvesting combined with network calls, and install-time curl|bash injection. No code is executed during the scan.

## 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": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "Public GitHub repo: owner/name or https://github.com/owner/name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "repo",
      "risk"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "repo": {
       "type": "string"
      },
      "risk": {
       "enum": [
        "clean",
        "suspicious",
        "dangerous"
       ],
       "type": "string"
      },
      "summary": {
       "type": "string"
      },
      "findings": {
       "type": "array"
      },
      "filesScanned": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "repo": "owner/name",
  "risk": "clean",
  "summary": "No known malware/exfil/obfuscation patterns found.",
  "findings": [],
  "filesScanned": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repo-supply-chain-security-scanner-662b3233/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.samedaydesk.com](https://www.zero.xyz/host/agents.samedaydesk.com/llms.txt)
