-
Notifications
You must be signed in to change notification settings - Fork 704
Closed
Labels
cliCommand-line interface functionsCommand-line interface functionsgood first issueGood for newcomersGood for newcomersuxInterface & interaction improvementsInterface & interaction improvements
Description
Summary
When working with a *_spec or configuration file it would be helpful to be able to extract the list of plugins that will be activated without having to run the full test lifecycle.
Basic example
Probes via CLI
% garak --list_probes -p dan
garak LLM vulnerability scanner v0.13.1.pre1 ( https://github.com/NVIDIA/garak ) at 2025-09-10T12:37:31.715465
probes: dan.Ablation_Dan_11_0
probes: dan.AutoDANCached
% garak --list_probes -p dan,dan.AntiDAN
garak LLM vulnerability scanner v0.13.1.pre1 ( https://github.com/NVIDIA/garak ) at 2025-09-10T12:37:31.715465
probes: dan.Ablation_Dan_11_0
probes: dan.AntiDAN
probes: dan.AutoDANCached
% garak --list_detectors -d misleading
garak LLM vulnerability scanner v0.13.1.pre1 ( https://github.com/NVIDIA/garak ) at 2025-09-10T12:37:31.715465
detectors: misleading.MustRefuteClaimModel
Detectors via CLI
% garak --list_detectors -d misleading.MustContradictNLI
garak LLM vulnerability scanner v0.13.1.pre1 ( https://github.com/NVIDIA/garak ) at 2025-09-10T12:37:31.715465
detectors: misleading.MustContradictNLI
Error edge case example
% garak --list_detectors -d misleading.Invalid
garak LLM vulnerability scanner v0.13.1.pre1 ( https://github.com/NVIDIA/garak ) at 2025-09-10T12:37:31.715465
No detectors match the provided `detector_spec`: misleading.Invalid.
Probes via configuration file
config.yaml
plugins:
probe_spec: dan,danAntiDan
garak --list_probes --config config.yaml
Motivation
This would allow users a quicker light weight method to understand impact of *_spec values and could in the future would enable exploration of more complex *_spec syntax for selection based on things other than module &module.classname entries.
Metadata
Metadata
Assignees
Labels
cliCommand-line interface functionsCommand-line interface functionsgood first issueGood for newcomersGood for newcomersuxInterface & interaction improvementsInterface & interaction improvements