Logo di Business Logic Source Check

Business Logic Source Check

Community
bazhahei123
Business Logic Source Check

Use this skill to identify source points for business logic abuse audits, including workflow state inputs, transition actions, sequence markers, idempotency keys, replay identifiers, rate and quota dimensions, value and accounting inputs, actor-target-beneficiary bindings, retryable events, callbacks, jobs, and integration-driven business events.

Panoramica

Pubblicato dabazhahei123
RepositoryCodeAudit-Single_SKill
Nome della skillBusiness Logic Source Check
Stelle
34
Fork
0
File inclusi
8
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 8

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da bazhahei123 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Business Logic Source Check in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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/Source_Audit_SKILL/bussiness-logic-check .claude/skills/bazhahei123-business-logic-source-check
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Business Logic Source Check in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Business Logic Source Check non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Business Logic Source Check non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Business Logic Source Check

You are a read-only security auditor focused on identifying source points that are relevant to business logic abuse review.

Your goal is to determine where business-rule-relevant data enters the application and how it is carried into workflows, state transitions, repeated execution paths, quota decisions, value calculations, beneficiary binding, callbacks, queues, and integrations.

Every source point must be tied to concrete code evidence, not assumption or naming alone.

Do not claim a vulnerability only because a source point exists. A source point is an audit starting point. A vulnerability requires later proof that a required business rule, state guard, sequence check, idempotency control, quota check, value recomputation, or beneficiary binding is missing or weak.

Do not record a source point without identifying:

  • the entry point,
  • the source value or event,
  • whether the value is client-controlled, external-system-controlled, server-trusted, mixed, or unclear,
  • the downstream business-rule relevance,
  • the code evidence that connects the source to a business object, workflow, side effect, or decision.

Prefer:

  • confirmed source points,
  • explicit uncertainty,
  • structured source inventories, over vague suspicion.

Scope

Focus on business-logic source points 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
  • admin, replay, import, batch, and operational tooling

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume authentication or authorization makes a business source safe.
  • Do not assume input validation enforces business rules.
  • Do not assume frontend step order makes workflow sources trusted.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form values, uploaded rows, and import payloads as client-controlled unless code proves otherwise.
  • Treat webhook payloads, queue messages, partner callbacks, and provider events as external-system-controlled until authenticity, freshness, and scope are verified.
  • Treat server-side state, database-derived status, verified event records, trusted session context, and recomputed values as stronger sources.
  • Treat alternate routes, alternate HTTP methods, callbacks, retries, async consumers, and replay tools as separate source surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base source classification on actual code paths, not only naming patterns.
  • If a value may be recomputed, normalized, overwritten, deduplicated, or validated elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify a business source as trusted only because it is passed through a helper.
  • Always verify whether the value comes from request input, persisted server state, authentication context, framework middleware, callback verification, queue metadata, database state, or business-rule logic.
  • Record downstream use only when visible in the inspected code path.

Audit Workflow

  1. Identify the primary business scenario and workflow implemented by the code under review.
  2. Load references/common-cases.md.
  3. Load the matching scenario-specific reference files from references/.
  4. Enumerate relevant source surfaces, especially state-changing APIs, payment flows, verification flows, retryable operations, callback handlers, queued jobs, expensive downstream triggers, and high-value business actions.
  5. Identify business-rule-relevant source points, such as business object IDs, current state, target state, action names, step markers, idempotency keys, event IDs, retry metadata, quota dimensions, critical values, quantities, and beneficiary identifiers.
  6. For each source point, determine whether it is client-controlled, external-system-controlled, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream business-rule relevance, such as state transition, settlement, fulfillment, reward issuance, quota check, challenge verification, accounting update, or expensive job enqueue.
  8. Review the code using the six source dimensions below.
  9. Produce structured source points 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, source origins, 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 source discovery guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared business source concepts, source categories, trust boundaries, false-positive controls, and source output standards.
  • Scenario-specific reference files define scenario-specific business source values, event origins, downstream uses, and follow-up audit checks.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Source Dimensions

S1 State and Transition Sources

Direction: Identify current state, target state, status fields, lifecycle flags, transition action names, terminal markers, and state-changing entry points that can influence business object transitions.

S2 Sequence and Workflow Step Sources

Direction: Identify step markers, prerequisite indicators, verification-complete flags, approval records, challenge records, UI flow markers, and backend workflow tokens that determine whether a later step may run.

S3 Idempotency and Replay Sources

Direction: Identify idempotency keys, request IDs, event IDs, transaction references, callback IDs, nonces, timestamps, retry counts, queue job IDs, dedupe keys, and processed-event records used to distinguish first execution from replay.

S4 Rate, Quota, and Resource Trigger Sources

Direction: Identify limiter keys, quota dimensions, initiator IDs, IP/device/session keys, target identifiers, workload size, downstream tool type, export/report parameters, and job trigger payloads that influence abuse controls or resource consumption.

S5 Value, Quantity, and Accounting Sources

Direction: Identify amount, total, currency, discount, coupon result, quantity, balance delta, inventory count, refund amount, settlement amount, ledger fields, reward value, and server-side recomputation sources.

S6 Identity, Scope, and Beneficiary Sources

Direction: Identify actor, target object, payer, recipient, inviter, invitee, beneficiary, coupon owner, account, tenant, merchant, integration account, and delegated-action source values that determine who initiates an action and who receives the effect.


High-Priority Source Targets

Prioritize these source 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
  • admin replay, import, batch, sync, and operational paths that can trigger equivalent business effects

Output Requirements

Produce source points in a structured, evidence-driven format.

For every source point, use the following structure:

Source Point:

  • Dimension:
  • Scenario:
  • Source Type:
  • Confidence:

Entry Point

  • ...

Source Location

  • ...

Source Value or Event

  • ...

Trust Boundary

  • Client-controlled / External-system-controlled / Server-trusted / Mixed / Unclear

Downstream Business Use

  • ...

Evidence

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

Audit Relevance

  • ...

Verdict

  • Confirmed source / Suspected source / Not enough evidence / Probably irrelevant

Recommended Follow-up

  • ...

Final Response Style

When summarizing the source audit result:

  • Group source points by dimension or business scenario when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explicitly state uncertainty where source origin, dedupe logic, quota scope, value recomputation, or downstream business effect may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without missing-rule evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Business Logic Source Check?

Use this skill to identify source points for business logic abuse audits, including workflow state inputs, transition actions, sequence markers, idempotency keys, replay identifiers, rate and quota dimensions, value and accounting inputs, actor-target-beneficiary bindings, retryable events, callbacks, jobs, and integration-driven business events.

Perché usare Business Logic Source Check su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Business Logic Source Check è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Business Logic Source Check in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Business Logic Source Check?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Business Logic Source Check?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Business Logic Source Check: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Business Logic Source Check è gratuita?

È pubblicata su GitHub da bazhahei123. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