匠人学院 JR Academy
  • Position

    Where am I now, and where should I go?

    How your job is changing, where your experience can take you and what you still need for a target role, worked out from what you have actually done. Free, and the full result needs no sign-up.

    Analyse my career and skills

    Look up a career

    Will AI replace my job?AI impact and transition paths for common careersNew jobs in the AI eraWhat they do, what they need, how to move in

    Focused tools

    AI Engineer interview readiness30 timed questions on what you still need before interviewsCareer personality testDirections that suit how you workReturning to China checkJob prospects in China by school, major and graduation date

    AI coach

    Talk to your AI coachStill unsure after your result? Talk through what is holding you back
  • Core courses

    AI Engineer BootcampEngineering bootcamp from LLM apps to agentsAI Engineer Full-Stack Project Class16 weeks · RAG and full-stack AI projectsVibe Coding Masterclass8 weeks · direct agents to build and ship a productAI Essentials10 hours · use AI for email, reports, data and copyAI Office Automation Course8 weeks · help a whole company adopt AIOne-Person Company (OPC) Bootcamp15 weeks in person · build a one-person company with AIAll courses →

    AI engineering

    Machine Learning & Data Engineering Full-Stack ClassAI Agent & MCP Project BootcampAI Engineer Core TechniquesAI Engineer FoundationsAI Engineer Advanced: RAG to Agents and TuningClaude Code TasterAll AI engineering courses →

    AI at work

    AI Coding for everyoneClaude Code One-Day Masterclass (Non-Technical)Enterprise AI Automation BootcampAI Marketing BootcampAI Risk, Governance and Audit CourseOpenClaw 4-Week Personal AI Assistant BootcampAll AI-at-work courses →

    Career development

    AI Product Manager (BA) Bootcamp + InternshipAustralia IT Interview BootcampAustralia IT Technical Interview BootcampAustralia IT Resume BootcampAustralia Big Tech Job Search BootcampAustralia IT Career Planning BootcampAll career courses →

    Learn free first

    Vibe CodingAI for office workPrompt MasterAI EngineerAI data analysisResource centerInstructorsAll learning paths →
  • Evidence

    What will convince an employer?

    Certifications, projects, team work and competition entries, collected into one portfolio.

    See the portfolio

    Certifications

    Cert Master · all certificationsPrep and mock exams for AWS, Azure, GCP, Claude and moreAWS CLF-C02Entry-level AWS cloud certificationAWS SAA-C03Entry certification for cloud architectsClaude certificationsAnthropic Claude certification seriesAll certifications →

    Projects and team work

    P3 team projectsBuild a project with real teammates in a simulated team workflowP3 project experienceThe parts of a P3 project that go on your resumeDemo DayProject showcaseP3 certificatesProof once a project is completeAll of P3 →

    Competitions and work

    HackathonsBuild something against the clockSubmit your workAdd your project to the showcaseCareerOS portfolioDo tasks in the desktop app; your results become portfolio pieces
    Cert MasterBrowser extension, app and mini programScreenshot a question for analysis and practise anywhereAbout Cert Master
  • Connect

    How do I get myself in front of employers?

    Resume, interviews, referrals and mentors. See how far you are from the target role first, then decide what to fix.

    Start with Jobpin

    Resume and openings

    Graduate careersGraduate preparation across Australia, China, Malaysia, Singapore, the US and UKJobpinAI job search workspace: resume, roles, applicationsAI resumeRewrite your resume against a job descriptionReferralsRoles shared by students and mentorsOpportunitiesInternships, projects and collaborationsOffer boardOffers students have received

    Interviews

    AI Engineer interview guideSeven areas, with worked examplesFDE interview guideFive rounds, from scoping to the customer roundAI mock interviewPractise by text or voice and see the gapsInterview storiesReal interview experiencesSystem Design handbookPrepare for system design interviewsAll interview prep →

    Mentors

    1:1 mentorsBook AI, career and technical mentors by the hourGroup tutoringShare a tutor with a few others and pay less eachCareer coachingResume, interview and direction packages
    Jobpin desktopOne workspace for the whole job searchOrganise real experience and refine resume versions for target roles on macOS or Windows.About Jobpin
BusinessMembershipDownload CareerOS
0
匠人学院 JR Academy

