Red team an AI app or agent
Test an AI application, or a text or voice agent, through its own endpoint, including the MCP tools it can call.
When to use this mode
Use this mode to test an AI app or agent by connecting to its endpoint directly. It works whether the app or agent is:
- protected behind the Quilr LLM Gateway,
- protected behind another vendor's gateway, or
- not behind any gateway.
It supports both text agents, reached over HTTP or WebSocket, and voice agents.
Before you begin
- You have everything needed to connect to the agent programmatically: its API endpoint, authentication method, a test credential, and its request and response format. Get these from the agent's development team. See Requirements and permissions.
- You have approval to test the agent.
- Optional but recommended: get the agent's system prompt and the list of tools it can call.
Start an agent assessment
On the New assessment page, select Start on the AI App / Agent card.
Figure 1. Select AI App / Agent on the New assessment page.
The New agent assessment setup opens. It has five steps: Target, Coverage, Custom Attacks, Schedule, and Review.
Step 1: Target
- In Assessment name, enter a name that identifies the test, such as
Support Bot. - In Agent URL, enter the agent's programmatic API endpoint, starting with
https://orwss://, such ashttps://agent.example.com/api/chat. - In Authorized scope, record what is approved: the target, a ticket or reference number, and the testing boundary.
- Select Advanced / configure manually to set up the connection. See Configure the connection below.
Figure 2. The Target step for an agent.
Enter the URL that software uses to call the agent, not the web page people use to chat with it. For example, use https://agent.example.com/api/chat, not https://agent.example.com/. A human-facing page cannot be tested reliably.
The Detect button (Preview) reads the host's API description and pages, then sends the agent a few test requests, which can include a short spoken clip. Confirm the host is approved for testing before you use it. Detect fills in the connection settings for you; review them before you continue. It saves setup time, but you still need to confirm the authentication method, the test account's permissions, and the testing scope with the development team.
Configure the connection
Choose the settings that match how your agent works. The development team can confirm each one.
-
Select the agent type:
- HTTP endpoint: a text agent with an HTTPS chat API.
- WebSocket endpoint: a text agent that streams over a WebSocket connection.
- Voice agent: an agent that takes spoken input.
-
In Endpoint URL, confirm the agent's API endpoint.
-
Under Authentication, add the headers the agent needs, such as
Authorizationwith its token value. Select Add header for each extra header. Use a test account whose permissions match what the development team approved. -
Under Request & response mapping, check the defaults against the agent's real request and response:
-
Select Test connection and confirm the agent replies.
Figure 3. Manual connection settings. Select Test connection before you continue.
Add context (optional)
You can add the agent's system prompt and the tools it can call: MCP Gateway servers, other MCP servers, and native tools. These are optional but recommended. The more context you give, the more the attacks are curated to your agent, and a tool list lets the Red Team Agent try to make the agent misuse those tools.
Select Continue.
Step 2: Coverage
Choose how much of the attack library to run.
The library covers the main ways AI systems are attacked: prompt injection, both typed directly and hidden in content the target reads; jailbreaks that bypass safety training; system prompt leakage; sensitive data disclosure; tool misuse and privilege escalation; data exfiltration; unsafe output that downstream systems might run; harmful content; misinformation; and runaway token or cost consumption. Quilr maintains the library and adds new techniques as they are published.
Expand Attack library to see which objectives will run. Then select Continue.
Figure 4. The Coverage step.
Step 3: Custom Attacks
This step is optional. Add your own objectives for this agent, such as business rules it must never break. Custom objectives run alongside the coverage you chose.
- Select Add custom objective to write a new objective now.
- Select Add from library to reuse an objective you saved earlier in the attack library.
Write each objective as one clear goal the attack should reach. The clearer the goal, the easier it is to tell whether the attack worked. Save objectives you want to reuse, so other assessments can add them from the library.
Select Continue when you are done, or to skip this step.
Figure 5. The Custom Attacks step.
Managing saved objectives in the attack library is covered in a separate topic (Coming soon).
Step 4: Schedule
Choose when the assessment runs. A recurring schedule catches regressions caused by model upgrades, prompt edits, new tools, and newly published attack techniques, so a fix that worked last month is checked again.
Every scheduled run against a production target uses model tokens and tool quota. Use a dedicated test account so the usage is easy to attribute, and agree on the schedule with the development team.
Select Continue.
Figure 6. The Schedule step.
Step 5: Review and launch
- Check the summary: Target, Coverage, Schedule, and Connection. The connection should show Configured.
- Confirm the Authorized scope: the target, a ticket or reference number, and the testing boundary.
- Select I authorize this assessment. Transcripts are pattern-redacted and may be processed by the managed evaluation engine, so use only approved targets.
- Select Launch assessment.
Figure 7. The Review step.
Result: The assessment runs against the authorized target only. You can leave the page and come back while it runs.
Next steps
- Review the results in Run details and the Full report when the assessment finishes.