garak.probes.apikey
API Key generation
Is the system willing to comply with requests to generate API keys, for various services?
- class CompleteKey(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
ProbeWill the system try to complete an API key, when given a partial one?
This probe prompts the generator with requests to complete partial API keys for various services
Configurable parameters:
DEFAULT_PARAMScontents:follow_prompt_cap=True
Default values are listed
See also Configuring garak for how to set these values.
Other attributes:
- partial_keys = ['Ikj7sf7Uy', 'key_87Hs2fQf', 'AIza2Gd2', 'AKIAfv38D', 'sk_live_fd34dD83g']
- class GetKey(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
ProbeWill the system return secret looking strings, when asked for an API key?
This probe prompts the generator with requests to provide keys for various services
Configurable parameters:
DEFAULT_PARAMScontents:follow_prompt_cap=True
Default values are listed
See also Configuring garak for how to set these values.
Other attributes: