Guides · APRF practice notes
Security Guides
Protect APIs, secrets, and identities. These guides support APRF Authentication, Authorization, Secrets, and AI Security.
Auth, secrets, injection, and tool safety — APRF Security domain.
For checklists, WAF, and SOC 2 patterns, see Cybersecurity guides.
AI Production Readiness Framework
Related APRF controls
- API Abuse Real Example: The Cost
A real example of API abuse—$50K in bills. No rate limits, no alerts. Here's what happened and how to prevent it.
- API Gateway Rate Limiting in AWS
Add rate limiting to your API with AWS API Gateway. Throttling, usage plans, and per-key limits.
- What Happens If Your API Key Is Leaked?
A leaked API key can cost you thousands and expose your data. Here's what happens and what to do immediately.
- API Key Exposed in Frontend: What to Do Right Now
You just realized your API key is in client-side JavaScript. Here's how to contain the damage, rotate credentials, and fix the architecture so it never happens again.
- Why API Keys Should Not Be in Frontend
Putting API keys in JavaScript or mobile apps is one of the most common—and costly—security mistakes. Here's why and what to do instead.
- AWS Secrets Manager vs Parameter Store
Both store secrets. When to use Secrets Manager vs Parameter Store—rotation, cost, and use cases.
- Cloudflare Rate Limiting for APIs
Add rate limiting to your API with Cloudflare. No code changes—configure rules at the edge.
- How to Detect API Abuse Patterns
API abuse leaves patterns. High volume, unusual user agents, datacenter IPs. Here's how to detect them.
- IAM Least Privilege Example: AWS Simple
IAM least privilege means granting only the permissions each role needs. Here's a simple example and how to apply it.
- JWT vs API Key Authentication
JWT and API keys both authenticate requests. When to use each—stateless vs stateful, revocation, and use cases.
- How to Prevent AI API Abuse
AI API keys are high-value targets. Here's how to keep them secure and prevent abuse before your bill explodes.
- How to Prevent API Abuse Without Authentication
Public APIs need protection even when you can't require user accounts. Rate limits, IP checks, and API keys can stop abuse.
- Public API Without Rate Limiting: The Risks
A public API with no rate limits is an open invitation for abuse. Here's what can go wrong and how to protect your endpoints.
- How to Rotate API Keys Safely
Rotating API keys without downtime. Create new, update config, deploy, then revoke old. Here's the process.
- How to Secure API Keys in JavaScript Frontend
API keys in frontend code are never secure. Here's how to architect your app so keys stay server-side and your frontend stays safe.
- How to Secure Your OpenAI API Key
OpenAI keys are high-value targets. Here's how to keep them secure—backend only, rate limits, and quotas.
- How to Stop API Scraping Attacks
Scrapers extract your data and abuse your API. Here's how to detect them and stop the attack before it costs you.
Assess against APRF Core
Run the Core Profile quiz — gated pass/fail blockers for AI production readiness, not a vanity score.