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 updateStatic 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"}'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
Status history (2 events)
- available → available · risk high · score 35 · status available -> available, risk high -> high, score 65 -> 35
- new → available · risk high · score 65 · status changed
Evidence
Static findings
6 static · 0 from release diff · showing high-signal first.
| Severity | Kind | Path | Detail | Points |
|---|---|---|---|---|
| high | Install Lifecycle Remote Or Exec | package.json | 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')}\"" | 30 |
| high | New Account With Lifecycle Hook | package.json | package first published 14 day(s) ago, 4 total version(s), has lifecycle hook | 25 |
Show all 6 findings (low-signal and informational)
| Severity | Kind | Path | Detail | Points |
|---|---|---|---|---|
| high | Install Lifecycle Remote Or Exec | package.json | 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')}\"" | 30 |
| high | New Account With Lifecycle Hook | package.json | package first published 14 day(s) ago, 4 total version(s), has lifecycle hook | 25 |
| low | Install-time lifecycle script | package.json | 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')}\"" | 5 |
| low | Large Javascript Payload | package/lib/v3/index.js | 2794482 bytes | 0 |
| low | Large Javascript Payload | package/lib/v3/lucky-office-pdf.umd.js | 2794482 bytes | 0 |
| low | Large Javascript Payload | package/lib/v3/lucky-office-pdf.mjs | 2810811 bytes | 0 |
Manifest
Package metadata
Scripts8
buildnpm run clean && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyTypebuild:3npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3cleanshx rm -rf libcopyFile3shx cp lib/v3/lucky-office-pdf.umd.js lib/v3/index.jscopyReadmeshx cp README.md lib/README.mdcopyScriptsshx 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.jscopyTypeshx cp index.d.ts lib/index.d.tspostinstallnode -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')}"