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 分