SuperAPIAI Directory

umbra

github.com · AI agents

Trust scores and guardrails for AI-generated code: static security rules, Docker-verified build/boot checks and receipts that catch agents lying about tests.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Umbra is a deterministic trust scoring tool for AI-generated code, designed to solve the problem that "everyone is using AI to write code, but no one is verifying it." With a single command, it scans any repository generated by coding agents (such as Claude Code, Cursor, Copilot, Windsurf, Lovable), returns a trust score from 0–100, and provides file:line evidence for every finding.

Key capabilities:

  • Static security scanning (SAFE axis): covers hardcoded secrets (Stripe keys, JWTs, connection strings), Supabase service-role keys exposed on the client side and missing RLS, API routes missing authentication, injection points, rate-limiting hints, hallucinated or imitation dependencies, CORS wildcards with credentials, JWT misconfigurations (alg: none, no expiration, decode-as-authorization), debug flags and stack trace leaks, committed sensitive files (.pem, id_rsa, SQL dumps), and default credentials.
  • Agent configuration checks (CLEAN axis): checks instruction files (CLAUDE.md, .cursor/rules, skills) for prompt injection payloads (zero-width Unicode, override phrases in HTML comments) and dangerous MCP configurations (plaintext API keys in .mcp.json, unpinned-version npx -y servers, curl | sh installers).
  • Deep verification (--deep): copies the repository into a disposable Docker container (no network at runtime, 512 MB / 1 CPU hard limits, 120-second kill switch), builds, starts, HTTP-probes endpoints, and replays every claim in the README and agent artifacts. If a claim is verified as false, the total score is capped at 49 points (the "liar cap").
  • Immunity layer (umbra protect): installs a PreToolUse hook into Claude Code and Kimi Code to review every Write/Edit/MultiEdit before the agent writes a file, block high-confidence critical/high findings, hard-block writes to .git/hooks and .git/config with a path guard (CVE-2026-26268), and prevent live credentials from being written to .env. Decision time is about 0.2 milliseconds, and it fails open.

Usage:

  • Quick start: npx @elberacasa/umbra (short alias npx umbra-scan).
  • Deep scan: add the --deep flag, which requires a running Docker daemon.
  • Baseline: run npx umbra-scan --baseline-write to generate .umbra-baseline.json, after which the gate blocks only new issues.
  • Agent integration: the repository provides AGENTS.md and llms.txt; --setup installs the PreToolUse hook; the trust review skill can be installed into Claude Code, Cursor, Copilot, and Windsurf; the MCP server is added via npx --yes -p @elberacasa/umbra umbra-mcp, providing the scan_repo, guard_content, and get_score tools.
  • GitHub Action: uses: elberacasa/umbra@v1 comments the trust score on PRs.
  • Badges: each scan prints badge Markdown; use --publish or the Action's publish: true to publish to a hosted badge service.

Use cases:

  • Verify the security of code delivered by AI coding agents.
  • Set up a trust gate in CI (exit code 1 when the score is below 50).
  • Intercept dangerous code in real time while the agent is writing.
  • Audit third-party AI-generated repositories you are about to depend on.

Limitations:

  • The default quick scan is pure static analysis; --deep requires Docker and takes several minutes.
  • Without Docker, the sandbox axis is skipped and excluded from scoring, with no penalty.
  • Currently, coverage is deepest for JavaScript and TypeScript (including Next.js and Supabase apps); the rules engine is extensible, but new rules require fixtures and tests.
  • Scoring is based on versioned rules (currently v3); the same repository with the same rules version receives a consistent score.
  • The hook is a guardrail, not a sandbox.
  • You should only scan repositories you own, are about to depend on, or are authorized to audit.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools