@antv/g-math @3.2.0
Maintainers
Keywords
Dependencies (4)
| Package | Constraint | Registry Status |
|---|---|---|
| tslib | ^2.5.3 | auto_approved |
| gl-matrix | ^3.4.3 | auto_approved |
| @antv/util | ^3.3.5 | auto_approved |
| @babel/runtime | ^7.25.6 | auto_approved |
Transitive Dependency Tree
Changes from v3.1.0
Dependency Changes
Script Changes
+ preinstallFile Changes
Risk Dispositions (6 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): Malicious preinstall running obfuscated payload; generalizes to this package. | |
obfuscated-file:index.js |
source-diff | reject | AI | AI (source-diff): Obfuscated credential-harvesting payload; not legitimate for a math utility. | |
url-dep:@antv/setup |
npm-metadata | reject | AI | AI (npm-metadata): SHA-pinned GitHub dep in optionalDependencies used to smuggle malicious code. | |
semgrep:env-spread |
semgrep | reject | AI | AI (semgrep): Spreading process.env in obfuscated code is credential theft. | |
semgrep:obfuscation-while-true |
semgrep | reject | AI | AI (semgrep): javascript-obfuscator output in a math utility is malicious. | |
semgrep:obfuscation-hex-functions |
semgrep | reject | AI | AI (semgrep): Hex-named functions confirm javascript-obfuscator; malicious payload. |
SAST Findings (10)
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 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.
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 Source: https://github.com/antvis/g/blob/89a517f161e783e64278a4f0d800850db6b5b420/index.js#L1 > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator Source: https://github.com/antvis/g/blob/89a517f161e783e64278a4f0d800850db6b5b420/index.js#L1 > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator Source: https://github.com/antvis/g/blob/89a517f161e783e64278a4f0d800850db6b5b420/index.js#L1 > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Spreading entire process.env into an object — may capture all secrets Source: https://github.com/antvis/g/blob/89a517f161e783e64278a4f0d800850db6b5b420/index.js#L1 > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator Source: https://github.com/antvis/g/blob/89a517f161e783e64278a4f0d800850db6b5b420/index.js#L1 > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 100 (capped from 258). Findings: 9 high (+225), 3 medium (+30), 1 low (+3), 1 info (+0).
Commit: 89a517f161e7 Browse source
Published to npm: