api-relay-audit

Category: Testing & Security | Uploader: toby-bridgestoby-bridges | Downloads: 0 | Version: v1.0(Latest)

Audit third-party AI API relay/proxy services for security risks. Detects hidden prompt injection, prompt leakage, instruction override, identity hijacking (Chinese-market substitutes), jailbreak vulnerabilities, context truncation, tool-call package substitution (AC-1.a), error response header leakage (AC-2 adjacent), SSE-level stream integrity anomalies (AC-1 streaming), and Web3 prompt injection (SlowMist signature isolation). Use when: test relay, audit API, audit relay, detect injection, relay security, API relay audit, is this relay safe, does it inject prompts, test proxy API, check API key, 中转站安全, 测试中转站, 中转站审计.

Changelog: Source: GitHub https://github.com/toby-bridges/api-relay-audit

Directory Structure

Current level: tree/master/

  • 📁 .github/
    • 📁 voice-samples/
      • 📄 pr-reply-sample.md 1.6 KB
      • 📄 pr-review-sample.md 1.8 KB
    • 📁 workflows/
      • 📄 claude-issue-triage.yml 2.8 KB
      • 📄 claude-pr-review.yml 2.7 KB
      • 📄 pages.yml 633 B
  • 📁 api_relay_audit/
    • 📁 web3/
      • 📄 __init__.py 988 B
      • 📄 injection_probes.py 12.7 KB
    • 📄 __init__.py 94 B
    • 📄 client.py 36.7 KB
    • 📄 context.py 4.3 KB
    • 📄 error_leakage.py 20.6 KB
    • 📄 identity_patterns.py 14.3 KB
    • 📄 reporter.py 3.5 KB
    • 📄 stream_integrity.py 15.7 KB
    • 📄 tool_substitution.py 5.3 KB
    • 📄 transparent_log.py 2.9 KB
  • 📁 deploy/
    • 📄 deploy-nas.sh 2.7 KB
  • 📁 docs/
    • 📄 channel-fingerprint-design-memo.md 5.2 KB
    • 📄 codex-review.md 14.4 KB
    • 📄 comparison-api-relay-audit-vs-hvoy-vs-cctest.md 14.2 KB
    • 📄 python-code-explanation-zh.md 39.0 KB
  • 📁 scripts/
    • 📄 audit.py 54.5 KB
    • 📄 context-test.py 1.8 KB
    • 📄 extract-data.py 8.5 KB
    • 📄 verify_signature_schema.py 9.3 KB
  • 📁 tests/
    • 📄 __init__.py 0 B
    • 📄 test_clean_summary_flags.py 12.8 KB
    • 📄 test_client.py 19.3 KB
    • 📄 test_client_raw_request.py 4.0 KB
    • 📄 test_client_stream.py 24.3 KB
    • 📄 test_context.py 11.3 KB
    • 📄 test_dual_distribution_parity.py 4.6 KB
    • 📄 test_error_leakage.py 37.5 KB
    • 📄 test_fail_open_step_wrapper.py 13.2 KB
    • 📄 test_identity_patterns.py 24.4 KB
    • 📄 test_refusal_detector.py 18.5 KB
    • 📄 test_reporter.py 6.1 KB
    • 📄 test_stream_integrity.py 12.4 KB
    • 📄 test_tool_substitution.py 14.4 KB
    • 📄 test_transparent_log.py 12.7 KB
    • 📄 test_web3_injection.py 16.3 KB
  • 📁 web/
    • 📄 data-example.json 5.1 KB
    • 📄 index.html 73.1 KB
  • 📄 .gitignore 325 B
  • 📄 audit.py 109.2 KB
  • 📄 CLAUDE.md 9.5 KB
  • 📄 FOR_JOHN.md 40.6 KB
  • 📄 LICENSE 1.1 KB
  • 📄 README.md 26.8 KB
  • 📄 requirements.txt 14 B
  • 📄 ROADMAP.md 16.2 KB
  • 📄 SKILL.md 15.9 KB

SKILL.md

Login to download/like/favorite ❤ 229 | ★ 0
Comments 0

Please login before commenting.

Loading comments...