---
canonical: "https://firewall.lpm.dev/npm/layerd-unit-codec-parser"
markdown: "https://firewall.lpm.dev/npm/layerd-unit-codec-parser/report.md"
package: "layerd-unit-codec-parser"
report_status: "published"
title: "layerd-unit-codec-parser@2.0.0 npm security report"
verdict: "malicious"
version: "2.0.0"
---

# layerd-unit-codec-parser@2.0.0 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Blocked by malware advisory** — OpenSSF/OSV malware advisory MAL-2026-6578 identifies this version as malicious and supplies the Firewall block.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Trusted malware advisory block
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 2.0.0
- **Selected version is latest:** No
- **Analysis source:** OpenSSF/OSV Malicious Advisory (OpenSSF/OSV)

OpenSSF/OSV malware advisory MAL-2026-6578 identifies this version as malicious and supplies the Firewall block.

OpenSSF/OSV advisory MAL-2026-6578 confirms this npm version as malicious. The package presents itself as a CSS selector parser (src/selector-parser.js re-exports postcss-selector-parser; keywords postcss/selector/parser/css), but its main module also exposes run / runDefaultDecodedFunction / finalFinalDecodeAndRun. src/config/defaults.js ships an ~10KB opaque AES-GCM ciphertext (DEFAULT\_FINAL\_ENCODED\_TEXT) alongside a hardcoded passphrase ("default-dev-passphrase"); src/aes/aes-gcm.js...

## Latest scan
- **Scanner version:** external-osv-malicious-v1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 100.0%
- **Started:** 2026-07-09T23:10:15.280Z
- **Finished:** 2026-07-09T23:10:15.280Z
- **Download time:** Not available
- **Static scan time:** Not available
- **AI review time:** Not available
- **Total time:** Not available

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

No additional public attack-surface or AI-review details are available.

## Affected versions and remediation

This report applies to layerd-unit-codec-parser@2.0.0.

The same advisory and Firewall decision cover these 2 recorded versions: 1.0.0, 2.0.0.

- Avoid installing layerd-unit-codec-parser@2.0.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. High: Osv Malicious Advisory
- **Category:** External Intel
- **Confidence:** 100.0%

The package presents itself as a CSS selector parser (src/selector-parser.js re-exports postcss-selector-parser; keywords postcss/selector/parser/css), but its main module also exposes run / runDefaultDecodedFunction / finalFinalDecodeAndRun. src/config/defaults.js ships an ~10KB opaque AES-GCM ciphertext (DEFAULT\_FINAL\_ENCODED\_TEXT) alongside a hardcoded passphrase ("default-dev-passphrase"); src/aes/aes-gcm.js uses base64 Buffer decoding and scrypt to derive the key, decrypts the blob, and src/pipeline/custom-codec-pipeline.js invokes the plaintext as code through new Function("require", runnable)(require), granting the smuggled bytes full Node require/process capabilities. The package's own runtime/lib.min.js calls require("../src").run(), and package.json scripts (start, decode, test:cjs) plus a root cjs-runner.js funnel into the same decrypt-and-execute path. None of this is documented in the README, which describes only selector parsing and encode/decode helpers. A consumer who installs the package and runs the advertised npm start / decode scripts, or who imports and calls run(), executes the hidden payload. The combination of an opaque encrypted executable shipped in the tarball, a hardcoded key that makes the ciphertext functionally equivalent to shipping the code while evading source review, and an undocumented entry point that invokes it with full Node capabilities is a backdoor pattern. The postcss-selector-parser API mimicry increases the chance of the hidden run() path being reached.

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** layerd-unit-codec-parser
- **Ecosystem:** npm
- **Version:** 2.0.0
- **Version published:** 2026-06-29T12:51:04.758Z
- **Package first seen:** 2026-07-09T23:10:15.280Z
- **Package last seen:** 2026-10-01T07:00:23.021Z
- **Known versions:** 3
- **Latest version:** 0.0.1-security
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/layerd-unit-codec-parser>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-6578>)
- [PACKAGE](<https://www.npmjs.com/package/layerd-unit-codec-parser/v/1.0.0>)
- [PACKAGE](<https://www.npmjs.com/package/layerd-unit-codec-parser/v/2.0.0>)
