DeepFellow Threat Intelligence
Install Threat Intelligence with DeepFellow CLI or Docker and connect DeepFellow Server to it.
Threat Intelligence checks prompts, model responses, and documents for AI-specific threats. It runs as a separate container, and DeepFellow Server connects to it through the Threat Intelligence Guards.
Requirements
Before you install Threat Intelligence, prepare:
- Docker engine on the host
- A DeepFellow Infra that the Threat Intelligence container reaches, with the models from Install the Guard Models, for the example workflows that call guard models
Installation
Install Threat Intelligence with DeepFellow CLI, or start its container yourself.
With DeepFellow CLI
Install Threat Intelligence. The command asks for the port and for the DeepFellow Infra that the guard models run on. When Infra is installed on the same machine, the command suggests its address and API key.
deepfellow ti installDisplay the generated TI_API_KEY and TI_ADMIN_API_KEY.
deepfellow ti env info --secretConfirm that Threat Intelligence answers.
curl -s localhost:8421/health
# {"status":"ok"}
curl -s -H "Authorization: Bearer YOUR_TI_API_KEY" localhost:8421/workflowsThe container ti joins the Docker network of DeepFellow Infra and Server, so they reach it at
http://ti:8000. Its plugins and workflows live in Docker volumes and stay after an update. For every
command, see DeepFellow Threat Intelligence in the CLI reference.
With Docker
Start the container with the image of a Threat Intelligence release, where VERSION is its
version tag. The current release is v0.1.0. TI_API_KEY is the key every caller sends, and Threat
Intelligence doesn't start without it.
docker run -d --name threat-intelligence -p 8421:8000 \
-e TI_API_KEY=YOUR_TI_API_KEY \
-e DF_INFRA_URL=YOUR_INFRA_URL \
-e DF_INFRA_API_KEY=YOUR_INFRA_API_KEY \
hub.simplito.com/deepfellow/deepfellow-ti:VERSIONConfirm that Threat Intelligence answers.
curl -s localhost:8421/health
# {"status":"ok"}
curl -s -H "Authorization: Bearer YOUR_TI_API_KEY" localhost:8421/workflowsThe container listens on port 8000. The example publishes it on host port 8421.
Install the Guard Models
The example workflows with llama-guard, qwen3guard, granite-guardian, and llm-judge call their
models through DeepFellow Infra at DF_INFRA_URL, with DF_INFRA_API_KEY as the key. Until
DF_INFRA_URL points at a reachable Infra, these workflows answer 500.
To run the example workflows, install these models:
| Block | Model in the example workflows |
|---|---|
llama-guard | llama-guard3 |
qwen3guard | Qwen/Qwen3Guard-Gen-4B |
granite-guardian | ibm/granite3.3-guardian:8b-q4_K_M |
llm-judge | qwen3:4b for example-document-safety-scan, qwen3:1.7b for example-topic-control |
To install llama-guard3, run:
deepfellow infra model install ollama llama-guard3Add the other models as custom models.
Connect DeepFellow Server
In the Server panel, open the DF TI Guard row of Server Configuration.
Set ti_url to the address at which DeepFellow Server reaches Threat Intelligence, such as
http://localhost:8421. If you installed both with DeepFellow CLI on one machine, use http://ti:8000.
The guards default to http://localhost:8500, so always set it.
Set ti_api_key to the value of TI_API_KEY.
Set ti_input_workflow_name to the workflow that checks prompts, and ti_output_workflow_name to the
workflow that checks model responses.
Save the row, and enable df_ti_input_guard and df_ti_output_guard in the Server panel.
Threat Intelligence Guards describes every key and what the guards send to Threat Intelligence.
The workflow in ti_output_workflow_name must examine the model response, so its steps declare
subject: assistant_message. The guards default to example-guard-poc, which examines only the user
message, so a guard that uses it doesn't check responses at all. To check responses, set
ti_output_workflow_name to example-qwen3guard-output, or write a workflow with qwen3guard or
granite-guardian, as Write Your Own Workflow shows.
Uninstall
To remove Threat Intelligence, see Uninstall.
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.