Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

business-logic业务逻辑

Agent Skill

business-logic 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

306

周安装

13

GitHub Stars

9

下载量

107
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:business-logic(业务逻辑)
来源仓库:https://github.com/florianbuetow/claude-code
仓库路径:skills/business-logic
安装命令:
npx skills add https://github.com/florianbuetow/claude-code --skill business-logic
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/florianbuetow/claude-code --skill business-logic

简介

针对特定应用工作流的业务逻辑安全漏洞深度检测工具。

  • 识别流程绕过、价格篡改、状态机操纵等高阶攻击向量。
  • 依赖对正常业务流程的理解来发现非常规操作路径。business-logic 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 适用于支付、优惠券、库存管理等敏感业务环节的审计。
  • 输出包含漏洞利用方法和防护建议的详细分析报告。

SKILL.md

Business Logic Security (BIZ)

Analyze application business logic for security vulnerabilities including workflow step bypassing, negative amount manipulation, coupon/discount abuse, self-referral exploitation, state machine manipulation, and time-based logic exploits. Business logic flaws are unique to each application and cannot be detected by generic scanners -- they require understanding the intended workflow and finding ways to subvert it.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification. This skill supports all cross-cutting flags. Key flags for this skill:

  • --scope determines which files to analyze (default: changed)
  • --depth standard reads code and checks business rule implementations
  • --depth deep traces full workflows from initiation through completion
  • --severity filters output (business logic issues are often high or critical)

Framework Context

Key CWEs in scope:

  • CWE-840: Business Logic Errors
  • CWE-841: Improper Enforcement of Behavioral Workflow
  • CWE-799: Improper Control of Interaction Frequency
  • CWE-837: Improper Enforcement of a Single, Unique Action
  • CWE-20: Improper Input Validation

Detection Patterns

Read references/detection-patterns.md for the full catalog of code patterns, search heuristics, language-specific examples, and false positive guidance.

Workflow

1. Determine Scope

Parse flags and resolve the file list per ../../shared/schemas/flags.md. Filter to files likely to contain business logic:

  • Payment and checkout (**/payments/**, **/checkout/**, **/billing/**)
  • Order processing (**/orders/**, **/cart/**, **/transactions/**)
  • Discount and coupon logic (**/coupons/**, **/discounts/**, **/promotions/**)
  • Referral and reward systems (**/referrals/**, **/rewards/**, **/loyalty/**)
  • Workflow and state machines (**/workflows/**, **/state/**, **/status/**)
  • User account operations (**/accounts/**, **/profiles/**)

2. Check for Available Scanners

Detect scanners per ../../shared/schemas/scanners.md:

  1. semgrep -- custom rules can catch some business logic patterns

Record which scanners are available. Business logic flaws are primarily detected through manual code analysis, not automated scanners.

3. Run Scanners (If Available)

If semgrep is available, run with rules targeting business logic:

semgrep scan --config auto --json --quiet <target>

Filter for rules matching validation, state management, and numeric handling patterns. Normalize output to the findings schema.

4. Claude Code Analysis

This is the primary detection method for business logic flaws:

  1. Workflow step bypass: Map multi-step workflows (checkout, verification, approval) and verify each step cannot be skipped by calling later steps directly.
  2. Negative amount manipulation: Find numeric inputs (amounts, quantities, prices) and verify the application rejects negative values.
  3. Coupon/discount abuse: Find discount application logic and verify coupons cannot be applied multiple times, stacked beyond limits, or used after expiration.
  4. Self-referral exploitation: Find referral systems and verify users cannot refer themselves or create circular referral chains.
  5. State machine integrity: Map state transitions and verify invalid transitions are rejected (e.g., "shipped" cannot go back to "pending").
  6. Time-based logic: Find logic depending on timestamps and verify it handles timezone manipulation, clock skew, and deadline race conditions.

When --depth deep, additionally trace:

  • Full workflow paths from start to completion
  • All possible state transitions and their guards
  • Cross-endpoint workflow manipulation scenarios

5. Report Findings

Format output per ../../shared/schemas/findings.md using the BIZ prefix (e.g., BIZ-001, BIZ-002).

Include for each finding:

  • Severity and confidence
  • Exact file location with code snippet
  • Step-by-step exploit scenario
  • Business impact (financial loss, unfair advantage)
  • Concrete fix with diff when possible
  • CWE references

What to Look For

These are the high-signal patterns specific to business logic security. Each maps to a detection pattern in references/detection-patterns.md.

  1. Workflow step bypass -- Multi-step processes where a later step can be invoked directly without completing prior steps.
  2. Negative amount manipulation -- Numeric inputs accepted without sign validation, allowing negative amounts to reverse charges or increase balances.
  3. Coupon/discount abuse -- Discount codes applied multiple times, stacked beyond intended limits, or used on ineligible items.
  4. Self-referral exploitation -- Referral reward systems that do not prevent users from referring themselves or creating fake referral chains.
  5. State machine manipulation -- Invalid state transitions accepted by the system (e.g., marking an order as "delivered" before "shipped").
  6. Time-based logic exploits -- Logic dependent on client-supplied timestamps, exploitable timezone handling, or deadline race conditions.
  7. Price manipulation -- Client-supplied prices accepted without server-side verification against the product catalog.
  8. Quantity abuse -- No limits on quantities enabling abuse (ordering negative quantities, exceeding stock, zero-quantity orders).

Scanner Integration

ScannerCoverageCommand
semgrepNumeric validation, some state patternssemgrep scan --config auto --json --quiet <target>

Fallback (no scanner): Business logic flaws require manual code analysis. Use Grep with patterns from references/detection-patterns.md to find financial operations, state transitions, discount logic, and referral systems. Report findings with confidence: medium.

Output Format

Use the findings schema from ../../shared/schemas/findings.md.

  • ID prefix: BIZ (e.g., BIZ-001)
  • metadata.tool: business-logic
  • metadata.framework: specialized
  • metadata.category: BIZ
  • references.cwe: CWE-840, CWE-841
  • references.owasp: A04:2021 (Insecure Design)
  • references.stride: T (Tampering) or E (Elevation of Privilege)

Severity guidance for this category:

  • critical: Direct financial loss (negative amounts in payments, price manipulation)
  • high: Workflow bypass on security-critical processes, unlimited discount stacking
  • medium: Self-referral abuse, state manipulation with limited business impact
  • low: Minor workflow inconsistencies, cosmetic state issues

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.69%
按下载量换算38

Claude

32.62%
按下载量换算35

Cursor

18.91%
按下载量换算20

Gemini CLI

9.66%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills