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), and SSE-level stream integrity anomalies (AC-1 streaming). 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/

  • 📁 api_relay_audit/
    • 📁 web3/
      • 📄 __init__.py 988 B
      • 📄 injection_probes.py 12.3 KB
    • 📄 __init__.py 94 B
    • 📄 client.py 29.8 KB
    • 📄 context.py 4.3 KB
    • 📄 error_leakage.py 20.6 KB
    • 📄 identity_patterns.py 9.5 KB
    • 📄 reporter.py 3.5 KB
    • 📄 stream_integrity.py 15.7 KB
    • 📄 tool_substitution.py 5.3 KB
  • 📁 deploy/
    • 📄 deploy-nas.sh 2.7 KB
  • 📁 docs/
    • 📄 codex-review.md 14.4 KB
    • 📄 python-code-explanation-zh.md 39.0 KB
  • 📁 scripts/
    • 📄 audit.py 40.8 KB
    • 📄 context-test.py 1.8 KB
    • 📄 extract-data.py 8.5 KB
  • 📁 tests/
    • 📄 __init__.py 0 B
    • 📄 test_client.py 15.6 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 1.7 KB
    • 📄 test_error_leakage.py 37.5 KB
    • 📄 test_identity_patterns.py 14.8 KB
    • 📄 test_reporter.py 6.1 KB
    • 📄 test_stream_integrity.py 12.4 KB
    • 📄 test_tool_substitution.py 14.4 KB
    • 📄 test_web3_injection.py 13.7 KB
  • 📁 web/
    • 📄 data-example.json 5.1 KB
    • 📄 index.html 16.6 KB
  • 📄 .gitignore 238 B
  • 📄 audit.py 96.3 KB
  • 📄 CLAUDE.md 7.2 KB
  • 📄 FOR_JOHN.md 36.6 KB
  • 📄 LICENSE 1.1 KB
  • 📄 README.md 10.5 KB
  • 📄 requirements.txt 14 B
  • 📄 SKILL.md 15.2 KB

SKILL.md

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

Please login before commenting.

Loading comments...