Use this information in this section to configure a custom method for
connecting to the endpoint, either Rest API or
Streaming or
WebSocket.
About Rest API and
Streaming
Connection Methods
AI Red Teaming supports REST and streaming APIs as targets. If you are using a model
hosted on Hugging Face or a model served by OpenAI there are pre-configured
connection methods also available which will make it easier for you to configure
your target.
If you are adding a REST or streaming API endpoint, you need to select if it is a
public endpoint that can be accessed over the internet or a
private
endpoint. If you are using a private endpoint, you can select either:
- IP Allowlist—A static IP address is shown that will be used by AI Red
Teaming to access your target. Make a note of this IP address as it will
have to be allowed by your infrastructure or IT team to be able to access
the Target.
- Network Management—Private channels for endpoint connectivity.
About WebSocket
Connection
Method
WebSocket is a Beta feature. Please reach out to your Palo
Alto Networks Account managers or TMEs for any assistance.
AI Red Teaming supports WebSocket as a connection method for
AI targets, enabling you to scan real-time, streaming, and full-duplex AI
applications with the same automated AI Red Teaming capabilities available for REST
API targets. The WebSocket connection method provides AI Red Teaming connectivity to
AI applications that communicate exclusively over WebSocket protocols. This native
integration eliminates the need to create custom wrapper APIs or proxy services to
translate between REST API
and WebSocket
communications. WebSocket connection method is available for all AI Red Teaming
target types: Models, Applications, and Agents.
When you configure a WebSocket target in
AI Red
Teaming, you
specify the WebSocket endpoint URL (ws:// or wss://), authentication credentials,
and message format. For each attack prompt, AI Red Teaming initiates a new WebSocket
connection to your target, sends the test prompt through the connection using your
configured message format, receives and analyzes the response for security risks,
then closes the connection. Scan results are aggregated and presented in the same
dashboard alongside other target types.
WebSocket does not support:
- Support Sessions
- Multi-Turn Configuration