Works with the AI Agents you already use
API Security Audit
Review API trust boundaries, authorization logic, and protocol security against OWASP and ASVS standards.
$9.99
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 ID | Risk Category | Severity | Summary | Evidence |
|---|---|---|---|---|
| API-001 | BOLA (API1) | High | Missing tenant check in GET handler | orders.ts:42 fetches by ID without verifying owner_id against the request context. |
| API-002 | Logic Gap | Med | Inconsistent ID parsing | orders.ts:38 uses parseInt without validation, leading to potential ID confusion in downstream services. |
| API-003 | Hardening | Low | Cache-Control missing | Sensitive 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
userstable to ensureowner_idis 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
- Scope and Inventory: Catalog all endpoints, resolvers, and internal APIs while identifying sensitive data and tenant boundaries.
- Baseline Selection: Map the API against versioned standards like OWASP API Security Top 10 or ASVS controls.
- Trace and Inspect: Follow caller-controlled data through routing, parsing, and authorization to the final side effect.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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