Malicious npm package embeds prompt aimed at fooling AI-based security scanners
The typosquat eslint-plugin-unicorn-ts-2 stole environment secrets via a postinstall hook and carried an inert string instructing AI reviewers to treat the code as legitimate.
What happened
The typosquat eslint-plugin-unicorn-ts-2 stole environment secrets via a postinstall hook and carried an inert string instructing AI reviewers to treat the code as legitimate.
How it happened
Read the flow as text & sources
A summary diagram derived from the entry fields, not a verified detailed sequence. Unknown steps remain explicit; an edge describes the reported relationship between steps.
- 01 · Reported initial access
unknown
Source for step 1 - 02 · Reported activity
The typosquat eslint-plugin-unicorn-ts-2 stole environment secrets via a postinstall hook and carried an inert string instructing AI reviewers to treat the code as legitimate.
Source for step 2 - 03 · AI involvement
LLM-based package and code security scanners
Source for step 3
Why it matters
Reported impact: the cited report does not establish a confirmed victim outcome; reported targets include Technology and AI companies; applicability to your setup has not been assessed, so verify affected versions, permissions, and configuration in the original report.
What you can do
Protection & prevention
Prevention guidance has not been recorded for this entry. Review the original report for available mitigations.
Catalog defensive guidance based on the reported behavior. Confirm scope and current mitigations in the original source.
Technical detailsTooling, impact
Attack context
- AI's role
- Agent / MCP as target
Tooling as reported
AI products, models and artifacts
- LLM-based package and code security scanners
Targets and reported impact
- Targets / sectors
- Technology and AI companies
Target geography was not captured by the Notion feed. Actor attribution is not used as a victim location.
Reported attribution
npm user hamburgerisland
Structured attribution
- Actor
- npm user hamburgerisland
- Motivation
- cybercrime
Sources & research credit
2 sourcesResearch by unknown · Infosecurity Magazine (reporting Koi Security research)
Imported from the AI Threat Watch Notion feed (an automated daily scan); not yet editorially reviewed. Feed severity: Medium. Feed novelty: New TTP.
Record & downloads
- Source record name
- Malicious npm package embeds prompt aimed at fooling AI-based security scanners
- Entry ID
- malicious-npm-package-embeds-prompt-aimed-2025-12
- Category
- attacks-on-ai
- AI involvement confidence
- confirmed