PkgRadar

Package evidence

@hasna/[email protected]

Install Lifecycle Suppresses Failure: postinstall="mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"

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
26
First published
Feb 2026
Publisher
andreihasna2

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":["@hasna/[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":["@hasna/[email protected]"],"fail_on":"high"}'
Publisherandreihasna2
Artifact bytes213,254
Previous version0.2.13
Published2026-05-28T13:11:04.487Z
SHA-2561d747b4b56097afd3039e56a5fa8dec81d9aff2fc98a625cdaadf841be00fa1b

Why flagged

What the scanner saw

New Lifecycle Script Vs Previous: postinstall added in 0.2.14 vs 0.2.13: "mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"

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

Availability ledger

available

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

Evidence

Static findings

3 static · 1 from release diff · showing high-signal first.

SeverityKindPathDetailPoints
highNew Lifecycle Script Vs Previouspackage.jsonpostinstall added in 0.2.14 vs 0.2.13: "mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"40
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"20
Show all 4 findings (low-signal and informational)
SeverityKindPathDetailPoints
highNew Lifecycle Script Vs Previouspackage.jsonpostinstall added in 0.2.14 vs 0.2.13: "mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"40
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"20
lowCredential file accesspackage/hooks/hook-protectfiles/src/hook.tsmatched ".ssh/"5
lowInstall-time lifecycle scriptpackage.jsonpostinstall="mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"5

Manifest

Package metadata

Scripts9
  • buildbun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk --external conf --external @modelcontextprotocol/sdk --external zod && bun build ./src/index.ts --outdir ./dist --target bun
  • dashboard:buildcd dashboard && bun run build
  • dashboard:devcd dashboard && bun run dev
  • dashboard:previewcd dashboard && bun run preview
  • devbun run ./src/cli/index.tsx
  • postinstallmkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true
  • prepublishOnlybun run build
  • testbun test
  • typechecktsc --noEmit
Dependencies10
  • @hasna/cloud^0.1.24
  • @modelcontextprotocol/sdk^1.26.0
  • chalk^5.3.0
  • commander^12.1.0
  • conf^13.0.1
  • ink^5.0.1
  • ink-select-input^6.0.0
  • ink-spinner^5.0.0
  • ink-text-input^6.0.0
  • react^18.2.0