PkgRadar

Package evidence

@segment/[email protected]

Js Split Join Obfuscation: Array-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.

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
157Mature · −50% score
First published
Feb 2021
Publisher
segment-admin

Effective trust discount applied: 50% (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":["@segment/[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":["@segment/[email protected]"],"fail_on":"review"}'
Publishersegment-admin
Artifact bytes908,134
Previous version1.81.1
Published2026-03-04T21:11:12.920Z
SHA-256567a079a395ea432796546d20d52aa1653c63c926ea2ccbf39aaa85435fbac32

Why flagged

What the scanner saw

Js Split Join Obfuscation: Array-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.

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

Availability ledger

available

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

Evidence

Static findings

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

SeverityKindPathDetailPoints
highJs Split Join Obfuscationpackage/dist/cjs/lib/embedded-write-key.jsArray-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.40
highJs Split Join Obfuscationpackage/dist/pkg/lib/embedded-write-key.jsArray-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.40
highJs Split Join Obfuscationpackage/dist/umd/standalone.jsArray-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.40
highJs Split Join Obfuscationpackage/src/lib/embedded-write-key.tsArray-of-single-tokens joined to form a string — used to obscure module names like require(["n","o","de",":","cr","yp","to"].join("")), defeating static require() analysis.40

Manifest

Package metadata

Scripts17
  • .yarn run -T turbo run --filter=@segment/analytics-next...
  • buildyarn clean && yarn build-prep && yarn concurrently 'NODE_ENV=production yarn umd' 'yarn pkg' 'yarn cjs'
  • build-prepsh scripts/build-prep.sh
  • cjsyarn tsc -p tsconfig.build.json --outDir ./dist/cjs --module commonjs
  • cleanrm -rf dist
  • concurrentlyyarn run -T concurrently
  • eslintyarn run -T eslint
  • jestyarn run -T jest
  • lintyarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'
  • pkgyarn tsc -p tsconfig.build.json
  • release:cdnyarn . build && NODE_ENV=production bash scripts/release.sh && NODE_ENV=stage bash scripts/release.sh
  • testyarn jest
  • tscyarn run -T tsc
  • umdwebpack
  • vendornode scripts/vendor/run.js
  • versionyarn run build-prep && git add src/generated/version.ts
  • watchyarn concurrently 'WATCH=true yarn umd --watch' 'yarn pkg --watch'
Dependencies11
  • @lukeed/uuid^2.0.0
  • @segment/analytics-core1.8.2
  • @segment/analytics-generic-utils1.2.0
  • @segment/analytics-page-tools1.0.0
  • @segment/analytics.js-video-plugins^0.2.1
  • @segment/facade^3.4.9
  • dset^3.1.4
  • js-cookie3.0.1
  • node-fetch^2.6.7
  • tslib^2.4.1
  • unfetch^4.1.0