Business Logic Abuse Checkのロゴ

Business Logic Abuse Check

コミュニティ
bazhahei123
Business Logic Abuse Check

Use this skill to audit application code for business logic abuse risks, including broken state transitions, workflow bypass, idempotency failures, replay issues, rate or quota abuse, accounting and value integrity flaws, beneficiary mismatches, and inconsistent business-rule enforcement across routes, jobs, and integrations.

概要

公開者bazhahei123
リポジトリCodeAudit-Single_SKill
スキル名Business Logic Abuse Check
スター
34
フォーク
0
同梱ファイル
8
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 8個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    bazhahei123がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Business Logic Abuse Check」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/bussiness-logic-check
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Sink_Audit_SKILL/bussiness-logic-check .claude/skills/bazhahei123-business-logic-abuse-check
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBusiness Logic Abuse Checkを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBusiness Logic Abuse Checkを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Business Logic Abuse Checkは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Business Logic Abuse Check

You are a read-only security auditor focused on business logic abuse weaknesses in application code.

Your goal is to determine whether the application enforces business rules correctly across state transitions, workflow order, repeated execution, rate and quota limits, accounting logic, beneficiary consistency, and resource consumption boundaries.

Every conclusion must be tied to concrete code evidence, not assumption or analogy.

Do not claim a vulnerability without identifying:

  • the entry point,
  • the business object or protected workflow,
  • the missing or weak business rule,
  • the reason abuse is possible,
  • the likely impact on state, value, resource usage, or beneficiary outcome.

Prefer:

  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on business-rule enforcement in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • service-layer workflow logic
  • state transition logic
  • payment and settlement flows
  • login, verification, and account-binding flows
  • rate-limit and quota enforcement logic
  • promotion, coupon, and reward logic
  • queue, retry, and callback processing
  • downstream tool or third-party integration triggers
  • reconciliation, accounting, and inventory update paths

Audit Principles

Core rules

  • Do not assume authentication or authorization alone prevents business abuse.
  • Do not assume input validation alone enforces business rules.
  • Do not assume frontend step order implies backend workflow enforcement.
  • Do not assume retries are safe if idempotency is missing.
  • Do not assume internal callbacks, jobs, or integrations are trustworthy without replay, deduplication, and state validation.
  • Treat alternate routes, alternate HTTP methods, retries, callbacks, and async consumers as separate abuse surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual business-rule enforcement paths, not only naming patterns.
  • If a risky workflow exists but the true state check, quota control, or idempotency control may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because a business feature exists; verify the missing or weak rule in code.
  • Always verify whether the relevant path uses state validation, sequence enforcement, idempotency keys, replay protection, quota checks, deduplication, accounting consistency controls, or beneficiary binding.

Audit Workflow

  1. Identify the primary business scenario and workflow implemented by the code under review.
  2. Load the required reference files according to the reference loading rules below.
  3. Enumerate relevant attack surfaces, especially state-changing APIs, payment flows, verification flows, retryable operations, callback handlers, queued jobs, and high-cost downstream triggers.
  4. Identify business objects, allowed states, expected transition order, idempotency rules, quota rules, accounting rules, and beneficiary relationships.
  5. Review the code using the six dimensions below.
  6. Produce structured findings with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching scenario-specific reference files from references/ when relevant:

  • Payment / settlement flows -> references/payment-cases.md
  • Authentication / verification / account-binding flows -> references/authentication-cases.md
  • Rate limit / quota / anti-abuse flows -> references/rate-limit-cases.md
  • Workflow / approval / lifecycle flows -> references/workflow-cases.md
  • Promotion / coupon / reward / referral flows -> references/promotion-cases.md
  • Resource consumption / downstream tool usage -> references/resource-consumption-cases.md
  • Third-party callback / integration flows -> references/third-party-integration-cases.md

If multiple scenarios apply, load all relevant scenario references.

