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

推荐订阅源

D
DataBreaches.Net
L
LangChain Blog
博客园_首页
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
WordPress大学
WordPress大学
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
C
Check Point Blog
IT之家
IT之家
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
D
Docker
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ

Practical DevSecOps

Become a Cybersecurity AI Forward Deployed Engineer ($235K) How to protect your business from cyber attacks in 2026 AI Security Engineer Job Description: The API Gap How to Write a DevSecOps Job Post That Filters Candidates Top AI Security Threats in 2026 (And How to Defend Against Them) - Practical DevSecOps Prompt Injection Explained: Definition, Examples, and Defenses - Practical DevSecOps Choosing the Right AI Security Certification: A Head-to-Head Comparison - Practical DevSecOps AI Red Teaming vs. AI Security: How They Differ - Practical DevSecOps AI Security Explained in Plain Terms AI Security Fundamentals: Threats, Controls & Skills Guide New AI Security Certification 2026: Which One to Pick AI Security Skills: What to Learn in 2026 and How to Prove It New AI Skills for Cybersecurity Engineers in 2026 Build an effective AI strategy: a security-first framework Best AI Security Certification for CISM Holders: CAISP vs AAISM Best AI Security Certification for CISSP Holders - Practical DevSecOps How to Become an AI Security Architect in 2026 (Skills, Salary, Path) Security Champion vs. Application Security Engineer Compared Best Threat Modeling Certification in 2026 (CTMP, Ranked #1) Security Champion Certification: CSC vs. Pluralsight vs. Checkmarx - Which One Actually Gets You Hired? - Practical DevSecOps What Is a Certified Security Champion? Role, Responsibilities, and Career Path - Practical DevSecOps Top AI Red Team Certification Comparison: CAISP vs. OSAI vs. SEC536 - Which One Gets You Job-Ready Skills? - Practical DevSecOps Best Application Security Courses Compared: Top AppSec Trainings and Certifications in 2026 - Practical DevSecOps MCP Security Statistics 2026: CVEs, Vulnerabilities & Breach Data - Practical DevSecOps Highest-Paying Cybersecurity Certifications for 2026  - Practical DevSecOps MCP Gateway Security: How to Secure the AI Integration Layer - Practical DevSecOps Highest Paying MCP Security Job Roles with Salary Details 2026 - Practical DevSecOps How MCP Security Skills Boost Your Cybersecurity Profile - Practical DevSecOps Top 10 MCP Security Tools in 2026 MCP Security Architecture Guide: 5 Production Layers
MCP Security Fundamentals: The 2026 Guide for Security Teams
Varun Kumar · 2026-05-26 · via Practical DevSecOps

MCP security fundamentals matter because the Model Context Protocol now connects AI agents to databases, cloud APIs, file systems, and internal tools across the enterprise. One compromised MCP server gives an attacker the same reach as the AI agent it serves. 

The evidence is already public. CVE-2025-49596 hit MCP Inspector at CVSS 9.4. The first malicious MCP package ran undetected for two weeks in September 2025 while exfiltrating email data. If your team ships AI agents, you need to know what MCP exposes and how to protect it.

Certified MCP Security Expert

Attack, defend, and pen test MCP servers in 30+ hands-on labs.

Certified MCP Security Expert

What MCP security covers

MCP is an open protocol from Anthropic, released in late 2024. It connects LLMs to external tools using a client-server model over JSON-RPC 2.0. MCP security covers every component in that chain: the host application, the MCP client, the MCP server, the transport layer, the tools each server exposes, and the credentials the server holds. The MCP specification states the protocol does not enforce security at the protocol level. That responsibility sits with implementers.

How MCP security differs from API security

Traditional API security assumes a human sends a request through a UI. MCP changes that assumption. An LLM picks the tool, builds the arguments, and triggers the call based on input that may include data from emails, tickets, files, or web pages. 

That input can carry hidden instructions. Signature-based controls miss attacks that operate at the semantic level. The AI itself becomes a confused deputy. So MCP security has to handle prompt injection, tool poisoning, and credential abuse on top of standard authn/authz, transport, and supply chain risks.

The 5 pillars of MCP security

1. Authentication and authorization
Use OAuth 2.1 with PKCE. Validate token audience on every inbound request. MCP servers must reject tokens not issued for them. No token passthrough. Bind sessions to user identity. The MCP specification 2025-11-25 lets you delegate auth to an external identity provider, which cuts custom code.

2. Transport security
Use TLS 1.3 for all remote MCP traffic. Apply mTLS for server-to-server calls. Turn on DNS rebinding protection for any local HTTP transport. Local stdio transport carries different risks since it runs on the host with full user privileges.

3. Input validation
Treat every tool input as hostile. Sanitize before it reaches a database, shell, or another API. Watch for prompt injection through tool descriptions, resource content, and external data the agent reads. The Anthropic SQLite MCP server, forked 5,000+ times, had a SQL injection flaw that enabled stored prompt injection.

4. Session management
Generate session IDs with a cryptographically secure RNG. Bind them to user identity using a format like <user_id>:<session_id>. Rotate, expire, and invalidate sessions on logout. Never use sessions as the authentication mechanism. Set HTTPS-only and SameSite cookie flags.

5. Supply chain
Pin MCP server versions. Verify package signatures. Run SCA on all dependencies. Watch for typosquatted MCP packages on npm and PyPI. The September 2025 incident was a malicious package, not a code flaw. A signed-package policy would have blocked it.

Top MCP attack patterns to know

  • Prompt injection:
    Hidden instructions inside data the AI processes. The agent acts on them as if they came from the user.
  • Tool poisoning:
    An attacker changes a tool’s description or schema so the AI calls it incorrectly. OWASP MCP Top 10 lists this as a top risk.
  • Confused deputy:
    The MCP server acts with its own permissions instead of the user’s. The AI gets more access than intended.
  • Token passthrough:
    An MCP server forwards an upstream token instead of one issued to itself. This bypasses audience checks.
  • Session hijacking:
    Weak or predictable session IDs let an attacker take over a logged-in user.
  • Excessive tool permissions: 
    A server registers tools with broad scopes. The AI invokes them, and damage spreads laterally.
  • Supply chain compromise:
    A malicious or backdoored MCP package executes with full user privileges on the host.

A starting checklist

  • Inventory every MCP server linked to your AI applications.
  • Apply OAuth 2.1 + PKCE on all remote MCP servers.
  • Validate token audience on every inbound request.
  • Sanitize every tool input and output.
  • Sign and verify MCP packages before install.
  • Log every tool invocation with user, session, server, and arguments.
  • Rate limit per user, session, and tool.
  • Run a tabletop exercise on prompt injection through email.
  • Map your controls to OWASP MCP Top 10.

Conclusion

Hands-on labs build the skill faster than reading specs. The Certified MCP Security Expert (CMCPSE) course from Practical DevSecOps covers MCP threat modeling, OWASP MCP Top 10, authn/authz patterns, prompt injection defense, tool poisoning detection, and secure MCP server build practices. The course runs in browser-based labs, so you practice exploits and fixes on real MCP servers. If you ship AI agents to production, your team needs this skill before an attacker tests it for you.

Certified MCP Security Expert

Attack, defend, and pen test MCP servers in 30+ hands-on labs.

Certified MCP Security Expert

Varun Kumar

Varun is a Security Research Writer specializing in DevSecOps, AI Security, and cloud-native security. He takes complex security topics and makes them straightforward. His articles provide security professionals with practical, research-backed insights they can actually use.