Configuring the AI agent vulnerability scanner¶
For the module to work, you need to connect a model with an API that is compatible with OpenAI Chat Completions. To do this, you will need:
- API URL,
- model name,
- access key from the service provider.
Add connection settings¶
- Open the
fuchsiadconfiguration file (by default/etc/fuchsia/config.yml). -
Add the following block while keeping the rest of the file's settings:
llms: - labels: [ai-agent-scanner] proxy: "https://proxy.example.com" provider: open_ai base_url: "https://api.example.com/v1" model: "model-name" api_token: "your-api-key" reasoning_enabled: falseIf the
llmsblock already exists in the configuration file, add an entry with theai-agent-scannerlabel to it. There must be only one such entry. If it already exists, update it. -
Replace the values of the following fields with your connection data:
proxy— proxy server URL for interacting with LLM judges (optional field);base_url— provider API URL. Both a base address (for example,https://api.example.com/v1), and a full address containing the/chat/completionspath are allowed;model— the model name at the provider;api_token— access key. If no key is required, specify"";reasoning_enabled— optional flag that enables reasoning for LLM judges (default isfalse).
Leave the values of the
labelsandproviderfields as in the example. -
Save the configuration file.
Apply the settings¶
Create scan¶
Start a new scan with the ai-agent-scanner module enabled. For a standard run, the connection settings in the fuchsiad configuration file are sufficient.
Check the connection¶
Open the module log for the running scan.
- The “
SCANNER STARTED” message must contain the provider API URL and the model name. - The “
MODEL READY” message confirms that the model responded to the test request.
If it fails, the logs will contain an error.