Follow Us

linkedinfacebooktwitterinstagramyoutube

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-airwallex.png/image/layout/pay-alipay.png
Airbotix · AI learning & creation for kids Another Life · AI story game
Products46

CareerOS and tools

  • CareerOS
  • Cert Master
  • Jobpin
  • Jobpin web
  • Jobpin report
  • Jobpin desktop download
  • My job search reports
  • Buy report credits
  • Jobpin billing
  • AI Toolbox
  • AI Skill Marketplace

Membership

  • Membership
  • AI membership

Courses

  • Bootcamps
  • Training Camp
  • Kanban learning
  • AI Builder course
  • MCP course
  • NotebookLM workshop
  • Business Analyst course
  • Web Full-Stack Bootcamp
  • DevOps Bootcamp
  • Data Engineering Bootcamp
  • Data Analysis Bootcamp
  • Coding for Beginners
  • Algorithm Bootcamp

Career services

  • Graduate careers
  • Graduate careers in Australia
  • Graduate careers in China
  • Graduate careers in Malaysia
  • Graduate careers in Singapore
  • Graduate careers in the US
  • Graduate careers in the UK
  • 1:1 coaching
  • Career coaching
  • AI Engineer VIP
  • BA & PM Internship
  • Data Science Internship
  • Data Analysis Internship
  • Marketing Internship
  • Resume Review
  • Interview Coaching
  • Job Application Service
  • Job Monitoring
  • LinkedIn Management
  • LinkedIn Networking
Library57

Learning paths

  • All Learning Paths
  • AI Engineer
  • Context Engineering
  • Vibe Coding
  • Prompt Master
  • AI Builder
  • AI Product Manager
  • Python Basics
  • AI Productivity
  • AI Data Analysis
  • AI Finance
  • AI Content Creation
  • AI Image Creation
  • Frontend Development
  • Hermes Agent
  • OpenClaw Local Agent

Interactive labs

  • Prompt Lab
  • Frontend Lab
  • JavaScript Lab
  • Python Lab
  • AWS Lab
  • Azure Lab
  • LLM Lab
  • Git Lab

Reference and guides

  • Resources
  • Wiki
  • Cheat sheets
  • Roadmaps
  • AI roadmaps
  • Videos
  • Ebooks
  • Blog
  • Interview handbook
  • Mock exams
  • Free resources

Cities

  • Sydney
  • Melbourne
  • Brisbane
  • Adelaide
  • Singapore
  • Kuala Lumpur
  • London
  • New York
  • San Francisco
  • Los Angeles
  • Seattle
  • Toronto
  • Vancouver

Immigration

  • Australia Immigration
  • Skilled Visa 189/190/491
  • Employer Sponsored 482/186/494
  • Business Visa 188/888
  • UK Immigration
  • US Immigration
  • Canada Immigration
  • Singapore immigration
  • Malaysia immigration
Business20

For business

  • AI for Business
  • Business portal sign-in
  • Corporate Training
  • Internship Partnership
  • Recruitment Partnership
  • Enterprise (EN)

Metatree AI Lab

  • Metatree AI Lab (Chinese)
  • AI solutions (Chinese)
  • Digital employees (Chinese)
  • Case studies (Chinese)
  • Metatree AI Lab
  • AI services
  • Digital employees
  • Case studies

AI education for kids

  • Airbotix — AI Learning & Creation for Kids
  • AU Family Resource Hub
  • NAPLAN Report Guide
  • My School Data Guide
  • Sydney Private School Fees 2026
  • Kids Coding Programs
About15

Company

  • About Us
  • Our Mentors
  • Become a Mentor
  • Metaverse Classroom
  • JR Careers
  • Another Life — AI Story Game
  • Contact Us

Help and policies

  • FAQs
  • Terms & Conditions
  • Privacy Policy
  • Cancellation & Refund Policy
  • Site map

Friend links

  • CS Browser

Contact

  • hello@jiangren.com.au
  • 0421-672-555

Offices

