
Sh kb auth
Guides an agent to hunt authentication and session flaws in code, from JWT to reset flows
Sh kb auth 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 auth
This skill is a security knowledge base for locating authentication and session-management weaknesses. It covers JWT handling, session cookies and fixation, password storage and comparison, login throttling, MFA, account recovery, OAuth and SSO client logic, and API keys. It is scoped to proving identity, leaving permission checks to a separate access-control skill.
The file works as a hunting playbook. It lists grep-style sink patterns and unsafe guard APIs for Python, JavaScript, Java, Go, PHP, Ruby and C#, then walks through a detection recipe: trace login and reset flows, verify token signature and expiry, check hashing and rotation, and confirm every login-like path shares the same MFA and lockout checks. It also covers variant hunting, false-positive filters, defender log signals and mitigations.
The agent is expected to read the target codebase and may consult a codebase-map file if one exists. No scripts are bundled, and the skill does not set its own tool permissions.
When your agent uses it
Knowledge base for finding authentication and session-management failures - weak login, broken JWT/session handling, password/reset flaws, MFA bypass, credential storage issues. Use when hunting authentication (not authorization - see sh-kb-access-control). CWE-287/384/613/620/640, OWASP A07:2021-Identification and Authentication Failures.
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 (12 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@indraOr copy only this skill to ~/.claude/skills/sh-kb-auth:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-auth &&
cp -R "$tmp/plugins/indra/skills/sh-kb-auth" ~/.claude/skills/sh-kb-auth &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-kb-auth inside it instead.
Copy the skill folder to ~/.agents/skills/sh-kb-auth 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-auth &&
cp -R "$tmp/plugins/indra/skills/sh-kb-auth" ~/.agents/skills/sh-kb-auth &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-kb-auth inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-kb-auth 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-auth &&
cp -R "$tmp/plugins/indra/skills/sh-kb-auth" ~/.cursor/skills/sh-kb-auth &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-kb-auth inside it instead.
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-authOr copy the folder to ~/.gemini/skills/sh-kb-auth yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-auth:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-auth &&
cp -R "$tmp/plugins/indra/skills/sh-kb-auth" ~/.copilot/skills/sh-kb-auth &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-kb-auth inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-kb-auth into your agent's skills folder as sh-kb-auth. Agents that support SKILL.md read one folder per skill.
What it does
- JWT verification review
- Checks signature, algorithm, expiry and key-selection headers such as kid, jwk and jku.
- Session lifecycle checks
- Looks at session rotation on login, invalidation on logout, cookie flags and token entropy.
- Password storage audit
- Flags weak hashing, missing salts, rate limiting gaps and non-constant-time secret comparisons.
- Account recovery flaws
- Covers reset token expiry, single use, host header trust and user enumeration.
- OAuth and SSO pitfalls
- Reviews state, redirect URI, issuer and audience validation and account linking by email.
- Defender detection signals
- Lists log sources and behavioural ideas for spotting credential attacks and forged tokens.
Good for
- Audit our login flow for JWT verification mistakes
- Check whether session IDs are regenerated after sign-in
- Review password reset tokens for expiry and reuse
- Find login paths that skip MFA or lockout checks
- Assess our OAuth callback handling for missing state or nonce checks
Sh kb auth FAQ
When does Sh kb auth trigger?
It is meant for hunting authentication and session failures, and the description points to the access-control skill for authorization issues.
Does Sh kb auth run any scripts?
No. The skill folder contains only its SKILL.md file and no scripts.
Which agents can use Sh kb auth?
It is a plain SKILL.md folder, so it follows the shared agent skills format and is distributed through the Claude Code plugin marketplace named indra.
How do I install Sh kb auth in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-auth to use it in all your projects, or to .claude/skills/sh-kb-auth in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh kb auth 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 auth?
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 auth?
The closest alternatives to Sh kb auth are Authentication, Auth security, Sh kb access control, Sh kb crypto and Sh kb csrf.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

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





