Feat: Implement LLM Injection Vulnerability (Issue #500) - #503
Feat: Implement LLM Injection Vulnerability (Issue #500)#503subhamkumarr wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #503 +/- ##
============================================
+ Coverage 49.07% 49.31% +0.24%
- Complexity 346 352 +6
============================================
Files 56 57 +1
Lines 2101 2113 +12
Branches 226 229 +3
============================================
+ Hits 1031 1042 +11
Misses 989 989
- Partials 81 82 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| String lowerMessage = userMessage.toLowerCase(); | ||
|
|
||
| // Simulated LLM Logic | ||
| if (lowerMessage.contains("password") && !lowerMessage.contains("ignore")) { |
There was a problem hiding this comment.
I think we can inject the LLM model here. you can look at VulnerableApp-facade project to see how we can add a newer docker container and then add the docker container which will run the LLM Model and we can call that model from here.
|
This PR has had no activity for 30 days, so it's been marked stale. If you're still working on it, push a commit or leave a comment and this label will clear. Otherwise it'll close automatically in 60 days — no hard feelings, and you (or anyone else) are welcome to reopen or resubmit against current main whenever you're ready. |
Description
This PR addresses Issue #500 by introducing a new LLM/AI Injection vulnerability type. This allows users to practice Prompt Injection attacks in a simulated environment without requiring an actual LLM backend.
Changes Included
Verification