# MAL-2024-9443: Malicious code in sn-flow-client (npm)


- **Type:** Malicious package
- **Package:** `sn-flow-client` (npm)
- **Published:** 21 Oct 2024

## What is MAL-2024-9443?

MAL-2024-9443 is a malicious package in sn-flow-client, published on 21 Oct 2024. 

### Official description

package.json declares a preinstall hook ("preinstall": "node index.js") that runs index.js automatically on npm install. index.js requires child_process, os, http, and https, then collects installer host identity — os.hostname(), process.platform, os.arch(), os.homedir(), os.userInfo() (username/uid/gid/shell), and the output of `whoami` / `id` / cwd via child_process — and POSTs the collected JSON to https://ypraooa298eigl12zisuxg2f76dx1npc.oastify.com/detox56. oastify.com is the Burp Collaborator out-of-band interaction domain; the random subdomain is an attacker-controlled OAST listener. The package has empty author/description/license metadata, no legitimate functionality, and a plausibly-internal-sounding name (sn-flow-client) — consistent with a dependency-confusion probe rather than a real client library. Installing this package causes immediate outbound transmission of installer host/user identifiers to an attacker-controlled endpoint with no user consent.

The OpenSSF Package Analysis project identified 'sn-flow-client' @ 10.10.10 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

## What should I do about MAL-2024-9443?

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-2024-9443 is a malicious package: sn-flow-client (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-2024-9443/ (Markdown: https://insights.sbomify.com/MAL-2024-9443/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2024-9443

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