Level 10b, 144 Edward Street, Brisbane CBD (Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
45A13, Block B, Oriental Hope Tianxiang Plaza, 500 Tianfu Avenue Middle Section, Wuhou District, Chengdu, Sichuan, China
Business Hub, 155 Waymouth St, Adelaide SA 5000
Disclaimer
footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

All content on the JR Academy website, including course materials, logos, and information provided, is protected under Australian intellectual property laws. Unauthorized use, sale, distribution, reproduction, or modification is strictly prohibited. Violations may result in legal action. By accessing our website, you agree to respect our intellectual property. JR Academy Pty Ltd reserves all rights, including patents, trademarks, and copyrights. Any infringement will be subject to legal prosecution. View Terms of Service

© 2017-2026 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572

HomeLearnCoursesCerts
  1. Home
  2. Learn
  3. Blog
  4. MCP 协议安全漏洞:AI Agent 开发者必须知道的 RCE 风险
JR Academy · BlogCareer insights

MCP 协议安全漏洞:AI Agent 开发者必须知道的 RCE 风险

Anthropic MCP 协议爆出架构级 RCE 漏洞,影响 Cursor、Claude Code、VS Code 等主流工具。开发者如何防护?实操指南。

Published2026-04-19
Reading time1 min
Author

Contents

  • MCP 协议到底出了什么问题
  • 为什么你应该关注
  • 实操指南:现在就能做的 5 件事
  • 常见问题
  • 我只在本地用 Cursor,也有风险吗?
  • Anthropic 说"设计如此",那这到底算不算漏洞?
  • 公司项目用了 MCP,要不要停掉?
  • JR Academy 相关资源

MCP 协议安全漏洞 AI Agent RCE 风险

MCP 协议到底出了什么问题

4 月 16 日,安全公司 OX Security 公开了一个让整个 AI 工具链都要抖一抖的发现:Anthropic 的 MCP(Model Context Protocol)协议存在架构级的远程代码执行(RCE)漏洞。不是某个版本的 bug,而是协议设计层面的问题——所有基于 MCP 官方 SDK 开发的工具天然就带这个风险。

MCP 是 Anthropic 推出的 AI agent 通信标准。你用 Cursor 写代码时连接的本地工具、Claude Code 调用的 shell 命令、VS Code 插件跑的 MCP server——底层都是这套协议。它已经被下载了 1.5 亿次,跑在 7000 多台公开可达的服务器上,实际受影响的实例可能超过 20 万台。

为什么你应该关注

这个漏洞的杀伤力在于它不需要破解任何防线。攻击路径大概是这样的:

  1. 攻击者在一个看起来正常的文档/网页/代码库里埋一段 prompt injection
  2. AI agent 读到这段内容后,按照指令调用 MCP tool
  3. MCP 的 STDIO 传输层直接在宿主机上 fork 子进程执行命令
  4. 攻击者拿到 shell access——API key、数据库凭证、SSH 密钥全部暴露

OX Security 在 Cursor、Claude Code、Windsurf、Gemini-CLI 上都跑通了这条链。LiteLLM、LangChain、IBM LangFlow 这些后端框架同样中招。

最讽刺的是 Anthropic 的回应——他们确认了漏洞存在,但说"STDIO 执行模型是安全默认值,清洗输入是开发者的责任"。技术上没毛病,但现实中做 MCP server 的人有几个会去做 input sanitization?AI agent 的输入来自模型输出,你没法穷举所有恶意 payload。

实操指南:现在就能做的 5 件事

如果你在用任何 MCP 相关工具,这几步今天就该做:

1. 把 MCP server 扔进 Docker 容器

最直接的防线。就算 agent 被 prompt injection 了,拿到的也只是容器里的 shell,不是你的开发机。

docker run --rm -it --network none \
  -v /tmp/mcp-workspace:/workspace \
  your-mcp-server

--network none 很关键——断网防止数据外泄。

2. 用文件系统白名单限制 MCP tool 的访问范围

大部分 MCP server 实现都支持 allowedPaths 或类似配置。把它锁死在项目目录下,别让 agent 能读 ~/.ssh 或 ~/.aws。

3. 检查你的 MCP server 有没有在公网暴露

跑一下 ss -tlnp | grep <mcp-port>,看看是不是只绑定了 127.0.0.1。如果绑的是 0.0.0.0,你的 MCP server 对整个网络开放。

4. 升级到最新版 SDK 并关注安全公告

虽然 Anthropic 说不改协议设计,但各语言 SDK 后续可能会加沙箱层。TypeScript SDK 的 GitHub Issues 里已经有社区提的 sandbox PR。

5. 在 CI/CD 里加 MCP 安全扫描

OX Security 开源了检测工具,能扫描你的 MCP server 配置有没有高危暴露面。

常见问题

我只在本地用 Cursor,也有风险吗?

有。如果你打开了一个包含恶意 prompt injection 的代码仓库,Cursor 的 MCP agent 可能会在你的机器上执行命令。风险比远程服务器低,但不是零。

Anthropic 说"设计如此",那这到底算不算漏洞?

看怎么定义。从协议规范来说,STDIO 传输确实就是"启动进程、读写 stdin/stdout",没说要沙箱。但从安全角度看,一个让 AI 模型能在宿主机上执行任意命令的设计,在 2026 年被当成"安全默认值",这个判断有问题。

公司项目用了 MCP,要不要停掉?

不用停,但要加防护。Docker 隔离 + 文件白名单 + 网络限制,三层做到位就行。比完全不用 AI agent 划算多了。

JR Academy 相关资源

这个漏洞的核心是安全意识和 DevOps 实践。如果你想系统学习:

  • DevOps 课程 — 覆盖容器化、CI/CD 安全、基础设施即代码
  • Cybersecurity 学习路线 — 从 OWASP Top 10 到供应链攻击防护
  • AI 工具实战 Wiki — AI agent 开发最佳实践持续更新中
Author
Share or copy the link

Related certifications

Start with a few sample questions or a free chapter. The exam guide covers what the exam tests; the question bank lets you practise by exam domain.

Foundational

ISC2 CC

CC

Question bankExam guide
Associate

CompTIA Security+

SY0-701

Sample questionsExam guideQuestion bank

Related learning resources

  • AI learning hub
  • Prompt engineering
  • AI Engineer learning path
← Previous articleClaude Opus 4.7 升级指南:从 4.6 平滑迁移 + agentic 编码实战Next article →AI 编程工具引爆 App Store:开发者该怎么抓住这波红利

Related articles

🇦🇺测一下:袋鼠国码农能当FDE吗?

2026-12-01

Monash 研究:肠道酸度是膳食纤维降血压的关键;AI 搬运新闻冲击维州选举信息;MPAC 公布 2027 演出季

2026-12-01

Adelaide 物理学家获 $250,000 总理科学奖;全球葡萄酒消费六十年降四分之一;残障师范生实习障碍研究

2026-12-01

DVA-C03今日上线首发 · Google Cloud AI Agent认证完整解析 · AZ-401本月GA替代AZ-400

2026-12-01

Anthropic推迟下一代模型并调百人做安全,AWS推出AI办公三件套,Google让用户单独关掉AI训练

2026-12-01

GitHub Copilot 实战指南 — Copilot AI Code Review:30 秒让 AI 帮你审 PR,三档深度随需切换

2026-11-30
View all articles →

Done reading? Next steps

Not sure what to learn next? Tell us where you are

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation
  • SkillAI Engineer Bootcamp13 weeks, 12 Theory + 13 Practice live classes. You build one Agent system across Context, RAG, Tools, Memory and production Evals. Built for Applied AI and Agent Engineer roles.See the program →
  • PositioningLearning roadmaps by roleFrontend, backend, data, AI and more, laid out stage by stage in the order to learn them.All roadmaps →
  • ExpressionTry an AI mock interviewPick a role and run a mock interview to practise explaining your experience and projects.Practise now →

Not sure what to do next?

Take this page's topic with you and see where your gaps are.

Compare with my situation
JR Academy
AI learning for the global Chinese community
BootcampsFree resourcesLearn AICareer coaching
精选推荐
AI Career Impact Map
Assess career exposure and explore transition paths and learning options
Popular tool
AI & Data Bootcamps
Build your skills through structured courses and hands-on projects
Popular courses
1:1 Career Coaching
Work with an experienced mentor on your resume and interview preparation
Career coaching
Custom Corporate Training
AI training tailored to your team
Business services
Popular tags
Vibe CodingAI codingCursorClaudeJob searchPromptFrontend developmentBackend development
Subscribe to updates

Receive AI learning resources, technical tutorials and career advice by email.

We respect your privacy and do not send spam.