Business Logic Abuse Candidate Source Check 标志

Business Logic Abuse Candidate Source Check

社区
bazhahei123
Business Logic Abuse Candidate Source Check

Use this skill to identify business logic source points with graph-database and taint-tracking friendly candidate 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

概览

发布者bazhahei123
代码仓库CodeAudit-Single_SKill
技能名称Business Logic Abuse Candidate Source Check
星标数
34
复刻数
0
附带文件
7
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 bazhahei123 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Business Logic Abuse Candidate Source Check AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check-updated
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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-updated .claude/skills/bazhahei123-business-logic-abuse-candidate-source-check
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Business Logic Abuse Candidate Source Check,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Business Logic Abuse Candidate Source Check。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Business Logic Abuse Candidate Source Check 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Business Logic Abuse Candidate Source Check

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

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

Business logic weaknesses usually do not start from one universal input API. Treat a business logic source as a business-intent point: a code location where a request, event, callback, job, mobile entry, admin action, or external message introduces actor identity, object identity, value, state, step, replay key, quota dimension, beneficiary, or workflow intent into a business-effect path.

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

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

Do not record a source point without identifying:

  • the entry point,
  • the source value, event, or intent,
  • whether the source is client-controlled, external-system-controlled, server-trusted, mixed, or unclear,
  • the business object, state, value, quota, identity, or beneficiary it can influence,
  • the downstream business-effect path or decision that makes the source relevant,
  • the code evidence that connects the source to that path.

Prefer:

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

Scope

Focus on business-rule-relevant source points 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, content providers, and IPC-driven business inputs
  • C++ HTTP/RPC/IPC/native service handlers that receive business identity, object, value, quota, state, or event inputs
  • C# / .NET controllers, minimal APIs, Razor Pages, SignalR hubs, gRPC services, background jobs, queue consumers, and EF/Dapper service inputs

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.
  • Do not assume callbacks, jobs, queues, or integrations are trustworthy without signature validation, replay protection, deduplication, scope binding, and state validation.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form value, mobile Intent extra, deep-link parameter, IPC payload, uploaded row, import row, and admin form value as client-controlled unless code proves otherwise.
  • Treat webhook payloads, queue messages, partner callbacks, provider events, SDK callbacks, and integration sync records as external-system-controlled until authenticity, freshness, scope, and replay handling are verified.
  • Treat server-side state, database-derived status, verified event records, trusted session context, recomputed values, and authoritative workflow records as stronger sources.
  • Treat alternate routes, alternate HTTP methods, callbacks, retries, async consumers, mobile variants, and replay tools as separate source surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Candidate source model

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

  1. Entry candidates: where user input, external events, queue messages, mobile entries, IPC payloads, or admin actions enter.
  2. Actor and intent candidates: values that name who acts, which target is affected, what operation is requested, and which workflow step is being attempted.
  3. Object, value, and beneficiary candidates: business objects, amount fields, quota dimensions, identity fields, entitlement fields, and recipient/beneficiary fields.
  4. Trust-boundary and downstream mapping candidates: source-origin markers, replay identifiers, callback metadata, and nearby business-effect calls that prove relevance.

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, actor/intent source candidates, object/value/beneficiary keywords, and downstream business-effect mapping keywords.
  5. Locate externally influenced source values that can drive state changes, value changes, entitlement grants, identity binding, quota consumption, workflow transitions, callback processing, or downstream task triggers.
  6. For each candidate source, trace forward to the business object, business rule, and business-effect path, then inspect whether source origin and trust boundary are visible.
  7. Review the code using the seven scenario dimensions below.
  8. Produce structured source points 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 where business intent, actor identity, object identity, amount, state, quota, beneficiary, callback event, or replay key first enters the trusted business-effect path.

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 introduce business inputs or trigger backend calls.

