claude-cost-optimizer is a collection of Claude Code optimization guides, templates, hooks, and installable skills. It provides Markdown skill definitions, shell scripts, and JSON manifests.
The realistic security concerns are:
- Hook scripts run on your machine with your shell. A malicious hook could delete files, leak data, or execute arbitrary commands.
- Skill and command content can instruct Claude to run shell commands. Prompt injection or a bad skill body could nudge Claude toward harmful actions.
- Plugin manifests (
plugin.json,marketplace.json) could declare unexpected components if the repo is compromised.
If you find a security issue, do not open a public Issue or PR. Instead:
- Email: sg85207@gmail.com with subject
[claude-cost-optimizer security] - Include: what you found, how to reproduce, impact, and any suggested mitigation.
You should get a first response within 7 days. I'll work with you on a fix and coordinate a disclosure timeline.
In scope:
- A hook or skill that can be used to exfiltrate data, escalate privileges, or execute untrusted code.
- A prompt-injection pattern embedded in a skill body that reliably causes Claude to bypass user safety checks.
- Secrets accidentally committed to the repo (API keys, tokens, private keys) -- please report privately so they can be rotated before a public PR.
Out of scope:
- A plugin or guide you disagree with stylistically (use a PR or Discussion).
- A hook that is powerful but clearly documented.
- Vulnerabilities in Claude Code itself -- report those to Anthropic.
- Acknowledge within 7 days.
- If valid: fix the issue, publish a patch release, and credit you in the
CHANGELOG.md(unless you prefer anonymity). - If invalid: explain why and, where useful, point at the existing mitigation.
- Review hook scripts before enabling them. Hooks run with your shell privileges.
- Pin the plugin version in your
settings.jsonif you need a stable install. - Keep your local
~/.claude/settings.jsonpermissions tight. Skills inside plugins cannot grant themselves tool access beyond what you allow.
I prefer coordinated disclosure. Typical timeline once a valid report is received:
- Day 0: acknowledged.
- Day 0-14: fix developed.
- Day 14: patch released, advisory published.
- Day 14+: public Issue / PR references the CVE (if one was assigned).
If the issue is actively exploited in the wild, I'll accelerate that timeline.