← back to browse
goat command grade C

npm

Run npm install commands from bot

0
views
0
likes
0
installs
analysis — static scan, nothing executed
0 grade C
Risky — serious capabilities found, review before installing
Security 53
Privacy 100
Quality 86
Maintenance 90
Community 0
high Shell access

Spawns operating-system processes through child_process. A command running shell code can read or change anything the bot's account can.

L1const { exec } = require("child_process");
medium Installs packages at runtime 5×

Runs npm/yarn/pip install while the bot is running. Whatever gets installed is not reviewed here.

L12en: "Run npm install commands from bot"
L27"• .npm install <package>\n" +
L28"• .npm install canvas gifencoder\n" +
L51return message.reply("❌ কোনো প্যাকেজের নাম দাও!\nউদাহরণ: .npm install canvas");
L61const cmd = `npm install ${safePackages.join(" ")} --force`;
low Filesystem access

Reads or writes files on the machine running the bot.

L2const fs = require("fs-extra");
capabilities — what this file can do, regardless of intent
Network Filesystem Shell Env vars Dynamic code Session data Installs packages Process control
dependencies

fs-extra

checks
Exports a command/module
Handles errors (try/catch or .catch)
Readable, not minified
Has explanatory comments
No deprecated dependencies
Reasonable size (< 200 KB)
raw source — loaded on demand
Loading source…

View raw file · View analysis as JSON