
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.
概览
本地运行的 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 变量指定策略文件,未指定时使用内置默认策略。审计日志写入用户主目录下。
安装
在 SourceWeft 中
- 打开 控制台中的 AISentinel by BizDNAi,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
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
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)
Option C: clone and build
(--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
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:
--policy /path/to/file.yaml— if given, it must load; a missing or invalid file is a hard error.$AISENTINEL_POLICY— same contract as--policyif set../policies/default.yamlrelative to the current directory, if that file exists (this is what you get inside a clone of this repo).- The built-in default policy, embedded in the binary at compile time.
This is what makes
go install ... && aisentinel servework from any directory, with no repo checkout and no flags. When this path is used, the binary printsusing built-in default policyto 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(seepolicies/). - 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 —
aisentinelsubcommands (serve,validate-policy,policies,events,version). - Library — Go package
github.com/Kabzhanov/AISentinel/internal/policyfor embedding.
6. Policy Examples
See policies/default.yaml for the full default policy.
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:
-
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.
-
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+
Verify:
10. Usage Examples
Run the MCP server
Validate a custom policy
Tail recent audit events
List built-in policies
Try a policy without blocking (shadow mode)
11. Event Schema
See docs/event-schema.md. One JSON object per line
in the JSONL log:
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版本历史
1- v1.0.6最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。