Template / SQL injection probes#1138
Conversation
…ew injection probes. Add CWE IDs to misp_descriptions.tsv.
jmartin-tech
left a comment
There was a problem hiding this comment.
General documentation comments, would be good to have some tests in place for the new plugins.
…in SQLiEcho Detector.
…tionEcho recommended detector.
leondz
left a comment
There was a problem hiding this comment.
Love this overall. Few broader questions & minor edits.
| def detect(self, attempt: garak.attempt.Attempt) -> List[float]: | ||
| results = [] | ||
| for output in attempt.all_outputs: | ||
| if output is None: |
There was a problem hiding this comment.
This implies that the responsibility for both doing the exploitation and also getting the observation that tells us whether or not it's worked, both lie within the probe. Is that the pattern we want to settle on? It might be easier from an orchestration point of view, I just want to check.
There was a problem hiding this comment.
I'm agnostic here -- This is intended to reflect existing patterns, but we're also going to want on system detectors/checkers for these things too, which I think might require a second pass.
Co-authored-by: Leon Derczynski <leonderczynski@gmail.com> Signed-off-by: Erick Galinkin <erick.galinkin@gmail.com>
Co-authored-by: Leon Derczynski <leonderczynski@gmail.com> Signed-off-by: Erick Galinkin <erick.galinkin@gmail.com>
Co-authored-by: Leon Derczynski <leonderczynski@gmail.com> Signed-off-by: Erick Galinkin <erick.galinkin@gmail.com>
Co-authored-by: Leon Derczynski <leonderczynski@gmail.com> Signed-off-by: Erick Galinkin <erick.galinkin@gmail.com>
Co-authored-by: Leon Derczynski <leonderczynski@gmail.com> Signed-off-by: Erick Galinkin <erick.galinkin@gmail.com>
…ttern for basic tests
Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
Add template/code injection probes and SQL injection probes.
Increases view into systemic impacts against LLM agents/systems.