/prodsec-skills:rate-limitingfrom prodsec-skills
Enforce rate limiting at the API gateway to protect AI models from extraction attacks. Covers per-user, per-IP, and token-based strategies with implementation checklist.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
API gateways protecting AI models SHOULD implement rate limiting. This is a critical defense against attacks that require sending large volumes of requests to the models.
| Attack | Description |
|---|---|
| Model data extraction | Attempting to extract sensitive information the model learned during training |
| Training data extraction | Reconstructing training data from model responses |
| Token extraction | Stealing API tokens or credentials through repeated probing |
| Weight extraction | Reverse-engineering model weights through systematic queries |
| Prompt injection probing | Brute-forcing prompt injection payloads |
These attacks typically require sending thousands to millions of requests. Rate limiting makes them impractical or too slow to be worthwhile.
| Strategy | Use Case |
|---|---|
| Per-user/principal | Limit requests per authenticated user over a time window |
| Per-IP | Limit unauthenticated or pre-auth requests by source IP |
| Per-endpoint | Different limits for different model endpoints based on sensitivity |
| Adaptive/dynamic | Adjust limits based on detected anomalous patterns |
| Token-based | Limit based on input/output token consumption, not just request count |
429 Too Many Requests with Retry-After headerWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job