# Sh kb access control

> Sh kb access control is an open-source agent skill for security. Guides an agent to hunt broken access control such as IDOR and privilege escalation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-access-control
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-access-control
- **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 finding broken access control in web applications, covering object-level IDOR and BOLA flaws, missing function-level authorization, privilege escalation through mass assignment, and multi-tenant isolation failures. It maps these classes to CWE identifiers and the OWASP A01:2021 category, and explains the core question to ask of each entry point: whether authentication is required, whether the resource is tied to the caller, and whether the action has a role check.

The workflow walks the agent through enumerating routes and their auth requirements, diffing sibling endpoints for inconsistent checks, grepping for role checks and object-hydration patterns, and checking non-HTTP entry points such as GraphQL resolvers, queue consumers and WebSocket handlers. It includes framework-specific guidance for Django, FastAPI, Express, Spring, Rails, Laravel, ASP.NET and Go, plus false-positive filters, proof-of-concept request patterns, and defender-side log and detection ideas.

The skill assumes a codebase to read and references a graft command and a codebase-map.json file produced by its companion tooling. It is intended for authorized security review and bug hunting.

## When your agent uses it

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

## 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-access-control)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-access-control)

## Features

- **Object-level IDOR checks:** Explains how to spot handlers that fetch resources by client-supplied identifiers without an ownership or tenant comparison.
- **Framework-specific guard patterns:** Lists where authorization is commonly missing in Django, FastAPI, Express, Spring, Rails, Laravel, ASP.NET and Go.
- **Mass assignment detection:** Identifies object hydration from request bodies that lets clients set fields like role or tenant ID.
- **Gate bypass variants:** Covers verb tampering, path normalization and override header cases where the access gate and router disagree.
- **Proof-of-concept templates:** Provides request patterns for confirming IDOR, function-level, privilege escalation and multi-step flow flaws.
- **Defender detection signals:** Describes log sources and behavioural signals for spotting enumeration and admin route misuse.

## Good for

- Review an API for endpoints that return other users' records by ID
- Check whether admin routes enforce role checks on every HTTP method
- Audit a Rails or Django app for mass assignment that lets users set is_admin
- Verify tenant isolation in a multi-tenant SaaS database query layer
- Find multi-step checkout or wizard flows that skip authorization on the final step

## 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-access-control`:

```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-access-control &&
cp -R "$tmp/plugins/indra/skills/sh-kb-access-control" ~/.claude/skills/sh-kb-access-control &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/sh-kb-access-control` 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-access-control &&
cp -R "$tmp/plugins/indra/skills/sh-kb-access-control" ~/.agents/skills/sh-kb-access-control &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-kb-access-control` 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-access-control &&
cp -R "$tmp/plugins/indra/skills/sh-kb-access-control" ~/.cursor/skills/sh-kb-access-control &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-kb-access-control` 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-access-control
```

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

### VS Code

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

```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-access-control &&
cp -R "$tmp/plugins/indra/skills/sh-kb-access-control" ~/.copilot/skills/sh-kb-access-control &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-kb-access-control` 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-access-control` into your agent's skills folder as `sh-kb-access-control`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh kb access control need to run?

It assumes a codebase to read and references a graft command and a codebase-map.json file for listing entry points. The skill text itself has no scripts.

### Does Sh kb access control change any code or files?

No. It is a knowledge base of hunting patterns, checks and PoC request templates that guides the agent's review.

### Which vulnerability classes does Sh kb access control cover?

IDOR/BOLA, missing function-level authorization, privilege escalation, multi-tenant isolation failures, URL-matching and verb bypass, multi-step flow flaws, and indirect object access.

### How do I install Sh kb access control in Claude Code?

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

### Does Sh kb access control 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 access control?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Sh kb access control?

The closest alternatives to Sh kb access control are Sh kb csrf, Sh kb auth, Web app logic, Django access review and Sh kb open redirect.

## Where this comes from

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

## Alternatives

- [Sh kb csrf](https://ai-powered.com/skills/sh-kb-csrf): Sh kb csrf is an open-source agent skill for security.
- [Sh kb auth](https://ai-powered.com/skills/sh-kb-auth): Sh kb auth is an open-source agent skill for security.
- [Web app logic](https://ai-powered.com/skills/web-app-logic): Web app logic is an open-source agent skill for security.
- [Django access review](https://ai-powered.com/skills/django-access-review): Django access review is an open-source agent skill for security.
- [Sh kb open redirect](https://ai-powered.com/skills/sh-kb-open-redirect): Sh kb open redirect is an open-source agent skill for security.
- [API security](https://ai-powered.com/skills/api-security): API security 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.
- [Sh kb sqli](https://ai-powered.com/skills/sh-kb-sqli): Sh kb sqli is an open-source agent skill for security.

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