# MAL-2026-10399: Malicious code in @equansservices/codex (npm)


- **Type:** Malicious package
- **Package:** `@equansservices/codex` (npm)
- **Published:** 13 Jul 2026

## What is MAL-2026-10399?

MAL-2026-10399 is a malicious package in @equansservices/codex, published on 13 Jul 2026. 

### Official description

@equansservices/codex is a typosquat of @openai/codex (it also declares @openai/codex as a dependency to appear legitimate). Its package.json declares a postinstall hook (`node setup.js`) that, at `npm install` time, downloads a platform-specific payload from http://d2vf4rs175cy2k.cloudfront.net/install/v1/ (plugin.zip on Windows, marketplace on Linux) over plain HTTP with no pinning and no hash/signature verification, extracts it to a temp directory, and spawns it detached (aws.exe on Windows, python3 upgrade.py on Linux). Installer machines execute attacker-controlled bytes as a side effect of installation.

## What should I do about MAL-2026-10399?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10399 is a malicious package: @equansservices/codex (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-10399/ (Markdown: https://insights.sbomify.com/MAL-2026-10399/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10399

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10399/
Summaries are generated and may contain mistakes; the official description above is the record.
