PkgRadar

Package evidence

@lucky-office/[email protected]

Install Lifecycle Remote Or Exec: postinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""

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.

Versions published
4
First published
May 2026
Publisher
zhangwenli

Recommended action

Block this update

Static evidence trips multiple high-signal indicators. Quarantine the release until the publisher validates the change or you can rule out the indicators below.

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":["@lucky-office/[email protected]"],"fail_on":"high"}'

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":["@lucky-office/[email protected]"],"fail_on":"high"}'
Publisherzhangwenli
Artifact bytes2,226,272
Previous versionnone
Published2026-05-27T06:18:47.173Z
SHA-256b86739c03c94777f9dd48bdb6b73bb6241ee3ca9bd598c53ca824c9d34bd0d4e

Why flagged

What the scanner saw

Install Lifecycle Remote Or Exec: postinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""

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

Availability ledger

available

high
Last checked
highRisk
35Score
0.1.0Version
Status history (2 events)
  1. availableavailable · risk high · score 35 · status available -> available, risk high -> high, score 65 -> 35
  2. newavailable · risk high · score 65 · status changed

Evidence

Static findings

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

SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""30
highNew Account With Lifecycle Hookpackage.jsonpackage first published 14 day(s) ago, 4 total version(s), has lifecycle hook25
Show all 6 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""30
highNew Account With Lifecycle Hookpackage.jsonpackage first published 14 day(s) ago, 4 total version(s), has lifecycle hook25
lowInstall-time lifecycle scriptpackage.jsonpostinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""5
lowLarge Javascript Payloadpackage/lib/v3/index.js2794482 bytes0
lowLarge Javascript Payloadpackage/lib/v3/lucky-office-pdf.umd.js2794482 bytes0
lowLarge Javascript Payloadpackage/lib/v3/lucky-office-pdf.mjs2810811 bytes0

Manifest

Package metadata

Scripts8
  • buildnpm run clean && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType
  • build:3npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3
  • cleanshx rm -rf lib
  • copyFile3shx cp lib/v3/lucky-office-pdf.umd.js lib/v3/index.js
  • copyReadmeshx cp README.md lib/README.md
  • copyScriptsshx mkdir -p lib/script/ && shx cp ../../script/postinstall.js lib/script/postinstall.js && shx cp ../../script/switch-cli.js lib/script/switch-cli.js && shx cp ../../script/utils.js lib/script/utils.js
  • copyTypeshx cp index.d.ts lib/index.d.ts
  • postinstallnode -e "if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}"