{"score":90,"grade":"A","scannedAt":"2026-12-05T23:02:44.237Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"tokensafe","version":"5.9.14","license":"Apache-2.0","repository":"https://github.com/tokensafe-dev/tokensafe","firstPublished":"2026-11-08T11:09:47.596Z","lastPublished":"2026-12-05T22:23:38.132Z","versions":225,"maintainers":1,"files":221,"bytes":4757939,"hosts":["api.anthropic.com","api.deepseek.com","api.openai.com","api.tokensafe.dev","api.z.ai","discord.com","generativelanguage.googleapis.com","gitlab.com","hooks.slack.com","localhost.evil.com","openrouter.ai","tokensafe.dev","www.apple.com"]},"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":"tokensafe/repo_compute.py","line":80,"snippet":"exec(compile(_source, \"<compute>\", \"exec\"), _scope)"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"tokensafe/compactor.py","line":327,"snippet":"…nore|\\.prettierrc[\\w\\.\\-]*|\\.eslintrc[\\w\\.\\-]*|\\.npmignore|\\.npmrc|\\.yarnrc)'"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"tokensafe/guard.py","line":38,"snippet":"r\"(?:\\.env(?:\\.[\\w-]+)?|id_rsa|id_ed25519|credentials\\.json|service_account\\.json|\""},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"tokensafe/guard.py","line":39,"snippet":"r\"\\.npmrc|\\.pypirc|[\\w.-]*\\.(?:pem|key)|secrets?\\.(?:json|ya?ml|toml|env))\""},{"rule":"exfil-host","severity":"low","title":"Mentions a webhook, paste or tunnel service address","file":"tokensafe/secret_redactor.py","line":139,"snippet":"\"https://discord.com/api/webhooks/[REDACTED_DISCORD_WEBHOOK]\""},{"rule":"network","severity":"info","title":"Makes network requests","file":"tokensafe/panel/assets/app.js","line":141,"snippet":"response = await fetch(path, init);"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"extensions/cursor-tokensafe/extension.js","line":2,"snippet":"const { execFile } = require('child_process');"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"bin/tokensafe-acp.js","line":15,"snippet":"const { spawn } = require('child_process');"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/tokensafe-acp.js","line":26,"snippet":"env: process.env,"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"bin/tokensafe.js","line":8,"snippet":"const { spawn, spawnSync } = require('child_process');"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/tokensafe.js","line":18,"snippet":"const TOKENSAFE_HOME = process.env.TOKENSAFE_HOME"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/tokensafe.js","line":19,"snippet":"? path.resolve(process.env.TOKENSAFE_HOME)"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"bin/tokensafe.js","line":204,"snippet":"if (fs.statSync(candidate).isDirectory()) fs.rmSync(candidate, { recursive: true, force: true });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"bin/tokensafe.js","line":287,"snippet":"fs.rmSync(localArchive, { force: true });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"bin/tokensafe.js","line":315,"snippet":"fs.rmSync(dir, { recursive: true, force: true });"},{"rule":"network","severity":"info","title":"Makes network requests","file":"tokensafe/panel/__init__.py","line":55,"snippet":"import urllib.request"},{"rule":"network","severity":"info","title":"Makes network requests","file":"tokensafe/panel/__init__.py","line":57,"snippet":"with urllib.request.urlopen(url.rstrip(\"/\") + \"/healthz\", timeout=timeout) as response:"}],"vulns":[],"installScripts":[],"server":{"name":"dev.tokensafe/tokensafe","title":"TokenSafe","description":"Context, runtime and review for AI coding agents. One local install.","websiteUrl":"https://tokensafe.dev","repository":"https://github.com/tokensafe-dev/tokensafe","version":"5.9.14"}}