security-test-generator

Generate adversarial security test cases for API endpoints in Jest and pytest.

18|1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/apisec-inc/apisec-skills --skill security-test-generator-apisec-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-test-generator
Source: https://github.com/apisec-inc/apisec-skills/tree/main/skills/security-test-generator
Command: npx skills add https://github.com/apisec-inc/apisec-skills --skill security-test-generator-apisec-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers ensure their APIs are secure by automatically generating comprehensive security test cases that go beyond basic functional testing, identifying vulnerabilities like authentication bypass, authorization flaws, and injection attacks.

Core Features & Use Cases

  • Adversarial Test Case Generation: Creates tests that simulate attacker behavior to find security weaknesses.
  • Comprehensive Coverage: Generates tests for authentication, authorization (BOLA/BFLA), input validation, mass assignment, and rate limiting.
  • Use Case: After implementing a new API endpoint, use this Skill to generate a full suite of security tests that verify it correctly rejects unauthorized access, invalid inputs, and other common attack vectors, ensuring a robust security posture.

Quick Start

Use the security-test-generator skill to write security tests for the provided API endpoint code.

Frequently Asked Questions about security-test-generator

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

FAQPage Schema
How do I generate security tests for API endpoints?

To generate security tests for API endpoints, you provide the endpoint code to the generator, which produces adversarial test suites covering authentication, authorization, input validation, and rate limiting vulnerabilities. These generated suites are runnable in Jest or pytest frameworks.

What is adversarial API security testing?

Adversarial API security testing simulates attacker behavior to find security weaknesses in your endpoints. It goes beyond basic functional testing by identifying authentication bypass, authorization flaws like BOLA, and injection attacks based on OWASP API Security Top 10 principles.

Can I use this to generate pytest tests for OWASP API vulnerabilities?

Yes, you can generate pytest tests for OWASP API vulnerabilities. The generator produces runnable test suites in Python using pytest, specifically targeting OWASP API Security Top 10 vulnerabilities like BOLA, BFLA, and mass assignment.

Does the generated test suite cover BOLA and mass assignment vulnerabilities?

Yes, the generated test suite covers BOLA and mass assignment vulnerabilities. It generates comprehensive security tests for authentication, authorization, input validation, mass assignment, and rate limiting to verify your API rejects unauthorized access and invalid inputs.

Do I need prior penetration testing knowledge to generate API security tests?

You do not need prior penetration testing experience to use the generator, but understanding common web vulnerabilities and testing methodologies is required. The tool automates creating the test cases, while users interpret the security posture results.