/indra:sh-kb-authfrom Indra
Knowledge base for hunting authentication and session-management failures: JWT flaws, session fixation, weak password storage, MFA bypass, and account recovery issues. Maps to CWE-287/384/613/620/640 and OWASP A07:2021.
Ships in Indra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Failures in proving who the user is (vs access-control, which is what they may do). Covers login,
sessions, tokens, password handling, and account recovery.
alg:none accepted; algorithm confusion (RS256 verified with the public key as an HMAC
secret); signature not verified (decode without verify); secret hardcoded/weak (offline-brute-forceable);
no exp check; trusting unverified claims for authz. Header-parameter injection: kid used to look up
the verification key via a path (traversal to a predictable low-entropy file, e.g. /dev/null -> empty-string
HMAC key) or a DB query (SQLi); jwk header lets the server verify against an attacker-embedded public key
(attacker signs with the matching private key); jku/x5u header points to an attacker-hosted key
set/certificate with no host allowlist.HttpOnly/Secure/SameSite; overly
long/absent expiry (CWE-613); session token in URL.md5/sha1/unsalted) instead of bcrypt/scrypt/
argon2 (CWE-256/916); no rate limiting / lockout (credential stuffing, CWE-307); timing-unsafe comparison
of secrets (== on tokens); lockout counter keyed by source IP instead of the account (trivially bypassed
with distributed attempts) or a lockout with no path to self-recovery (usable as a DoS against a victim).state missing (CSRF on login); redirect_uri not validated.jwt.decode(/verify(, algorithms=, verify=False, verify_signature, md5(/sha1( near "password",
== comparing tokens/HMACs (vs hmac.compare_digest/crypto.timingSafeEqual), session[, set_cookie,
SECRET_KEY, random/Math.random for tokens, password_reset, otp, login, authenticate, JWT header
parsing that reads kid/jwk/jku/x5u before signature verification.
codebase-map.json.exp + expected alg, and the secret's source.{"alg":"none"}, drop signature, change sub/role. Confusion: sign with RS256
public key as HMAC secret. Expired token still accepted -> no exp check.kid -> ../../../../dev/null (then sign with empty-string HMAC key) or a SQLi
string if kid feeds a key-lookup query; jwk -> attacker's own public key embedded in the header, token
signed with the matching private key; jku/x5u -> attacker-controlled URL serving a malicious key
set/certificate.POST /forgot with Host: attacker.com -> link points to attacker.exp/nbf enforced; secret from env/secret manager.kid resolves only against a fixed in-memory/config map of known key ids (no path/DB use); jwk header
ignored in favor of a pinned server-side key; jku/x5u restricted to a strict host allowlist.CWE-287/384/613/620/640/307/916. OWASP A07:2021. Auth bypass / token forgery -> critical; weak hashing or missing lockout -> high; missing cookie flags / enumeration -> medium.
Weak session/JWT + xss or open-redirect/Referer leak -> token theft -> takeover; user enumeration +
no lockout -> credential stuffing; reset-token flaw -> account takeover; access-control IDOR that leaks
tokens feeds this. Auth bypass unlocks every authenticated finding.
Use a maintained auth framework; verify JWT signature+alg+exp (never none); pin/allowlist the verification
key rather than trusting kid/jwk/jku/x5u from the token itself; store passwords with argon2/bcrypt+salt;
constant-time secret comparison; rotate session id on login and invalidate on logout; set
HttpOnly/Secure/SameSite; CSPRNG single-use expiring reset tokens; rate-limit + lockout keyed by
account with exponential backoff and a DoS-safe recovery path; enforce MFA.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
authentication, session-management, jwt, security-audit, cwe
npx claudepluginhub dmdhrumilmistry/indra --plugin indra20 skills in this plugin
/indraindra - the entry point for application-security work. Dispatcher for the indra security harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base./sh-kb-access-controlKnowledge base for finding broken access control - IDOR/BOLA, missing function-level authorization, privilege escalation, and multi-tenant isolation failures. Use when hunting authorization issues or reviewing whether users can access resources/actions they shouldn't. CWE-284/285/639/862/863, OWASP A01:2021-Broken Access Control./Other plugins' skills for the same job