hunting-business-logic-flaws

hunting-business-logic-flaws is a skill for Claude Code from UnboundCompute/security-agent-skills. It costs 109 tokens per session (1,575 once invoked), scanned A, original, MIT.

A security review method for finding business-logic flaws: cases where an application permits a valid action in an invalid order, amount, combination, or state.

In plain words
What is it for?
Use it to review checkout, payments, refunds, transfers, approvals, quotas, balances, one-time actions, and other multi-step workflows.
Why use it?
These bugs do not require malformed requests or code-injection tricks, so ordinary scanners may miss them. The method compares the intended business rules with the paths the application actually permits.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the security-agent-skills plugin — 194 skills shipped together

Good fit Use it to review checkout, payments, refunds, transfers, approvals, quotas, balances, one-time actions, and other multi-step workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add UnboundCompute/security-agent-skills --skill hunting-business-logic-flaws
Clone the repo
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills

Made for: Claude Code.

Or install security-agent-skills, the plugin that ships this one along with the rest of its 194 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hunting-business-logic-flaws

README.md
[![agentmods](https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws/github.svg)](https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws)
Your own site
<a href="https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hunting-business-logic-flaws

Your own site · 80×15
<a href="https://agentmods.dev/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws"><img src="https://agentmods.dev/badge/skills/unboundcompute/security-agent-skills/hunting-business-logic-flaws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01575
Opus 5 $0.00055 $0.00788
Sonnet 5 $0.00022 $0.00315
Haiku 4.5 $0.00011 $0.00158

Measured 7d ago against content hash 6ff81db2ab91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hunting-business-logic-flaws scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hunting-business-logic-flaws/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hunting business-logic flaws: the bugs where every request is valid

A business-logic flaw is a gap between what the code enforces and what the business intends. No request is malformed, no payload is injected, no signature is invalid; the attacker just does allowed things in a disallowed order, quantity, or combination. Scanners cannot find these, because there is no dangerous function call to flag. The danger is the sequence and the arithmetic, so finding them means modeling the intended rule first, then searching for a permitted path that breaks it.

When to use

  • You are reviewing checkout, payment, transfers, refunds, or redemption.
  • A multi-step flow with a required order (signup, approval, provisioning).
  • Anything with a quota, a limit, a balance, a tier, or a one-time action.

Scope check

Test flows you own or are authorized to test. Exercise sequences against your own accounts and data; do not move real money or affect real users. If you can't name the authorization, stop.

The loop

  1. Recover the intended rules. For the flow under review, write down the invariants the business assumes: "a coupon applies once," "you cannot ship what you did not pay for," "a transfer cannot exceed the balance," "step 3 requires step 2." These are usually unwritten. State each explicitly, because each is a hypothesis you will try to break.

  2. Map the state machine and its real transitions. Diagram the states and the requests that move between them. Then find transitions the diagram forbids but the code permits: can you post the final step directly, replay an approval, revisit a completed state, or reach a state without its precondition? Missing server-side enforcement of order is step-skipping.

  3. Attack the arithmetic and the limits. For every quantity, price, count, or balance the user influences, test the edges: negative, zero, very large, fractional and rounding boundaries, and the value that pushes a cumulative total past a cap. A quantity that can go negative credits the attacker; a limit checked before but not after a concurrent change is a limit-overrun.

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 133 lines · 109 tokens per session scan A 6ff81db2ab91

Subscribe to this mod's changes

hunting-business-logic-flaws is a skill published in the GitHub repository UnboundCompute/security-agent-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 109 tokens to every session and 1,575 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

ffuf-claude-skill

Skill "ffuf-claude-skill" from Agent-Threat-Rule/agent-threat-rules, covering ffuf claude skill, when to use this skill and instructions.

Agent-Threat-Rule/agent-threat-rules · 14 tokens

codeinspectus-fix-one

Investigate and remediate exactly one user-selected CodeInspectus finding with evidence-gated reproduction, a separately approved minimal patch, focused regression testing, and an exact-prior-scan rescan. Use when a user asks an agent to examine, reproduce, fix, or verify one CodeInspectus finding without batching…

Synvoya/codeinspectus · 76 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

KalarisLabs/Skill-Doctor · 21 tokens

gauntlex:doctor

Full GAUNTLEX environment health check — model reachable, ChromaDB writable, AVF fixtures pass, no unexpected outbound network (air-gap verification). Use before first run or when debugging failures.

sanjoy1234/gauntlex · 45 tokens

diagnose-bundle

Maintainer/dev skill that triages an anonymised diagnostic bundle (appsec-diag-.tgz, produced by scripts/diagnosticbundle.py) a user sent after a pipeline failure. Runs the deterministic inspect, then cross-references the plugin source (scripts/, compact runtimes, agents/, AGENTS.md) and known-bug history to produce a…

appsec-foundry/appsec-advisor · 96 tokens

diagnose-run

Find the plugin defects behind the issues a create-threat-model run recorded. Reads .run-issues.json, re-reads each symptom next to the plugin's own code, and reports a file:line root cause per issue, or classifies it as an environment or expected condition. Read-only against the plugin; writes only .run-bugs.json.…

appsec-foundry/appsec-advisor · 117 tokens