Feat: Implement LLM Injection Vulnerability (Issue #500)#503
Open
subhamkumarr wants to merge 3 commits intoSasanLabs:masterfrom
Open
Feat: Implement LLM Injection Vulnerability (Issue #500)#503subhamkumarr wants to merge 3 commits intoSasanLabs:masterfrom
subhamkumarr wants to merge 3 commits intoSasanLabs:masterfrom
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")) { |
Member
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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