A compliance-first, zero-trust security gateway defending enterprise Model Context Protocol (MCP) and Agent-to-Agent (A2A) interoperability against tool poisoning, prompt injection, and data leaks.
- Tool Poisoning & Injection Interception: Deep inspection of tool schemas and parameters via
DefenseAgentto catch hidden shell commands and prompt injection overrides. - Zero-Trust Handshake & mTLS Authentication: Verified mutual-TLS connections, agent identity attestation, and rate limiting via
SecurityAgent. - Automated Data Loss Prevention (DLP): Real-time redaction of SSNs, credit cards, and cloud API keys before tool egress via
ComplianceAgent. - Cryptographic Audit Ledger: Immutable SHA-256 hash-chained telemetry for enterprise security audits and SOC2 compliance.
- Cyber Defense Studio: Interactive dark glassmorphic bilingual (English/Arabic RTL) dashboard with live threat telemetry and attack simulator.
┌─────────────────────────┐
│ Calling AI Agent │
└────────────┬────────────┘
│
┌────────────▼────────────┐
│ SecureBridge Gateway │
│ • Handshake Auth │
│ • Rate Limiting │
└────────────┬────────────┘
│
┌───────────────────────┼───────────────────────┐
▼ ▼ ▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ SecurityAgent │ │ DefenseAgent │ │ ComplianceAgent │
│ • mTLS Attest │ │ • Tool Poisoning │ │ • Least-Priv RBAC│
│ • Token Validity │ │ • Injection Scrub│ │ • DLP Redaction │
│ • Anomaly Detect │ │ • Sandbox Enclave│ │ • SHA-256 Ledger │
└──────────────────┘ └──────────────────┘ └──────────────────┘
# 1. Clone repository
git clone https://github.com/asadullah48/securebridge.git
cd securebridge
# 2. Install dependencies
pip install -e .
# 3. Run automated test suite
python -m pytest tests -v
# 4. Start local gateway & frontend defense studio
uvicorn securebridge.server:app --host 127.0.0.1 --port 8007 --reload- Interactive Defense Studio: http://127.0.0.1:8007/
- Swagger OpenAPI Docs: http://127.0.0.1:8007/docs
- Autonomy —
DefenseAgentinspects tool schemas and parameters for poisoning/injection on its own, before a call ever reaches the tool — no human reviews every MCP/A2A payload by hand. - Resilience — DLP redaction (SSNs, credit cards, API keys) runs before egress, and the SHA-256 hash-chained ledger means a compromised step is detectable and locatable after the fact, not just theoretically auditable.
- Adaptivity —
SecurityAgent's zero-trust handshake and rate limiting apply uniformly to any MCP or A2A peer, so onboarding a new agent/tool is a policy entry, not a gateway code change.
- Wire this gateway in front of the other MCP/A2A-speaking repos in this portfolio (see ProtoBridge) so cross-vendor calls route through one enforced security layer.
- Extend the anomaly-detection telemetry to a shared dashboard across every agent project that sits behind SecureBridge.
Built by Asadullah Shafique.
🔗 Explore my portfolio showcasing Agentic AI projects and real-world applications: asadullahshafique-devunity.vercel.app
- DevUnity Portfolio: https://asadullahshafique-devunity.vercel.app
- WorkforceAI Academy: https://github.com/asadullah48/workforceai-academy
- ConciergeAgent: https://github.com/asadullah48/conciergeagent
- ContextX: https://github.com/asadullah48/contextx
- GuardrailAI: https://github.com/asadullah48/guardrailai
- MarketAgentHub: https://github.com/asadullah48/marketagenthub
- WorkforceAI: https://github.com/asadullah48/workforceai
- DomainX: https://github.com/asadullah48/domainx