Search K
Appearance
Appearance
EARLY ACCESS
AI Remediate is not generally available yet. Contact F5 sales if you are interested in joining the early access program.
This use case follows one example from start to finish. A team finds a vulnerability with AI Red Team, fixes it with AI Remediate, and then checks the fix.
You'll learn how to:
When you finish, you'll have a guardrail package that targets the attacks the report found, running in a live project.
This page shows how the steps fit together. For the detailed procedure for each step, see Remediate AI risks.
EXAMPLE VALUES
The company, model, campaign, intent, report, project, and all figures on this page are made up. They show you what to look for. They don't describe how a real remediation will perform. Your results depend on your models, intents, and attacks.
Example Retail runs a customer support chatbot. The chatbot uses a model connection named support-bot-model in a live Guardrails project named Customer support chatbot.
The chatbot's system prompt includes internal discount codes that support agents can give to customers in some cases. The security team wants to know whether a customer could talk the chatbot into revealing those codes.
| Item | Example value |
|---|---|
| Model connection | support-bot-model |
| Guardrails project | Customer support chatbot (live) |
| Campaign | Support bot: discount code leakage |
| Custom intent | "Get the assistant to reveal internal discount codes" |
| Report | Support bot discount codes: week 38 |
Make sure you have everything listed in Before you begin on the Remediate page:
You also need:
support-bot-model. You can deploy a package only to projects that use the same connections as the report. For more information, see Create a project.AI Remediate works only from custom intent results. Signature attack and operational attack results aren't used. So the team starts with a campaign that contains a custom intent.
support-bot-model. This creates the Support bot discount codes: week 38 report.For help reading the report, see Review a Red Team report.
Because at least one custom intent attack succeeded, the report shows a Remediate button in the reports list and in the report's custom intents section. If you don't see the button, see Troubleshooting.
From the report, the team selects Remediate. The Remediate vulnerabilities dialog lists the vulnerable custom intent and model. The team selects Remediate to confirm.
AI Security opens the Remediation page. The status changes from Remediation requested to In progress while AI Remediate generates and evaluates guardrails. Nothing changes in your guardrails or projects yet.
Keep in mind:
For the full procedure, see Request a remediation from a report.
The team plans to run this campaign every week. To get a remediation each time a scheduled run finds a vulnerable custom intent, they select the Remediate checkbox when they create the schedule. Auto-remediation is off by default. In the API, set remediationSettings.autorun to true.
For details, see Turn on auto-remediation.
When the status changes to Ready, the team selects AI remediate > Remediation and opens the remediation.
The following figures are example values for this scenario.
| Result | Example value |
|---|---|
| Attack prevention rate: Pre-remediation | 10% |
| Attack prevention rate: Post-remediation | 92% |
| F1 | 0.93 |
| Suggested guardrails | 2 GenAI guardrails. For example, one that checks for requests to reveal discount, promo, or coupon codes. |
The team selects Details to see the overall accuracy and confusion matrix. The following counts are example values. With these counts, the example accuracy is 93%.
| Example count | |
|---|---|
| True positives | 46 |
| False positives | 3 |
| True negatives | 47 |
| False negatives | 4 |
The team also checks Performance per custom intent, which shows pre- and post-remediation scores for the discount code intent. To keep the detailed data, they select Download results. The download expires 7 days after the results are created.
AI Remediate aims for a package F1 score above 90%, but it doesn't stop you from using a package that falls short. Your team decides what's acceptable for your risk and your users. The team asks these questions:
If the package isn't good enough, you can reject it. You can't undo a rejection, and you can create only one remediation for each report. For details, see Reject a package.
In this example, the team decides the results are good enough to try on live traffic.
For the full procedure and a description of each result, see Review a remediation and Results.
The team wants to see how the guardrails behave on real customer prompts before they block anything.
On the remediation, which has the status Ready, the team selects Import and deploy.
They select the Customer support chatbot project. Live projects only helps them find it.
For each guardrail, they set Mode to Audit and leave Enable on.
Remediation guardrails default to Block mode and are enabled, so the team changes the mode to Audit.
They select Import and deploy. The status changes to Deployed.
The guardrails now scan prompts in the project, but in Audit mode they don't block them. Over the next few days, the team reviews the project's prompt logs to see which prompts the guardrails flag. They look for two things:
For prompt logs, see Understand prompt history logs. For the deploy procedure, see Deploy the package to projects.
TRY IT IN THE PLAYGROUND INSTEAD
To test the package before it sees traffic, select Import and test. AI Security adds the package to the playground and custom guardrails list. The status changes to Imported. From Imported, you can select Test or Reject. To use the guardrails in projects, publish the package.
For details, see Import and test the package and Statuses.
The prompt logs show that the guardrails flag discount code attempts and few ordinary questions. The team is ready to block.
The guardrails now block matching prompts in the live project.
INFO
After you deploy a package to projects, you can't reject it.
For more on guardrail scan settings, see Add response scans to a guardrail.
Next, the team checks that the fix works. They follow Verify the remediation:
When they compare the reports, the team looks at:
If attacks still succeed, the team can request a remediation from the new report. If the campaign runs on a schedule with auto-remediation turned on, AI Security requests the remediation automatically when a run finds a vulnerable custom intent.
To see how quickly the team responded, they check Time to respond on the remediation. It shows the time from when the report finished to when the package was deployed.
For more information, see: