Not classified

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.

Read the original sourceAdditional source: thehackernews.com

How it happened

Select a stage to explore its defenses
Select a stage · Drag to explore · + / − to zoom · Dashed edges are loopsSelect a stage · Arrows show reported connectionsReported sequence
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.

  1. 01 · Reported initial access

    unknown

    Source for step 1
  2. 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
  3. 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.

Read 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.

Review the original guidance Additional source 2
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 sources

Research by unknown · Infosecurity Magazine (reporting Koi Security research)

  1. infosecurity-magazine.com
  2. thehackernews.com

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