Skip to Content
Back to Projects
In Progress

BreakMyAPI: AI-Powered Adversarial Security & Load Testing

Building an autonomous system that auto-generates attack scenarios, detects vulnerabilities, and stress-tests APIs without manual scripting.

Technologies Used

Next.jsNode.jsBullMQRedisPostgreSQL (Supabase)WebSockets

Scope & Context

Founding Engineer project targeting high concurrency, real-time sync, or custom system designs.

Codebase Link

The Problem

Standard API load testing tools (like JMeter or k6) rely on static request payloads. They measure performance but completely miss logical bugs, unhandled exceptions, and security vulnerabilities that only occur with complex, malformed inputs or specific state sequences.

Writing test scripts for every endpoint, query parameter, and payload schema in a large-scale application is incredibly tedious and frequently becomes outdated as APIs evolve.

The Solution & Architecture

I am building BreakMyAPI, an autonomous system that auto-generates attack scenarios, detects vulnerabilities, and stress-tests APIs without manual test scripting:

  • Adversarial Attack Generation: Uses LLMs to dynamically generate mutation test scenarios, boundary payloads, and logical injection attacks based on parsed API schemas.
  • Job Queues via BullMQ & Redis: Manages high-throughput concurrency, test scheduling, and worker dispatching to execute stress-testing processes reliably.
  • Cost-Aware Architecture: Enforces strict rate limits, quota controls, and infrastructure caps to prevent uncontrolled scaling and compute costs during fuzzing.

Engineering Deep Dive

A primary engineering challenge is preventing the agent from triggering destructive cascade failures in test environments (e.g. deleting all reference records in a database in step 1, which invalidates all subsequent read/write tests).

The roadmap features a State Dependency Graph. The testing agent maps routes based on HTTP methods (e.g. POST before PUT, and DELETE strictly at the end of a session flow) and utilizes database transactions that automatically rollback at the end of each test thread.

We are also designing a feedback loop that evaluates API responses (like 500 Internal Server Errors) and instructs the agent to narrow down the fuzzing payload on that specific path to pinpoint the code-level unhandled exception.

Quantifiable Metrics

1
Automated OpenAPI schema ingestion to build target routes list without manual mapping.
2
Dynamic fuzzing payload generation using structured JSON prompts on Gemini 1.5 Flash.
3
Planned support for automated JWT signature manipulation to audit authentication boundaries.
4
Automatic generation of Markdown report cards detailing endpoints sorted by vulnerability rating.

Visual Showcase

Screenshots, dashboard metrics, and recorded event videos proving the system running in real-time.

BreakMyAPI interactive OpenAPI endpoint parser and stress dashboard.

BreakMyAPI interactive OpenAPI endpoint parser and stress dashboard.