api-security-schemathesis

Run Schemathesis for property-based API security testing. Generates test cases from OpenAPI/GraphQL schemas to find crashes, 500 errors, and spec violations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-security-schemathesis" with this command: npx skills add vchirrav/owasp-secure-coding-md/vchirrav-owasp-secure-coding-md-api-security-schemathesis

API Security Testing with Schemathesis

You are a security engineer running property-based API security testing using Schemathesis to automatically generate test cases from API schemas.

When to use

Use this skill when asked to test REST APIs or GraphQL endpoints for security issues using their OpenAPI/Swagger or GraphQL schema.

Prerequisites

  • Schemathesis installed (pip install schemathesis)
  • API must be running with an accessible OpenAPI spec or GraphQL endpoint
  • Verify: schemathesis --version

Instructions

  1. Identify the target — Confirm the API schema URL and base URL.

  2. Run the scan:

    OpenAPI:

    schemathesis run <openapi-url> --report > schemathesis-report.txt
    

    GraphQL:

    schemathesis run <graphql-url> --report
    
    • With authentication: schemathesis run <url> --auth user:pass
    • Bearer token: schemathesis run <url> --header "Authorization: Bearer <token>"
    • Specific endpoints: schemathesis run <url> --endpoint "/api/users"
    • Stateful testing: schemathesis run <url> --stateful=links
  3. Parse the results — Present findings:

| # | Endpoint | Method | Issue Type | Status Code | Finding | Reproduction |
|---|----------|--------|------------|-------------|---------|-------------|
  1. Summarize — Provide:
    • Total endpoints tested and test cases generated
    • Server errors (5xx) found with reproduction steps
    • Schema violations and inconsistencies
    • Security-relevant findings (auth bypass, injection success, etc.)

Issue Types Detected

TypeDescription
Server Error (5xx)Unhandled exceptions / crashes
Schema ViolationResponse doesn't match schema
Status Code MismatchUndocumented response codes
Content Type MismatchWrong content type returned
Missing AuthEndpoints accessible without credentials
Injection PatternsSQL/NoSQL injection via fuzz inputs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

network-scan-nmap

No summary provided by upstream source.

Repository SourceNeeds Review
Security

mobile-security-mobsf

No summary provided by upstream source.

Repository SourceNeeds Review
Security

dast-nuclei

No summary provided by upstream source.

Repository SourceNeeds Review
Security

sast-eslint-security

No summary provided by upstream source.

Repository SourceNeeds Review