WHITE PAPER
Deploying a Domain-Specific Language Model for Security Operations
Jawed Ahmad - Digital Twin with Human Guidance ·
Executive summary
We built and deployed a domain-specific language model as part of an autonomous security operations workflow. In the model developer’s internal evaluation, it won 71.1% of relevance comparisons against the baseline on approximately 200 human-curated investigation traces and 58.7% on a larger set of approximately 16,000 traces. These figures measure comparative relevance during development. The deployment gives us a way to assess investigation quality, analyst rework, and reliability on live cases.
This paper draws on two internal development evaluations and one captured 60-minute production window. It examines the model’s design, how to interpret the evaluation, and the controls needed to operate the workflow.
The operational problem
A suspicious sign-in is followed by a connection to a private IP address. To investigate it, a security operations model has to decide which records to retrieve, which tools to call, and whether the evidence supports an escalation. A polished case summary is of little use if the model missed a recent multifactor authentication reset, queried the wrong source, or drew a conclusion from incomplete telemetry.
We built a custom language model for this kind of investigation and put it into production as part of our autonomous security operations workflow. We can now measure whether specializing the model for this work improves investigations and reduces analyst rework.
What LLM, SLM, and DLM mean in security operations
| Term | Meaning | Where it can fit in a SOC |
|---|---|---|
| LLM | Large language model. A language model trained at scale to process and generate language. It can be general-purpose or specialized. | A general-purpose LLM can help an analyst investigate unfamiliar technology, interpret unstructured material, or weigh competing explanations for an incident. |
| SLM | Small language model. A relative term for a language model with a smaller footprint than larger alternatives. There is no universal parameter cutoff. | A smaller model can suit high-volume work with a defined scope, such as extracting indicators, enriching a familiar alert type, or summarizing evidence in a consistent format. |
| DLM | Domain-specific language model, as used in this article. A language model adapted to a particular field or workflow. | A SOC-specific model can be evaluated on whether it selects approved tools, interprets security telemetry, and follows the organization’s escalation criteria. |
Size and specialization are separate choices. A large model can be domain-specific, and a small model can serve general-purpose tasks. For a security operations team, the decision starts with the work the model will perform. An analyst working through a novel incident may need to explore unfamiliar systems and weigh several hypotheses. A workflow investigating thousands of alerts from a known detection has a more predictable set of evidence sources, decisions, and outputs.
We built our model around that second kind of problem. We can define the tools available to it, evaluate its decisions along the way, and give analysts a consistent case record to review.
Why we evaluate the path to a conclusion
The development evaluation used investigation trajectories, or traces of the steps taken during a case. A trajectory shows which tools the model called, what evidence it had at each step, and how it reached its conclusion. Two models can produce similar case summaries after gathering very different evidence.
Consider the private IP address in the opening example. A useful next step might be to look it up in an approved internal asset inventory, identify the device owner, and correlate that information with the sign-in. If the inventory has no matching record, the model can surface the gap and tell the analyst what to check next. The case record should make clear whether the asset was identified and how that affected the decision to close or escalate the case.
A trace also helps an analyst diagnose a bad outcome. If the model closed a case without checking a recent authentication change, the team can ask whether the tool was unavailable, whether the model skipped it, or whether it misread the result. Each explanation calls for a different fix.
What the development evaluation found
The model developer compared the custom model with the baseline in use at the time. The evaluation charts reported relevance win rates, tool calls involving private IP addresses, and how often the evaluator intervened.
| Metric | Approximately 200 human-curated traces | Approximately 16,000 investigation traces |
|---|---|---|
| Custom model’s relevance win rate against the baseline | 71.1% | 58.7% |
| Private IP tool-call incidence for the custom model | 0.20% | 1.90% |
| Private IP tool-call incidence in the reference data | 2.51% | 2.27% |
| Judge intervention rate for the custom model | 2.20% | 1.40% |
| Judge intervention rate shown for the reference data | 0.00% | 0.00% |
The relevance win rate measures how often the custom model scored higher on relevance in the head-to-head comparison. The lead was smaller on the larger set. The evaluation summary gives no breakdown by alert category, complexity, or outcome. How often the model reached the correct disposition, missed an escalation, or required an analyst to correct a case remains a separate question.
The private IP tool-call rate was lower than in the reference data for both sets. Whether that is desirable depends on the purpose of the call. Skipping an external reputation lookup for a private address may save time. Skipping an internal asset lookup may leave out the evidence needed to judge the alert. The destination, purpose, and result of the calls tell us more than the aggregate rate alone.
The developer also reported a judge intervention rate without defining what triggered an intervention. An evaluator correcting the format of a case note and an evaluator catching an unsupported containment recommendation are responding to failures of very different severity. Interpreting the rate requires knowing what the evaluator intervened on and reviewing those cases.
How a 30-billion-parameter model activates 3 billion parameters
The custom model uses a mixture-of-experts architecture with 30 billion total parameters and 3 billion active parameters. As it processes a token, it routes the work through a subset of the model’s components. Activating only part of the model can reduce the computation required per token. The full set of weights still matters when sizing the deployment, so the active parameter count alone cannot establish GPU memory requirements or serving speed.
For the initial evaluation, the developer recommended a single-GPU environment, with temperature set to 0.6 and top-p set to 1.0. Temperature affects how strongly the model favours higher-probability tokens. Top-p filters candidate tokens by cumulative probability, and 1.0 leaves that filter unrestricted. These were recommendations for the initial evaluation.
The developer also expected a throughput difference because the evaluated package lacked the separate draft model another package used for speculative decoding. That technique can speed up generation by having a smaller model propose tokens for the main model to verify. In a SOC, the time to complete an investigation also includes telemetry queries, tool responses, and retries. Measuring those steps shows where faster generation would make a practical difference.
How we monitor performance in production
We use a rolling 60-minute dashboard to track incidents as they enter the workflow, trigger enrichment tools, receive an evaluator score, and result in a case record update. It brings together measures that answer different questions. Is the workflow keeping pace with incoming incidents? Are cases reaching the evaluator? Is the result reaching the case management system?
| What we monitor | What the captured window shows | How we use it |
|---|---|---|
| Volume and latency | 71 incidents at about 1.2 per minute. Median latency was 16 seconds and 95th-percentile latency was 35 seconds. | We read the median and the 95th percentile together. If the median holds steady while the 95th percentile rises, we examine the slower investigations for delays such as tool timeouts or repeated queries. |
| Enrichment and token usage | 121 tool calls, including 62 geolocation lookups and 59 threat intelligence indicator lookups. The dashboard recorded approximately 1.5 million tokens. | We compare tool calls and token volume across similar workloads. If either rises without a comparable increase in incidents, we can review the affected traces for repeated lookups, larger inputs, or changes in the types of cases being investigated. |
| Evaluation coverage and score | 71 of 71 incidents evaluated, with an average evaluator score of 9.26. | Coverage tells us how much of the workload reached the evaluator. The score gives us a signal to track against a consistent rubric. Analyst review can establish whether low-scoring cases missed important evidence and whether high-scoring cases reached the right decision. |
| Completion and errors | 71 successful workflow runs, 71 case records updated, and zero reported errors. | We check that results reached the case management system. If completed runs and record updates diverge, we investigate the handoff. Zero recorded errors describes this window’s execution, while investigation quality requires a review of the evidence and disposition. |
The dashboard gives us a way to decide which cases to inspect. For example, if the 95th-percentile latency rises and threat intelligence calls increase at the same time, we can open the slowest traces and check whether enrichment retries account for the delay. If latency improves but evaluator scores decline, we can look for cases where the workflow finished sooner because it gathered less evidence. The incident trace is what lets us test either explanation.
We also need to measure the work that happens after the case record is updated. How often does an analyst correct the conclusion, rerun a query, or reopen the case to gather missing evidence? Those measures tell us whether the model is reducing the effort required to reach a sound disposition. One hour of successful processing gives us a view of the workflow in that period. Trends across alert types, incident volumes, and analyst reviews tell us how it performs over time.
Finally, the model’s recommendation and the authority to act belong to different parts of the workflow. If the model recommends disabling an account, the case record should show the evidence behind the recommendation, who or what policy authorized the action, and whether the account was actually disabled. That record lets a responder reconstruct the decision, even when the original analyst is unavailable.
Operating criteria for a production SOC
- Evaluate decisions on held-out cases. Compare the model and the baseline with equivalent evidence and tool permissions. Review unsupported closures, missed escalations, and cases involving privileged accounts separately from routine cases.
- Pair workflow telemetry with case review. Track median and tail latency, successful case updates, and evaluator coverage. Sample completed investigations to measure analyst corrections, repeat queries, and time to a usable disposition.
- Test degraded conditions. Exercise late telemetry, tool timeouts, and conflicting evidence. Check that the workflow records the missing information and gives the next analyst a clear place to resume.
- Verify response actions independently. For actions such as disabling an account, record the supporting evidence, the policy or person that authorized the action, and the observed outcome.
Conclusion
A domain-specific model can be evaluated against the decisions a security operations team expects it to make. The development comparisons provide a reason to measure its performance on those decisions in production. Operational value depends on whether the team can trace the evidence behind a disposition, identify where investigations need correction, and verify the outcome of any authorized response.