PkgRadar

Package evidence

@cainiaofe/[email protected]

Js Decode Then Exec: base64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern.

Trust signals

Why this verdict

PkgRadar discounts a release’s score when public reputation argues against novel malware. The verdict above already reflects these — the panel just explains what was applied.

Weekly downloads
162
Versions published
68Mature · −50% score
First published
Aug 2023
Publisher
vincent.ljq

Effective trust discount applied: 50% (max across signals — discounts don’t stack). New install-lifecycle deltas vs the previous release would clear the discount.

Recommended action

Review before promoting

Mixed signals: the package has indicators worth reading before allowing the update in automated dependency flows.

Block this release in CIcurl · GitHub Actions

Fail the build when this package version is added or upgraded. Replace $PKGRADAR_TOKEN with a Pro / Team API key from your dashboard.

curl -fsS https://pkgradar.com/gate/npm \
  -H "Authorization: Bearer $PKGRADAR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"specs":["@cainiaofe/[email protected]"],"fail_on":"review"}'

GitHub Actions step:

- name: PkgRadar gate
  run: |
    curl -fsS https://pkgradar.com/gate/npm \
      -H "Authorization: Bearer ${{ secrets.PKGRADAR_TOKEN }}" \
      -H "Content-Type: application/json" \
      -d '{"specs":["@cainiaofe/[email protected]"],"fail_on":"review"}'
Publishervincent.ljq
Artifact bytes537,192
Previous version0.3.0
Published2025-10-20T02:44:14.915Z
SHA-2567a1e82db8a309194fa40112d4c10fc4d5beb540be1012f60fa033fdb1885d172

Why flagged

What the scanner saw

Js Decode Then Exec: base64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern.

Not observed: package install, lifecycle script execution, or sandbox execution. PkgRadar only inspects on-disk artifacts.

Availability ledger

available

review
Last checked
reviewRisk
25Score
0.3.1-beta.0Version
Status history (1 event)
  1. newavailable · risk review · score 25 · status changed

Evidence

Static findings

2 static · 0 from release diff · showing high-signal first.

SeverityKindPathDetailPoints
highJs Decode Then Execpackage/dist/index.jsbase64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern.45
highJs Decode Then Execpackage/dist/index.polyfill.jsbase64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern.45

Manifest

Package metadata

Scripts15
  • buildbash ./scripts/build.sh
  • build-storybookstorybook build --docs -o docs
  • commit-msgcommitlint --edit
  • postpubnode ./scripts/public-publish/postpub.js
  • pre-commitlint-staged
  • preparehusky install && ts-patch install
  • prepubnode ./scripts/public-publish/prepub.js
  • prepublishOnlynpm run build && cone cdn upload dist.tgz -n cn-utils -d dist --env prod
  • pubnpm run prepub && npm publish --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utils
  • pub:betanpm publish --tag beta --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utils
  • pub:docsnpm run prepub && npm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env prod && npm run postpub
  • pub:docs-prenpm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env pre
  • startstorybook dev -p 6006
  • testjest
  • test:coveragejest --coverage
Dependencies11
  • @cainiaofe/cn-i18n^0.3.21
  • bignumber.js^9.1.2
  • classnames^2.5.1
  • copy-to-clipboard^3.3.3
  • dayjs^1.11.12
  • eventemitter3^4.0.7
  • js-base64^3.7.5
  • path-browserify^1.0.1
  • query-string^7.1.3
  • url^0.11.1
  • uuid^9.0.0