Skip to content

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

  1. Open the fuchsiad configuration file (by default /etc/fuchsia/config.yml).
  2. 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: false
    

    If the llms block already exists in the configuration file, add an entry with the ai-agent-scanner label to it. There must be only one such entry. If it already exists, update it.

  3. 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/completions path 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 is false).

    Leave the values of the labels and provider fields as in the example.

  4. Save the configuration file.

Apply the settings

Run the following command:

fuchsiactl reload

Run the following command, replacing <container-name> with the name of the Fuchsia container (to find it out, use the docker ps command):

docker exec <container-name> fuchsiactl reload

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.