Tkach Security

io.github.ECD5A由 GitHub 帳號 ECD5A 發布v0.1.2更新於 Oct 27, 2026

Fail-closed MCP adapter for untrusted model output over a local Tkach runtime.

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

概覽

AI 產生的概覽

失敗即拒絕的安全轉接層,在不受信任的模型提案與受保護動作之間接入本機 Tkach 執行環境,決定放行或拒絕。

可以做什麼
  • 作為 MCP 用戶端與另行啟動的本機 Tkach HTTP 執行環境之間的 stdio 橋接。
  • 在動作被允許或輸出被釋出前,提交模型提案進行權限與資訊流檢查。
  • 依賴 Core 簽發的精確範圍許可、來源與釋出檢查,並對無效、被拒、重播或取消等狀態採取失敗即拒絕。
  • 讓由代理保管的密鑰留在一般模型上下文之外,並記錄不含內容的憑證回執。
適用情境
當模型輸出被視為不受信任資料,且受保護動作或資料匯出必須經過明確、失敗即拒絕的授權邊界時適用。適合願意自行執行並設定 Tkach 執行環境,而非期待安裝套件即獲得保護的團隊。
執行需求
需要另行啟動的本機 Tkach 執行環境(tkach serve)並監聽回環位址,以及該執行環境的 bearer 權杖 TKACH_BEARER_TOKEN;TKACH_HTTP_ADDR 可指定回環位址。轉接層為 Rust crate(cargo tkach-mcp),透過 stdio 執行,僅限桌面。僅安裝套件不會啟用背景保護。
安裝前請注意
需要本機執行環境的 bearer 權杖密鑰(TKACH_BEARER_TOKEN),須妥善保管。它只涵蓋經由 Tkach 路由的路徑,不會讓模型變得可信、無法偵測所有提示注入,也無法保護已遭入侵的主機。不包含公網服務、TLS 終止與通用執行器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tkach Security,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

其他 MCP 客戶端

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

README

Русская версия

[Tkach Security — Krosna, Zaslon, Propusk and Sled]

A fail-closed security boundary for AI agents and compromised model output.

[CI] [GitHub release] [npm package] [PyPI package] [tkach-cli on crates.io] [MSRV 1.85] [Apache 2.0 license]

The model proposes. Tkach authorizes.

Put Tkach between model proposals and protected actions. Its Rust Core checks authority and information flow before allowing an action or releasing output. Model output remains untrusted data, even when the model is compromised.

Why Tkach

  • Explicit authority: protected actions need an exact-scope, Core-issued Propusk; model text cannot create one.
  • Controlled data flow: permission to read is not permission to export. Provenance and release checks remain inside the boundary.
  • Fail-closed decisions: invalid, denied, replayed, cancelled, or uncertain states do not silently become permission.
  • Isolated secrets and bounded evidence: broker-held secrets stay outside ordinary model context; Sled receipts do not include payloads.

These guarantees apply to paths routed through Tkach. It does not make the model trustworthy, detect every prompt injection, or protect a compromised host.

Start in minutes

Install from crates.io with Rust 1.85 or newer:

console
cargo install tkach-cli --version 0.1.2 --lockedtkach init my-agenttkach check my-agent/.tkach/request.jsontkach run --demo

init creates a starter request without overwriting files; check validates its schema, not permission to execute; run --demo exercises the offline boundary without a model connection. Use tkach ui for the interactive panel.

Prefer no Rust toolchain? Download a binary below and start with tkach init.

Packages and downloads · v0.1.2

ChannelWhat you getInstall / next step
GitHub Releasestkach + tkach-mcp; Linux x86_64, macOS x86_64/arm64, Windows x86_64Verify downloads
crates.ioSeven Rust crates at 0.1.2: Core, Gateway, HTTP, client, MCP, CLI, provider adapterPackage list
npmThin JavaScript / TypeScript HTTP clientnpm install [email protected]
PyPIThin Python HTTP clientpython -m pip install tkach-security-client==0.1.2
Official MCP Registryio.github.ECD5A/[email protected], local stdioConfigure MCP
GHCROCI image for Linux amd64 / arm64Digest and deployment

Binary archives include SHA-256 manifests, keyless Sigstore bundles, and GitHub build attestations. Pin the OCI digest for deployment; verification details live in the distribution guide.

Integrate without moving policy out of Rust

Use the HTTP contract from your application, the Rust client, a Python/JS/TS/Go client, or the stdio adapter from an MCP client. Clients and MCP require a separately started local tkach serve runtime and its bearer token; installing a package does not enable background protection.

tkach-core stays provider-, protocol-, and language-independent. Adapters transport requests; policy and authority stay in Rust. Follow the integration guide or copy a working examples/ scenario. The Go client is a source module, not a separate registry package.

The supported runtime is loopback-only by default. Public internet serving, TLS termination, Streamable HTTP, a cloud control plane, and a generic executor are not included; see the deployment contract.

Show the cross-platform CLI window

[Tkach CLI in English on WSL Ubuntu]

See the boundary in action

From a repository checkout, run the offline Golden Case. It needs no model service or credentials. It performs one create-only write inside a temporary sandbox, then proves that a sibling path and a compromised provider proposal are denied:

console
cargo run -p tkach-gateway --example golden_case --locked

Expected result:

text
GOLDEN_CASE|safe_output=released|allowed_write=committed|out_of_scope=denied|compromised_action=denied|compromised_executor_calls=0

The positive path uses trusted host configuration for the exact policy, destination, and executor binding; the provider supplies only an untrusted proposal. Read the architecture for the enforcement path and the release notes for the release checks and remaining limitations.

Documentation

Contributing

Keep changes small and explicit about the security boundary. Core changes need a demonstrated security or product defect; adapters must remain thin and must not duplicate Core logic. See CONTRIBUTING.md for required checks, public-claim rules, and files that must remain local.

Support

If Tkach Security is useful to your work, support its continued maintenance:

  • TON: pointoncurve.ton
  • Bitcoin (BTC): 1ECDSA1b4d5TcZHtqNpcxmY8pBH1GgHntN
  • USDT (TRC20): TUF4vPdB6QkjCvZq18rBL4Qj4dK5ihCN75

Contact

For inquiries about Tkach Security, integrations, security research, or collaboration:

[Email]   [Telegram]   [GitHub repository]

來源:README.md,提交 009559d

工具

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

版本歷史

2
  1. v0.1.2最新Sep 19, 2026
  2. v0.1.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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