business-logic-audit

Audits business rules and invariants for bypass, repeat, reverse, and race vulnerabilities.

Updated Aug 29, 2026
One-click install
npx skills add https://github.com/1arley/volibear --skill business-logic-audit-1arley
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: business-logic-audit
Source: https://github.com/1arley/volibear/tree/main/.opencode/skills/business-logic-audit
Command: npx skills add https://github.com/1arley/volibear --skill business-logic-audit-1arley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Business logic bugs hide in the gap between what a system assumes ("a user cannot reward themselves") and what it actually enforces. This Skill systematically extracts implicit business rules from a codebase and stress-tests each one against five questions—where is it enforced, can it be bypassed, repeated, reversed, or raced—to expose logic flaws before they reach production. ## Core Features & Use Cases - Rule Inventory: Identifies and classifies rules as invariants, limits, ownership, transitions, or rewards across a flow. - Five-Question Protocol: For each rule, checks enforcement location, bypass paths, repeatability, reversibility, and race conditions. - Severity Triage: Prioritizes rules involving transferable value (money, XP, stock) and ownership over cosmetic rules. - Use Case: Before launching a gamification feature with daily XP limits, use this Skill to verify the limit is enforced server-side, cannot be reset by retrying, and is not vulnerable to concurrent requests exceeding the cap. ## Quick Start Audit the reward and quota logic in this codebase for business rule violations using the five-question enforcement protocol.

Frequently Asked Questions about business-logic-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit business logic vulnerabilities in my application?▼

Inventory all implicit business rules in the flow, classify each as an invariant, limit, ownership, transition, or reward, then apply five questions: where is it enforced, can it be bypassed, repeated, reversed, or raced. Confirm each violation with reproducible evidence.

What is a business logic vulnerability?▼

A business logic vulnerability occurs when the system believes an invariant without guaranteeing it, such as enforcing a daily limit only in the frontend or checking ownership only via authentication. Attackers exploit alternate endpoints, extra fields, retries, or race conditions to violate the rule.

How do I test for race conditions in quota or limit checks?▼

Look for read-then-write patterns where the code reads a counter, checks the limit, then writes. Send two concurrent requests that both pass the check before either writes, exceeding the limit. Enforcement should use database constraints, locks, or atomic transactions.

When should I not report a business logic finding?▼

Avoid reporting when enforcement exists in another layer such as a database constraint, when the limit is intentionally soft by product design, or when the assumed rule was never defined by the product. Mark unconfirmed assumptions as SPECULATIVE.

What severity should reward and ownership bugs have?▼

Rules involving transferable value like money, XP, or stock and ownership checks are triaged as highest severity because they enable direct value extraction or unauthorized access. Cosmetic or UI-only rules rank lower in the audit report.