# Sh kb auth

> Sh kb auth is an open-source agent skill for security. Guides an agent to hunt authentication and session flaws in code, from JWT to reset flows. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-auth
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-auth
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-auth)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-auth)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

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

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

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

## Alternatives

- [Authentication](https://ai-powered.com/skills/authentication): Authentication is an open-source agent skill for security.
- [Auth security](https://ai-powered.com/skills/auth-security): Auth security is an open-source agent skill for security.
- [Sh kb access control](https://ai-powered.com/skills/sh-kb-access-control): Sh kb access control is an open-source agent skill for security.
- [Sh kb crypto](https://ai-powered.com/skills/sh-kb-crypto): Sh kb crypto is an open-source agent skill for finance and payments.
- [Sh kb csrf](https://ai-powered.com/skills/sh-kb-csrf): Sh kb csrf is an open-source agent skill for security.
- [Auth and rbac](https://ai-powered.com/skills/auth-and-rbac): Auth and rbac is an open-source agent skill for security.
- [Sh kb secrets](https://ai-powered.com/skills/sh-kb-secrets): Sh kb secrets is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-sorah): Security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-kb-auth
