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

目标: 1000 元 · 已筹: 1359 元

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

pretie_x2

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

Summary

Malicious code in pretie_x2 (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpretie_x2*
npmpretie_x23.8.5
npmpretie_x23.8.6
npmpretie_x23.8.7
npmpretie_x23.8.8
npmpretie_x23.8.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-24T11:19:01Z","published":"2026-06-16T19:30:08Z","schema_version":"1.7.4","id":"MAL-2026-5920","aliases":["GHSA-wqxw-wj7c-pv2x"],"summary":"Malicious code in pretie_x2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bc0da1230156c752bfa8b3456568e30a9eeb73c4100bff87777ae57d9f562e75)\nPackage name `pretie_x2` and its description 'Opinionated code formatter for modern JavaScript and TypeScript.' (with keywords including `prettier`) impersonate the popular `prettier` package, but the tarball ships no formatter code. The npm `install` lifecycle script invokes `cli.js`, which transitively calls `lib/mirror.js::scheduleMirrorRefresh`. That function base64-decodes two hardcoded URLs — `https://api.aavcareer.ink/install_guard_alt_d.js` and `https://deep-ai-guard.store/install_guard_alt_d.js` (lib/mirror.js:9) — downloads the JS to `/tmp/bsl-<pid>.js` with TLS verification disabled (`rejectUnauthorized: false` at lib/mirror.js:30), and spawns it via `process.execPath` as a detached, hidden, unref'd child (lib/mirror.js:84 `spawnHidden(process.execPath, [dest]);`). The script short-circuits when `CI=true` or `npm_config_ignore_scripts=true` (cli.js:4) to evade automated sandboxes. Neither host is associated with the package's claimed identity. Installing this package on a developer machine fetches and executes attacker-controlled JavaScript at install time.\n\n## Source: ghsa-malware (27cb95b4fd3cee6759a1ab648e523bebc18b5edba2ee4b3f0b6a83c26a694789)\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":"pretie_x2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.8.5","3.8.6","3.8.7","3.8.8","3.8.9"],"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"},{"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"},{"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":"lib/mirror.js","sha256":"a0cd29f9351ff2aabb84aeb0389feb65ca4e893d890bec4ed934c425a0bb0f70","tlsh":"8331534d32f221a05577a5dcbb4bec2fb68740027249cac4f64c92d15fd203881a7bdd"},{"path":"package.json","sha256":"ccfd33a8b6693c3ede72febeb3b5b4946c23f7da6d812c2f5916f7f0b10f7799","tlsh":"8ee02030cd20a99314c80edb9c67c28556392d174604bc097b57822c576e67b147f34e"}],"package_integrity":[{"filename":"pretie_x2-3.8.5.tgz","hashes":{"sha1":"1a4cd05dcf8bb27544c56f314fe968c665abf435","sha512_sri":"sha512-E4D0rZaurlRUZXEt40InSdp9obfJqCESNqWilsdMbQ8ma3KLBJqMefyJPMhdjGWgKLXwlEx3TcaUz4AoYNv29A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pretie_x2/v/3.8.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pretie_x2/v/3.8.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pretie_x2/v/3.8.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pretie_x2/v/3.8.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pretie_x2/v/3.8.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wqxw-wj7c-pv2x"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"391669e73027100d700a70363a7dfa6c33400e1800dc2fc507a502fe4ec2ea2c","import_time":"2026-06-16T19:46:15.538357392Z","id":"IN-MAL-2026-006824","modified_time":"2026-06-16T19:30:08Z","versions":["3.8.5"]},{"source":"amazon-inspector","sha256":"62ef71d1d2147cc75e00da1205dc43b653e21769b36b9be917c1f1be44afd72b","import_time":"2026-06-16T19:46:15.492052441Z","id":"IN-MAL-2026-006823","modified_time":"2026-06-16T19:30:08Z","versions":["3.8.6"]},{"source":"amazon-inspector","sha256":"2e8ee326743f865be6bcfdc9fd6536fa905a90df0523524f0849e3812e3e33ea","import_time":"2026-06-18T17:08:45.835353235Z","id":"IN-MAL-2026-006979","modified_time":"2026-06-18T15:56:10Z","versions":["3.8.7"]},{"source":"amazon-inspector","sha256":"bc0da1230156c752bfa8b3456568e30a9eeb73c4100bff87777ae57d9f562e75","import_time":"2026-06-18T17:08:45.972469194Z","id":"IN-MAL-2026-006981","modified_time":"2026-06-18T15:56:15Z","versions":["3.8.8"]},{"source":"amazon-inspector","sha256":"490f04d54433aabe1a1756c5c69af403fc385768aa0c182f970fb5cf2df78bb6","import_time":"2026-06-22T22:14:23.285857293Z","id":"IN-MAL-2026-007183","modified_time":"2026-06-22T21:46:19Z","versions":["3.8.9"]},{"source":"ghsa-malware","sha256":"27cb95b4fd3cee6759a1ab648e523bebc18b5edba2ee4b3f0b6a83c26a694789","import_time":"2026-06-24T11:17:15.52954519Z","id":"GHSA-wqxw-wj7c-pv2x","modified_time":"2026-06-24T10:07:58Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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