For C++ and C#/.NET, prioritize server, RPC, IPC, background worker, queue consumer, and data-access layers that receive business-rule-relevant values.

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 source discovery guidance and candidate search seed lists, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared business source concepts, scenario dimensions, generic candidate keywords, trust-boundary categories, and source point standards.
  • Language-specific reference files define framework-specific entry candidates, actor/intent source candidates, object/value/beneficiary keywords, source-origin markers, 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: Identify source values that can influence payment, refund, settlement, balance, ledger, entitlement, or fulfillment behavior, such as amount, currency, order ID, transaction ID, callback status, provider event ID, payer, payee, tenant, and idempotency key.

D2 Authentication, Verification, and Account Binding

Direction: Identify source values that can influence OTP, email, SMS, reset token, login challenge, step-up verification, device binding, account recovery, and contact binding flows, such as token, code, target user, phone, email, device, purpose, step, expiry, and verification status.

D3 Rate, Quota, and Anti-Abuse

Direction: Identify source values that define abuse-control dimensions or workload size, such as user, tenant, target, IP, device, operation, payload, time window, export type, model/tool type, and downstream cost.

D4 Workflow, Approval, and Lifecycle

Direction: Identify source values that can influence state transitions, approvals, publishing, cancellation, finalization, archival, assignment, moderation, and terminal actions, such as current state, target state, action, approver, role, reason, and object ID.

D5 Promotion, Coupon, Reward, and Referral

Direction: Identify source values that can influence claiming, redemption, discount calculation, reward issuance, referral credit, eligibility, first-use markers, stacking rules, and beneficiary binding, such as coupon code, campaign ID, referrer, invitee, beneficiary, amount, usage key, and eligibility flag.

D6 Resource Consumption and Downstream Tool Usage

Direction: Identify source values that can trigger OCR, AI/LLM, translation, report generation, export, notification fan-out, search, ranking, batch work, and third-party API usage, such as job type, file ID, batch IDs, workload size, model, prompt, target, and quota key.

D7 Third-Party Callback and Integration

Direction: Identify source values from webhooks, callbacks, provider events, partner sync, reconciliation jobs, manual replay tools, and imported external state, such as event ID, signature, timestamp, provider status, external order ID, integration account, tenant, amount, and replay key.


High-Priority Candidate Source Targets

Prioritize these source targets first when present:

  • payment creation, payment callback, capture, refund, settlement, and reconciliation inputs
  • amount, currency, balance delta, ledger payload, credit, points, entitlement, fulfillment, and shipment inputs
  • OTP, SMS, email verification, password reset, login challenge, device binding, and contact binding inputs
  • coupon claiming, coupon redemption, referral, invite, and reward issuance inputs
  • approval, publish, archive, cancel, disable, finalize, reopen, and restore action/state inputs
  • retry keys, idempotency keys, event IDs, webhook payload IDs, queue message IDs, and admin replay parameters
  • export, report generation, OCR, AI/LLM, translation, notification, and expensive downstream trigger inputs
  • workflow sources with terminal states, one-time entitlements, or side-effectful callbacks

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

  • ...

Candidate Source

  • ...

Source Location

  • ...

Source Value or Event

  • ...

Trust Boundary

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

Downstream Business Use

  • ...

Candidate Search Evidence

  • Entry candidate:
  • Actor/intent source candidate:
  • Object/value/beneficiary keyword:
  • Trust-boundary or replay keyword:
  • Downstream mapping keyword:

Code 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 when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explain whether the candidate source was found by entry candidate, actor/intent value, object/value keyword, replay identifier, external event metadata, or downstream business-effect mapping.
  • Explicitly state uncertainty where source origin, dedupe logic, quota scope, signature validation, amount recomputation, beneficiary binding, or state guard logic 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.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Business Logic Abuse Candidate Source Check AI 技能有什么作用?

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

为什么在 TypingMind 中使用 Business Logic Abuse Candidate Source Check?

因为您只需安装一次,就能搭配任何模型使用。Business Logic Abuse Candidate Source Check 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Business Logic Abuse Candidate Source Check?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check-updated。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Business Logic Abuse Candidate Source Check?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Business Logic Abuse Candidate Source Check 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Business Logic Abuse Candidate Source Check 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Business Logic Abuse Candidate Source Check AI 技能免费吗?

bazhahei123 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