PkgRadar

Package evidence

@hasna/[email protected]

Install Lifecycle Suppresses Failure: postinstall="mkdir -p $HOME/.hasna/files 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
43
First published
Mar 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 bytes4,775,744
Previous version0.2.33
Published2026-05-28T15:01:22.798Z
SHA-2562f26728e4b7fc21e1e3c4f0a5b5da784555c4cbfd5ce2951db37ac30de13386e

Why flagged

What the scanner saw

Install Lifecycle Suppresses Failure: postinstall="mkdir -p $HOME/.hasna/files 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
25Score
0.2.34Version
Status history (2 events)
  1. availableavailable · risk high · score 25 · status available -> available, risk high -> high, score 45 -> 25
  2. newavailable · risk high · score 45 · status changed

Evidence

Static findings

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

SeverityKindPathDetailPoints
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="mkdir -p $HOME/.hasna/files 2>/dev/null || true"20
Show all 6 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="mkdir -p $HOME/.hasna/files 2>/dev/null || true"20
lowInstall-time lifecycle scriptpackage.jsonpostinstall="mkdir -p $HOME/.hasna/files 2>/dev/null || true"5
lowLarge Javascript Payloadpackage/dist/cli/index.js5821452 bytes0
lowLarge Javascript Payloadpackage/dist/index.js5716293 bytes0
lowLarge Javascript Payloadpackage/dist/mcp/index.js6447746 bytes0
lowLarge Javascript Payloadpackage/dist/server/index.js5662332 bytes0

Manifest

Package metadata

Scripts12
  • buildcd dashboard && bun run build && cd .. && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/index.ts --outdir dist --target bun && cp src/types/index.ts dist/index.d.ts
  • build:clibun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk
  • build:dashboardcd dashboard && bun run build
  • build:libbun build src/index.ts --outdir dist --target bun && cp src/types/index.ts dist/index.d.ts
  • build:mcpbun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk
  • build:serverbun build src/server/index.ts --outdir dist/server --target bun
  • dev:clibun run src/cli/index.tsx
  • dev:mcpbun run src/mcp/index.ts
  • dev:servebun run src/server/index.ts
  • postinstallmkdir -p $HOME/.hasna/files 2>/dev/null || true
  • testbun test
  • typechecktsc --noEmit
Dependencies15
  • @aws-sdk/client-s3^3.744.0
  • @aws-sdk/credential-providers^3.744.0
  • @aws-sdk/lib-storage^3.744.0
  • @aws-sdk/s3-request-presigner^3.1009.0
  • @hasna/cloud^0.1.24
  • @hasna/connectors^1.3.29
  • @modelcontextprotocol/sdk^1.29.0
  • @noble/hashes^1.7.2
  • chalk^5.4.1
  • chokidar^4.0.3
  • commander^13.1.0
  • ink^5.2.1
  • mime-types^3.0.1
  • nanoid^5.1.5
  • react^18.3.1