conducting-api-security-testing

Test REST and GraphQL APIs for OWASP Top 10 vulnerabilities.

Updated Jan 29, 2024
One-click install
npx skills add https://github.com/riandeoliveira/aspnet-template --skill conducting-api-security-testing-riandeoliveira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: conducting-api-security-testing
Source: https://github.com/riandeoliveira/aspnet-template/tree/main/.claude/skills/conducting-api-security-testing
Command: npx skills add https://github.com/riandeoliveira/aspnet-template --skill conducting-api-security-testing-riandeoliveira

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

It helps you identify security weaknesses in modern APIs that attackers commonly exploit, especially around authentication, authorization, input validation, and authorization bypass paths.

Core Features & Use Cases

  • API attack-surface discovery: Imports OpenAPI/Swagger, reverse-engineers traffic via a proxy, enumerates hidden versions/endpoints, and documents authentication mechanisms.
  • OWASP API Top 10-aligned testing: Exercises broken object/function authorization (BOLA/BFLA), mass assignment, JWT issues, rate limiting, excessive data exposure, and GraphQL introspection disclosure.
  • Tool-assisted verification workflow: Uses Burp Suite concepts, Postman-style replays across privilege levels, and a provided Python agent to run targeted checks and generate a JSON report.
  • Use cases: Security assessments of REST/GraphQL/gRPC APIs, microservices and gateway protection validation, and third-party integration hardening for data exposure and insecure configurations.

Quick Start

Ask the agent to test your authorized API base URL for rate limiting, optional GraphQL introspection, and privilege-based authorization issues, then save the results to a JSON report file.

Frequently Asked Questions about conducting-api-security-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test my API for BOLA and other OWASP API Top 10 vulnerabilities?

Testing APIs for BOLA and other OWASP API Top 10 vulnerabilities involves enumerating endpoints and validating bearer tokens across REST and GraphQL APIs. It identifies broken object/function authorization, mass assignment, and excessive data exposure using deterministic HTTP request logic.

Can I check for GraphQL introspection and JWT manipulation issues during penetration testing?

You can check for GraphQL introspection and JWT manipulation issues during penetration testing by probing schema disclosures and manipulating token claims. This allows you to identify insecure configurations and authentication bypass paths across unauthenticated and low-privilege contexts.

What do I need to run an API security test against an authorized target?

To run an API security test, you need an authorized target base URL, bearer tokens for various privilege levels, and the Python requests library. Optional GraphQL probing can be enabled to perform deeper schema introspection checks.

How does rate limiting testing work for REST and GraphQL APIs?

Rate limiting testing for REST and GraphQL APIs works by sending deterministic HTTP requests to identify gaps in endpoint protection. It validates whether the API properly restricts excessive requests across unauthenticated and low-privilege contexts.

Are Burp Suite concepts used to verify authorization testing across privilege levels?

Burp Suite concepts are used to verify authorization testing across privilege levels by applying Postman-style replays to compare access controls. This workflow validates authentication mechanisms and identifies insecure direct object references between admin and low-privilege contexts.