AWS Terraform Module – Custom Prompt Injection Detection

This is an open-sourced custom prompt injection detection module, designed for deployment on AWS.

I built this using personal time/personal money/personal laptop/personal AWS accounts, and it’s not connected to my professional employment whatsoever.


This content originally appeared on DEV Community and was authored by Wayne Workman

This is an open-sourced custom prompt injection detection module, designed for deployment on AWS.

I built this using personal time/personal money/personal laptop/personal AWS accounts, and it's not connected to my professional employment whatsoever.

You might ask why I'd build this when AWS Bedrock's Guardrails feature offers prompt injection protection. There's a few reasons.

Reason 1: Customization. You can customize Guardrails to a good extent, can tell it what keywords or topics to avoid. But you can't tell it what to expect.

Reason 2: Freedom. With my own prompt injection detection module, I can easily swap Bedrock for something else. And I can do things the way I want them done.

Reason 3: Learning. I'm going down an AI / ML / GenAI / LLM learning pathway. It's wild, and I love doing this stuff.

The repo is MIT licensed, is Python based, has 146 passing unit tests.

Is it perfect? Nope. Can you help make it better? Yup.

Let me know what you think.

https://github.com/wayneworkman/terraform-module-prompt-injection-detection


This content originally appeared on DEV Community and was authored by Wayne Workman


Print Share Comment Cite Upload Translate Updates
APA

Wayne Workman | Sciencx (2025-11-02T03:52:26+00:00) AWS Terraform Module – Custom Prompt Injection Detection. Retrieved from https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/

MLA
" » AWS Terraform Module – Custom Prompt Injection Detection." Wayne Workman | Sciencx - Sunday November 2, 2025, https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/
HARVARD
Wayne Workman | Sciencx Sunday November 2, 2025 » AWS Terraform Module – Custom Prompt Injection Detection., viewed ,<https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/>
VANCOUVER
Wayne Workman | Sciencx - » AWS Terraform Module – Custom Prompt Injection Detection. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/
CHICAGO
" » AWS Terraform Module – Custom Prompt Injection Detection." Wayne Workman | Sciencx - Accessed . https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/
IEEE
" » AWS Terraform Module – Custom Prompt Injection Detection." Wayne Workman | Sciencx [Online]. Available: https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/. [Accessed: ]
rf:citation
» AWS Terraform Module – Custom Prompt Injection Detection | Wayne Workman | Sciencx | https://www.scien.cx/2025/11/02/aws-terraform-module-custom-prompt-injection-detection/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.