Tripwire Guard — evidence-first injection scanner

io.github.KubaOpoczka由 GitHub 帳號 KubaOpoczka 發布v0.4.2更新於 Oct 24, 2026

Local read-only MCP scanner for known prompt-injection patterns with exact evidence and no network.

已驗證STDIO僅桌面安全與監控AI 與機器學習

概覽

AI 產生的概覽

本機唯讀 MCP 伺服器,掃描不受信任文字中的已知提示注入模式,並給出允許、複核或建議封鎖的判定與證據。

可以做什麼
  • 掃描網頁、文件、電子郵件、工單或 RAG 片段等不受信任文字中的已知提示注入模式
  • 回傳結構化判定(允許、複核、建議封鎖),含命中數量、規則編號、嚴重程度、類別與比對片段
  • 可為受掃描內容附上來源資訊,例如頁面網址、電子郵件、工具結果或文件名稱
  • 預設回傳去識別化證據,也可依需求回傳原始比對證據
  • 查看每次結果所用的引擎與規則集版本
適用情境
適合在助理讀取外部來源文字、並希望這些文字進入上下文前取得快速、可解釋的離線訊號時使用。它只是啟發式訊號層而非安全保證,應與最小權限工具、核准關卡與沙箱搭配使用。
執行需求
透過 npx 從 npm 套件 tripwire-guard 以 stdio 在本機執行,需要 Node.js 22.12 以上版本。未宣告任何驗證、環境變數或標頭,且不發出網路請求。
安裝前請注意
判定基於啟發式規則:新穎、依賴情境、多語言、圖像化或高度混淆的攻擊可能被漏檢,乾淨結果只表示未命中已知訊號,並不代表內容安全。主機仍須自行執行該判定;此伺服器不會攔截或授權其他工具呼叫。要求未去識別化的證據會回傳原始比對文字,其中可能含敏感字串。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tripwire Guard — evidence-first injection scanner,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Tripwire Guard

Public package: tripwire-guard. A clean install and MCP handshake were verified on 13 August 2026.

A local, read-only MCP server that inspects untrusted text for prompt-injection before it enters an AI agent's context.

Give it text (a web page, document, email, ticket, RAG chunk) and it returns an allow / review / recommend_block decision with the exact matched evidence. It runs entirely on your machine, makes no network requests, and redacts emails, URLs and credential-like strings by default.

The engine is deterministic and ships with a public 100-case maintainer-authored evaluation — 85% accuracy, with every false positive and false negative published. It is a fast, explainable signal layer; it is not a guarantee of safety, and the host remains responsible for enforcing the decision.

Unlike an MCP proxy, Tripwire Guard does not intercept or authorize other tool calls. Unlike a model-based detector, it needs no model runtime or API. Pair it with least-privilege tools, approval gates, isolation and action-sink enforcement.

Install / run

Requires Node.js 22.12+.

bash
npx tripwire-guard

Use it in an MCP host

json
{  "mcpServers": {    "tripwire": {      "command": "npx",      "args": ["-y", "tripwire-guard"]    }  }}

The tool

tripwire_scan (read-only) — inputs:

  • content (string, required) — untrusted text to inspect.
  • source (string, optional) — provenance, e.g. a page URL, email, tool result, or document name.
  • includeEvidence (boolean, optional) — return raw matched evidence instead of redacted. Defaults to redacted.

Returns structured evidence: the decision, a finding count, per-finding rule id / severity / category / matched span, and the engine + ruleset versions.

The npm package is versioned independently from the detector engine reported inside each result. Package 0.4.2 currently ships engine 0.3.0 and ruleset 2026.08.2.

Honest limits

Deterministic heuristics can miss novel, contextual, multilingual, visual, or heavily obfuscated attacks. A clean result means "no known signal matched," not "safe." Pair it with least-privilege tools, approval gates, and sandboxing.

Map the surrounding system

Use the free agent action-path worksheet to map an untrusted input, its reachable tools, the consequential action sink, existing controls, and the minimum safe test evidence. It is ungated and contains a clearly labelled synthetic example.

More

Live demo, full benchmark, threat model, and fixed-scope team review: https://tripwire-live.netlify.app

Source and security boundary

This repository contains the distributable MIT-licensed, read-only Guard MCP server and its release metadata. The broader Tripwire browser product and paid review materials are maintained separately. Report package defects through this repository's issue tracker; do not post secrets, customer data, private prompts, or live credentials.

© 2026 Kuba Opoczka.

來源:README.md,提交 d65e220

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分