Rate limiting

From zakirkun/ice-tea · View interactive version

Rate limiting is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects sensitive API endpoints (auth, password reset, OTP) without rate limiting middleware. Use when auditing API security, checking for brute force protection, or reviewing throttling configuration.

How to use this skill

Skill file

Missing API Rate Limiting

Identifies sensitive endpoints (auth, password reset, OTP) that lack rate limiting middleware. See patterns.yaml for framework-specific detection rules.

Detection Workflow

  1. Enumerate endpoints — find route definitions for auth, reset, OTP, and data-listing handlers
  2. Check middleware — verify rate limiter is applied (express-rate-limit, Flask-Limiter, or custom)
  3. Validate limits — flag excessively high limits (>5000 requests/window) as ineffective
  4. Classify risk — auth/OTP endpoints are critical; list endpoints are medium

Vulnerable

router.post('/api/reset-password', async (req, res) => { ... });

Safe

const limiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 5 });
router.post('/api/reset-password', limiter, async (req, res) => { ... });
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.