# MAL-2026-13422: Malicious code in beautiful-ui-monitoring (npm)


- **Type:** Malicious package
- **Package:** `beautiful-ui-monitoring` (npm)
- **Published:** 6 Aug 2026

## What is MAL-2026-13422?

MAL-2026-13422 is a malicious package in beautiful-ui-monitoring, published on 6 Aug 2026. 

### Official description

beautiful-ui-monitoring@1.0.8 advertises itself as a UI package (description 'creates a beautiful ui design', keywords c/gcc/native) but ships no UI code. Its postinstall script invokes `gcc -shared -fPIC -o /tmp/monitoring.so src/monitoring.c`, compiling a shipped C source into a shared library at a world-writable path. The compiled library declares a `__attribute__((constructor))` that, on load, unlinks every `*.so` file under `/tmp` and writes the current uid/gid to `/tmp/monitoring.log`. The tarball also ships a `test.js` that loads the library via `LD_PRELOAD=/tmp/monitoring.so` and a co-shipped native test-loader that `dlopen`s the same path, demonstrating the intended trigger. The package.json author field is empty and no shipped file implements the advertised UI purpose. Installing the package plants a destructive native artifact in a shared, world-writable location under a misleading package description.

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

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-13422 is a malicious package: beautiful-ui-monitoring (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-13422/ (Markdown: https://insights.sbomify.com/MAL-2026-13422/index.md)
```

## Sources

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

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