c6.2 Encrypt user data and isolate sessions
Encrypt user inputs, conversation history, and AI-generated outputs with a customer managed key, and isolate sessions so one user's context cannot reach another's.
Implementation guidance
How to implement on AWS
Encrypt inputs, conversation history, and outputs in transit (TLS 1.2+) and at rest with a customer managed KMS key (Q Developer, Quick, and Kiro support customer managed keys). Isolate user sessions and set retention/memory policies aligned to your compliance obligations.
Acceptance criteria
User data is CMK-encrypted in transit and at rest; sessions are isolated per user; retention policies are enforced.
Practical implementation
How this control is implemented in each reference architecture:
User inputs, conversation history, and outputs are CMK-encrypted in transit and at rest, sessions are isolated per user, and retention aligns to compliance obligations.
- Encrypt inputs, conversation history, and outputs in transit (TLS 1.2+) and at rest with a customer managed KMS key (Q Developer, Quick, Kiro support CMKs).
- Isolate user sessions so one user's context cannot reach another's.
- Set retention and memory policies aligned to your compliance obligations, and keep the KMS key scoped to the app roles.
How to validate: User data is CMK-encrypted in transit and at rest; sessions are isolated per user; retention policies are enforced.
Avoid: Persisting conversation history on default keys with no retention limit. Encrypt with your own key and bound how long user data lives.
CMK encryption in transit and at rest, per-user session isolation, and enforced retention protect user data within the account.
- Encrypt inputs, history, and outputs in transit (TLS 1.2+) and at rest with a customer managed KMS key.
- Isolate user sessions to prevent cross-user context leakage.
- Enforce retention/memory policies aligned to compliance.
How to validate: User data is CMK-encrypted in transit and at rest; sessions are isolated; retention is enforced.
Avoid: Keeping all user history forever on a shared key. Scope encryption and retention to what compliance requires.
Threats addressed
- Sensitive user inputs or AI outputs readable if default keys or storage are compromised.
- Data leakage between user sessions or across AI applications.
AWS services
Framework mappings
OWASP GenAI/LLM Top 10 (2026)
- LLM02 Sensitive Information Disclosure
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)
- GENSEC01-BP03 Implement least privilege access to data stores
Learning resources
References
- AWS SRA for AI — Capability 6, Data protection
AI Security Maturity Model