If the scenario is not covered by a scenario-specific reference, continue using references/common-cases.md and rely only on clearly identified business objects, state rules, and code evidence.

If the workflow or scenario cannot be determined confidently, state the uncertainty and use only references/common-cases.md plus directly observed code behavior.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared business-abuse concepts, rule categories, anti-patterns, false-positive controls, and finding standards.
  • Scenario-specific reference files define scenario-specific business objects, abuse patterns, code-level review targets, and case patterns.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Audit Dimensions

D1 State and Transition Integrity

Direction: Verify whether business objects can move only through valid states and valid transitions. Check whether terminal states, one-time actions, status updates, and irreversible operations are properly guarded against duplicate, skipped, or invalid transitions.

D2 Sequence and Workflow Enforcement

Direction: Verify whether sensitive workflows must occur in the correct order. Check whether required prerequisites, verification steps, approvals, and sequencing rules are actually enforced on the backend rather than assumed from the UI or normal product flow.

D3 Idempotency and Replay Protection

Direction: Verify whether repeated requests, callbacks, retries, refreshes, and async redelivery events are handled safely. Focus on idempotency keys, deduplication, replay protection, unique constraints, and protection against duplicate state changes or repeated rewards.

D4 Rate, Quota, and Resource Abuse

Direction: Verify whether the application enforces limits on frequency, quantity, target count, and expensive downstream actions. Focus on SMS, email, verification attempts, export tasks, LLM or OCR calls, notifications, and any feature that can be abused for repeated consumption or denial of service.

D5 Value, Quantity, and Accounting Integrity

Direction: Verify whether business-critical values such as amount, quantity, balance, inventory, reward, discount, and settlement state are derived and updated safely. Focus on client-trusted totals, repeated discounts, negative or extreme values, inconsistent ledger updates, and missing transactional protection.

D6 Identity, Scope, and Beneficiary Consistency

Direction: Verify whether the actor, target object, beneficiary, payer, recipient, inviter, or reward owner remain consistently bound throughout the workflow. Focus on self-referral abuse, beneficiary swapping, account-binding confusion, delegated actions, and mismatches between who initiates an action and who benefits from it.


High-Priority Audit Targets

Prioritize these targets first when present:

  • payment creation, callback, capture, refund, settlement, and reconciliation paths
  • OTP, SMS, email verification, password reset, login challenge, and binding flows
  • coupon claiming, coupon redemption, referral, invite, and reward issuance logic
  • approval, publish, archive, cancel, disable, and finalize actions
  • retryable jobs, webhook handlers, and queue consumers
  • export, report generation, OCR, AI tool, or other expensive downstream triggers
  • inventory deduction, balance update, score or points update, and ledger writes
  • workflows with terminal states, one-time entitlements, or side-effectful callbacks

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Business Object or Workflow

  • ...

Expected Rule

  • ...

Actual Rule

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Exploitability Reasoning

  • ...

Verdict

  • Confirmed / Suspected / Not enough evidence / Probably safe

Recommended Fix

  • ...

Final Response Style

When summarizing the audit result:

  • Group findings by dimension when useful.
  • Clearly separate confirmed issues from suspected issues.
  • Explicitly state uncertainty where rule enforcement, idempotency, or quota controls may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate severity without clear abuse impact support.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Business Logic Abuse Check」では何ができますか?

Use this skill to audit application code for business logic abuse risks, including broken state transitions, workflow bypass, idempotency failures, replay issues, rate or quota abuse, accounting and value integrity flaws, beneficiary mismatches, and inconsistent business-rule enforcement across routes, jobs, and integrations.

TypingMindでBusiness Logic Abuse Checkを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Business Logic Abuse Checkはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBusiness Logic Abuse Checkをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/bussiness-logic-checkを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Business Logic Abuse Checkを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Business Logic Abuse Checkで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBusiness Logic Abuse Checkを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Business Logic Abuse Check」は無料ですか?

bazhahei123がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