Skip to content
Skill

Sh kb secrets

Guides an agent through hunting hardcoded secrets and leaked sensitive data in code

Sh kb secrets is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
44
Last commit
License
MIT
Listing updated

Similar skills

About Sh kb secrets

This skill is a hunter's knowledge base for locating credentials and sensitive data that have been exposed in a codebase. It covers secrets embedded in source files, configuration, CI pipelines, infrastructure-as-code, client-side bundles and git history, as well as secrets written to logs, error messages or URLs. It is written as a reference for security reviewers rather than a single fixed procedure.

The material is organized around what to look for and how to confirm it. It lists grep-style detection patterns for common assignment forms, provider key prefixes and connection strings, then gives a short recipe: search, separate real literals from placeholders and environment lookups, check what ships to the browser or app, trace log and error sinks, and check git history for values removed from HEAD. It also describes how to size the impact of a leaked value and how to avoid false positives such as publishable keys and encrypted values.

The skill references a graft grep command and Git commands, so it expects an agent with shell and repository access. It also includes severity guidance, CWE and OWASP mappings, defender-side detection signals and mitigation advice. Real credentials are to be masked in any written output.

When your agent uses it

Knowledge base for finding hardcoded secrets and sensitive-data exposure - API keys, passwords, tokens, private keys, and connection strings embedded in source/config/CI/IaC/client bundles/git history, or secrets leaked to logs/errors/URLs. Use when hunting secret exposure. CWE-798/259/312/532, OWASP A05/A02:2021.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (9 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra

Or copy only this skill to ~/.claude/skills/sh-kb-secrets:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-secrets &&
cp -R "$tmp/plugins/indra/skills/sh-kb-secrets" ~/.claude/skills/sh-kb-secrets &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/sh-kb-secrets inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/sh-kb-secrets to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-kb-secrets &&
cp -R "$tmp/plugins/indra/skills/sh-kb-secrets" ~/.agents/skills/sh-kb-secrets &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/sh-kb-secrets inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/sh-kb-secrets to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-kb-secrets &&
cp -R "$tmp/plugins/indra/skills/sh-kb-secrets" ~/.cursor/skills/sh-kb-secrets &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/sh-kb-secrets inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-secrets

Or copy the folder to ~/.gemini/skills/sh-kb-secrets yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-secrets:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-secrets &&
cp -R "$tmp/plugins/indra/skills/sh-kb-secrets" ~/.copilot/skills/sh-kb-secrets &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/sh-kb-secrets inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git

Then copy indra/plugins/indra/skills/sh-kb-secrets into your agent's skills folder as sh-kb-secrets. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Hardcoded credential patterns
Grep targets and provider key prefixes for API keys, tokens, passwords and private keys.
Config and CI file coverage
Checks committed env files, Dockerfiles, CI workflows, Terraform state and Kubernetes secrets.
Client bundle exposure
Looks for server secrets shipped to browsers through public env prefixes or source maps.
Log and error leak tracing
Traces tokens, headers and PII reaching logs, error responses and URLs.
Git history review
Steps for finding values removed from HEAD but still present in past commits and branches.
False-positive filters
Guidance on placeholders, publishable keys and encrypted values to avoid over-reporting.

Good for

  • Scan a repository for hardcoded API keys and passwords
  • Check CI workflow files for tokens stored in plain text
  • Find secrets leaked into frontend bundles or source maps
  • Review git history for credentials that were removed but never rotated
  • Trace whether tokens or PII end up in application logs

Sh kb secrets FAQ

What does Sh kb secrets need to run?

It references a graft grep command and standard git commands, so the agent needs shell and repository access.

Does Sh kb secrets change any files?

The skill itself only provides guidance and does not include scripts; it describes searching and reporting.

Which kinds of secrets does Sh kb secrets cover?

API keys, passwords, tokens, private keys, database and broker connection strings, and cloud or service-account credentials.

How does Sh kb secrets handle values that look like secrets but are safe?

It lists filters for placeholders, environment lookups, publishable client keys and encrypted values, and advises noting but not rating those as secrets.

How do I install Sh kb secrets in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-secrets to use it in all your projects, or to .claude/skills/sh-kb-secrets in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

Does Sh kb secrets run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Sh kb secrets?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Sh kb secrets?

The closest alternatives to Sh kb secrets are Secrets in git history, Sh kb ci cd, Source code scanning, Osint and Sh kb injection.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from dmdhrumilmistry/indra

  1. Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines

    • Open source
    • 44 GitHub stars
    • Security
  2. Gives a security review agent persistent Markdown memory of past findings and learnings

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  3. Security-reviews a GitHub pull request and reports findings as inline comments

    • Open source
    • 44 GitHub stars
    • Developer tools
  4. Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  5. Plans and runs approved purple-team tests to check whether SIEM detections fire

    • Open source
    • 44 GitHub stars
    • Security
  6. Re-checks one earlier security finding against current code or recorded traffic

    • Open source
    • 44 GitHub stars
    • Security