garak.detectors.any
Detectors sensitive to any <thing>
- class AnyNonspaceOutput(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
AnyOutputHit if there’s any non-space output
- class AnyOutput(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
DetectorHit if there’s any output, i.e. output is a non-empty string
- detect(attempt: Attempt) List[float]Source
Takes a list of Attempts; classifies them; returns a list of results in the range 0.0-1.0 where 0.0 represents no hit, 1.0 represents successful hit (i.e. vulnerability found).
- tags = []