Logo: Business Logic Abuse Candidate Sink Check

Business Logic Abuse Candidate Sink Check

Communautéit
bazhahei123
Business Logic Abuse Candidate Sink Check

Use this skill to audit business logic abuse risks with graph-database and taint-tracking friendly candidate sink inventories, including payment, authentication, rate/quota, workflow, promotion, resource-consumption, and third-party integration scenarios in Java, Android, C++, C#, Python, and PHP applications.

Add to TypingMind

Iwwersiicht

Editeurbazhahei123
RepositoryCodeAudit-Single_SKill
Skill-NummBusiness Logic Abuse Candidate Sink Check
Stären
34
Forks
0
Matgeliwwert Dateien
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    bazhahei123 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Business Logic Abuse Candidate Sink Check an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/bussiness-logic-check-updated
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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-updated .claude/skills/bazhahei123-business-logic-abuse-candidate-sink-check
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Business Logic Abuse Candidate Sink Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Business Logic Abuse Candidate Sink Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Business Logic Abuse Candidate Sink Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Business Logic Abuse Candidate Sink Check

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

This updated skill is designed for workflows where a graph database, code property graph, semantic index, or taint-tracking engine needs candidate search terms before deeper manual review.

Business logic weaknesses usually do not have a universal dangerous API sink. Treat a business logic sink as a business-effect point: a code location where a request, event, callback, job, or external message can change state, move value, grant entitlement, consume quota, bind identity, trigger downstream work, or decide a workflow outcome.

Every conclusion must be tied to concrete code evidence, not only candidate keyword matches.

Do not claim a vulnerability without identifying:

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

Prefer:

  • candidate inventories that seed graph searches,
  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on business-rule enforcement in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • queue consumers
  • webhook and callback handlers
  • scheduled jobs
  • admin replay tools
  • 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, referral, and reward logic
  • downstream tool or third-party integration triggers
  • reconciliation, accounting, inventory, entitlement, and ledger update paths
  • Android exported components, deep links, WebView bridges, SDK callbacks, WorkManager jobs, and IPC-driven business effects
  • C++ HTTP/RPC/IPC/native service handlers that change business state, value, quota, entitlement, or external integration outcomes
  • C# / .NET controllers, minimal APIs, Razor Pages, SignalR hubs, gRPC services, background jobs, queue consumers, and EF/Dapper business-effect writes

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 callbacks, jobs, queues, or integrations are trustworthy without signature validation, replay protection, deduplication, and state validation.
  • Treat alternate routes, alternate HTTP methods, retries, callbacks, queue consumers, and admin replay tools as separate abuse surfaces.
  • Treat business-effect sinks as candidate nodes until concrete missing-control evidence is proven.
  • Prefer "Not enough evidence" over fabricated certainty.

Candidate sink model

For graph search and taint tracking, model business logic review with four token groups:

  1. Entry candidates: where user input, external events, queue messages, or admin actions enter.
  2. Business-effect candidates: verbs or functions that change business outcome.
  3. Object/value candidates: business objects, state fields, amount fields, quota fields, identity fields, and beneficiary fields.
  4. Required-control candidates: checks that should appear near the path, such as state guard, idempotency, quota, signature, ownership, amount recomputation, or beneficiary binding.

Candidate match does not prove a vulnerability. It only selects code for deeper review.


Audit Workflow

  1. Identify the primary implementation language and major framework.
  2. Load references/common-cases.md.
  3. Load the matching language reference file from references/.
  4. Generate graph search seeds by combining entry candidates, business-effect candidates, object/value keywords, and required-control keywords.
  5. Locate state-changing, value-changing, entitlement-granting, identity-binding, quota-consuming, workflow-transitioning, callback-processing, and downstream-triggering candidate nodes.
  6. For each candidate sink, trace backward to the entry point and business object, then inspect nearby or upstream controls.
  7. Review the code using the seven scenario dimensions below.
  8. Produce structured findings with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching language-specific reference file from references/:

  • Java -> references/java-cases.md
  • Android -> references/android-cases.md
  • C++ -> references/cpp-cases.md
  • C# / .NET -> references/csharp-cases.md
  • Python -> references/python-cases.md
  • PHP -> references/php-cases.md

If the project contains multiple languages, prioritize the language that implements the actual business-effect sink, state transition, money movement, quota consumption, identity binding, entitlement grant, webhook processing, or downstream task trigger.

