xueoj-vjtof-util@1.0.0
Malicious code in xueoj-vjtof-util (npm)
Analysis
This package is a hidden loader disguised as a trivial "utility" module. package.json carries a non-standard "_bz" field holding a compressed byte array (zlib stream), and index.js wraps a small loader in an IIFE that returns immediately when it detects a CI or analysis environment — it checks the CI, GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI and SANDBOX environment variables and does nothing if any is set. On a normal developer machine it inflates the "_bz" array with zlib.inflateSync and executes the decompressed JavaScript through the Function constructor with 'require' and '__dirname' in scope, then exports an empty object so the package appears inert. There is no lifecycle hook, no readable network string and no plaintext payload in the tarball, so the second stage is delivered entirely as the compressed blob. No repository, no README, description is only "utility". Host/file indicators: none visible in the plaintext portion; the second stage is contained in package.json -> "_bz" and unpacked only at require time. Any package that runs hidden compressed code at require time and disables itself under CI should be treated as a payload stager.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 12:35 AM
- analyzed
- Nov 9, 2026, 12:36 AM
Related advisories
- mock-datas-lib@1.0.1
- random-transactions-sdk@1.0.4
- random-transactions-sdk@1.0.1
- @kahitsan/plugin-sdk@0.8.2
- event-bus-lite-testmetest@0.0.2
- pixel-map-testmetest@0.0.1
- tinkoff-pfp-atom-desktop-carousel@20.8.8
- akamai-sensorv1@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.