Skip to content

CLI: Dynamically load all vulnerabilities/attacks + pass through attack-specific config parameters#203

Open
marcan2020 wants to merge 1 commit intoconfident-ai:mainfrom
marcan2020:main
Open

CLI: Dynamically load all vulnerabilities/attacks + pass through attack-specific config parameters#203
marcan2020 wants to merge 1 commit intoconfident-ai:mainfrom
marcan2020:main

Conversation

@marcan2020
Copy link

This change removes hardcoded vulnerability and attack definitions from the CLI and replaces them with dynamic discovery of all concrete classes exported by deepteam.vulnerabilities, deepteam.attacks.single_turn, and deepteam.attacks.multi_turn, ensuring that any new or existing attack or vulnerability type is automatically supported without modifying the CLI. It also extends attack construction to transparently pass through attack-specific configuration parameters (e.g., prefix, max_retries, target_information, etc.), improving flexibility and forward compatibility while reducing maintenance overhead.

@vercel
Copy link

vercel bot commented Mar 12, 2026

@marcan2020 is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant