Opening SecureFlowOpenCode /global/upgrade: A Web Page Makes the Local Server Install and Run an Attacker's npm Package
Case summary & sources

AIDEFEND SecureFlow / SecureFlow Case Index

Datadog Security Labs aidefend-sf0120

OpenCode /global/upgrade: A Web Page Makes the Local Server Install and Run an Attacker's npm Package

  • Autonomous Agents
  • Edge & Client AI
  • System Compromise & RCE

OpenCode is an AI coding tool with an optional web interface. Datadog showed that under certain package-manager installations, an affected local OpenCode server could accept an upgrade request from an untrusted web page. It could then install software that the developer had not chosen and run it with the developer's permissions. OpenCode fixed that path in 1.18.22.

Mapped threat techniques

  • AML.T0078 Drive-by Compromise
  • AML.T0112 Machine Compromise

Source