🛡️ GuardFoxCopilot Documentation

AI Auto-Triage

Automatically analyse and prioritise alerts using AI. Configures AI model, severity threshold, auto-ticket creation, and prompt.

Route: /ai-triage

How it works

Overview

How AI Auto-Triage Works

When a new alert arrives that meets the minimum severity threshold, GuardFoxCopilot:

  1. Serialises the alert into JSON
  2. Sends it to your configured AI model with the system prompt
  3. Parses the JSON response to extract: threatScore, category, verdict, mitreTechnique, recommendedAction, priority, falsePositiveProbability
  4. Updates the alert with AI analysis
  5. Optionally creates a ticket and assigns it to the configured analyst role
  6. Optionally sends a notification

The whole process takes 0.9–1.5 seconds depending on the AI model.

Supported AI models

ModelProviderNotes
Gemini 1.5 ProGoogleDefault — fast, cost-effective
GPT-4oOpenAIHighest accuracy
Claude SonnetAnthropicStrong reasoning
Llama 3 (Ollama)Self-hostedNo API cost, private

Setting up AI Auto-Triage

Setup

Setting Up AI Auto-Triage

Step 1 — Configure your AI provider

Go to Administration → AI Provider and enter your API key for your chosen model.

Step 2 — Enable Auto-Triage

Go to Automation → AI Auto-Triage → Configuration

  • Toggle Auto-Triage to ON
  • Select minimum severity (Critical only / High & above / Medium & above)
  • Select your AI model

Step 3 — Configure ticket creation

  • Toggle Auto-create ticket ON if you want a ticket per triaged alert
  • Choose which role the ticket auto-assigns to (SOC_L1, SOC_L2, SOC_L3)
  • Toggle Notify on triage for Slack/email notifications

Step 4 — Select sources

Under Alert Sources to Include, enable the connectors you want to triage. Disable noisy sources to save API quota.

Step 5 — Test

Click Run Test Triage — this fires a sample ransomware alert through the full pipeline and shows the raw AI JSON response. Verify the output looks correct before enabling live triage.

Cost estimates

With GPT-4o: approximately $0.002 per alert triaged. With Gemini 1.5 Pro: approximately $0.0005 per alert. Self-hosted Ollama: free.

Customising the AI prompt

How to use

Customising the AI Prompt

Go to Automation → AI Auto-Triage → Prompt Editor.

The prompt uses {{alert_json}} as the placeholder for the serialised alert. The AI must return valid JSON matching this schema:

{
  "threatScore": 0-100,
  "category": "APT|Ransomware|Phishing|...",
  "verdict": "one sentence analyst verdict",
  "mitreTechnique": "T1486 - Data Encrypted for Impact",
  "recommendedAction": "specific action for SOC",
  "priority": "Critical|High|Medium|Low",
  "falsePositiveProbability": 0-100
}

Tips for prompt tuning

  • Be explicit that the model must return ONLY JSON — no markdown fences, no preamble
  • Add your organisation context: "This is a financial services SOC. Alerts involving PCI data should score +20"
  • If you see parsing failures in Triage Logs, your model is returning markdown — add "Do not wrap in code blocks" to the prompt
  • Click Reset to default to restore the original prompt