Skip to content
The AI-First Web

Malicious MemOS Packages on npm and PyPI Steal Developer Credentials

Compromised MemTensor releases ran secret-stealing binaries on import, exposing developer machines and CI runners

W
WebPulse Newsroom
AI-assisted · 5 min read
Share on X LinkedIn
Malicious MemOS Packages on npm and PyPI Steal Developer Credentials
In brief
  • Security firm Socket says an attacker pushed tainted MemOS releases to npm (versions 0.1.21, 0.1.23, 0.1.25) and PyPI (MemoryOS 2.0.34) on September 23, 2026, hiding a credential-stealing binary.
  • Socket found the code runs when the package is imported, so developer machines and build systems that loaded these versions can leak cloud, GitHub, npm, PyPI and SSH secrets.
  • Socket says to treat any machine that loaded these versions as compromised, check for pinned versions and publish tokens, and look for network traffic to skyleen[.]fr since September 23.

A memory framework for AI agents shipped a hidden binary

MemTensor's MemOS is an open source memory framework that large language models and AI agents draw on to store and recall context. Security research firm Socket traced an intrusion to September 23, 2026, when an attacker gained publishing access to MemTensor's distribution channels and pushed corrupted builds into two places developers pull code from: the npm registry, under the package @memtensor/memos-cloud-openclaw-plugin, and PyPI, under the package MemoryOS. Both tainted releases dropped a cross-platform Go binary named sckit that ran in the background, searched the host's home directory for credentials, and reported to command-and-control servers under the domain skyleen[.]fr, Socket's static analysis of the published artifacts found.

The payload ran on import, no explicit action needed

For the PyPI package, the malicious code hooked configure_logging(), a function called by get_logger(). According to Socket's analysis, 149 modules within the package invoke get_logger() as soon as they load — one of which is pulled in automatically by the package's own __init__.py file. That chain meant a developer merely typing "import memos" triggered the payload each time the process started; no separate function call was needed to set it off. The npm plugin behaved similarly, launching the binary when the OpenClaw gateway started and again on every memory-recall event, passing the user's prompt text to the binary each time.

The compromise moved across two registries in hours

According to Socket's published timeline, the attacker moved fast: a corrupted npm release, version 0.1.21, went out at 02:23 UTC on September 23; a tampered commit landed in the MemOS GitHub repository roughly an hour later, at 03:17; two more npm versions followed; and by 05:25 a compromised MemoryOS 2.0.34 build had reached PyPI in both wheel and source-distribution form. The npm releases came from the same account used for legitimate releases but lacked a gitHead reference, meaning they did not originate from the project's CI workflow. Socket said it could not confirm how the attacker obtained publishing access to either registry.

What the binaries targeted, and how long the operation was configured to run

Socket disassembled the sckit binaries and catalogued what they hunt for: credential files stored on disk — npm's .npmrc, HashiCorp Vault tokens, SSH private keys and cached authentication tokens among them — plus any environment variable or string matching the pattern of a cloud or platform secret, covering AWS, GitHub, GitLab, npm, PyPI, Hugging Face, Slack, Stripe, SendGrid and JSON Web Tokens. Each of the six binaries carried an embedded configuration set to expire on October 22, 2026, after which the attacker's control channel would stop functioning under its current setup. Socket also noted binary strings referencing package manifest encoding and repository file installation, which it said could indicate the malware is capable of republishing packages using stolen registry tokens.

What a budget-holder should ask their team

Socket does not confine the exposure to production systems. Its position is that any machine that ever loaded the affected npm builds — 0.1.21, 0.1.23 or 0.1.25 — or pulled in the compromised MemoryOS 2.0.34 release from PyPI should be assumed compromised, a scope Socket says reaches into CI pipelines and short-lived test containers, not only the workstations developers sit at. For organizations building on AI agent tooling, the relevant questions are: does anything in our stack depend on MemOS or an OpenClaw plugin pulled via a "latest" tag rather than a pinned version, and would our dependency-scanning process have caught a same-day, same-account release with no CI provenance? Teams should also confirm whether any host that ran the affected packages held npm or PyPI publish tokens for the organization's own packages, and whether logs show any egress to skyleen[.]fr since September 23.

Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: Socket.