{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0056-memtensor-sckit-openclaw-plugin-supply-chain",
  "title": "MemTensor sckit Payload in OpenClaw Memory Plugin Releases",
  "subtitle": "The active npm path uses plugin lifecycle hooks, not an npm postinstall script.",
  "summary": "StepSecurity found unauthorized @memtensor/memos-cloud-openclaw-plugin 0.1.21, 0.1.23 and 0.1.25 releases carrying a bundled native sckit payload. The active launchStageZero path runs on gateway startup or memory recall; the recall call passes the current prompt and inherited process environment to a detached child. Package contents and launcher behavior are confirmed, while successful external exfiltration and autonomous worm propagation are not.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents"
  ],
  "risk_impact": [
    "credential-identity-theft",
    "data-exfiltration"
  ],
  "affected_components": [
    "@memtensor/memos-cloud-openclaw-plugin",
    "plugin registration and recall hooks",
    "lib/sckit.js launcher",
    ".sckit native executable"
  ],
  "source_research": {
    "provider": "StepSecurity",
    "primary_url": "https://www.stepsecurity.io/blog/sckit-supply-chain-worm-hits-memtensor-npm-pypi-scopes",
    "published": "2026-09-23",
    "note": "AIDEFEND-curated public SecureFlow based on public reporting and supporting references. This is not a MITRE ATLAS case-study conversion."
  },
  "attack_steps": [
    {
      "id": "step-1",
      "title": "Publish Unauthorized Plugin Versions",
      "tactic": "AML.TA0004",
      "technique": "AML.T0010.001",
      "summary": "Malicious npm 0.1.21, 0.1.23 and 0.1.25 artifacts appeared without corresponding repository commits or tags; clean versions were briefly published between them.",
      "zhTitle": "發布未授權的外掛版本",
      "zhSummary": "npm 的 0.1.21、0.1.23、0.1.25 夾帶惡意內容，與儲存庫提交或標籤不符；其間短暫出現乾淨版本。",
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "step-5",
      "title": "Load the Compromised Memory Plugin",
      "tactic": null,
      "technique": null,
      "summary": "The affected plugin must be loaded into OpenClaw before its startup or recall hooks can run. The examined npm versions contain no install, preinstall or postinstall script; installation alone does not establish payload execution.",
      "zhTitle": "OpenClaw 載入受影響的記憶外掛",
      "zhSummary": "OpenClaw 載入受影響的外掛後，啟動與記憶擷取掛鉤才有機會執行。受檢 npm 版本沒有 install、preinstall 或 postinstall 指令；套件已安裝，不代表惡意程式已執行。",
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "step-2",
      "title": "Startup Hook Calls the Launcher Without a Prompt",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "summary": "At gateway startup, plugin registration independently calls launchStageZero with no prompt content. It can start the native child without any memory recall.",
      "zhTitle": "啟動掛鉤不帶提示就呼叫啟動程式",
      "zhSummary": "gateway 啟動時，外掛註冊流程會直接呼叫 launchStageZero，不傳入提示內容；即使還沒有擷取記憶，也能啟動原生子程序。",
      "layout": {
        "x": 0,
        "y": -600
      }
    },
    {
      "id": "step-3",
      "title": "Recall Hook Passes the Current Prompt",
      "tactic": "AML.TA0009",
      "technique": "AML.T0037",
      "summary": "Each memory recall independently calls launchStageZero with the current user prompt, before the subsequent short-prompt check. This is another launch opportunity, not a prerequisite for the startup path.",
      "zhTitle": "記憶擷取掛鉤傳入目前的提示",
      "zhSummary": "每次擷取記憶時，掛鉤都會另行呼叫 launchStageZero，傳入目前使用者提示，而且呼叫發生在後續的短提示檢查之前。這是另一次啟動機會，不是啟動掛鉤路徑的必要前提。",
      "layout": {
        "x": 0,
        "y": 600
      }
    },
    {
      "id": "step-4",
      "title": "Spawn a Detached Native Payload",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "summary": "Either hook can make lib/sckit.js start the bundled platform-specific executable as a detached child. stageZeroEnvironment copies the parent environment and adds SCKIT_EVENT_TEXT, empty for startup or containing the recall prompt. Static indicators suggest credential harvesting; successful external transmission and native-binary duplicate suppression remain unverified.",
      "zhTitle": "任一掛鉤都能啟動背景原生程式",
      "zhSummary": "任一掛鉤都能讓 lib/sckit.js 以背景子程序啟動內附的各平台執行檔。stageZeroEnvironment 複製父程序環境，並加入 SCKIT_EVENT_TEXT；啟動時這個值是空字串，擷取記憶時則是目前的提示。靜態跡象指向憑證蒐集，但對外傳送是否成功、原生程式是否會避免重複執行，都仍未獲驗證。",
      "layout": {
        "x": 1080,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0010.001",
      "name": "AI Software"
    },
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    }
  ]
}
