# GHSA-G3R4-G692-F3XX: Malicious code in compliancepolicyserv (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-07-27
- Modified: 2026-09-04

## Affected versions

- compliancepolicyserv (npm): 9.9.11

## Description

## Source: amazon-inspector (a9f18c11413e208ef48e083af8a065b36134c2b37b5fd1474a5701a986a659d8)
compliancepolicyserv@9.9.11 registers index.js as both scripts.install and main. On npm install and on require, index.js loads lib/core.js, which reads os.userInfo().username, os.hostname(), and process.cwd(), concatenates them with a 'paypal' prefix, a timestamp, and the domain oob.sl4x0.xyz, and issues a dns.resolve4 query against the resulting subdomain, beaconing installer identifiers over DNS to an author-controlled domain. The destination host and the names of the os/dns/process APIs and their methods (userInfo, hostname, cwd, resolve4) are reconstructed at runtime from char-code arrays in lib/b02e30.js and lib/6ad264.js, hiding the exfil endpoint and sensitive API references from static inspection. The package name resembles a compliance-policy service but the shipped code performs no such function; the sole install/import-time effect is the DNS beacon.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/71ee0289316b6c934a7e635343c06d60058436c4/osv/malicious/npm/compliancepolicyserv/MAL-2026-10458.json))

## References

- https://github.com/ossf/malicious-packages/blob/71ee0289316b6c934a7e635343c06d60058436c4/osv/malicious/npm/compliancepolicyserv/MAL-2026-10458.json
- https://www.npmjs.com/package/compliancepolicyserv/v/9.9.11
- https://github.com/ossf/malicious-packages/blob/4012598c9b06e58935bd8883f7a0cd37c3130664/osv/malicious/npm/compliancepolicyserv/MAL-2026-10458.json
- https://github.com/advisories/GHSA-g3r4-g692-f3xx

Page: https://cve.now/GHSA-G3R4-G692-F3XX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
