Box.js - A Tool For Studying JavaScript Malware

FatalERROR

FatalERROR

Golden Member
Joined
November 19, 2025
Messages
295
Reaction score
2,304
Points
93
  • Thread Author
  • #1
A utility to analyze malicious JavaScript running in the background.


Installation

Simply install box-js from npm:

Code:
Code:
npm install box-js --global

Usage

Looking to use box-js with Cuckoo? Use cuckoo-package.py as an analysis package.
Let's say you have a sample called sample.js: to analyze it, simply run.

Code:

Code:
Code:
box-js sample.js

Chances are you will also want to download any payloads; use the flag --download to enable downloading. Otherwise, the engine will simulate a 404 error, so that the script will be tricked into thinking the distribution site is down and contacting any fallback sites.
Box.js will emulate a Windows JScript environment, print a summary of the emulation to the console, and create a folder called sample.js.results (if it already exists, it will create sample.js.1.results and so on). This folder will contain:
  • analysis.log, a log of the analysis as it was printed on screen;
  • a series of files identified by UUIDs;
  • snippets.json, a list of pieces of code executed by the sample (JavaScript, shell commands, etc.);
  • urls.json, a list of URLs contacted;
  • active_urls.json, a list of URLs that seem to drop active malware;
  • resources.json, the ADODB streams (i.e. the files that the script wrote to disk) with file types and hashes;
  • IOC.json, a list of behaviours identified as IOCs (Indicators of Compromise). These include registry accesses, written files, HTTP requests and so on
To see this hidden content, you need to "Reply & React" with one of the following reactions: Like Like, Love Love, Haha Haha, Wow Wow
 
  • Like
Reactions: iblameboobs
I

iblameboobs

Advanced Member
Joined
March 2, 2026
Messages
123
Reaction score
1
Points
18
  • #2
ty ima try it
 
  • Tags
    a box cybersecurity tools for javascript js malware malware analysis threat intelligence tool web security