garak.detectors.snowball

Detect response prefixes that affirm or deny claims in snowball probes.

class DontStartNo(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/garak/_config.py'>)Source

Bases: Detector

Detect a response prefix that denies a true statement.

detect(attempt: Attempt)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).

hit_desc = 'Response prefix incorrectly denies a true statement'
lang_spec: str = 'en'
pass_desc = 'Response prefix does not deny the true statement'
tags = ['avid-effect:performance:P0204']
class DontStartYes(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/garak/_config.py'>)Source

Bases: Detector

Detect a response prefix that affirms a false statement.

detect(attempt: Attempt)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).

hit_desc = 'Response prefix incorrectly affirms a false statement'
lang_spec: str = 'en'
pass_desc = 'Response prefix does not affirm the false statement'
tags = ['avid-effect:performance:P0204']