c6.4 Protect the app interface with WAF and TLS
Front web-based AI application interfaces with AWS WAF and enforce TLS, so common web exploits, bot traffic, and prompt-injection patterns are blocked at the edge.
Implementation guidance
How to implement on AWS
Deploy AWS WAF in front of the AI app interface with managed rules, custom prompt-injection detection rules, and rate limiting. Enforce TLS 1.2+ for all user connections and use AWS Certificate Manager for certificate issuance and rotation.
Acceptance criteria
WAF protects the interface with managed + custom rules and rate limiting; all user connections use TLS 1.2+ with ACM-managed certificates.
Practical implementation
How this control is implemented in each reference architecture:
AWS WAF fronts the AI app interface in the Application account with managed + custom rules and rate limiting, and ACM issues/rotates the TLS 1.2+ certificates.
- Deploy AWS WAF in front of the AI app interface with managed rules and custom prompt-injection detection rules.
- Add rate-based rules to stop bot traffic and prompt stuffing.
- Enforce TLS 1.2+ for all user connections using AWS Certificate Manager for issuance and rotation.
How to validate: WAF protects the interface with managed + custom rules and rate limiting; all user connections use TLS 1.2+ with ACM-managed certificates.
Avoid: A public AI chat UI with no WAF or rate limits. Bots and injection hit it immediately; protect the edge and enforce TLS.
WAF with managed + custom rules and rate limiting protects the app interface in the account, with ACM-managed TLS 1.2+.
- Deploy AWS WAF in front of the interface with managed rules and custom prompt-injection rules.
- Add rate limiting for bot/prompt-stuffing traffic.
- Enforce TLS 1.2+ with ACM-managed certificates.
How to validate: WAF protects the interface with rate limiting; all connections use TLS 1.2+ with ACM certificates.
Avoid: Serving the AI app over plain HTTP or without WAF. Enforce TLS and filter at the edge.
Threats addressed
- Web exploits (injection, XSS), bot traffic, and prompt stuffing against the app.
- Resource exhaustion from unthrottled requests.
AWS services
Framework mappings
OWASP GenAI/LLM Top 10 (2026)
- LLM01 Prompt Injection
- LLM06 Unbounded Consumption
NIST AI Risk Management Framework (AI 100-1)
- MANAGE.1 AI risks are prioritized, responded to and managed
AWS Well-Architected Generative AI Lens (Security)
- GENSEC04-BP02 Sanitize and validate user inputs to foundation models
Learning resources
References
- AWS SRA for AI — Capability 6, Network security
AI Security Maturity Model