Repository navigation
Benchmark and plugin for catching poisoned MCP tools with a 1B model #7440
Charansripadi
started this conversation in
Show and tell
Replies: 1 comment
|
We would need to create a hook or service that would run it at registration time and when it reloads the tools from mcp server. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Related to #6825. I measured how far name similarity gets on tool poisoning, then fine-tuned Gemma 3 1B to read the whole tool definition.
Name distance still matters for the shadowing case in #6825, and my model only caught 12 of 18 shadowing attacks, so I see these as complementary. I chose v2's attack categories by reading v1's errors on both benchmarks, so its gains aren't a fully blind measurement.
ContextForge has no hook at registration time, so the plugin checks at
tool_pre_invoke. It takes about 1.8 s per tool on a 4-vCPU CPU (Q4 build). That build scored 86.8% / 1.3% and 86.6% / 4.1%.Model: https://huggingface.co/CharanSripadi/toolguard-1b
Plugin: https://github.com/Charansripadi/toolguard/tree/main/contextforge_plugin
Would a check at registration be useful here? I'd rather run it once per tool than on every call.
All reactions