Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    OpenAPI Spec Security Audit

    by CashonlyTian

    1

    If your OpenAPI specification leaks credentials in examples or leaves endpoints unprotected, you are inviting a breach before the first line of code is finished.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    OpenAPI Spec Security Audit

    OpenAPI Spec Security Audit

    Example session with this skill installed

    Audit the OpenAPI spec in the ./docs/api folder for the 'billing-service' project. Use the #BC002D accent color for the scorecard and label it with brand 'FinTech Ops'.

    • Read your context and instructions
    • Compiled the openapi spec security
    • Generated the document

    I have completed the security audit of the OpenAPI specification for

    billing-service. The scan identified 14 findings across transport security, auth coverage, and payload limits.

    Audit Results: billing-service

    Score: 64/100
    Grade: D
    Risk Level: HIGH

    Check CategoryScoreStatus
    Auth Coverage5/152 operations missing security requirements
    Auth Strength15/15No weak auth schemes detected
    Sensitive Data15/15No credentials found in examples
    PII in Params10/10No PII detected in URL parameters
    Transport Security0/10Server defined with http:// instead of https://
    Rate Limiting0/10Missing 429 response definitions
    Error Handling5/10Missing 401/403 for secured endpoints
    Versioning5/5Versioning follows standards
    Payload Limits4/5Array field tags missing maxItems
    Spec Hygiene5/5Metadata is complete

    Top 3 Prioritized Fixes:

    1. Critical: Change server URL to use https:// to ensure transport layer security.
    2. High: Add security requirements to the /v1/transactions and /v1/refunds endpoints.
    3. Medium: Define 429 Too Many Requests responses and rate-limit headers.

    Files Generated:

    • Scorecard Image: scan-2025-05-20.png
    • Detailed Report: scan-report.md

    Next steps

    • Open scan-report.md to see the exact line numbers for missing auth blocks.
    • Update the servers object in openapi.yaml to use HTTPS.
    • Re-run the audit after fixes to achieve a Grade A.

    scan-2025-05-20.png

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    API security starts with the contract. If your OpenAPI specification leaks credentials in examples or leaves endpoints unprotected, you are inviting a breach before the first line of code is finished. This skill audits your spec files to identify vulnerabilities before they reach production.

    What it does

    • Security Coverage Analysis identifies operations missing security requirements or those that explicitly opt out of authentication.
    • Credential Leak Detection scans for real-looking secrets, credit card numbers, or SSNs embedded in example values and default fields.
    • Auth Strength Validation flags weak patterns like HTTP Basic, API keys in query strings, and insecure OAuth2 flows.
    • PII Leak Prevention catches sensitive personal data like emails or passport numbers defined as URL path or query parameters.
    • Contract Hygiene Checks verifies transport security, rate limiting headers, error response definitions, and payload constraints.

    How it works

    1. Point the agent to a local directory containing your OpenAPI or Swagger files (YAML or JSON).
    2. The agent runs a local-only python script to scan the definitions across 10 specific security categories.
    3. Review the generated scorecard image and the detailed Markdown report for your risk level and grade.
    4. Apply the prioritized fixes to your spec and re-run to confirm a passing score.

    Frameworks & tools

    Works with OpenAPI 3.x and Swagger 2.0 specifications in YAML or JSON format. The core logic uses a local Python scanner with no external network dependencies.

    Why this beats prompting it yourself

    Generic prompts often miss structural gaps like missing 429 responses or unbounded array limits. This skill applies a rigid 100-point scoring system and masks actual secrets in its output to prevent sensitive data from entering your chat logs.

    Use cases

    • Auditing an API specification generated by another AI agent before implementation.
    • Performing a pre-publish security check on your own API contracts.
    • onboarding third-party APIs to verify their security posture.
    • Generating shareable security scorecards for client reports or internal PRs.

    Known limitations

    Does not call the live API, meaning it cannot verify if the server actually enforces the spec. It does not resolve remote $ref targets or scan files over 2 MB.

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

    Does not call live endpoints. Remote $ref targets are not resolved. Files over 2MB are skipped. Findings are capped at 200. Verification is restricted to the spec file content only.

    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 5 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    No, the audit runs using a local-only Python scanner, ensuring your API definitions and any discovered sensitive data stay within your secure environment without external network calls.

    The skill performs a static analysis of the 'contract' (the YAML/JSON file) to find structural gaps; it does not perform dynamic testing or send requests to your live API endpoints.

    You will receive the proprietary Python scanning logic, the 100-point security scoring rubric, and the prompt instructions required to integrate the tool with your AI agent.

    The skill supports OpenAPI 3.x and Swagger 2.0 in both YAML and JSON formats, provided the file size is under 2 MB and all references are self-contained.

    Beyond just finding bugs, the skill applies a rigid 100-point grading system and automatically masks discovered secrets to prevent sensitive data from being logged in your AI chat history.

    New in LLM Ops