Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

mcp-server-pgnpm

mcp-server-pg is a confirmed malicious npm package (MAL-2026-6922) that steals credentials and exfiltrates sensitive data (malicious versions 0.1.0, 0.1.1, 0.1.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in mcp-server-pg (npm)

MAL-2026-6922
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall mcp-server-pg

What this malware does

On npm install, scripts/postinstall.js unconditionally reads a range of installer-owned identity and configuration files and POSTs a JSON payload to a hardcoded endpoint at https://npm-package-logger-228835561205.europe-west1.run.app/. Collected data includes: OS hostname, OS username (and Windows DOMAIN\user), current working directory and parent project package.json; ~/.gitconfig and the parent repo's.git/config plus.git/logs/HEAD (committer emails and recent-author list); ~/.ssh/*.pub comment fields (which typically encode the developer's email/identity); ~/.config/gh/hosts.yml (GitHub login and email); ~/.config/gcloud/properties (GCP account and project); ~/.aws/config (profile names); and /etc/resolv.conf. The file's header comment claims 'anonymous diagnostics' and that 'no credentials are transmitted', but the payload consists of direct personal and organizational identifiers usable to fingerprint the developer, correlate them across SCM/cloud accounts, and target follow-on attacks. The telemetry is opt-out via an environment variable (MCP_SERVER_PG_TELEMETRY_DISABLE), not opt-in, and fires automatically on install with no README disclosure of the fields collected or the destination. The self-labeling as diagnostics does not change the behavior: bulk harvest of SCM identity, SSH key identities, cloud project/account identifiers and hostname/username to an author-controlled endpoint at install time is exfiltration.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

21 flagged
0.1.00.1.10.1.20.1.30.2.00.2.10.3.00.3.10.4.00.5.00.6.00.7.00.8.00.9.01.0.01.0.11.1.01.1.11.2.01.2.11.2.2

Indicators of compromise (SHA-256)

7d7c8e9391621ff69fb62a9e247b738b4d20cfdfc4cccc44c2a86f17831f18f6
1384f3305e9a1608107ce7bf6b7511b2ac735737f84c3370ed3848e59a16c797
67f4c45ff2a4d23995d214536da559aea89392d27ccb4bff7044f703da5e30a6
d971ff36c542f172fa59da7c506c01e5783e72951da052a9fdf7cd88fb496cc1
dbc318e129e22bbc4982d376c68e27d5a3e55d361c297c59760fdbda652d7d08
88a75ecb6abae9be4ab802ab46dfc799fac95ec8dad82c47629a16fca1f1ae05
d448b7f7c3d04b9d776d88ab60cd2278cdee06c0614430230ef8ee960c8f59d1
2bcb15aa5d85baa20e86ee75cd21521a021321f16bc46173cfe2be583347492c
3e39219a80107538250a1b8b1d4f3c07fd55f00cc1f23e1e1ed334dfb2f07da9
860bbcc312a760011ad25a9c4aad91f638eb534796a9820fb63fc84626c0bbd9
cf02bb9a8a8ebef5ffaf6365ca0b03c34c985449ba2a2e8b07b865ce92170111
fd64932774287cd6f874b3de8b56a24a76a3c627b997add0969844cde5c01745
14e221533e633ff8e4b01a9a4d06cbadfc9609884d764b00446eb2983e52c287
770cb7c429769fbb961ac64f40e123b72eb517725ca67e2767b910ea17df66ad
8a43b0bd3245d9b5a3d9347bb5181d34dfe05073155c7e6529fadf1044fdbb9b
a3008351b8a7ff1de95613cadc66f11c0adb6f1739795f527b2c9138280eed8f
e13bd581532ccffac74a09beb76c2cf051b03751911b76d44009e6070096afef
8f364d4a00dcf1d112e776aad70cde23a87c665ef0897183f9ed2c4f3747222e
22d68bdfced357622e33e4608bd35ded4d8988ea6dc7da073b3a83075978815d
43b5469136197b48c662745610d86854a1c63004e8b448abb1624c80de1e9340
468ae3c100e7950c66f788c6b6b686b36451a37e66efe61e7c1ece9e13278d99
4deda0f119a1e94c5e950b0926449ef67b28fc22268073859e76ba155b555cf9

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for mcp-server-pg (21 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging mcp-server-pg across your stack and pipelines.

  2. If you installed it — respond

    mcp-server-pg is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If mcp-server-pg was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks mcp-server-pg before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. mcp-server-pg on npm has been identified as a malicious package (versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.3.0, 0.3.1, and 13 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-cfv7-74pc-vmffIN-MAL-2026-008608IN-MAL-2026-009146IN-MAL-2026-009155IN-MAL-2026-009152IN-MAL-2026-009148IN-MAL-2026-009165IN-MAL-2026-009158IN-MAL-2026-009147IN-MAL-2026-009160IN-MAL-2026-009149IN-MAL-2026-009153IN-MAL-2026-009163IN-MAL-2026-009162IN-MAL-2026-009161IN-MAL-2026-009159IN-MAL-2026-009164IN-MAL-2026-009151IN-MAL-2026-009150IN-MAL-2026-009157IN-MAL-2026-009154IN-MAL-2026-009156

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks mcp-server-pg-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

mcp-server-pg (npm) malicious package — MAL-2026-6922 | O3 Security