AI and local LLM
AI analysis, AI Defender and report drafting all need a language model. It can be a local server on your network or a cloud provider. The install and model choices are on Local LLM & AI Setup; this page covers what the appliance requires of the endpoint and who may approve it.
A local model runs on a separate host
- The appliance is sealed. Ollama, LM Studio, llama.cpp server, litellm or any OpenAI-compatible server runs on another machine on your network, ideally one with a GPU.
- Point the appliance at it under Settings > LLM Providers (needs Change appliance settings, Admin by default) using the host's address, not
localhost. - If you use an outbound proxy, nothing extra is needed for a host on a private address: the private ranges are always bypassed.
- Saving the endpoint only checks the URL against the policy below. The card's status check and its test button probe the endpoint with a 3-second timeout, do not follow redirects, and read at most a bounded model list from it. A failure answers with one of a fixed set of reasons, never with text from the remote server.
Cloud providers
- Anthropic, Google Gemini, OpenAI, Kimi (Moonshot) and GLM (Z.ai). Each has an enable switch, an API key, a default model and a test button.
- In AI Defender, click the provider/model name above the conversation to choose another configured pair. The Configuration card follows your selection. The choice is saved in your browser separately for each investigation; it applies to the next message. Unavailable choices show their missing requirement. To configure a different model within a provider, use Settings and test it again.
- Two consent switches per provider: Allow Cloud Inference and Allow Sensitive Data. Until the first is on, the provider is listed but not used. While the second is off and CICADA detects personal data in a request, the whole request is sent to the local model instead of that provider; with no local model configured it fails. AI Defender also redacts protected secrets independently of these consent switches.
- Each provider card shows a status: Ready; Disabled; API Key Required; Cloud Inference Disabled; Not Purchased (enable on the Features or License tab under Settings > Appliance); Live Test Required; Unavailable(check the configuration); or Model Approval Required.
- In AI Defender, enabling both consent switches allows cloud context to include selected IOC and detection records from the active investigation. Summary includes those records; Full also includes supporting events, matching events and recent alerts, within the model's context limit. This lets questions such as “Draft Response Plan” use evidence without naming a host or user. Case names, scope lists, raw payloads and response-action queues are excluded. The chat shows the selected scope and how many context records were supplied.
- With Allow Sensitive Data off, cloud context contains only event rows whose actor or target matches the question. A question with no matches has no evidence context. Choosing None disables evidence context with either setting. Case Narrative AI enhance keeps its separate scope: the section text being rewritten and one line per detection behind it. Local models retain their investigation context according to the selected depth.
- Keys are stored encrypted and are never returned by the API; the card only shows whether a key is set.
- Outbound HTTPS to the provider is listed on Network Requirements.
The endpoint policy
An inference endpoint URL is accepted only when all of these hold:
- It is
httporhttpswith a hostname, and carries no username, password, query string or fragment. - A remote endpoint must be
https. Plainhttpis allowed only for a literal loopback, private or link-local address (for examplehttp://192.0.2.10:11434) that you mark as local.
The same policy guards the status probe, so nobody who can change settings can make the appliance send a request to an arbitrary host by typing it into the Ollama URL field.
Model approval (attestation)
A local or OpenAI-compatible model, and the Kimi and GLM cloud providers, are not used for analysis until someone with Change appliance settings (Admin by default) has approved the model identity the appliance can see at that endpoint. The provider card reads Model Approval Required until then. A request that needs that model is refused with a 409 rather than answered from an unapproved model. Clear action requests are the exception: see Action requests in AI Defender.
- Approval probes the endpoint, checks the configured model is one it advertises (or that the server accepts any model name), and records the provider, a hash of the endpoint, the model name, the runtime identity the server reported, who approved it and when.
- Changing the endpoint or the model invalidates the approval; approve again.
- Each approval writes an
ai_model_attestedevent to the security audit log. The record never contains a key or the endpoint URL in clear. - Anthropic, Google and OpenAI use official endpoints. Their successful provider test records the configured model's approval; they do not need the separate local-endpoint approval step.
Action requests in AI Defender
AI Defender recognises a clear action request such as “Isolate ws-fin-07” the same way on every model, and with no model at all. Plain code reads the sentence and checks that the investigation already knows the host, account, address, domain or file hash. It does not use the language model for this, so it works when no local model is configured or approved.
- The person asking needs the role permission Request response actions from AI Defender (under Assistant on Settings > Roles). Without it, nothing is queued and the reply says so. The rest of the message is still answered.
- A recognised request is put in the approval queue unless a check stops it. Nothing runs until a person approves it.
- Any other request, such as a question, a sentence with two actions or two targets, or a name the investigation does not know, is passed to the local model to be understood. Queueing it needs an approved local model. Without a reachable local model it is answered as a question and AI Defender shows a line above the message box saying so. A local model that has not been approved gives the same answer without the line. You can still create the action on the Response Actions page.