PkgRadar

Package evidence

@ast-grep/[email protected]

Install Lifecycle Remote Or Exec: postinstall="node postinstall.js"

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
625,663Ubiquitous · −70% score
Versions published
169Mature · −50% score
First published
Sep 2022
Publisher
herringtondarkholme

Effective trust discount applied: 70% (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":["@ast-grep/[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":["@ast-grep/[email protected]"],"fail_on":"review"}'
Artifact bytes2,160
Previous version0.42.3
Published2026-05-25T20:19:54.388Z
SHA-256a598a0acc397244879ac76e9f2048b94819b84cecd1004d8b41dcb1e1fadfb6d

Why flagged

What the scanner saw

Install Lifecycle Remote Or Exec: postinstall="node postinstall.js"

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

Availability ledger

available

review
Last checked
reviewRisk
10Score
0.43.0Version
Status history (1 event)
  1. newavailable · risk review · score 10 · status changed

Evidence

Static findings

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

SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node postinstall.js"30
Show all 2 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node postinstall.js"30
lowInstall-time lifecycle scriptpackage.jsonpostinstall="node postinstall.js"5

Manifest

Package metadata

Scripts1
  • postinstallnode postinstall.js
Dependencies1
  • detect-libc2.1.2
Optional dependencies7
  • @ast-grep/cli-darwin-arm640.43.0
  • @ast-grep/cli-darwin-x640.43.0
  • @ast-grep/cli-linux-arm64-gnu0.43.0
  • @ast-grep/cli-linux-x64-gnu0.43.0
  • @ast-grep/cli-win32-arm64-msvc0.43.0
  • @ast-grep/cli-win32-ia32-msvc0.43.0
  • @ast-grep/cli-win32-x64-msvc0.43.0