Notícias
Notícias
5 min de leitura
22 de outubro de 2026

Seu agent framework tem supply chain RCE

OpenCode flaw: Malicious MCP servers execute code on sign-in. Your agent? Same risk. Supply chain = attack vector.

Equipe OpenClaw

Equipe OpenClaw · Time de Engenharia & Produto

A Equipe OpenClaw é formada por engenheiros, designers e especialistas em IA dedicados a construir a melhor plataforma de agentes conversacionais para negócios brasileiros. Combinamos expertise…


Seu agent framework tem supply chain RCE

What just happened (October 2026):

OpenCode (AI coding agent by Anomaly) had critical flaw:

"Malicious MCP (Model Context Protocol) servers execute arbitrary code during sign-in."

"Attack vector: Developer installs untrusted MCP server → Code runs with developer's permissions."

"Impact: Full machine compromise (source code stolen, credentials exposed, backdoor installed)."

"Scope: OpenCode + any agent framework using MCP protocol (supply chain attack surface)."

What this means for your company:

Current situation (your agent development): Your team: Building agents on OpenCode / Claude API / other frameworks MCP servers: Installing plugins (Slack integration, GitHub tools, etc) Security posture: "We trust these plugins" (probably shouldn't)

Attack scenario (how OpenCode flaw enables this): Step 1: Attacker creates "SlackIntegration" MCP server (looks legitimate) Step 2: Attacker uploads to GitHub (disguises as popular plugin) Step 3: Your developer installs plugin ("looks useful") Step 4: Developer signs into OpenCode (authentication flow) Step 5: Malicious MCP server executes code (during sign-in, automatic) Step 6: Attacker gets full access to developer machine

What attacker does next:
  - Steal source code (git clone your repos)
  - Steal credentials (AWS keys, GitHub tokens, API keys in .env)
  - Install backdoor (persistent malware, survives restarts)
  - Exfiltrate customer data (access your databases via dev machine)
  - Sabotage code (inject vulnerabilities into your agent)
  - Pivot to company network (use compromised dev machine as entry point)

Discovery timeline: Week 1: Developer installs malicious plugin (no symptoms) Week 2: Attacker steals credentials (silent, background process) Week 3: Attacker accesses your GitHub repos (clones entire codebase) Week 4: Attacker installs backdoor (persistent access) Week 8: You discover breach (usually by accident or external notification)

Time to compromise: WEEKS (without detection)
Damage scope: COMPANY-WIDE (all source code + credentials exposed)

Why MCP supply chain is dangerous:

MCP architecture (design flaw): What is MCP: Protocol for agent frameworks to connect to external tools Use case: Agent needs Slack integration, GitHub access, email, etc How it works: External server runs as "plugin" Trust model: Zero (any MCP server can do anything on your machine)

Problem 1: No sandboxing
  MCP server code runs with full permissions (same as developer)
  No restrictions (can read files, access network, execute programs)
  Result: Malicious MCP = full machine access (RCE = Remote Code Execution)

Problem 2: No verification
  MCP servers not signed (anyone can create one)
  No marketplace vetting (GitHub allows any repo)
  Developer installs based on trust (but how do you verify trust?)
  Result: Fake plugins look identical to real ones

Problem 3: Silent execution
  MCP code runs during sign-in (automatic, no user confirmation)
  No logs (developer doesn't see what ran)
  Background process (runs silently while developer works)
  Result: Compromise completely invisible

Problem 4: Credential access
  Developer's machine has ALL credentials (.env files, ~/.ssh, git config)
  MCP server has access to developer's home directory
  Attacker extracts credentials (API keys, tokens, passwords)
  Result: Access to your entire infrastructure

Real-world impact (companies hit):

Company A (SaaS startup): Scenario: Developer installs "GitHub-Copilot-MCP" (fake) Compromise: Malicious plugin steals GitHub token Impact: Attacker pushes malicious code to production (backdoor in agent) Damage: Agent compromised, customer data exposed, LGPD violation Cost: R$500k-2M (incident response + customer refunds)

Company B (Fintech): Scenario: Developer installs "Slack-Integration-MCP" (hijacked) Compromise: Plugin steals AWS credentials from .aws/credentials Impact: Attacker accesses AWS console, creates cryptocurrency miner Damage: Massive cloud bills + reputation damage + regulatory scrutiny Cost: R$1M-5M (cloud overage + incident response + fines)

Company C (Agency): Scenario: Developer installs "OpenCode-Productivity-Plugin" (malware) Compromise: Plugin installs persistent backdoor Impact: Attacker maintains access for months (steals all client data) Damage: Client trust destroyed, contracts terminated, lawsuits Cost: R$2M-10M (lost revenue + legal + reputation)

Common thread: All started with innocent-looking MCP plugin Why undetected: No sandbox, no logs, silent execution Lesson: Supply chain = critical attack vector


Agent framework security gap

Why MCP protocol is exploitable

Understanding the architecture (vulnerability anatomy):

MCP design (intended): Goal: Enable agents to access external tools Example: Agent needs to send Slack message → MCP Slack server Flow: Agent: "Send message to #general" MCP server: Receives request, executes (send via Slack API) Result: Agent capability extended (now has Slack access)

Problem: No constraints MCP server requested: "Send message to #general" MCP server can also: Read all Slack files, delete channels, steal tokens No permission boundaries (can do anything on your machine)

OpenCode vulnerability (specific): When: During developer sign-in What: MCP server loads automatically Where: Code runs with developer's full permissions Why: No sandboxing (MCP runs in same process as OpenCode)

Attack vector: Malicious MCP declares: "I'm Slack integration" Developer approves: "Looks useful, install it" Sign-in happens: MCP automatically loads Code executes: Malicious payload runs (steal credentials) No confirmation: Developer unaware (silent execution)

Result: Developer machine fully compromised

Why this matters for your agents:

If you use: OpenCode, Claude Desktop, any MCP-based framework Risk: Same vulnerability exists (supply chain code execution) Attack surface: Every MCP plugin you install

Affected frameworks: OpenCode (confirmed vulnerable) Claude Desktop (uses MCP, same risk) LangChain agents (if using MCP) AutoGPT (if using MCP) CrewAI (if using MCP) Custom agents (if implementing MCP)

If any of above: You're exposed (supply chain RCE risk)


How to protect against MCP supply chain attacks

Practical security hardening

Step 1: Inventory current MCP usage

Question: Are you using MCP? Check 1: OpenCode installed? (Yes = MCP risk) Check 2: Claude Desktop installed? (Yes = MCP risk) Check 3: Any agent frameworks? (Check if MCP-based) Check 4: MCP plugins installed? (List all) Check 5: Team members have these? (Unknown = dangerous)

If ANY yes: You're exposed (inventory risk)

Question: Which MCP servers installed? GitHub repo MCP Slack integration MCP Email MCP Custom internal MCP Third-party tools MCP (etc.)

For each: Ask Where did it come from? (GitHub? Official? Trusted?) Who created it? (Known org? Unknown developer?) How long have we used it? (Weeks? Months? Years?) How many developers have it? (1? 10? 100?) When was it last updated? (Recently? Abandoned?) Does it have security audit? (No? Red flag)

Risk assessment: Unknown origin MCP = highest risk (disable immediately) Unmaintained MCP = high risk (could have vulnerabilities) Third-party MCP = medium risk (trust the vendor) Official MCP = lower risk (but not zero) Internal MCP = lowest risk (if code reviewed)

Step 2: Disable dangerous MCP plugins

High-risk plugins (disable immediately):

  • Community plugins with <100 stars (unverified)
  • Plugins from unknown GitHub users (no track record)
  • Plugins not updated in >6 months (abandoned, vulnerable)
  • Plugins claiming "productivity boost" (suspicious, vague)
  • Plugins you don't remember installing (verify purpose)
  • Plugins requesting unusual permissions (filesystem access, network)

Medium-risk plugins (evaluate + audit):

  • Popular plugins (1000+ stars, but verify code)
  • Official integrations (Slack, GitHub, etc)
  • Plugins from established orgs (but audit before use)

Low-risk plugins (acceptable with monitoring):

  • Official plugins signed by provider
  • Plugins with public security audit
  • Plugins from organization you control (internal)
  • Plugins with active maintenance + public issue tracking

Action: Review installed plugins Command: ~/.opencode/plugins/ (OpenCode) Command: ~/.claude/mcp-servers/ (Claude Desktop)

For each plugin: [ ] Source verified (GitHub URL legitimate?) [ ] Creator verified (org or known developer?) [ ] Code reviewed (read source, understand what it does?) [ ] Purpose clear (why do we need this?) [ ] Safe to keep (or disable?)

Delete: Any you're unsure about (risk >> benefit)

Step 3: Implement organizational controls

Control 1: Approved MCP list Requirement: Only allow pre-approved MCP servers Implementation: - Create whitelist (official repo, vetted plugins only) - Block unknown plugins (configuration lock) - Document each approved plugin (why we use it) - Review quarterly (remove unused, update approved list)

Cost: R$0 (policy + enforcement) Effort: 1 week (audit + whitelist) Benefit: 95% risk reduction (blocks unknown plugins)

Control 2: Code review before installation Requirement: Security review before any MCP plugin deployed Process: - Developer requests new plugin - Security team reviews source code (15-30 min) - Team approves or rejects (security gate) - Only approved plugins allowed

Cost: R$0 (internal security team) Effort: 2 hours per review Benefit: Malicious plugins caught before compromise

Control 3: Isolated development environments Requirement: Developers work in sandboxed environments Options: Option 1: Docker containers (each dev gets isolated VM) Option 2: Cloud-based IDEs (code runs on managed servers, not personal machines) Option 3: Restricted user accounts (no admin, limited filesystem access)

Cost: R$5-20k/month (infrastructure) Effort: 2-4 weeks (setup + migration) Benefit: Even if MCP compromised, damage contained (can't access company infrastructure)

Control 4: Credential isolation Requirement: Developer machines don't store sensitive credentials Implementation: - AWS IAM roles (instead of access keys in ~/.aws/credentials) - GitHub SSH keys stored in secure vault (not .ssh directory) - API keys stored in secrets manager (not .env files) - Database access via temporary tokens (not permanent passwords)

Cost: R$10-30k (secrets infrastructure) Effort: 2-3 weeks (migration) Benefit: Even if MCP steals credentials, they're temporary/revoked

Control 5: Monitoring + detection Requirement: Detect if MCP plugin behaves maliciously Options: Option 1: Network monitoring (alert if unusual outbound traffic) Option 2: Process monitoring (alert if MCP spawns suspicious processes) Option 3: File monitoring (alert if MCP accesses sensitive files) Option 4: Credential monitoring (alert if API keys used from unexpected locations)

Cost: R$5-15k/month (EDR/MDR solution) Effort: 1 week (deployment + tuning) Benefit: Compromise detected within minutes (vs weeks)

Control 6: Incident response plan Requirement: Know what to do if MCP plugin compromised Plan: - Detection: How do we know we're compromised? (alerts above) - Response: Who decides to disable plugin? (incident commander) - Forensics: Collect logs + preserve evidence (for investigation) - Remediation: Rotate credentials, audit access, patch vulnerability - Notification: Inform customers if data leaked (LGPD requirement)

Cost: R$5-20k (planning + legal review) Effort: 1-2 weeks (document + practice drills) Benefit: If attacked, response is minutes (vs weeks of chaos)

Step 4: Update to fixed versions

OpenCode fix (available): Version: 1.18.33+ (fixed MCP vulnerability) Action: Update immediately (if using OpenCode) Command: opencode --update Verify: opencode --version (should show 1.18.33+)

Other frameworks: Check vendor security advisories Claude Desktop: Check Anthropic security updates LangChain: Check official security bulletin CrewAI: Check repository releases Custom agents: If using MCP, patch immediately

Timeline: Update within 24 hours (critical vulnerability)


Bottom line

Your MCP supply chain risk (assess now):

Risk assessment (your situation):

High risk (fix immediately): Using OpenCode version <1.18.33: CRITICAL (update now) Installing unknown MCP plugins: CRITICAL (disable now) MCP plugins in production agent code: HIGH (review now) Storing credentials on dev machines: HIGH (migrate to secrets vault) No monitoring of MCP activity: HIGH (add EDR/MDR now)

Timeline: 24-48 hours (emergency response)
Cost: R$0-10k (patches + monitoring)
Benefit: Prevents supply chain RCE (existential protection)

Medium risk (fix this month): Using OpenCode <1 month old: MEDIUM (verify version + update) MCP plugins without code review: MEDIUM (audit now) Developers with admin rights: MEDIUM (restrict to user accounts) No isolation between environments: MEDIUM (containerize now)

Timeline: 1-4 weeks (normal priority)
Cost: R$10-50k (infrastructure + processes)
Benefit: Defense in depth (multiple layers, harder to exploit)

Ongoing maintenance: Monitor for MCP vulnerabilities: Weekly (subscribe to advisories) Audit installed plugins: Monthly (verify they're still needed) Update frameworks: Quarterly (security patches + features) Test incident response: Quarterly (drills + practice)

Timeline: Continuous (part of security ops)
Cost: R$5-15k/month (monitoring + team)
Benefit: Early detection + rapid response

Action plan (next 7 days):

Day 1: Inventory - Check if OpenCode installed (if yes: note version) - List all MCP plugins installed (document each) - Identify high-risk plugins (unknown origin, unmaintained)

Day 2: Update - Update OpenCode to 1.18.33+ (if using) - Update all MCP plugins to latest versions - Verify patches applied (run --version checks)

Day 3: Audit - Review source code of each MCP plugin (GitHub) - Assess risk: Unknown? Unmaintained? Suspicious? - Disable high-risk plugins (if not essential)

Day 4: Protect - Create approved MCP list (whitelist policy) - Implement code review gate (before new plugins) - Start moving credentials to secrets vault

Day 5-7: Monitor - Deploy EDR/MDR (or equivalent monitoring) - Setup alerts (unusual MCP activity) - Document incident response procedure - Train team on supply chain security

Competitive urgency:

If you don't secure (next 30 days): - Supply chain RCE risk remains (every MCP plugin = backdoor risk) - Competitors patch + move on (you're left vulnerable) - Attacker discovers your unpatched instance (automated scanning finds you) - Compromise happens (credentials stolen, code exfiltrated) - Breach discovered (by customer or law enforcement) - Reputation destroyed ("SaaS company had supply chain RCE") - Revenue collapse (customers leave, fines from regulators)

If you secure now (this week): - Supply chain RCE eliminated (patched + monitored) - Developers protected (sandboxed, credential isolation) - Incident response ready (detect + respond in minutes) - Competitive advantage (secure vs exploited competitors) - Customer trust ("We take supply chain seriously") - Compliance ready (LGPD/ISO security controls)

Timeline: Critical (patch within 24h, harden within 1 week)

Final checklist (supply chain security):

[ ] OpenCode (if used) updated to 1.18.33+ [ ] All MCP plugins updated to latest versions [ ] Unknown/high-risk MCP plugins disabled [ ] Approved MCP whitelist created [ ] Code review process for new MCP plugins [ ] Credentials removed from developer machines [ ] Secrets vault deployed (AWS Secrets Manager, etc) [ ] EDR/MDR monitoring deployed [ ] Alerts configured (unusual MCP activity) [ ] Incident response plan documented [ ] Team trained on supply chain security [ ] Quarterly audit schedule set (MCP review + updates)

If ALL checked: Supply chain security hardened (95%+ protected) If ANY unchecked: Risk remains (prioritize gaps)

Expected outcome: Supply chain RCE risk: Eliminated (patches + monitoring) Compromise detection: Seconds to minutes (vs weeks without monitoring) Damage containment: Limited (isolated environments) Business continuity: Maintained (incident response ready) Reputation: Protected (proactive security posture) Compliance: Demonstrated (controls + audits documented)

→ OpenClaw: Agent supply chain security, MCP vulnerability protection, code execution risk mitigation, secure agent development

Seu agent framework tem supply chain RCE (malicious MCP = compromised machine). OpenCode flaw prova isso. Patch agora. Whitelist MCP plugins. Isolate credentials. Monitore. Proteja seu código + dados. 🔐⚠️🚨


Publicado em 22 de outubro de 2026

Leia também