{"id":1477,"name":"npm","author":"Custom","framework":"goat","overall":65,"grade":"C","level":"risky","verdict":"Risky — serious capabilities found, review before installing","scores":{"security":53,"privacy":100,"quality":86,"maintenance":90,"community":0},"counts":{"critical":0,"high":1,"medium":1,"low":1},"alerts":[{"id":"shell","severity":"high","category":"security","title":"Shell access","description":"Spawns operating-system processes through child_process. A command running shell code can read or change anything the bot's account can.","count":1,"locations":[{"line":1,"snippet":"const { exec } = require(\"child_process\");"}]},{"id":"runtime-install","severity":"medium","category":"security","title":"Installs packages at runtime","description":"Runs npm/yarn/pip install while the bot is running. Whatever gets installed is not reviewed here.","count":5,"locations":[{"line":12,"snippet":"en: \"Run npm install commands from bot\""},{"line":27,"snippet":"\"• .npm install <package>\\n\" +"},{"line":28,"snippet":"\"• .npm install canvas gifencoder\\n\" +"},{"line":51,"snippet":"return message.reply(\"❌ কোনো প্যাকেজের নাম দাও!\\nউদাহরণ: .npm install canvas\");"},{"line":61,"snippet":"const cmd = `npm install ${safePackages.join(\" \")} --force`;"}]},{"id":"fs-access","severity":"low","category":"security","title":"Filesystem access","description":"Reads or writes files on the machine running the bot.","count":1,"locations":[{"line":2,"snippet":"const fs = require(\"fs-extra\");"}]}],"capabilities":[{"id":"network","label":"Network","active":false},{"id":"filesystem","label":"Filesystem","active":true},{"id":"shell","label":"Shell","active":true},{"id":"env","label":"Env vars","active":false},{"id":"eval","label":"Dynamic code","active":false},{"id":"credentials","label":"Session data","active":false},{"id":"install","label":"Installs packages","active":true},{"id":"process","label":"Process control","active":false}],"checks":[{"label":"Exports a command/module","ok":true},{"label":"Handles errors (try/catch or .catch)","ok":false},{"label":"Readable, not minified","ok":true},{"label":"Has explanatory comments","ok":true},{"label":"No deprecated dependencies","ok":true},{"label":"Reasonable size (< 200 KB)","ok":true}],"dependencies":{"builtin":["child_process","path"],"external":["fs-extra"],"local":[]},"domains":[],"scannedAt":"2026-11-05T13:23:43.499Z"}