other
- Location
SKILL.md:4- Finding
Broad Access to Sensitive Claude Code Session Logs
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 4-8, 14-18, and 24-31
Vulnerability Type: Sensitive Agent conversation-log access
Risk Level: MediumThe Skill grants an external CLI broad access to all Claude Code session logs matching the configured wildcard rather than limiting access to a user-selected project or session.
yaml config_paths: - ~/.claude/projects/*/*.jsonl requires: - claude-usage-analyzermarkdown ## Data access - Reads `~/.claude/projects/*/*.jsonl` (local Claude Code session logs) - Runs offline, no network access, no API keys, no credentials - Open source: https://github.com/SingggggYee/claude-usage-analyzerbash claude-usage-analyzer claude-usage-analyzer report --days 7 claude-usage-analyzer sessions claude-usage-analyzer session <id> claude-usage-analyzer --jsonTechnical Analysis
Claude Code JSONL session logs may contain sensitive prompts, responses, source-code fragments, filesystem paths, tool results, project details, and accidentally disclosed secrets. The wildcard path permits the required executable to process logs from every locally stored Claude project accessible to the current operating-system account.
The detailed per-session and per-turn commands can disclose substantially more information than aggregate usage statistics. The machine-readable JSON option also makes log-derived information easy to retain or pass to downstream tools.
The project contains no implementation of the required
claude-usage-analyzerexecutable. Consequently, this audit cannot independently verify the documentation's claim that the executable operates offline and performs no network communication. There is no evidence in the reviewed Skill file that it collects credentials, exfiltrates data, escalates privileges, establishes persistence, or executes a remote payload.Attack Path
- A user asks the Agent to analyze token ...[truncated 1278 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user consent before reading any Claude Code session logs and clearly identify the projects, sessions, and date range that will be accessed.
- Replace the global wildcard with least-privilege, user-selected paths. Default to one project, one session, or a narrowly bounded date range.
- Default to aggregate token and cost statistics. Require separate confirmation before displaying prompts, responses, tool results, or per-turn details.
- Redact secrets, source snippets, personal data, filesystem paths, and conversation content from reports, including JSON output.
- Provide a dry-run or file-listing mode that shows which logs would be processed before access occurs.
- Pin the required CLI to a reviewed version and verify its checksum or signature. Prefer vendoring auditable source when feasible.
- Independently verify and enforce the stated offline behavior, such as by auditing the executable and restricting its network access during execution.
- Avoid retaining generated reports by default and warn users that machine-readable output may contain sensitive log-derived data.
