Skip to content

About

A compliance-first, zero-trust security gateway that fortifies enterprise Model Context Protocol (MCP) and Agent-to-Agent (A2A) interoperability shielding against tool poisoning, prompt injection, and data exfiltration with uncompromising resilience.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🛡️ SecureBridge: Agent Security Layer for MCP/A2A Mesh

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.

License: Apache 2.0 Python 3.10+ Tests Passing FastAPI Author


🚀 Key Value Propositions

  1. Tool Poisoning & Injection Interception: Deep inspection of tool schemas and parameters via DefenseAgent to catch hidden shell commands and prompt injection overrides.
  2. Zero-Trust Handshake & mTLS Authentication: Verified mutual-TLS connections, agent identity attestation, and rate limiting via SecurityAgent.
  3. Automated Data Loss Prevention (DLP): Real-time redaction of SSNs, credit cards, and cloud API keys before tool egress via ComplianceAgent.
  4. Cryptographic Audit Ledger: Immutable SHA-256 hash-chained telemetry for enterprise security audits and SOC2 compliance.
  5. Cyber Defense Studio: Interactive dark glassmorphic bilingual (English/Arabic RTL) dashboard with live threat telemetry and attack simulator.

🏛️ SecureBridge Architecture

                    ┌─────────────────────────┐
                    │    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 │
└──────────────────┘   └──────────────────┘   └──────────────────┘

🛠️ Quick Start

# 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

🤖 Agentic AI Alignment

  • Autonomy — DefenseAgent inspects 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.

Roadmap

  • 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.

🤖 Author

Built by Asadullah Shafique.

🔗 Explore my portfolio showcasing Agentic AI projects and real-world applications: asadullahshafique-devunity.vercel.app

🌐 Connected Ecosystem & Portfolio

About

A compliance-first, zero-trust security gateway that fortifies enterprise Model Context Protocol (MCP) and Agent-to-Agent (A2A) interoperability shielding against tool poisoning, prompt injection, and data exfiltration with uncompromising resilience.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages