Is AviVAvi/TokenScope safe?
https://github.com/AviVAvi/TokenScope/
TokenScope is a legitimate Claude Code token profiler with no prompt injection techniques or active malicious code. Its primary concern is architectural: the skill explicitly instructs the agent to read complete conversation transcripts across all of a user's Claude projects, which frequently contain sensitive material such as API keys and passwords pasted in prior sessions. Additionally, an unexplained burst of reads against all six major credential files (.env, SSH keys, AWS credentials, npm auth, Docker, GCP) at the end of the audit session — after all analysis was complete — cannot be attributed to the setup phase and warrants caution before deployment.
Category Scores
Findings (7)
HIGH Skill reads complete Claude conversation history across all projects -25 ▶
SKILL.md Step 2 explicitly instructs the agent to read session JSONL transcripts from ~/.claude/projects/
HIGH Unexplained second credential-file access after analysis phase -15 ▶
The auditd records show all six major credential files (.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, gcloud application_default_credentials.json) being opened and read at timestamp 1784830454.235, which occurs after all file analysis is complete. The first access at 1784830432 is attributable to the audit framework placing its honeypot canaries. The second access sequence — hitting all six credential files in rapid succession at the end — is unexplained and cannot be attributed to any identified process in the analysis pipeline.
MEDIUM Hardcoded personal developer Windows path left in production SKILL.md -10 ▶
The SKILL.md contains a hardcoded absolute path to the developer's personal Windows machine: 'C:\Users\Asmit\OneDrive\bohra-labs\token-cost-mcp'. This path is meaningless on any other machine and forces a Glob fallback search. While not malicious, it demonstrates the skill was shipped without proper testing on any machine other than the author's, indicating poor quality control and operational security hygiene.
MEDIUM Reads MCP server configurations and all project path mappings -8 ▶
The mcp.ts module reads ~/.claude.json, which contains the user's complete Claude configuration including all globally enabled MCP servers, per-project MCP server configurations, and project path mappings. This data is used for the MCP audit feature, but it exposes all of the user's tool integration configuration to the skill's analysis context.
MEDIUM Reads arbitrary user project files via transcript-derived paths -12 ▶
The recommend.ts buildRecommendations function reads actual files from the user's filesystem. It collects file paths that appeared frequently in conversation transcripts (hot files) and then reads those files from disk to measure their line count. This means the skill can access any file the user previously worked on during a Claude session, including source code, configuration files, documentation, and data files.
LOW codemap command writes files to arbitrary user-specified directories -5 ▶
The codemap subcommand (codemap.ts) generates and writes CODEMAP.md to any directory the user or agent specifies, defaulting to the current working directory. This is a documented feature but means the skill can create or overwrite files in user project directories when the codemap command is invoked.
INFO Clean installation with expected-only network activity 0 ▶
The git clone connected only to GitHub (140.82.121.4:443). No unexpected external hosts were contacted, no firewall-blocked connection attempts occurred, no unexpected processes were spawned, and all filesystem writes were confined to the clone directory.