claude-usage
Warn
Audited by Gen Agent Trust Hub on Apr 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/claude_usage.pyexecutes thenpxcommand usingsubprocess.runto run theccusageutility when the--compareflag is provided. - [REMOTE_CODE_EXECUTION]: By calling
npx ccusage, the skill fetches and executes code from the NPM registry at runtime. This creates a dependency on an external package and registry, which is a potential vector for supply chain attacks. - [EXTERNAL_DOWNLOADS]: Fetches dependencies including the
playwrightPython package and the Chromium browser binary for PDF report generation. These are standard dependencies for browser-based rendering. - [DATA_EXFILTRATION]: The skill processes sensitive information within
~/.claude/projects/, including private user prompts and assistant responses. The use of external tools likenpxin a context where they have access to session history creates an increased risk surface for data exposure.
Audit Metadata