AI vs. Supply Chain Security: Learn how to defend your code. Save your seat.

Malware Detected: Reverse Shell Without JavaScript Files in npm

Malware Detected paperclip2

OX Research found paperclip2, an npm package with no JavaScript files, hiding a reverse shell in its config file — and two related packages carrying the same payload

Overview

The OX Research team found a malicious npm package called paperclip2. It contains only a package.json file. No JavaScript. 

A one-liner inside its postinstall script spawns a reverse shell. The absence of any JavaScript files appears designed to evade malware scanners that look for executable code rather than configuration files.

Two related packages use the same reverse shell one-liner in their postinstall scripts:

  • vps-maintenance
  • vps-maintenance-paperclip-adapter

Combined, the three packages have been downloaded 1,049 times per week.

Immediate Actions:

  1. Remove the affected packages
  2. Manually inspect and delete any entries referencing these packages in package lock files and package.json files
  3. Check for unknown and suspicious processes using port 7007 and kill the underlying process

Technical Analysis

image

The malware consists only of a package.json file, which contains an embedded postinstall script one-liner:

image

The malware connects to 185[.]112[.]147[.]174 on port 7007, and spawns a reverse shell.

image

Malicious Packages

Package nameAffected versions
paperclip2Any
vps-maintenanceAny
vps-maintenance-paperclip-adapterAny

Tags:

OX VibeSec

Security That Moves at the Speed AI Builds

See what your AI agents decide and whether it’s safe before it runs. Connect a repo in minutes.

Get Your Software Secured
Frame 2085668530

Subscribe to Our Newsletter

Stay updated with the latest SaaS insights, tips, and news delivered straight to your inbox.

Group 1261154229