Works with the AI Agents you already use

    API Rate Limit & Abuse Review (OTP, AI, Exports)

    by Hayder Al-Hwaidi

    1

    Bots do not need to hack your database to ruin your business.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    API Rate Limit & Abuse Review (OTP, AI, Exports)

    API Rate Limit & Abuse Review (OTP, AI, Exports)

    Example session with this skill installed

    Our SMS bill tripled this week and someone is hammering the AI chat endpoint. Review our Next.js + Supabase API for abuse.

    • Read your context and instructions
    • Compiled the api rate limit

    Abuse review: Next.js + Supabase

    EndpointTagCurrent protectionRiskLimit to apply
    POST /api/otp/sendSMSNoneSMS pumping: 1,900 OTPs to premium numbers in 6 countries you do not serveCountry allowlist (2), Turnstile before send, 3/10 min per phone, 10/h per IP
    POST /api/otp/verifyAuthNo attempt cap6-digit code brute-forceable in hours5 attempts per code, 10 min expiry
    POST /api/chatExpensiveAuth onlyOne account sent 14k requests/day20/min burst, 200/day per user, 4k-token input cap, $30/day global cap
    GET /api/orders?limit=Bulk readNo caplimit=100000 full table scanServer cap 100, cursor pagination
    GET /api/orders/[id]ReadUses service role, no owner checkIDOR: any order readable by IDUse the user's session client so RLS applies
    POST /api/auth/resetAuthDifferent message for unknown emailEmail enumerationSame response for all

    Code added

    • lib/ratelimit.ts with Upstash limiters and a guard() helper returning 429 + Retry-After
    • Postgres private.hit() limiter for the Edge Functions (no Redis needed)
    • Cloudflare WAF rule: /api/otp* 10/min per IP, block 10 min
    • Daily spend counter for AI and SMS that disables the feature and alerts at the cap

    Monitoring

    Alerts on OTP volume per country, AI spend per hour and the 429 rate. Supabase Auth rate limits and CAPTCHA are switched on in the dashboard.

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

    About this skill

    Bots do not need to hack your database to ruin your business. A simple script hitting an unprotected OTP endpoint can generate thousands of dollars in SMS pumping fraud overnight, while an uncapped AI route can drain your LLM credits in minutes. This skill identifies the high-cost and high-risk endpoints in your backend before they are exploited.

    What it does

    • Map endpoints by cost and sensitivity, categorizing routes like OTP, Auth, and expensive compute.
    • Audit for SMS pumping by checking for country allowlists and per-number cooldowns on OTP services.
    • Detect enumeration risks in login and signup flows that leak user existence through timing or response differences.
    • Identify unbounded queries that allow attackers to crash databases via massive page limits or "export all" requests.
    • Review expensive compute routes like LLMs and image generation for missing per-user quotas and daily spend caps.
    • Generate enforcement code providing ready-to-use snippets for rate limiting and server-side validation.

    How it works

    1. Catalog routes and tag them based on their impact, such as Sends SMS, Auth, or Expensive Compute.
    2. Apply the check list to each route to find missing limits, IDOR vulnerabilities, and brute-force windows.
    3. Generate implementation code for your specific stack, including Redis or Postgres-based limiters.
    4. Define monitoring alerts for spend spikes and 429 error rates.

    Frameworks & tools

    This skill provides implementation patterns for Next.js, Node.js, Express, Supabase, Cloudflare WAF, and Firebase App Check. It includes specific logic for Upstash Ratelimit and Redis backends.

    Why this beats prompting it yourself

    Generic security prompts often miss the financial side of API abuse, like premium-rate SMS ranges or LLM token draining. This skill uses a structured matrix to ensure no expensive or sensitive route is overlooked, providing the exact 429 logic and Retry-After headers required for professional API design.

    Use cases

    • Protect an OTP endpoint from SMS pumping fraud.
    • Add rate limits to a Next.js API that calls an LLM.
    • Audit a backend for enumeration and IDOR before launch.
    • Lock down file upload routes against storage and compute abuse.

    Known limitations

    Does not perform active penetration testing or automated traffic simulation. It is a design and code-level review tool for identifying missing controls.

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

    Software
    API
    orapp backend
    Optional
    Redis
    orUpstash
    Cloudflare

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies endpoints where bots can cause financial damage or data leaks, such as unprotected OTP services that lead to SMS pumping fraud or uncapped AI routes that drain LLM credits. It provides a structured audit to find missing rate limits, IDOR vulnerabilities, and expensive compute routes before they are exploited.

    You will receive a detailed table for each endpoint that includes its risk level, suggested rate limits, and ready to use implementation code for stacks like Next.js, Node.js, Supabase, and Cloudflare WAF. It also provides a monitoring checklist to help you set up alerts for spend spikes and 429 error rates.

    This is a design and code level review tool meant to identify missing controls and implementation patterns. It does not perform active penetration testing or automated traffic simulation against your live infrastructure.

    You can ask your agent to review your backend routes, audit an OTP flow for SMS pumping risks, or generate rate limiting code for a specific API endpoint. It is most effective when you provide a list of your routes or functions and the technologies you are using.

    The skill provides specific patterns for Next.js, Express, Supabase, and Firebase App Check. It also includes specialized logic for implementing limiters using Redis or Upstash Ratelimit.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.