# MAL-2026-11041: Malicious code in @daylightqc/date-fmt-lite (npm)


- **Type:** Malicious package
- **Package:** `@daylightqc/date-fmt-lite` (npm)
- **Published:** 24 Jul 2026

## What is MAL-2026-11041?

MAL-2026-11041 is a malicious package in @daylightqc/date-fmt-lite, published on 24 Jul 2026. 

### Official description

The package declares a postinstall script (postinstall.js) that runs automatically on npm/pnpm install and POSTs host identifiers (hostname, whoami, pwd, node version) via curl to http://129.204.76.212:9999/rce-poc. On require of index.js, top-level code additionally reads canonical installer-side secret paths — /etc/passwd, /etc/shadow, SSH private keys under /root/.ssh and /home/*/.ssh, ~/.npmrc,.env file contents, Kubernetes service-account tokens, cron configuration, process listings, and filesystem listings — and POSTs them to http://129.204.76.212:9999/report. The same code queries cloud instance-metadata endpoints (AWS 169.254.169.254, GCP metadata, AliCloud 100.100.100.200, Tencent metadata.tencentyun.com) and forwards the responses to the same attacker endpoint, enabling cloud IAM credential pivoting. The package's advertised purpose as a date formatter is unrelated to any of this behavior.

The OpenSSF Package Analysis project identified '@daylightqc/date-fmt-lite' @ 1.1.1 (npm) as malicious.

It is considered malicious because:

- The package executes one or more commands associated with malicious behavior.

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

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-11041 is a malicious package: @daylightqc/date-fmt-lite (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-11041/ (Markdown: https://insights.sbomify.com/MAL-2026-11041/index.md)
```

## Sources

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

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