# API Security Testing

> Audit REST and GraphQL APIs against the OWASP API Security Top 10 with a structured test matrix and automated test generation.

API Security Testing is a paid AI agent skill on Agensi by Mr Vempire, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Mr Vempire](https://www.agensi.io/creators/mr-vempire)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/api-security-testing
- Tags: security, testing, owasp, penetration-testing

## About this skill

Securing APIs requires more than just checking for a valid token. Most vulnerabilities live in the business logic where authorization checks are missing, allowing attackers to access other users' data or admin functions. This skill provides a systematic methodology to audit REST and GraphQL APIs against the OWASP API Security Top 10.

### What it does
- **Surface Mapping** Identifies documented and hidden endpoints, including legacy versions and debug routes.
- **BOLA Testing** Probes for Broken Object-Level Authorization by manipulating IDs in paths, queries, and request bodies.
- **BFLA Validation** Executes Broken Function-Level Authorization checks by calling admin-only endpoints with low-privilege tokens.
- **Data Exposure Audit** Detects excessive data exposure and mass assignment vulnerabilities in update requests.
- **Resource Limiting** Tests for unrestricted resource consumption through rate limit bypasses and pagination abuse.
- **GraphQL Analysis** Evaluates schema introspection, query depth, and batching vulnerabilities specific to GraphQL resolvers.

### How it works
1. **Map the surface** by collecting endpoints from OpenAPI specs, network traffic, and client-side JavaScript bundles.
2. **Build a test matrix** that maps every endpoint against every available user role and privilege level.
3. **Execute the playbook** across all nine modules, from authentication bypasses to business-flow logic flaws.
4. **Generate test cases** using `openapi-testgen.py` to create executable checks for BOLA and rate limiting.

### Frameworks & tools
This skill is designed for testing REST and GraphQL APIs. It utilizes `openapi-testgen.py` for automated test generation and works alongside intercepting proxies like Burp Suite or OWASP ZAP, and REST clients like `curl`.

### Why this beats prompting it yourself
Generic security prompts often miss the nuance of testing the same ID in three different locations or checking for undocumented `/v2/` routes. This skill enforces a rigid matrix-based approach that ensures every role-endpoint combination is actually verified with evidence.

### Use cases
- Auditing a new API version before it moves to production.
- Identifying authorization gaps during a bug bounty engagement.
- Verifying that front-end restrictions are actually enforced by the backend.
- Benchmarking internal APIs against the 2023 OWASP API Security Top 10.

### Known limitations
Requires pre-existing API documentation or captured network traffic to map the surface. Only generates executable tests if a valid OpenAPI spec is provided.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the API Security Testing skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from a standard automated vulnerability scanner?

This skill automates the testing of REST and GraphQL endpoints against the 2023 OWASP API Security Top 10, specifically targeting complex business logic flaws like BOLA and BFLA that standard scanners often miss.

### What specific assets are included in this purchase?

You will receive the structured testing methodology, the matrix-based audit playbook, and the `openapi-testgen.py` script for generating executable test cases from your specs.

### Do I need to provide documentation for my API for this skill to work?

The skill requires either an OpenAPI (Swagger) specification file or a collection of captured network traffic (e.g., from Burp Suite or ZAP) to map the API's surface and generate accurate tests.

### Can this skill be used to audit GraphQL resolvers, or is it limited to REST?

Yes, the GraphQL Analysis module is specifically designed to evaluate schema-specific risks such as introspection leaks, excessive query depth, and batching attacks.

### What are the technical requirements for the AI agent running this skill?

While the skill is platform-agnostic, it is optimized for LLMs with large context windows that can process API schemas and requires an environment capable of running Python scripts for the test generation component.

### Does this skill provide real-time monitoring for my production API?

This skill is designed for Point-in-Time auditing and CI/CD verification; however, it does not provide continuous 24/7 monitoring or real-time firewall protection.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
