Shpbl Drift Sentinel
БесплатноНе проверенAgent Behaviour Drift Sentinel: detects silent behavioural drift in agent execution traces against a signed baseline. Reference implementation of the public SHP
Описание
Agent Behaviour Drift Sentinel: detects silent behavioural drift in agent execution traces against a signed baseline. Reference implementation of the public SHPBL behaviour specification.
README
Detects when an agent's behaviour quietly changes, by comparing execution traces against a signed baseline of normal — with dimension-level attribution and a replayable exemplar.
MIT licensed · zero runtime dependencies · MCP stdio server · TypeScript
The security problem
A compromised, prompt-injected, or silently regressed agent rarely announces itself. It keeps answering, keeps calling tools, and keeps looking fine — while its tool mix shifts, its escalation rate climbs, or its refusal rate collapses. Nothing in the logs is individually alarming, so nobody looks. The change is only visible as a change: against what this agent used to do.
What this product does
It ingests caller-supplied execution traces, establishes a signed durable baseline of normal behaviour, and reports divergence with a severity, per-dimension attribution, and a replayable exemplar episode an investigator can read. Scheduled change is suppressed visibly — declared maintenance windows and known change markers are reported as suppressed, never silently dropped.
Major capabilities
- Signed, immutable baselines.
set_baselinealways creates a new version; prior versions remain loadable. A baseline that fails signature verification is refused —check_drifterrors rather than falling back to an unsigned baseline. - Dimension-level attribution.
explain_driftsays which behavioural dimensions moved and by how much, and replays the exemplar episode behind the finding. - Sample-size honesty. Below the configured minimum sample, a severity is still emitted but
capped at
info, withconfidence: insufficient-sample. - Calibration without silent mutation.
calibrateproposes a profile from labelled findings; thresholds change only throughapply_calibration, which mints a new signed baseline version. - Visible suppression. Maintenance windows and known change markers are declared, and suppressed findings are reported as suppressed.
- Redaction totality. Non-allowlisted free-text fields are reduced to a SHA-256 digest on ingest; no raw payload appears in profiles, findings, explanations, replays, or errors.
Install and run
Prerequisites: Bun 1.1+ (or Node 22+ with a TypeScript loader). No runtime dependencies to install.
git clone https://github.com/SweetKenneth/shpbl-drift-sentinel.git
cd shpbl-drift-sentinel
bun install # dev types only
bun test # conformance suite
bun run scripts/symbol-scan.ts # build-failing forbidden-symbol scan
bun src/mcp-server.ts # MCP server: newline-delimited JSON-RPC 2.0 on stdin/stdout
MCP configuration
{
"mcpServers": {
"drift-sentinel": {
"command": "bun",
"args": ["/absolute/path/to/shpbl-drift-sentinel/src/mcp-server.ts"]
}
}
}
Tool surface
| Tool | Purpose |
|---|---|
ingest_traces |
ingest caller-supplied execution traces, return a traceSetRef |
set_baseline |
sign and store a behaviour profile as a new baseline version |
check_drift |
compare a trace set against a signed baseline |
explain_drift |
dimension-level attribution plus replay of the exemplar episode |
calibrate |
propose a calibration profile from labelled findings; never mutates thresholds |
apply_calibration |
create a new signed baseline version carrying an approved calibration |
configure_suppression |
declare maintenance windows and known change markers |
Worked example
examples/worked-example.ts runs the specification's §9 scenario end to end: a clean baseline,
a drifted trace set, the resulting finding, its dimension attribution, and the exemplar replay.
bun examples/worked-example.ts
Verification results
28 conformance tests, 118 assertions: specification properties P1–P12, every §7 failure mode, and the MCP JSON-RPC surface. Forbidden-symbol scan covers 10 source files with 0 findings. Strict typecheck is clean. Runtime dependencies: zero.
Security boundaries
- Caller-supplied data only. No log scraping, no discovery, no network egress, ever.
- Read-only to the agent. This product cannot stop, throttle, or alter agent behaviour.
- No ambient filesystem writes, no process execution — enforced by a build-failing scan.
- Errors carry a fixed code and a fixed phrase from this package's own vocabulary, never a caller-supplied raw value.
See SECURITY.md for the full threat model.
Known limitations
- An attacker who controls the trace source can hide. This product detects drift in what it is shown; withheld or shaped traces suppress findings. The documented mitigation is pairing ingest with a hash-linked evidence ledger for the trace source.
- A finding is a signal for an investigator, not a verdict. It does not attribute the change to a human or external actor and does not diagnose root cause.
- Small samples yield low-confidence results by design; severity is capped at
inforather than suppressed, so a thin window is visible instead of silent.
Provenance
Discovered with SHPBL. This product originated through cross-capability composition in the SHPBL capability library. Its public implementation was independently built from a published behavioural specification. SHPBL's proprietary capability library, discovery system, harvested implementation bodies, and private provenance machinery are not included.
- Public behavioural specification: https://github.com/SweetKenneth/shpbl-spec-drift-sentinel
(a copy ships here as
SPEC-agent-behaviour-drift-sentinel.md) - SHPBL: https://shpbl.com
- Details:
PROVENANCE.md
Tenable status
Submitted to the Tenable CyberAgents Exchange for review on September 11, 2026. Submission does not imply review, approval, certification, validation, endorsement, or acceptance by Tenable.
SHPBL Agent Evidence series
Independently installable, interoperable at the evidence-record boundary:
- shpbl-action-ledger — agent action evidence ledger
- shpbl-handoff-attestor — cross-agent handoff attestation
- shpbl-drift-sentinel — agent behaviour drift detection
- shpbl-retrieval-auditor — retrieval context provenance
- shpbl-canary-chain — synthetic canary evidence chain
Licence
MIT — Copyright (c) 2026 Kenneth E. Sweet Jr. See LICENSE.
Установка Shpbl Drift Sentinel
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/SweetKenneth/shpbl-drift-sentinelFAQ
Shpbl Drift Sentinel MCP бесплатный?
Да, Shpbl Drift Sentinel MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Shpbl Drift Sentinel?
Нет, Shpbl Drift Sentinel работает без API-ключей и переменных окружения.
Shpbl Drift Sentinel — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Shpbl Drift Sentinel в Claude Desktop, Claude Code или Cursor?
Открой Shpbl Drift Sentinel на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Shpbl Drift Sentinel with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
