/indra:sh-kb-access-controlfrom Indra
Knowledge base for hunting broken access control vulnerabilities: IDOR/BOLA, missing function-level authorization, privilege escalation, and multi-tenant isolation failures. Covers CWE-284/285/639/862/863 and OWASP A01: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.
The #1 OWASP risk. The app authenticates the user but fails to check whether this user may access this resource or perform this action. Unlike injection, the bug is usually a missing or wrong check, not a dangerous sink - so hunt by comparing "who can reach this" against "who should".
/api/orders/{id} returns any order because the handler looks up by id
without checking ownership./admin/*; a mutating action reachable by a read-only user.is_admin),
or a lower role reaches a higher-role action.tenant_id/org_id; one tenant reads another's data.POST /admin/deleteUser is checked but GET/PUT on the same handler isn't;
a reverse proxy/framework treats /ADMIN/deleteUser (case), /admin/deleteUser/ (trailing slash), or
/admin/deleteUser.anything (suffix, e.g. Spring's pre-5.3 default useSuffixPatternMatch) as a different
route than the one the gate matches on, but the underlying handler still resolves it. Non-standard
override headers (X-Original-URL, X-Rewrite-URL) accepted by some frameworks can also change the
effective path after the access-control gate has already run.Every request carrying a resource identifier the client controls (path/query/body id, filename, key)
or a capability (action, role, flag). For each entry point in codebase-map.json, ask:
auth_required.)findById(req.params.id), Model.objects.get(pk=id),
repository.findOne(id), SELECT ... WHERE id = <id> with no AND owner_id = <current_user>.@login_required/@requires_role/authorize()/
[Authorize]/before_action; Express routes without an auth middleware in the chain.if (req.body.role === 'admin').User(**req.body), user.update(req.body), Object.assign(user, req.body),
Model.objects.update(**data) letting role/is_admin/tenant_id through.codebase-map.json, list every entry point and its auth_required.graft ask "does this handler check that the resource belongs to the current user" (or read it) - look for a comparison against the authenticated principal.GET /doc/{id} checks ownership but DELETE /doc/{id} doesn't, flag it. Also
diff the methods/paths the authz gate matches against what the router/handler actually accepts
(other verbs, case variants, trailing slash, suffix, X-Original-URL/X-Rewrite-URL handling).graft grep "is_admin|role\s*==|hasRole|requires_role|@Authorize|before_action|current_user" --json.GET /api/orders/1001; replay as user B (or unauth) -> if B sees
A's order, confirmed. Enumerate/increment/UUID-swap the id.curl -X POST /admin/users -H 'Authorization: <user-token>') -> success = missing function-level check.PATCH /api/me {"is_admin":true} or {"role":"admin"} -> re-fetch profile.POST/DELETE action as GET/PUT/HEAD on the same path.X-Original-URL: /admin/deleteUser (or X-Rewrite-URL) at a permitted path and see
if the app routes to the restricted one./admin/deleteUser.json) to see if the gate and the router disagree.WHERE owner_id = :me), a base queryset
(get_queryset filtered by user), row-level security, or shared middleware you must read to see.Referer header (fully attacker-controlled) is
not a real control, even though it looks like a check is present.auth account takeover.secrets/sqli reads for a full data-exfil chain. Often the escalation step in chains.Enforce authorization server-side at the object level on every access: scope queries by the authenticated
principal/tenant, use a central policy layer (deny by default), never trust client-supplied role/tenant,
and allowlist mass-assignable fields. Make sure the authz gate and the router agree on path matching
(method, case, trailing slash, suffix) and reject non-standard override headers (X-Original-URL); re-check
authorization on every step of a multi-step flow, not just the first; never rely on Referer as a control.
What SKILL.md sets; muted values are Claude Code's defaults
20 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-authKnowledge 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./sh-kb-cryptoKnowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures./sh-kb-csrfKnowledge base for finding Cross-Site Request Forgery - state-changing requests that rely only on ambient credentials (cookies) with no anti-CSRF token or SameSite protection. Use when hunting CSRF. CWE-352, OWASP A01:2021-Broken Access Control./sh-kb-deserializationKnowledge base for finding insecure deserialization - untrusted data fed to object-deserialization APIs that can trigger RCE or object injection via gadget chains. Use when hunting deserialization issues. CWE-502, OWASP A08:2021-Software and Data Integrity Failures./sh-kb-file-uploadKnowledge base for finding unrestricted/insecure file upload - uploads that allow dangerous file types, execution in the upload dir, path control over the stored name, or missing content validation, leading to RCE, XSS, or overwrite. Use when hunting file-upload issues. CWE-434/436/616, OWASP A04/A05:2021.npx claudepluginhub dmdhrumilmistry/indra --plugin indraOther plugins' skills for the same job