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

推荐订阅源

T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
雷峰网
雷峰网
罗磊的独立博客
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 司徒正美
Last Week in AI
Last Week in AI
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
宝玉的分享
宝玉的分享

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
I Scanned 492 MCP Servers Exposed to the Internet. Here's...
Crucible Security · 2026-06-11 · via DEV Community

Over the past few weeks, I've been spending a lot of time looking at the security of AI agents.

Not the models themselves.

The infrastructure around them.

Specifically, MCP servers.

As more companies adopt AI agents, MCP servers are becoming the bridge between models and the real world. They connect agents to tools, databases, APIs, file systems, internal services, and external workflows.

Which got me thinking:

What happens when these servers are exposed to the internet?

So I decided to find out.

I analyzed 492 publicly accessible MCP servers and ran a series of behavioral security tests against them.

The goal wasn't exploitation.

The goal was understanding how these systems behave when they encounter adversarial inputs.

How I Scanned Them

For each MCP server, I performed a combination of:

  • Tool enumeration
  • Permission boundary analysis
  • Prompt injection testing
  • Command execution testing
  • Context manipulation testing
  • Behavioral security evaluation

The focus wasn't traditional vulnerability scanning.

Instead, I wanted to answer a different question:

Can an attacker influence what an AI-connected tool does simply by manipulating instructions?

Unfortunately, the answer was often yes.

The Most Surprising Finding

Out of the 492 MCP servers analyzed:

43% showed signs of command injection susceptibility.

Not because they were running outdated software.

Not because authentication was broken.

But because many systems implicitly trusted agent-generated instructions.

That trust created risk.

Pattern #1: Natural Language Becomes Shell Commands

One common pattern looked something like this:

A user asks:

"List all files in the project."

The MCP server converts that request into a shell command.

The problem is that weak validation often means the same pathway can process far more than intended.

When agent-controlled input reaches shell execution, things can get dangerous very quickly.

One-line fix:

Never pass agent-controlled input directly into shell execution. Use allowlisted commands and structured parameters.

Pattern #2: Free-Form Instructions Become Database Queries

Another recurring issue involved database access.

The agent receives a natural language request.

The request is transformed into a query.

Without strict controls, the scope of that query can expand far beyond what was originally intended.

The result isn't always a traditional injection vulnerability.

Sometimes it's simply excessive access.

One-line fix:

Use parameterized queries and strict scope enforcement. Never generate queries directly from free-form instructions.

Pattern #3: Tool Chaining Creates New Capabilities

This was probably the most interesting category.

Individually, the tools looked safe.

A search tool.

A file access tool.

An HTTP request tool.

Nothing unusual.

But when chained together by an autonomous agent, entirely new capabilities emerged.

Search became retrieval.

Retrieval became extraction.

Extraction became transmission.

The issue wasn't the tools.

It was the combination.

One-line fix:

Validate permissions at every tool boundary, not just when the agent starts.

The Bigger Problem

After reviewing hundreds of MCP servers, one thing became clear.

Most security teams are still thinking about AI infrastructure using traditional application security models.

They're asking:

  • Is authentication enabled?
  • Is the API protected?
  • Is the network secure?

Those questions still matter.

But AI systems introduce something new.

Behavioral security.

The system isn't necessarily compromised.

It's persuaded.

And that's a fundamentally different challenge.

Why I Built a Tool for This

After manually evaluating hundreds of MCP servers, it became obvious that this process doesn't scale.

That's why I built a framework to automate:

  • MCP discovery
  • Behavioral testing
  • Prompt injection evaluation
  • Command injection detection
  • Permission boundary analysis
  • Tool-chain security testing

The goal isn't to find bugs.

The goal is to identify risky behavior before attackers do.

Final Thoughts

The biggest lesson from scanning 492 MCP servers wasn't that AI systems are insecure.

It was that many of them trust instructions far more than they should.

As AI agents gain access to more tools, more data, and more autonomy, security can no longer stop at infrastructure.

We need to test behavior too.

That's one of the reasons I started building Crucible — an open-source security framework for testing AI agents, MCP servers, and agentic systems against real-world adversarial scenarios.

cybersecurity #artificialintelligence #opensource #githubopensource #security #buildinpublic #aiagents