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 promotingMixed 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"}'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
Status history (1 event)
- new → available · risk review · score 25 · status changed
Evidence
Static findings
2 static · 0 from release diff · showing high-signal first.
| Severity | Kind | Path | Detail | Points |
|---|---|---|---|---|
| high | Js Decode Then Exec | package/dist/index.js | base64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern. | 45 |
| high | Js Decode Then Exec | package/dist/index.polyfill.js | base64 / atob / fromCharCode decode paired with eval / new Function in the same file — canonical obfuscated-loader pattern. | 45 |
Manifest
Package metadata
Scripts15
buildbash ./scripts/build.shbuild-storybookstorybook build --docs -o docscommit-msgcommitlint --editpostpubnode ./scripts/public-publish/postpub.jspre-commitlint-stagedpreparehusky install && ts-patch installprepubnode ./scripts/public-publish/prepub.jsprepublishOnlynpm run build && cone cdn upload dist.tgz -n cn-utils -d dist --env prodpubnpm run prepub && npm publish --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utilspub:betanpm publish --tag beta --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utilspub:docsnpm run prepub && npm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env prod && npm run postpubpub:docs-prenpm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env prestartstorybook dev -p 6006testjesttest:coveragejest --coverage
Dependencies11
@cainiaofe/cn-i18n^0.3.21bignumber.js^9.1.2classnames^2.5.1copy-to-clipboard^3.3.3dayjs^1.11.12eventemitter3^4.0.7js-base64^3.7.5path-browserify^1.0.1query-string^7.1.3url^0.11.1uuid^9.0.0