For Android, prioritize the mobile-side boundary when exported components, deep links, SDK callbacks, WebView bridges, content providers, WorkManager jobs, or Binder/AIDL paths can trigger business effects or backend calls.

For C++ and C#/.NET, prioritize server, RPC, IPC, background worker, queue consumer, and data-access layers that commit business effects.

If the language is not covered, continue using references/common-cases.md and rely only on clearly identified framework and code evidence.

If the language or workflow 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 and candidate search seed lists, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared business-effect sink concepts, scenario dimensions, generic candidate keywords, and finding standards.
  • Language-specific reference files define framework-specific entry candidates, business-effect verb candidates, business object/value keywords, required control keywords, and graph search combinations.
  • Do not report an issue solely because it matches a candidate keyword.
  • Prefer real code evidence over candidate similarity.

Audit Dimensions

D1 Payment and Settlement Integrity

Direction: Verify whether payment, refund, settlement, balance, ledger, entitlement, and fulfillment effects are protected by trusted amount calculation, valid state transitions, idempotency, callback authenticity, and beneficiary binding.

D2 Authentication, Verification, and Account Binding

Direction: Verify whether OTP, email, SMS, reset token, login challenge, step-up verification, device binding, account recovery, and contact binding flows enforce step order, one-time use, expiry, target binding, purpose binding, attempt limits, and final beneficiary consistency.

D3 Rate, Quota, and Anti-Abuse

Direction: Verify whether repeated sends, verification attempts, exports, invites, expensive searches, and abuse-prone operations are limited by meaningful dimensions such as user, tenant, target, IP, device, payload, time window, and downstream cost.

D4 Workflow, Approval, and Lifecycle

Direction: Verify whether state transitions, approvals, publishing, cancellation, finalization, archival, assignment, moderation, and terminal actions enforce valid order, role/state pairing, terminal guards, and consistent rules across alternate paths.

D5 Promotion, Coupon, Reward, and Referral

Direction: Verify whether claiming, redemption, discount calculation, reward issuance, referral credit, eligibility, first-use markers, stacking rules, and beneficiary binding are enforced consistently and idempotently.

D6 Resource Consumption and Downstream Tool Usage

Direction: Verify whether OCR, AI/LLM, translation, report generation, export, notification fan-out, search, ranking, batch work, and third-party API usage are protected against unbounded triggering, duplicate work, retry amplification, and quota bypass.

D7 Third-Party Callback and Integration

Direction: Verify whether webhooks, callbacks, provider events, partner sync, reconciliation jobs, manual replay tools, and imported external state enforce authenticity, replay protection, tenant/account binding, state reconciliation, and idempotent side effects.


High-Priority Candidate Sink Targets

Prioritize these targets first when present:

  • payment creation, payment callback, capture, refund, settlement, and reconciliation paths
  • balance, wallet, ledger, credit, points, entitlement, fulfillment, and shipment updates
  • OTP, SMS, email verification, password reset, login challenge, and contact binding flows
  • coupon claiming, coupon redemption, referral, invite, and reward issuance logic
  • approval, publish, archive, cancel, disable, finalize, reopen, and restore actions
  • retryable jobs, webhook handlers, queue consumers, and admin replay tools
  • export, report generation, OCR, AI/LLM, translation, notification, and expensive downstream triggers
  • 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

  • ...

Candidate Sink

  • ...

Business Object or Workflow

  • ...

Expected Rule

  • ...

Actual Rule

  • ...

Candidate Search Evidence

  • Entry candidate:
  • Business-effect candidate:
  • Object/value keyword:
  • Required-control keyword:

Code 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.
  • Explain whether the candidate sink was found by entry candidate, effect verb, business object keyword, or required-control gap.
  • Explicitly state uncertainty where rule enforcement, idempotency, quota, signature validation, amount calculation, or state guard logic 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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Business Logic Abuse Candidate Sink Check?

Use this skill to audit business logic abuse risks with graph-database and taint-tracking friendly candidate sink inventories, including payment, authentication, rate/quota, workflow, promotion, resource-consumption, and third-party integration scenarios in Java, Android, C++, C#, Python, and PHP applications.

Firwat Business Logic Abuse Candidate Sink Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Business Logic Abuse Candidate Sink Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Business Logic Abuse Candidate Sink Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/bussiness-logic-check-updated an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Business Logic Abuse Candidate Sink Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Business Logic Abuse Candidate Sink Check benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Business Logic Abuse Candidate Sink Check domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Business Logic Abuse Candidate Sink Check gratis?

bazhahei123 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