惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Recent Announcements
Recent Announcements
Jina AI
Jina AI
G
Google Developers Blog
腾讯CDC
博客园_首页
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
MCP Security Crisis: Two Open-Source Frameworks Solving t...
Fenix · 2026-06-17 · via DEV Community

Fenix

MCP Security Crisis: Two Open-Source Frameworks Solving the Agent Security Problem

9.93% of MCP servers have description-code inconsistencies. Leading models suffer ~100% attack success under tool description poisoning. Here are two frameworks that actually solve this.

The Problem

The Model Context Protocol (MCP) has become the standard interface for connecting LLMs to external tools. As of mid-2026, the ecosystem encompasses over 2,200 public MCP servers. But the security landscape is dire:

  • 9.93% of MCP servers have description-code inconsistencies — the tool description says one thing, the code does another (Shi et al., 2026)
  • ~100% attack success rate under tool description poisoning on leading models (Liu et al., 2026)
  • 53.7% security drop on 27B models under multi-agent attacks — larger models are MORE vulnerable, not less (McAllister et al., 2026)

The repo AIM-Intelligence/awesome-mcp-security documents these threats well. This post presents two open-source frameworks that solve them.


Solution 1: MCP Core Defense

A 7-phase security proxy for MCP agent systems.

MCP Core Defense sits between the agent and ALL MCP servers. Every tool call passes through 7 sequential verification phases:

Phase Name Vulnerability It Solves
1 Policy Engine Permission Boundary Problems
2 Schema Validator Tool Name Conflicts
3 DCI Checker Description-Code Inconsistencies (the 9.93%)
4 TDP Detector Tool Description Manipulation, Indirect Prompt Injection
5 Mutual TLS OAuth Token Theft
6 Sandbox Installer Risks, Supply Chain
7 SDK Adapter Transparent integration — zero code changes

The architecture is defense-in-depth: each phase catches what the previous one might miss. Phase 3 (DCI Checker) directly addresses the 9.93% inconsistency rate found by Shi et al. Phase 4 (TDP Detector) catches the tool description poisoning that Liu et al. showed has ~100% success rate.

Stats: 127+ tests. Python 3.10/3.11/3.12. AGPL-3.0. Production-ready.


Solution 2: Agent Fixer Stage

Lightweight output verification for multi-agent AI workflows.

Agent Fixer Stage is based on a key finding from McAllister et al. (2026): a lightweight "Fixer" stage at the end of a multi-agent workflow collapses attack success from 53.7% to 0.6%.

It sits between the last agent and the user, verifying output before delivery using 4 layers:

Layer Name What It Catches
0 Normalization Unicode attacks, zero-width chars, Cyrillic homoglyphs, leetspeak
1 Pattern Matching 30+ weighted patterns across 3 passes (normal, leetspeak, cross-line)
2 Embeddings TF-IDF + cosine similarity against 33 malicious examples
3 LLM Judge Ambiguous cases only (<5% of real usage)

Three actions: pass (output is clean), clean (remove malicious content, deliver), reject (block entirely, alert user).

Stats: 42+ tests. CI/CD-ready. Exit codes: 0=pass, 1=clean, 2=rejected.


How They Complement Each Other

MCP Core Defense Agent Fixer Stage
Layer Tool call (in transit) Output (at rest)
When Before execution Before delivery
Threat Server-side attacks Agent-side corruption
Model Proxy Filter

Use both for defense-in-depth: MCP Core Defense stops poisoned tools from executing, Agent Fixer Stage catches anything that slips through.


Research Backing

  • Shi et al. (2026) — 9.93% description-code inconsistency rate across MCP servers
  • Liu et al. (2026) — ~100% poisoning success rate on leading models
  • McAllister et al. (2026) — Fixer stage collapses attack success from 53.7% to 0.6%
  • arXiv:2503.23278 — MCP threat landscape analysis
  • arXiv:2504.03767 — MCP safety audit

Links


Both projects are open-source, tested, and production-ready. Feedback and contributions welcome.

License: AGPL-3.0-or-later