Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
semantic-firewall-mcp β€” Intent-bound authorization proxy for MCP tool calls: signed intent passports, DPoP sender constraints, and semantic inspection to block prompt-injected agent actions. | Kitploit
Tools/GitHubGitHub/instabaines/semantic-firewall-mcp
Authentication & AuthorizationDefensive ToolsWeb SecurityCryptographyPenetration TestingIdentity & Access Management (IAM)Papers & ResearchAPI SecurityAI Security
GitHubinstabaines/semantic-firewall-mcp

semantic-firewall-mcp

1Oct 20, 2026Not yet reviewed
Share

Intent-bound authorization proxy for MCP tool calls: signed intent passports, DPoP sender constraints, and semantic inspection to block prompt-injected agent actions.

View Repository

Semantic Firewall for MCP

Intent-bound authorization for Model Context Protocol (MCP) tool calls: a reference implementation, a benchmark corpus, and a reproducible evaluation.

Semantic enforcement flow

Most MCP authorization asks "is this agent allowed to call this tool?". This project asks a stricter question:

Should this tool call happen right now, given what the user actually asked for?

The motivating attack is right intent, malicious action: the user's request is legitimate and the agent holds a legitimately issued credential, but the agent has been steered (for example, by prompt injection hidden in a file it read) into a call the user never wanted, such as deleting a dataset, exporting customer emails, or mailing a report to an outside address.

  • Findings and fixes: docs/SECURITY_FINDINGS.md
  • Reproducing the results: experiments/README.md

How it works

ComponentCodeRole
Intent issuer ("orchestrator")src/orchestrator/Trusted. Accepts the user's prompt from the trusted client, summarizes intent, and signs a Contextual Passport (ES256 JWT) carrying intent summary, tool scopes, resource indicators, audience, and a cnf.jkt sender constraint.
Agent(any MCP client)Untrusted. Receives the passport, never the issuer credential.
Semantic proxy (PEP)src/semantic-proxy/Verifies the passport, then for each JSON-RPC request: method allowlist β†’ tool scope β†’ resource binding β†’ inspector verdict β†’ allow / human approval / block. Forwards with a DPoP-style proof.
Inspectorsrc/inspector/Judges whether the call matches the intent: deterministic rules (injection, exfiltration, destructive, sensitive data), a local model with a hardened prompt, or both OR-combined.
Protected MCP serversrc/protected-resource/Official MCP SDK server over Streamable HTTP. Re-verifies passport, audience, DPoP proof (with replay cache), and re-checks scope and binding.
Dashboardpublic/, src/dashboard/Live events, approvals (approver token required), reports.

Decision policy (decideOnVerdict in src/semantic-proxy/server.js):

  • inspector reports no violation, or confidence below VIOLATION_THRESHOLD β†’ allow
  • violation on a high-risk tool (export_customer_emails, delete_dataset) β†’ hold for human approval
  • violation on another tool, confidence β‰₯ AUTO_BLOCK_THRESHOLD β†’ block, otherwise hold
  • inspector unavailable or malformed verdict β†’ deny (fail closed)

Quick start

Requirements: Node.js 20+, npm, and optionally an Ollama host with a local model.

npm ci
OLLAMA_MODEL=qwen2.5:3b npm start

The stack prints an approver token at startup. Open http://127.0.0.1:4000/dashboard/ and paste the token when you first approve or deny.

In a second terminal:

npm run demo:allow     # in-intent report on sales-q1 β†’ executes
npm run demo:block     # delete_dataset under a report intent β†’ blocked (scope)
npm run demo:approve   # user-granted export, off-intent β†’ held, approved by the demo "human"
npm run demo:guided    # narrated version of the whole story

For a talk, use presenter mode on separate ports:

PRESENTER_AUTO_RUN=0 npm run presenter   # dashboard on :4500

Without a model host, run INSPECTOR_MODE=heuristic SUMMARIZER_MODE=deterministic npm start.

