A production-grade open-source toolkit of reusable Postman collections, payloads, environments, lab APIs, and automation workflows for defensive API security testing.
Use this project only on APIs you own, operate, or are explicitly authorized to test.
- Importable Postman collections for authentication, authorization, JWT, GraphQL, SSRF, CORS, headers, file upload, rate limiting, IDOR, XSS, business logic, and OWASP API Top 10 coverage.
- Reusable payload files for safe validation of input handling and defensive controls.
- Local, staging, and production-safe Postman environments.
- Newman scripts for CLI, JSON, JUnit, and HTML-style reporting.
- GitHub Actions, Jenkins, Docker, and CI/CD examples.
- Intentionally vulnerable Flask and Node.js APIs for local practice.
- Mermaid diagrams, screenshot placeholders, and professional docs.
git clone https://github.com/rksharma-owg/postman-api-security-testing-templates.git
cd postman-api-security-testing-templates
npm install
npm run test:localImport any file under collections/ into Postman, then import environments/local.postman_environment.json.
npm run test:auth
npm run test:owasp
npm run report:jsondocker compose -f vulnerable-api-lab/docker-compose.yml up --buildThe lab exposes:
- Flask API on
http://localhost:8080 - Node API on
http://localhost:8081
| OWASP Category | Repository Coverage |
|---|---|
| API1 Broken Object Level Authorization | collections/authorization, collections/idor |
| API2 Broken Authentication | collections/auth, collections/jwt |
| API3 Broken Object Property Level Authorization | collections/business-logic |
| API4 Unrestricted Resource Consumption | collections/rate-limit, collections/fuzzing |
| API5 Broken Function Level Authorization | collections/authorization |
| API6 Unrestricted Access to Sensitive Business Flows | collections/business-logic, collections/rate-limit |
| API7 SSRF | collections/ssrf |
| API8 Security Misconfiguration | collections/headers, collections/cors |
| API9 Improper Inventory Management | collections/api-versioning |
| API10 Unsafe Consumption of APIs | collections/webhook |
See docs/ for setup, automation, JWT testing, GraphQL testing, and remediation guidance.
collections/ Postman collections grouped by security domain
payloads/ Reviewed canary payloads (9 categories, 11+ examples each)
environments/ Postman environment templates
scripts/ Newman, CI/CD, Docker, and workflow examples
vulnerable-api-lab/ Local practice APIs
docs/ Guides, mappings, diagrams, and screenshots
assets/ Banner, diagrams, and visual placeholders
- Add OpenAPI-driven collection generation.
- Add Postman visualizer dashboards.
- Add more cloud gateway policy examples.
- Add SARIF conversion for CI annotations.
MIT. See LICENSE.