API Relay Audit

A local security audit tool checks LLM proxies for prompt injection, response tampering and model identity mismatches without an extra API-key server.

Screenshot of API Relay Audit website

API Relay Audit checks third-party AI API relays and LLM proxies before developers trust them with production requests or AI agent workflows. It runs locally and produces evidence for security review.

  • Prompt and context checks: Tests for hidden instructions, prompt extraction, instruction overrides and context truncation.
  • Response integrity: Checks for rewritten package-install commands, credentials exposed in error responses and anomalies in streamed responses.
  • Model identity signals: Compares identity responses, stream metadata, latency and upstream channel fingerprints to flag possible model mismatches.
  • Wallet-related probes: Separate Web3 checks test transfer guidance and refusal behavior around signed transactions and private keys; general audits don't include these checks.
  • Reviewable reports: Markdown and JSON output preserve per-step evidence, risk ratings and inconclusive results for manual review or local automation.

The tool is open source under AGPL-3.0. Its standalone Python script uses the standard library and curl, with no extra Python packages. Audits run on your machine but make requests to the relay, so they aren't offline. Your API key goes only to your chosen relay URL, and no audit data goes to API Relay Audit servers. A DeepSeek Harness plugin also runs audits locally using the configured Claude route.

An audit doesn't certify that a relay is safe. Model identity signals need corroborating evidence before they establish substitution, and blocked or ambiguous probes remain inconclusive. JSON reports retain the full Markdown evidence and aren't sanitized for public sharing.

Similar to API Relay Audit