c3.7 Secure the vector store and embedding integrity
Authenticate and authorize access to the vector store, encrypt it with a CMK, and control who can write embeddings, so the retrieval layer cannot be poisoned or read by unauthorized callers.
Implementation guidance
How to implement on AWS
Apply least-privilege data-access control on the OpenSearch Serverless collection, encrypt it server-side with a customer managed KMS key, and restrict which roles can write embeddings. Perform authorization at the generative AI application layer.
Acceptance criteria
The vector store enforces least-privilege data access; it is encrypted with a customer managed key; only approved roles can write embeddings.
Practical implementation
How this control is implemented in each reference architecture:
The OpenSearch Serverless collection enforces least-privilege data access, is CMK-encrypted, and only the ingestion role can write embeddings — read and write are split.
- Apply least-privilege data-access policies on the collection so the read (retrieval) role and the write (ingestion) role are separate and minimal.
- Encrypt the collection server-side with the customer managed KMS key.
- Perform authorization at the generative AI application layer so callers cannot write embeddings directly.
How to validate: The collection enforces least-privilege data access; it is CMK-encrypted; only the ingestion role can write embeddings; a retrieval-only role cannot modify the index.
Avoid: One role that both reads and writes the vector index. Split read from write so a compromised query path cannot poison the embeddings.
Least-privilege data access on the collection, CMK encryption, and separate read/write roles keep the vector store from being poisoned or read by unauthorized callers.
- Set least-privilege data-access policies splitting the retrieval role from the ingestion (write) role.
- Encrypt the collection with the customer managed key.
- Authorize at the application layer so only the ingestion path can write embeddings.
How to validate: The collection enforces least-privilege access; it is CMK-encrypted; only the ingestion role writes embeddings.
Avoid: Letting the retrieval path write to the index. Separate read and write so retrieval cannot alter what future queries return.
Threats addressed
- Tampering with embeddings or the vector index to manipulate retrieval.
- Unauthorized read/write access to the vector store.
AWS services
Framework mappings
OWASP GenAI/LLM Top 10 (2026)
- LLM09 Vector and Embedding Weaknesses
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 3, Amazon OpenSearch Serverless
AI Security Maturity Model