
Sh kb business logic
Gives your agent a checklist for finding business logic flaws in code
Sh kb business logic 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 business logic
This is a hunter's knowledge base for security review of application logic. Instead of searching for a dangerous function, it asks the agent to first write down the rules a system must follow, such as totals matching line items, one trial per account, or refunds not exceeding payments, and then looks for requests, input values or call orders that break those rules.
The guide walks the agent through a detection recipe: list invariants and where they are enforced, check which numeric and state fields the server trusts from the client, map the allowed state transitions and whether each handler checks the current state, and compare sibling paths such as web versus API or create versus import. It also covers numeric edge cases, coupon and credit reuse, refund and cancel abuse, plan gating, and common false positives to rule out before reporting.
The skill is written for code review and penetration testing work. It expects access to the source code, and often the running application, for proof of concept checks. It maps findings to CWE and OWASP categories and includes notes for defenders on logging and reconciliation signals.
When your agent uses it
Knowledge base for finding business logic flaws - price, quantity and currency tampering, negative or overflowing amounts, coupon and credit reuse, skipped or reordered workflow steps, trust in client-computed values, per-request limits, refund abuse, and plan limits enforced only in the UI. Use when hunting rule-breaking bugs where no dangerous sink exists. CWE-840, CWE-841, CWE-602, CWE-472, CWE-799, CWE-190, OWASP A04:2021-Insecure Design.
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 (11 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-business-logic:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-business-logic &&
cp -R "$tmp/plugins/indra/skills/sh-kb-business-logic" ~/.claude/skills/sh-kb-business-logic &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-kb-business-logic inside it instead.
Copy the skill folder to ~/.agents/skills/sh-kb-business-logic 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-business-logic &&
cp -R "$tmp/plugins/indra/skills/sh-kb-business-logic" ~/.agents/skills/sh-kb-business-logic &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-kb-business-logic inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-kb-business-logic 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-business-logic &&
cp -R "$tmp/plugins/indra/skills/sh-kb-business-logic" ~/.cursor/skills/sh-kb-business-logic &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-kb-business-logic 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-business-logicOr copy the folder to ~/.gemini/skills/sh-kb-business-logic yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-business-logic:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-business-logic &&
cp -R "$tmp/plugins/indra/skills/sh-kb-business-logic" ~/.copilot/skills/sh-kb-business-logic &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-kb-business-logic inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-kb-business-logic into your agent's skills folder as sh-kb-business-logic. Agents that support SKILL.md read one folder per skill.
What it does
- Invariant recovery method
- Guides the agent to derive the rules a system must keep from tests, docs, enums and money models.
- Client-trusted value checks
- Flags prices, totals, roles and plan fields accepted from requests instead of computed on the server.
- Workflow state review
- Checks whether steps like shipping or activation can be reached without earlier payment or verification.
- Limit and quota analysis
- Looks for per-request or per-IP limits and quota checks missing on bulk, import or API routes.
- Numeric edge testing
- Covers negative, zero, overflow and rounding cases in amounts and quantities.
- False-positive filters
- Lists conditions that rule out a finding, such as server-side recalculation or shared guards.
Good for
- Review a checkout flow for price or quantity tampering
- Check whether coupons can be reused or stacked
- Audit refund logic for amounts above what was paid
- Find plan limits that only the UI enforces
- Test whether order states can be skipped or reversed
Sh kb business logic FAQ
When does Sh kb business logic apply?
It is meant for hunting rule-breaking bugs where no dangerous sink exists, such as price tampering, workflow skips and limit bypasses.
What does Sh kb business logic need to run?
It is a single Markdown knowledge base file with no scripts. The agent reads the code and reasons about it; no tools are declared.
Does Sh kb business logic change or fix code?
The skill describes how to hunt and test for flaws, plus mitigation advice. It does not include code that modifies a project.
How do I install Sh kb business logic in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-business-logic to use it in all your projects, or to .claude/skills/sh-kb-business-logic in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh kb business logic 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 business logic?
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 business logic?
The closest alternatives to Sh kb business logic are Web app logic, Sh kb crypto, Sh kb race conditions, Sh kb auth and Sh kb misconfig.
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




