{"id":3668,"name":"accountswitch","author":"ST","framework":"goat","overall":88,"grade":"B","level":"review","verdict":"Review recommended — some behaviour worth a look","scores":{"security":80,"privacy":100,"quality":100,"maintenance":82,"community":0},"counts":{"critical":0,"high":0,"medium":1,"low":1},"alerts":[{"id":"process-control","severity":"medium","category":"security","title":"Can shut down the bot","description":"Calls process.exit / process.kill / process.abort, so one command can stop the whole bot.","count":3,"locations":[{"line":149,"snippet":"process.exit(2); // Restart bot"},{"line":170,"snippet":"process.exit(2); // Restart bot"},{"line":196,"snippet":"process.exit(2); // Restart bot"}]},{"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":false},{"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":false},{"id":"process","label":"Process control","active":true}],"checks":[{"label":"Exports a command/module","ok":true},{"label":"Handles errors (try/catch or .catch)","ok":true},{"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":["path"],"external":["fs-extra"],"local":["../../bot/login/botacc.js"]},"domains":[],"scannedAt":"2026-11-05T13:22:55.278Z"}