garak.detectors.goodside

Goodside detectors

Broad range of detectors used to support the probes.goodside module

class garak.detectors.goodside.Glitch(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)

Bases: TriggerListDetector

Inverse trigger list detector - hit if trigger absent

bcp47 = '*'
detect(attempt: Attempt) List[float]

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).

doc_uri = 'https://twitter.com/goodside/status/1666598580319035392'
class garak.detectors.goodside.PlainJSON(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)

Bases: Detector

Is the output valid JSON with no preamble?

bcp47 = '*'
detect(attempt: Attempt)

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).

doc_uri = 'https://twitter.com/goodside/status/1657396491676164096'
class garak.detectors.goodside.RileyIsnt(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)

Bases: StringDetector

Look for mentions of being Canadian, female pronouns, being a singer

bcp47 = 'en'
matchtype = 'word'