Skip to content

Security: Sagargupta16/claude-cost-optimizer

Security

SECURITY.md

Security Policy

What this repository is

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:

  1. Hook scripts run on your machine with your shell. A malicious hook could delete files, leak data, or execute arbitrary commands.
  2. Skill and command content can instruct Claude to run shell commands. Prompt injection or a bad skill body could nudge Claude toward harmful actions.
  3. Plugin manifests (plugin.json, marketplace.json) could declare unexpected components if the repo is compromised.

Reporting a vulnerability

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.

What counts as a vulnerability

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.

What I will do

  • 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.

Your responsibilities as a user

  • Review hook scripts before enabling them. Hooks run with your shell privileges.
  • Pin the plugin version in your settings.json if you need a stable install.
  • Keep your local ~/.claude/settings.json permissions tight. Skills inside plugins cannot grant themselves tool access beyond what you allow.

Coordinated disclosure

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.

There aren't any published security advisories