Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

FeedContattoPrivacy© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
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
Strumenti/GitHubGitHub/instabaines/semantic-firewall-mcp
Authentication & AuthorizationDefensive ToolsWeb SecurityCryptographyPenetration TestingIdentity & Access Management (IAM)Papers & ResearchAPI SecurityAI Security
GitHubinstabaines/semantic-firewall-mcp

semantic-firewall-mcp

120 ott 2026Non ancora revisionato
Condividi

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

Vedi Repository
Contenuto non disponibile nella lingua richiesta. Visualizzazione della versione inglese.

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

Scarica lo strumento

Strumenti correlati

  • keycloak

    Gestione open source di identità e accessi per applicazioni e servizi moderni

  • hydra

    Provider OAuth 2.0 e OpenID Connect certificato OpenID per l'emissione di token, la gestione dei client, JWKS e l'orchestrazione dei flussi di login/consenso tramite API headless per applicazioni cloud-native.

  • kratos

    Sistema di gestione delle identità e degli utenti API-first per applicazioni cloud-native. Gestisce login, registrazione, MFA, recupero e gestione del profilo con supporto per OIDC, SAML e accesso tramite social network.

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

  • 1

    Callisto

    jetp1ane/callisto

    Strumento automatizzato di analisi delle vulnerabilità binarie che decompila eseguibili tramite Ghidra, esegue la scansione del pseudo-codice C con Semgrep e convalida i risultati utilizzando GPT-3.5-Turbo per ridurre i falsi positivi.

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # App di esecuzione con un tocco GhostLock (CVE-2026-43499)

    839
  • 3

    DFRoot

    a2333c/dfroot

    Strumento di root per Android per Samsung Galaxy S25 Ultra (SM-S938B) che concatena DirtyFrag CVE-2026-43284 e CVE-2026-43499 per ottenere i privilegi di root automaticamente all'avvio tramite KernelSU.

    447
  • 4

    ARTEX

    baarai/artex

    Piattaforma di penetration testing autonoma multi-agente basata su LLM con agenti planner/worker, grafi di asset e di esplorazione, registrazione del traffico MITM e retesting delle vulnerabilità.

    386
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 Il toolkit OSINT definitivo: grafo di indagine, punteggio di affidabilità, famiglie di alias, mappa, timeline e report. 49 moduli, oltre 400 siti, nessuna chiave API richiesta.

    352
  • 6

    faraday

    infobyte/faraday

    Strumenti di cybersecurity open-source e basati sull'IA per la sicurezza offensiva, la gestione delle vulnerabilità e il pentesting autonomo. Creati da hacker in America Latina, utilizzati in tutto il mondo.

    344

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →