# business-logic

The business-logic subagent probes application workflows for logic flaws, from price tampering to account-takeover paths. Use it when auditing purchases, sign-in flows, or trial limits.

- subagent · `type=agent` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop) · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/.claude/agents/business-logic.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/business-logic

## What it does

The subagent examines checkout, discounts, free trials, registration, and multi-factor authentication for ways to bypass intended steps or alter outcomes. It also checks whether parallel requests can repeat a financial action. For confirmed flaws, it looks for links to account access or measurable financial impact.

Its workflow starts by reading `$CLAUDE_PROJECT_DIR/skills/hunt-business-logic/SKILL.md`. It then searches prior writeups for techniques and payloads through MCP tools. Available tools include Bash, Read, Write, Edit, Grep, and WebFetch. The methodology file is a prerequisite for the stated workflow.

For race conditions, the subagent calls for repeated tests and a record of the value at risk. A single successful attempt is not enough to establish that the flaw is repeatable.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/business-logic.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/business-logic.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/business-logic.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/H-mmer/pentest-agents/tree/HEAD/.claude/agents/business-logic.md

## When to use it
- find a way around checkout or approval steps
- test price, quantity, and coupon manipulation
- check whether trial access can be renewed repeatedly
- probe MFA and password-reset bypasses
- measure losses from race conditions in payments

## Example prompts
- Audit checkout logic for payment skips and price changes.
- Check whether parallel requests can apply the same coupon repeatedly.
- Test registration and SSO flows for account takeover paths.

## Similar
- [business-logic-vulnerabilities](https://affpapa.org/en/nevibecode/skills/business-logic-vulnerabilities.md) — skill · 4300 installs
- [hunt-business-logic](https://affpapa.org/en/nevibecode/skills/hunt-business-logic.md) — skill · ★ 16193 repo stars
- [business-logic-vuln](https://affpapa.org/en/nevibecode/skills/business-logic-vuln.md) — skill · 4100 installs
- [testing-for-business-logic-vulnerabilities](https://affpapa.org/en/nevibecode/skills/testing-for-business-logic-vulnerabilities.md) — skill · 376 installs
- [broken-authentication](https://affpapa.org/en/nevibecode/skills/broken-authentication.md) — skill · 269 installs
- [authenticated-session-acquisition](https://affpapa.org/en/nevibecode/skills/authenticated-session-acquisition.md) — skill · 126 installs

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
