All @antv/gpt-vis-ssr versions
@antv/gpt-vis-ssr @0.5.7
SSR(Server Side Render) for AntV GPT-Vis.
Maintainers
Keywords
Dependencies (8)
| Package | Constraint | Registry Status |
|---|---|---|
| bun | ^1.3.13 | auto_approved |
| canvas | ^3 | No greenflagged match |
| @antv/g | ^6.3.1 | auto_approved |
| @antv/g2-ssr | ^0.2.0 | auto_approved |
| @antv/g6-ssr | ^0.1.0 | auto_approved |
| @antv/s2-ssr | ^0.1.0 | auto_approved |
| @antv/gpt-vis | ^0.4.0 | No greenflagged match |
| @antv/g-plugin-rough-canvas-renderer | ^2.0.44 | auto_approved |
Dev Dependencies (10)
| Package | Constraint | Registry Status |
|---|---|---|
| jest | ^29.7.0 | auto_approved |
| pngjs | ^6.0.0 | auto_approved |
| father | ^4.5.2 | auto_approved |
| ts-jest | ^29.3.1 | auto_approved |
| ts-node | ^10.9.2 | auto_approved |
| typescript | ^5.8.3 | auto_approved |
| @types/jest | ^29.5.14 | auto_approved |
| npm-run-all | ^4.1.5 | auto_approved |
| @types/pngjs | ^6.0.5 | auto_approved |
| @blazediff/core | ^1.8.0 | auto_approved |
Transitive Dependency Tree
Changes from v0.3.7
Dependency Changes
| Change | Package | Version |
|---|---|---|
| added | bun | ^1.3.13 |
Script Changes
+ preinstallFile Changes
Risk Dispositions (5 applicable to this version, 0 other)
Accepted rules are downgraded to INFO on future analyses; rejected rules escalate to CRITICAL.
| Rule | Source | Disposition | Author | Reason | |
|---|---|---|---|---|---|
install-script:preinstall |
install-scripts | reject | AI | AI (install-scripts): Preinstall runs obfuscated index.js — malicious payload delivery; generalizes to all versions of this package. | |
url-dep:@antv/setup |
npm-metadata | reject | AI | AI (npm-metadata): SHA-pinned GitHub optionalDependency matches known supply-chain attack pattern; generalizes to all versions. | |
semgrep:obfuscation-while-true |
semgrep | reject | AI | AI (semgrep): Obfuscated preinstall payload; generalizes to all versions of this package. | |
semgrep:obfuscation-hex-functions |
semgrep | reject | AI | AI (semgrep): Obfuscated preinstall payload; generalizes to all versions of this package. | |
semgrep:env-spread |
semgrep | reject | AI | AI (semgrep): process.env spread inside obfuscated preinstall script — credential exfiltration risk; generalizes to all versions. |
SAST Findings (11)
Part of the **Mini Shai-Hulud** supply chain attack campaign in which a threat actor compromised the npm account `atool` and published 631 malicious versions across 314 npm packages in an automated 22-minute burst. Each malicious version injects a `preinstall` hook that executes a 498KB obfuscated Bun script, using the GitHub API as a covert exfiltration channel. Credentials are committed to attacker-controlled repositories following Dune-themed naming patterns (e.g., `harkonnen-melange-742`). Stolen data includes AWS keys, GitHub PATs, npm tokens, GCP service accounts, Azure credentials, Kubernetes service account tokens, SSH keys, Docker auth configs, database connection strings, Stripe keys, and Slack tokens. Malicious versions also establish persistence via CI/CD workflow injection (a GitHub Actions workflow named `Run Copilot` dumps all secrets via `toJSON(secrets)`), AI agent session hooks, and a system daemon named `kitty-monitor`. This specific package (`@antv/gpt-vis-ssr`) was modified to include a malicious `preinstall` hook executing the obfuscated Bun payload. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (471e892f18b414eb17370556febc5aa69778eed206747eb541a5c2f62d08cf35) The package @antv/gpt-vis-ssr was found to contain malicious code. ## Source: ghsa-malware (278f32b4abf7908ebc715048f5aefcad0d293453faabf53b12858b8bdf6faca5) 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. ## Source: google-open-source-security (847ef6b381d410bf176f7414a6f0fbbcf46a5f39b6d9011e126b279bd2d781df) This package was compromised as part of the ongoing "Mini Shai-Hulud is back" worm by the TeamPCP threat actor. The package will steal credentials and then propogate it to every package it has access to. The package also attempts to remain persistent.
Script: bun run index.js
Dependency '@antv/setup' in `optionalDependencies` points to 'github:antvis/G2#1916faa365f2788b6e193514872d51a242876569' instead of a registry version. URL dependencies bypass the registry and can be swapped at any time. A 40-character commit SHA in a dependency URL is a strong supply-chain signal — the 2026-05-11 TanStack/Mini Shai-Hulud attack used this exact shape in `optionalDependencies` to smuggle a malicious payload past lifecycle-script and OSV checks.
This version has no gitHead field linking it to a source commit, but previous versions did. This suggests the publish environment changed. Published by: atool.
Newly added source file contains lines over 3000 chars, suggesting minified or obfuscated code. New obfuscated files are a strong attack indicator.
while(!![]) loop is a signature of javascript-obfuscator output > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Spreading entire process.env into an object — may capture all secrets > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
[Accepted risk] Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 100 (capped from 298). Findings: 1 critical (+40), 9 high (+225), 3 medium (+30), 1 low (+3), 3 info (+0).
Published to npm: