# MAL-2026-5987: Malicious code in ogd-analytics (npm)


- **Type:** Malicious package
- **Package:** `ogd-analytics` (npm)
- **Published:** 17 Jun 2026

## What is MAL-2026-5987?

MAL-2026-5987 is a malicious package in ogd-analytics, published on 17 Jun 2026. 

### Official description

package.json declares a preinstall lifecycle script that runs automatically during `npm install`. The script executes `hostname`, `whoami`, and `pwd`, then uses curl to POST the combined output (current user, host name, and install directory) as a urlencoded `info` field to https://webhook.site/1ea0386f-dcc0-4f1b-bdbb-61732d6535fb/ogd-analytics. webhook.site is an anonymous request-bin service, not a publisher-controlled domain, and the beacon has no relation to any advertised analytics functionality. The behavior is unconditional installer-side reconnaissance — user identity, machine identity, and filesystem location are exfiltrated to a third-party collector on every install, providing an attacker the host inventory needed for follow-on targeting (dependency confusion, internal-build-system fingerprinting).

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

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-5987 is a malicious package: ogd-analytics (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-5987/ (Markdown: https://insights.sbomify.com/MAL-2026-5987/index.md)
```

## Sources

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

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