Configuration

VariableDefaultMeaning
OLLAMA_HOST / OLLAMA_URL127.0.0.1:11434Model host (OLLAMA_URL is the full /api/generate URL)
OLLAMA_MODELqwen3-vl:8bModel for summarizer and inspector
INSPECTOR_MODEensembleheuristic, model, or ensemble (model OR heuristic)
INSPECTOR_PROMPThardenedhardened or naive (the original prompt, kept for comparison)
INSPECTOR_HISTORY6Recent calls and results per session shown to the model judge; 0 disables
PROVENANCEoffDestination provenance: rules or model names the taint detector for tool results. Calls with a destination argument (recipient, IBAN, URL, ...) are held unless every destination comes from the prompt or clean session data
SUMMARIZER_MODEmodelmodel or deterministic
REQUIRE_MODELoff1 makes model failures hard errors instead of falling back to rules
VIOLATION_THRESHOLD0.7Minimum confidence for a violation to count
AUTO_BLOCK_THRESHOLD0.95Confidence at which a low-risk call is blocked rather than held
APPROVAL_TIMEOUT_MS30000A held call is denied when this expires
PASSPORT_TTL_SECONDS300Passport lifetime
ORCHESTRATOR_CLIENT_TOKEN, APPROVER_TOKENgeneratedOtherwise read from .runtime/secrets.json
MODEL_SEED, MODEL_TEMPERATUREunset, 0.1Sampling controls (used by the experiments)
LOG_LEVELinfoFastify log level

Keys and secrets are generated on first run under .runtime/ (mode 0600): orchestrator-signing.json (passport signing key), proxy-identity.json (DPoP key), secrets.json (client and approver tokens). None of these may be given to the agent process. In a real deployment each component would hold only its own private key.

Security properties

What the implementation enforces, and what tests or experiments check it:

  • Intent-bound scopes. Tool scopes derive from the summarized intent; explicit scopes are a recorded user grant (scope_source). Only the trusted client can mint passports.
  • Unforgeable passports. ES256 signature by the issuer; verifiers hold only the public key; alg pinned.
  • Resource binding, fail-closed. Declared resource arguments plus any URI-shaped argument value must be in resource_indicators; enforced for tools/call and resources/read.
  • Narrow protocol surface. One JSON-RPC object per request, method allowlist.
  • Semantic inspection, fail-closed. Malformed or failed verdicts deny the call.
  • Authenticated human approval. Approver token required; timeouts deny; the dashboard escapes all agent-controlled text and sends a strict CSP.
  • Sender-constrained, non-replayable forwarding. DPoP-style proof bound to method, URL, and token hash, with a jti replay cache; the resource server re-checks scope and binding.
  • No prompt in the token. Only prompt_sha256 travels.

This project does not claim formal guarantees about model judgement, complete prompt-injection resistance, a standards-complete OAuth 2.0 / RFC 9449 deployment, or production key management. Known limitations are listed in docs/SECURITY_FINDINGS.md and experiments/README.md.

Results at a glance

From the evaluation in experiments/ (73 scenarios, three local models). Aggregated tables are in experiments/results/summary/.

Download Tool

Related Tools

  • keycloak

    Open Source Identity and Access Management For Modern Applications and Services

  • hydra

    OpenID Certified OAuth 2.0 and OpenID Connect provider for token issuance, client management, JWKS, and login/consent flow orchestration via headless APIs for cloud-native applications.

  • kratos

    API-first identity and user management system for cloud-native applications. Handles login, registration, MFA, recovery, and profile management with support for OIDC, SAML, and social sign-in.

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    839
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    447
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    386
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    352
  • 6

    faraday

    infobyte/faraday

    Open-source and AI-powered cybersecurity tools for offensive security, vulnerability management, and autonomous pentesting. Built by hackers in Latin America, used worldwide.

    344

Explore all tools

Browse our collection of tools

View all tools β†’