Security

How OpenRouting handles your code, secrets and tokens

A security tool reads your most sensitive asset. Here is what OpenRouting runs, what it keeps, what reaches the model and how connected AI assistants are kept in bounds.

code-scanner sandbox
✓ network none
✓ repo mount read-only
✓ user non-root, capabilities dropped
✓ your code never built or run
✓ secrets redacted before AI review
✓ mcp tokens hashed · 1 h · rotating refresh
clone deleted after the scan
$ 

Your code is never run

OpenRouting reads source code. It never installs dependencies, builds your project or runs scripts from it.

Code scanners have no network

Every code scan runs in a fresh container with networking disabled, all capabilities dropped, a non-root user, a read-only mount and CPU, memory and time limits. The passive website scanner is the one exception: each scan re-checks your site's address, refuses private and cloud-metadata addresses, pins the scanner to that address, keeps the crawl on your site's host and runs on its own short-lived network, away from our internal services.

One scan, one repository

Scanners get a read-only view of a single scan's folder, so no scan can reach another customer's code.

Secrets redacted on the way to the model

Claude, via Amazon Bedrock, receives the lines around each finding; your AI-agent config files, such as CLAUDE.md and .claude settings, when the agent-setup review runs; the files the setup generator opens (400 KB at most) when you run it; a findings digest when you generate a report; and, for website and API-collection scans, each finding's scan evidence or endpoint details. Never the whole repository. Known key and token formats and secret-named values are redacted before any AI model or assistant sees them. Your dashboard still shows the flagged line so you can fix it.

Clones deleted after scans

OpenRouting keeps the few flagged lines it shows you, not a copy of your repository. The clone is removed when the scan finishes.

Isolated workspaces

Every request is scoped to your workspace through one shared service layer, used by the dashboard and the MCP server alike. GitHub tokens are encrypted at rest and never returned to the browser.

Clone hardening

  • Clones are restricted to HTTPS on allow-listed hosts, blocking local-file, SSH and SSRF-style URLs.
  • Git is hardened against hostile repositories: system and global config ignored, hooks, filters and credential helpers neutralized, submodules never recursed and symlinks flattened.
  • A clone-size cap guards against clone and zip bombs.
  • Interrupted scans are marked failed and their credits refunded, not left stuck or silently retried.

MCP connector safeguards

When you connect Claude, ChatGPT or Claude Code to your workspace over MCP, the assistant gets only what you approve, and what it reads is marked for what it is.

  • Sign-in uses OAuth 2.1 with PKCE and your existing OpenRouting account. A consent screen names the app, the workspace it will see and the host you'll be sent back to; an app that registered itself is labelled "Unverified app". ChatGPT and Claude connect this way.
  • Tools that send a header instead (Cursor, VS Code, Gemini CLI and others) use a per-user API key from AI assistants (MCP). It is stored as a hash; until you first reveal it, it is also kept encrypted so it can be shown once; it can be made read-only, disabled or regenerated, and a workspace switch turns off every key and connection at once. A key is a bearer secret, so keep it out of repositories and prefer sign-in where your tool supports it.
  • Two scopes: read (every read tool) and write (start a scan or change a finding's status). Write can be unticked on the consent screen, and the app can then only read.
  • Tokens are opaque and stored only as hashes. Access tokens last one hour; refresh tokens last 30 days and are replaced on every use, and reusing an old one revokes the connection.
  • Revoking an app, reconnecting it or deleting your account invalidates every older token.
  • The workspace always comes from the token, never from a tool argument. GitHub tokens and raw scanner output are never returned.
  • Text taken from scanned code, websites, API files or model output is labelled untrusted_*, stripped of invisible characters and redacted for known key and token formats and secret-named values before the assistant sees it, so injected instructions arrive marked as data.
  • Each key or connection is limited to 60 tool calls a minute and 10 write calls an hour.
  • Every connected app is listed under AI assistants (MCP) → Connected apps. Disable or regenerate your API key, or revoke a connection, in Dashboard → AI assistants (MCP). Access stops immediately.

Security questions

Does OpenRouting execute my code?

No. It clones and reads your code. It never builds or runs it, and code scanners run in containers with no network access.

Is my source code stored?

The clone is deleted after each scan. Only the flagged lines of each finding are kept so you can review them.

What does the AI model see?

Claude, via Amazon Bedrock, receives the lines around each finding; your AI-agent config files, such as CLAUDE.md and .claude settings, when the agent-setup review runs; the files the setup generator opens (400 KB at most) when you run it; a findings digest when you generate a report; and, for website and API-collection scans, each finding's scan evidence or endpoint details. Never the whole repository. Known key and token formats and secret-named values are redacted before any AI model or assistant sees them.

How are GitHub credentials protected?

Access tokens are encrypted at rest, never returned to the browser, and injected only at clone time through a header kept out of logs and process arguments.

Can a connected AI assistant see other workspaces?

No. Its token is tied to one workspace, and the MCP server reads the workspace from the token, never from what the assistant asks for.

How do I cut off an AI assistant's access?

Disable or regenerate your API key, or revoke a connection, in Dashboard → AI assistants (MCP). Access stops immediately.