Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base attack in the returned results in redteam scan #1281

Open
AmineDjeghri opened this issue Jan 17, 2025 · 3 comments
Open

Add base attack in the returned results in redteam scan #1281

AmineDjeghri opened this issue Jan 17, 2025 · 3 comments

Comments

@AmineDjeghri
Copy link

The result of redteaming.scan is this for each attack

                        result = {
                            "Vulnerability": attack.vulnerability,
                            "Vulnerability Type": vulnerability_type.value,
                            "Attack Enhancement": attack.attack_enhancement,
                            "Risk Category": (
                                risk.value if risk is not None else "Others"
                            ),
                            "Input": attack.input,
                            "Target Output": None,
                            "Score": None,
                            "Reason": None,
                            "Error": None,
                        }

Describe the solution you'd like
I would like to have another field call 'original_input" so we can see the original (base) attack and verify it.

@AmineDjeghri AmineDjeghri changed the title Add original attack in the returned results in redteam scan Add base attack in the returned results in redteam scan Jan 17, 2025
@penguine-ip
Copy link
Contributor

Hey @AmineDjeghri is it possible you make a PR for this? We would like this but don't have capacity right now

@AmineDjeghri
Copy link
Author

Hey, i will finish customizing some stuff with deepeval then we will talk about everything needed. I already wanted to improve the templates for the missing Graders

@penguine-ip
Copy link
Contributor

@AmineDjeghri got it appreciate 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

No branches or pull requests

2 participants