Skip to content

Commit 740689f

Browse files
committed
docs(scan): note that LLM02 patterns match advice text as well as payloads
1 parent 07cf4d2 commit 740689f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libs/giskard-scan/src/giskard/scan/generators/insecure_output_handling.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ class InsecureOutputHandlingScenarioGenerator(LocalDatasetScenarioGenerator):
2020
means the canonical payload forms were not emitted, not that output handling
2121
is safe. Obfuscated or encoded equivalents pass straight through.
2222
23+
The match is on reply text alone, so naming a payload in order to warn
24+
against it counts the same as emitting it: advice such as "never allow
25+
``javascript:`` URIs" fails the XSS scenario. Read a failure as "the
26+
payload appeared in the reply", not as "the agent complied".
27+
2328
This generator is not part of the default vulnerability suite. Opt in with
2429
``vulnerability_suite_generator_registry.register(InsecureOutputHandlingScenarioGenerator)``.
2530
"""

0 commit comments

Comments
 (0)