{"score":90,"grade":"A","scannedAt":"2026-12-05T23:10:03.903Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"@glittering0717/ai-browser","version":"2.9.4","license":"MIT","repository":"https://github.com/Glittering/ai-browser","firstPublished":"2026-10-13T19:04:41.988Z","lastPublished":"2026-12-05T13:57:26.676Z","versions":65,"maintainers":1,"files":124,"bytes":2013951,"hosts":["npmmirror.com","relative.invalid","www.baidu.com","www.bilibili.com","www.csdn.net"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":true},"findings":[{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/main/app_model_source.js","line":366,"snippet":"try { proto = eval(spec.hookProto); } catch (e) { return { ok: false, error: \"hookProto threw: \" + (e && e.message) }; }"},{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/main/app_model_source.js","line":411,"snippet":"try { present = !!eval(spec.detect); } catch (e) { present = false; }"},{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"src/main/app_model_source.js","line":414,"snippet":"if (spec.version) { try { ver = eval(spec.version); } catch (e) {} }"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"scripts/release.cjs","line":376,"snippet":"console.log('      或：把新的 granular access token 写进 ~/.npmrc 的 //registry.npmjs.org/:_authToken');"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"src/shared/upload_guard.cjs","line":26,"snippet":"'id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519',"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"src/shared/upload_guard.cjs","line":27,"snippet":"'.env', '.env.local', '.npmrc', '.pypirc', '.netrc', '.git-credentials',"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/preload/bridge.cjs","line":39,"snippet":"var policy = identityUtil.parseHostSwitch(process.env.AI_BROWSER_POPUP_SHIM);"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/shared/browser_identity.cjs","line":142,"snippet":"const claimedVersion = opts.claimedVersion || process.env.AI_BROWSER_CHROME_VERSION || realVersion;"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"src/shared/browser_identity.cjs","line":143,"snippet":"const brandsMode = String(opts.brands || process.env.AI_BROWSER_BRANDS || '').trim().toLowerCase();"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"scripts/build_dmg.cjs","line":31,"snippet":"const { spawnSync, spawn } = require('node:child_process');"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"scripts/build_dmg.cjs","line":117,"snippet":"const r = spawnSync(cmd, args, { cwd: root, stdio: 'inherit', ...opts });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"scripts/build_dmg.cjs","line":195,"snippet":"fs.rmSync(dup, { force: true });"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"scripts/build_dmg.cjs","line":211,"snippet":"const r = spawnSync(lsregister, ['-u', appPath], { encoding: 'utf8' });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"scripts/build_dmg.cjs","line":240,"snippet":"fs.renameSync(OUT_DIR, trash);"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"scripts/build_installer.cjs","line":59,"snippet":"fs.rmSync(staging, { recursive: true, force: true });"},{"rule":"network","severity":"info","title":"Makes network requests","file":"scripts/cli_call.cjs","line":89,"snippet":"const ws = new WebSocket(`ws://127.0.0.1:${port}`);"},{"rule":"network","severity":"info","title":"Makes network requests","file":"tools/coverage_probe.cjs","line":38,"snippet":"const ws = new WebSocket(`ws://127.0.0.1:${port}`);"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/main/mcp_ws.js","line":89,"snippet":"const ws = new WebSocket(url);"}],"vulns":[],"installScripts":[],"server":{"name":"io.github.Glittering/ai-browser","description":"Visible Electron browser driven by a semantic accessibility tree: 17 MCP tools, no screenshots.","repository":"https://github.com/Glittering/ai-browser","version":"2.9.4"}}