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

目标: 1000 元 · 已筹: 1359 元

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

pdf-lib-enhanced

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

Summary

Malicious code in pdf-lib-enhanced (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpdf-lib-enhanced*
npmpdf-lib-enhanced2.2.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T19:35:40Z","published":"2026-05-26T11:56:00Z","schema_version":"1.7.4","id":"MAL-2026-4799","aliases":["GHSA-9qcm-qgjc-h848"],"summary":"Malicious code in pdf-lib-enhanced (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5f666f9074e4d180ff635e06498918c71189395e3f8fd56a177767145022d76f)\nPackage name `pdf-lib-enhanced` mimics the widely-used `pdf-lib` library and ships a verbatim copy of upstream's README. `package.json` declares `repository.url` pointing at a fresh GitHub account (`harunosakura030303-maker/pdf-lib-enhanced`) while `bugs.url` still points at the original `Hopding/pdf-lib` project — a metadata mismatch consistent with a hastily-forked squat. The `dist/` directory contains unrelated SheetJS assets (`xlsx.full.min.js`, `xlsx.zahl.js`, `cpexcel.js`, etc.) that have no purpose in a PDF library. However, the CommonJS main entry (`cjs/index.js`) re-exports the upstream pdf-lib API without any credential reads, exfiltration, dropper, or silent-relay behavior, and `package.json` declares no `preinstall`/`install`/`postinstall`/`prepare` lifecycle scripts, so installing the package does not auto-execute any code. The dormant SheetJS bundles are not referenced from the main entry. Name-similarity to a top-tier package combined with an irrelevant payload bundle warrants human assessment of intent, but there is no concrete installer-harm mechanism observable in the shipped code.\n\n## Source: ghsa-malware (a4da0334724e86909030ba354dab57e4c522c139a925d3ec06559541179c562e)\nAny 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.\n","affected":[{"package":{"ecosystem":"npm","name":"pdf-lib-enhanced"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.2.0"],"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":"package.json","sha256":"8b157a09538997ca4c931d7b801cd2a831a1a4a2b9c305645e8c4cda924142e9","tlsh":"5fd142b2da149c571ec45cc9f4ed6142e23a86278d80fc8ab7b5566c4f0d21f23be16e"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9qcm-qgjc-h848"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pdf-lib-enhanced/v/2.2.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"a4da0334724e86909030ba354dab57e4c522c139a925d3ec06559541179c562e","import_time":"2026-05-26T13:21:46.725823269Z","id":"GHSA-9qcm-qgjc-h848","modified_time":"2026-05-26T11:56:06Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"5f666f9074e4d180ff635e06498918c71189395e3f8fd56a177767145022d76f","import_time":"2026-07-08T19:33:41.649815527Z","id":"IN-MAL-2026-008178","modified_time":"2026-07-08T19:17:17Z","versions":["2.2.0"]}]}}

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