Secure RAG applications using prompt engineering on Amazon Bedrock
Machine Learning Blog
This article discusses how to secure Retrieval Augmented Generation (RAG) applications that use large language models on Amazon Bedrock. It covers different prompt-level security threats like prompt injection, prompt leaking, and jailbreaking, and proposes guardrails and best practices to mitigate these threats.
Specifically, the article covers:
- Introduction to LLMs and RAG
- Different security layers of generative AI solutions
- Common prompt-level threats
- Proposed prompt template guardrails (e.g. salted tags, threat detection instructions)
- Comparison of guardrail template vs. basic template on security benchmark
- Key takeaways and learnings
- Conclusion
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Aug 30
2024
2024
Implementing advanced prompt engineering with Amazon Bedrock
Apr 23
2025
2025
Protect sensitive data in RAG applications with Amazon Bedrock
Apr 23
2024
2024
Building scalable, secure, and reliable RAG applications using Amazon Bedrock Knowledge Bases
Sep 5
2024
2024
Build powerful RAG pipelines with LlamaIndex and Amazon Bedrock
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.