Works with the AI Agents you already use
OpenAPI Spec Security Audit
by CashonlyTian
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
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 Category | Score | Status |
|---|---|---|
| Auth Coverage | 5/15 | 2 operations missing security requirements |
| Auth Strength | 15/15 | No weak auth schemes detected |
| Sensitive Data | 15/15 | No credentials found in examples |
| PII in Params | 10/10 | No PII detected in URL parameters |
| Transport Security | 0/10 | Server defined with http:// instead of https:// |
| Rate Limiting | 0/10 | Missing 429 response definitions |
| Error Handling | 5/10 | Missing 401/403 for secured endpoints |
| Versioning | 5/5 | Versioning follows standards |
| Payload Limits | 4/5 | Array field tags missing maxItems |
| Spec Hygiene | 5/5 | Metadata is complete |
Top 3 Prioritized Fixes:
- Critical: Change server URL to use
https://to ensure transport layer security. - High: Add
securityrequirements to the/v1/transactionsand/v1/refundsendpoints. - Medium: Define
429 Too Many Requestsresponses and rate-limit headers.
Files Generated:
- Scorecard Image:
scan-2025-05-20.png - Detailed Report:
scan-report.md
Next steps
- Open
scan-report.mdto see the exact line numbers for missing auth blocks. - Update the
serversobject inopenapi.yamlto use HTTPS. - Re-run the audit after fixes to achieve a Grade A.
scan-2025-05-20.png
PDF · document
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
- Point the agent to a local directory containing your OpenAPI or Swagger files (YAML or JSON).
- The agent runs a local-only python script to scan the definitions across 10 specific security categories.
- Review the generated scorecard image and the detailed Markdown report for your risk level and grade.
- 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
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 5 days ago
- Software
Python 3Pillow