
Cloudflare Workers 上的一个诱饵 MCP 服务器。它会暴露一个假的内部管理工具(Okta 密码重置),旁边还有无害的工具。
概览
Cloudflare Workers 上的一个诱饵 MCP 服务器。它暴露了一个假的内部管理工具(Okta 密码重置),旁边还有无害的工具。合法用户没有理由调用管理工具,因此任何调用它都是检测信号。每次呼叫都会触发 Canarytoken 警报。 它是《注册表层的欺骗》一文的参考诱饵,该论文涵盖如何在MCP注册表中将诱饵服务器与真实服务器并置。 实时实例:deception-remote-mcp-server.harshad-surfer.workers.dev(MCP端点:/mcp) 该陷阱也可以作为普通 REST 端点(POST /okta_admin_password_reset)访问,用于捕捉跳过 MCP 的扫描器。 警报会发送到CANARY_TOKEN_URL中 src/index.ts 顶部的 Canarytoken URL。在部署你自己的副本之前,先创建一个免费的 canarytokens.org 链接,并用你的替换该 URL。否则你的提醒会归原作者所有。
概述(AI 翻译)
Cloudflare Workers 上的一个诱饵 MCP 服务器。它暴露了一个假的内部管理工具(Okta 密码重置),旁边还有无害的工具。合法用户没有理由调用管理工具,因此任何调用它都是检测信号。每次呼叫都会触发 Canarytoken 警报。
它是《注册表层的欺骗》一文的参考诱饵,该论文涵盖如何在MCP注册表中将诱饵服务器与真实服务器并置。
实时实例:deception-remote-mcp-server.harshad-surfer.workers.dev(MCP端点:/mcp)
工具
| 工具 | 角色 | 发射金丝雀 |
|---|---|---|
welcome |
列出可用工具 | 否 |
ask_about_me |
关于占位资料数据的问答,使服务器看起来像真正的个人助理 | 不 |
okta_admin_password_reset |
陷阱。 假装重置用户密码,并对特权名称如admin或root回答不同 |
是的 |
陷阱也可以作为普通 REST 端点([POST /okta_admin_password_reset)访问,用于捕捉跳过 MCP 的扫描器。
终点
| 路径 | 交通 |
|---|---|
/mcp |
可流式HTTP(当前MCP传输) |
/sse |
服务器发送事件(遗留传输) |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Threat Trap
A decoy MCP server on Cloudflare Workers. It exposes a fake internal admin tool (an Okta password reset) next to harmless tools. Legitimate users have no reason to call the admin tool, so any call to it is a detection signal. Each call fires a Canarytoken alert.
It is the reference decoy for the paper Deception at the Registry Layer, which covers placing decoy servers alongside real ones in an MCP registry.
Live instance: deception-remote-mcp-server.harshad-surfer.workers.dev (MCP endpoint: /mcp)
Tools
| Tool | Role | Fires the canary |
|---|---|---|
welcome |
Lists the available tools | No |
ask_about_me |
Q&A over placeholder profile data, so the server looks like a real personal assistant | No |
okta_admin_password_reset |
Trap. Pretends to reset a user’s password, and answers differently for privileged names such as admin or root |
Yes |
The trap is also reachable as a plain REST endpoint (POST /okta_admin_password_reset), which catches scanners that skip MCP.
Endpoints
| Path | Transport |
|---|---|
/mcp |
Streamable HTTP (current MCP transport) |
/sse |
Server-Sent Events (legacy transport) |
/ |
Landing page for browsers; MCP requests sent here are routed to /mcp |
/okta_admin_password_reset |
REST trap (POST, JSON body {"okta_username": "..."}) |
Deploy your own
Or deploy manually:
npm install
npm run deploy
Alerts go to the Canarytoken URL in CANARY_TOKEN_URL at the top of src/index.ts. Before deploying your own copy, create a free Web bug / URL token at canarytokens.org and replace that URL with yours. Otherwise your alerts go to the original author.
Connect a client
Clients that support remote MCP servers (Cursor, Windsurf, Claude Desktop and others) take a config like this:
{
"mcpServers": {
"threat-trap": {
"url": "https://.workers.dev/mcp"
}
}
}
For clients that only support local (stdio) servers, bridge with mcp-remote:
{
"mcpServers": {
"threat-trap": {
"command": "npx",
"args": ["mcp-remote", "https://.workers.dev/mcp"]
}
}
}
To test whether your own agent takes the bait, connect it to your deployment and give it an open-ended task. Then check whether the canary fired.
Detection data
安装
npx mcp-remote https://<your-worker>.workers.dev/mcp配置
{
"mcpServers": {
"threat-trap": {
"url": "https://<your-worker>.workers.dev/mcp"
}
}
}