Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    API Security Audit

    by Andrey Shelamkoff

    1

    Review API trust boundaries, authorization logic, and protocol security against OWASP and ASVS standards.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    API Security Audit

    API Security Audit

    Example session with this skill installed

    Perform a targeted audit of the /orders/{id} endpoint in orders.ts and its associated middleware. Focus on broken object level authorization and tenant isolation.

    • Read your context and instructions
    • Compiled the api security audit

    I have completed the targeted audit of the /orders/{id} endpoint. The review focused on orders.ts and auth-middleware.ts to verify tenant isolation and object-level authorization.

    API Security Audit: Order Management

    Finding IDRisk CategorySeveritySummaryEvidence
    API-001BOLA (API1)HighMissing tenant check in GET handlerorders.ts:42 fetches by ID without verifying owner_id against the request context.
    API-002Logic GapMedInconsistent ID parsingorders.ts:38 uses parseInt without validation, leading to potential ID confusion in downstream services.
    API-003HardeningLowCache-Control missingSensitive order data is returned without no-store headers, risking leakage via shared proxies.

    Finding Trace: API-001

    The getOrder function retrieves an order record directly from the database using the {id} path parameter. While the auth-middleware.ts verifies that a valid JWT is present, it does not attach the tenant_id or user_id to the query filter. An authenticated user can access any order ID by incrementing the integer value.

    // orders.ts - Line 42
    // VULNERABLE: Direct lookup without ownership verification
    const order = await db.orders.findOne({ where: { id: req.params.id } });
    if (!order) return res.status(404).send();
    return res.json(order);
    

    Proposed Fix
    Modify the query to include the owner_id from the authenticated request context:

    const order = await db.orders.findOne({ 
      where: { 
        id: req.params.id,
        owner_id: req.user.id // Enforce tenant isolation
      } 
    });
    

    Next steps

    • Apply the ownership filter to all GET, PUT, and DELETE handlers in orders.ts.
    • Implement a regression test that attempts to access Order A using a token issued for User B.
    • Review the users table to ensure owner_id is indexed for performance on filtered lookups.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    API security is often treated as an afterthought or reduced to generic scanner noise that misses deep logic flaws. This skill conducts targeted reviews of REST, GraphQL, gRPC, and WebSocket interfaces to identify broken authorization, tenant isolation failures, and business logic vulnerabilities.

    What it does

    • Threat modeling builds an authorization matrix to trace actor, tenant, and object relationships across trust boundaries.
    • Protocol analysis reviews HTTP, GraphQL resolvers, gRPC methods, and webhook signatures for specification compliance and injection risks.
    • Identity verification audits JWT, OAuth/OIDC, and session lifecycles for token reuse, weak signing, or improper revocation.
    • Logic auditing identifies concurrency issues, idempotency gaps, and resource exhaustion in sensitive business flows.
    • Defensive regression generates testable invariants to ensure security controls persist across refactors.

    How it works

    1. Scope and Inventory: Catalog all endpoints, resolvers, and internal APIs while identifying sensitive data and tenant boundaries.
    2. Baseline Selection: Map the API against versioned standards like OWASP API Security Top 10 or ASVS controls.
    3. Trace and Inspect: Follow caller-controlled data through routing, parsing, and authorization to the final side effect.
    4. Evidence-Backed Reporting: Consolidate findings into a structured report with exact source identifiers and impact analysis.

    Frameworks & tools

    The skill utilizes OWASP API Security Top 10 (2023), ASVS, WSTG, and protocol specifications for OAuth, OIDC, and JWT.

    Why this beats prompting it yourself

    Generic prompts often miss the subtle difference between object-level and function-level authorization. This skill uses a systematic trace-driven approach that correlates source code, schema definitions, and configuration to find reachable vulnerabilities that simple pattern matching overlooks.

    Use cases

    • Auditing a multi-tenant SaaS API to ensure cross-tenant data isolation.
    • Reviewing a new GraphQL gateway for nested query depth risks and resolver authorization.
    • Verifying OAuth2 implementation against BCP recommendations and RFC protocol requirements.
    • Identifying race conditions or idempotency bugs in financial transaction endpoints.

    Known limitations

    Does not perform active network scanning or exploit payload generation. Requires access to source code, schemas, or configuration files to produce evidence-backed findings.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    No active scanning or live exploit generation. Requires static source, schema, or configuration evidence. Coverage is limited to provided files and offline analysis.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Permissions

    Read Files
    Network Access
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill identifies deep logic flaws such as broken authorization, tenant isolation failures, and concurrency issues in REST, GraphQL, gRPC, and WebSocket interfaces that generic scanners often miss.

    You must provide access to the source code, schema definitions, or configuration files of the API being audited to allow for evidence-backed findings.

    The skill produces a structured report containing an inventory of endpoints, an authorization matrix, specific source identifiers for findings, and actionable impact analysis.

    The skill does not perform active network scanning, generate exploit payloads, or use live credentials, as it focuses on static review and offline evidence analysis.

    The skill utilizes versioned standards including the OWASP API Security Top 10 (2023), ASVS controls, WSTG methodology, and relevant RFC specifications for protocols like OAuth and JWT.

    Instruct your agent to perform an API security audit by specifying the code repository or configuration files to review and defining whether you want an audit only or an audit with proposed fixes.

    New in Security