All @antv/l7-draw versions

@antv/l7-draw @3.3.5

rejected
This version was rejected. It did not pass GreenFlagged's security review and is not served by the registry. The findings and risk dispositions below explain why.
100
Risk Score
License
Yes
Install Scripts
6
Dependencies
28
Dev Dependencies
1213.9 KB
Package Size
Published

Maintainers

lviseifreestyle21soundquietelaine.q.10sturubysakuya223serializedowenxdzhaoyangzhanmeiwjgogogoleungwensendoriiaaronyardsimaqdxq613intchoussusan_annjinke.lilzxuearmy8735atoolbaizndengfupingneoddishjeffy2012zqluafc163pomelo-nwukopiluwakyccnuzindexpanyuqibubkoozengyuekasmineboyu.zljl1ud0ngq1newbyvectorwinniexingchenlulikn9117xdddstsemious2020esoranadia_liubbsqqmxz96102openwaynepearminipddpdyiqianyaozhanbacxxxxxnlaixingui.lxgsusiwen8yanxiongzeyuwangrainy25ghzzhangjunjie-lokiflash1yisi.wangdreammy23biupiubiupiubasketduckxuying1027banxuanpearl_wangbqxbqxbqxalex_zjtduxinyue023wang1212leondt1gaofuhong

Keywords

antvl7drawl7 draw

Dependencies (6)

PackageConstraintRegistry Status
bun ^1.3.13 auto_approved
lodash ^4.17.21 auto_approved
tippy.js ^6.3.7 auto_approved
mousetrap ^1.6.5 auto_approved
@turf/turf ^6.5.0 No greenflagged match
eventemitter3 ^4.0.7 auto_approved

Dev Dependencies (28)

PackageConstraintRegistry Status
dumi ^1.1.0 No greenflagged match
husky ^8.0.1 auto_approved
eslint ^7.32.0 auto_approved
yorkie ^2.0.0 auto_approved
@antv/l7 ^2.21.8 auto_approved
gh-pages ^3.0.0 auto_approved
prettier ^2.2.1 auto_approved
@types/jest ^27.0.3 No greenflagged match
@umijs/test ^3.0.5 No greenflagged match
lint-staged ^10.0.7 auto_approved
father-build ^1.17.2 auto_approved
@types/lodash ^4.14.177 auto_approved
@umijs/fabric ^2.8.1 auto_approved
@commitlint/cli ^12.1.4 No greenflagged match
@types/mousetrap ^1.6.9 auto_approved
@types/next-tick ^1.0.0 Not imported
eslint-plugin-jest ^24.7.0 No greenflagged match
@antv/dumi-theme-antv ^0.2.1 Not imported
@testing-library/react ^12.1.2 No greenflagged match
eslint-config-prettier ^8.3.0 auto_approved
eslint-plugin-prettier ^3.4.1 auto_approved
rollup-plugin-analyzer ^4.0.0 auto_approved
@testing-library/jest-dom ^5.15.1 auto_approved
@typescript-eslint/parser ^4.33.0 auto_approved
rollup-plugin-node-polyfills ^0.2.1 auto_approved
@optimize-lodash/rollup-plugin ^3.0.0 No greenflagged match
@commitlint/config-conventional ^12.1.4 No greenflagged match
@typescript-eslint/eslint-plugin ^4.33.0 auto_approved

Transitive Dependency Tree

7 transitive deps max depth 2
  ├─ @turf/turf ^6.5.0
  ├─ bun ^1.3.13 → 1.3.14
  ├─ eventemitter3 ^4.0.7 → 4.0.7
  ├─ lodash ^4.17.21 → 4.18.1
  ├─ mousetrap ^1.6.5 → 1.6.5
├─ tippy.js ^6.3.7 → 6.3.7
  ├─ @popperjs/core ^2.9.0 → 2.11.8

Changes from v3.1.5

Dependency Changes

ChangePackageVersion
added bun ^1.3.13

Script Changes

+ preinstall

File Changes

1 added 0 removed 1 modified size delta: +487.8 KB

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; not a legitimate build step for this package.
obfuscated-file:index.js source-diff reject AI AI (source-diff): Obfuscated payload added in this version; no legitimate reason for this package to ship it.
url-dep:@antv/setup npm-metadata reject AI AI (npm-metadata): SHA-pinned GitHub optionalDependency matches known supply-chain attack pattern; not present in prior versions.
semgrep:obfuscation-while-true semgrep reject AI AI (semgrep): Obfuscator signature in newly added index.js; disqualifying for this package.
semgrep:env-spread semgrep reject AI AI (semgrep): process.env spread inside obfuscated payload indicates credential harvesting.

SAST Findings (12)

CRITICAL MAL-2026-4038: Malicious code in @antv/l7-draw (npm) osv

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/l7-draw`) 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 (ec2ff816c9eaed5ed096afad1e6e688f8fb11661f78510a7fbb85afbca42e9c0) The package @antv/l7-draw was found to contain malicious code. ## Source: ghsa-malware (0f09a03d870ffb765a36ea0859e5cf8343e4f68102e556166d902f4ffdbf3a04) 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.

HIGH Package has 'preinstall' script install-scripts

Script: bun run index.js

HIGH SHA-pinned github dependency (optionalDependencies): @antv/setup npm-metadata

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.

HIGH Missing gitHead — previous versions had it provenance

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.

HIGH Publisher changed: yanxiong → atool (on 2026-05-19) provenance

This version was published by a different npm account than previous versions on 2026-05-19. This could indicate a legitimate maintainer transition or an account compromise.

HIGH New obfuscated file: index.js source-diff

Newly added source file contains lines over 3000 chars, suggesting minified or obfuscated code. New obfuscated files are a strong attack indicator.

HIGH obfuscation-while-true: index.js:1 semgrep

while(!![]) loop is a signature of javascript-obfuscator output > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,

HIGH obfuscation-hex-functions: index.js:1 semgrep

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,

HIGH obfuscation-hex-functions: index.js:1 semgrep

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,

HIGH obfuscation-hex-functions: index.js:1 semgrep

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,

HIGH env-spread: index.js:1 semgrep

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,

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

Review Summary

Risk score: 100 (capped from 326). Findings: 1 critical (+40), 10 high (+250), 3 medium (+30), 2 low (+6).

Published to npm: