arXiv:2610.35624cs.CROct 2026

Manuscript Offprint

arXiv:2610.35624

Adversary Brains: Hypothesis-Based Logical Signatures for Threat Actor Detection with LLMs

Gadi Evron

ABSTRACT

An adversary brain is an LLM-based model of a threat actor's behavior, held as an evolving logical signature: a hypothesis with enough structure that data can test it continuously, without a person re-interpreting it each time. Rather than any single observation, such as an IoC (Indicator of Compromise), it is the arrangement that becomes a detection, or intelligence, mechanism. Where YARA matches a file and Sigma matches a log line, an adversary brain matches the activity pattern of a campaign or threat actor. This is based on an intelligence analysis technique called Analysis of Competing Hypotheses (ACH), which the design lifts from the limitation of a few hypotheses at a time, to thousands, and then also operationalizes it for continuous detection purposes. Language models make the concept, and scale, practical: they turn prose reports into brains, judge matches, and drive the loop that keeps brains current. A partial pattern in a brain can also match a new value, such as a fresh C2 (command and control) domain name, assisting with the discovery of new indicators, and turning unknown unknowns into known unknowns, and potentially into knowns.

The author would like to thank Ryan Moon for the collaboration, and Sounil Yu, Chris Inglis, Thomas Roccia, Marius Benthin, Israel Grimberg, Michal Kamensky, Justin Borland, Brandon Levene, John Hultquist, and John Bambenek for their feedback and assistance.

I. INTRODUCTION

The core idea is that a threat actor's activity becomes detectable through how its behavior aligns against an adversary brain (a "brain" for short), a structure that represents a logical signature of their operation.

As data comes in, it is matched against every brain at once: it sticks to the brains it fits and falls through as noise where it fits none.

Rather than any single observation, such as an indicator of compromise (IoC), it is the arrangement that becomes a detection, or an intelligence, mechanism. Where a YARA rule matches a file and a Sigma rule matches a log line, an adversary brain matches the campaign and the threat actor themselves, which live across time, systems, and kinds of data, potentially across multiple artifacts.

A brain is the geometric structure over the state and activity signals, held primarily as a knowledge graph that a campaign can be matched against. State and activity are worth pinning down first:

• State: what is. A standing condition, either one entity, like a hash or an IP, or a relation between entities, like two domains sharing a registrant.

• Activity: what happens. An event, like a process spawning a child that executes a command.

Detection fires on activity only. By analogy, three orbits sitting in space won’t trigger an alert unless a collision risk is detected. An IoC is state, which provides the most context when read with the activity related to it.

State and activity are frames we place on observations so they

Figure

no match: falls through as noise

Fig. 1. Each brain catches the observations that fit its slots, single shapes are entities and a joined pair is a link, open slots wait for the rest, and whatever fits no brain falls through as noise.

Figure

Fig. 2. A behavioral clustering, where known campaigns and threat actors form labeled regions (in our case, brains), a dense unlabeled group is a candidate new brain, scattered points are noise, and new data, or incidents, are tested against all of them.

Figure

Fig. 3. State is what is: one entity, or a relation between entities. Activity is what happens: an event. Depending on whether it is provided data, or a deduction, a shared registrant can be read either way, as state or as the registration that produced it.

can be stored and matched. Some inputs can be established as a relation when they arrive. A shared registrant can be read as state (two domains that are related), or deduced as activity (the registration that linked them). Each observation is committed to a frame.

Today knowledge of how an actor operates lives in prose such as vendor reports and hand-built detection playbooks, or even as static text a person re-reads and re-applies every time. A brain is the same knowledge made into a logical signature. Data tests it directly, and it updates itself as new observations and new hypotheses arrive. (IoCs are also cheap for a threat actor to swap while these patterns could take effort to change.)

Goal. This text proposes a more AI-native way to do threat intelligence: running its claims as live hypotheses, with language models to make that practical at scale. Analysts already turn some claims about how an actor operates into detection rules. The rule may cite the claim, and its fires do not flow back to revise it. Here the claim itself runs against the defender's own telemetry as data arrives, and its confirmed and dismissed fires raise or lower its standing, and can retire it.

The design has three aims. The first is to hold thousands of such hypotheses at once. The second is to make TTPs (tactics, techniques, and procedures) detectable as specific arrangements of observations, mostly at the level of procedures. The third is to turn unknown activity into known unknowns, and potentially, some of those into knowns [1][2].

Why build brains. The first four uses below help run a security program. The last two work inside detection.

• Where to invest. To start, a cheap test on past data suggests which actors are worth a brain.

• Lasting effort. A brain marks which of its links are expected to last, so effort can go to those.

• Named gaps. A brain that matches only in part names the missing evidence. A step the sensors cannot see points to telemetry to add.

• Open assessments. A brain stays a hypothesis that data and analyst verdicts can confirm or retire.

• Arrangements. Where every step by itself is common, steps taken in order on the same account or host can still be the signature.

• Graded use. By design, a brain alerts, ranks a queue, or seeds a hunt, depending on how often its matches are confirmed.

From intelligence analysis to detection. Analysis of Competing Hypotheses (ACH) is a technique developed at the CIA for intelligence and national-security analysis [3]. The design takes it to thousands of hypotheses, and then from an analyst's assessment to operational detection.

In ACH, an analyst scores several explanations against the same evidence and gives most weight to the evidence that rules explanations out. It is done by hand in a matrix. Heuer notes that “more than seven hypotheses may be unmanageable” [3].

Each hypothesis becomes a brain, a machine-checkable object. A system can then hold thousands of them and score every one against the same incoming data, continuously.

That scoring runs inside detection, next to signatures such as YARA and Sigma. An IoC becomes one link in a hypothesis, and other IoCs can fill the same place. The analyst moves from filling in the matrix to judging its output: confirming or dismissing fires, and deciding drift and attribution.

All of this rests on one bet: that a threat actor’s activity structures remain somewhat stable, and rare enough to be worth representing as objects, instead of detecting specific descriptors of behaviors one at a time. If it holds, brains are worth their complexity.

Operationally, such structures sometimes don’t remain stable for long. Many actors shift their m.o., with a few durable pieces staying stable in the pattern. Depending on the delta, in such cases, a simpler detection and enrichment stack achieves the same or better results. The test in “Whether to build, and how” is how you reach that verdict cheaply, before over-building.

We built a reference implementation of the schema in appendix 1 to test the schema’s rules (appendix 3).

Threat model. The adversary is the actor being detected, which rotates cheap indicators freely. When extracting brain data from threat reports, these can also potentially be seeded with misleading structures. A brain is therefore born unconfirmed and must survive testing on actual telemetry before it is trusted. Then, as the defender's telemetry also reflects the adversary's own actions, a model judging a match can be potentially fed activity constructed to mislead it. The deterministic screen and the rule that model evidence is drawn only from the deterministic match limit these risks.

What this text establishes, and what it does not. This is a design and a specification, with a reference implementation. It works through how public reports populate into brains and how a cheap test separates actors worth representing from actors that are not.

The text does not measure detection on real telemetry: no detection rate, false-positive rate, or robustness under indicator rotation against a signature baseline. Producing those numbers is out of scope. The figures in this text are schematic. The measurements in appendix 3 come from synthetic data, one emulated case, and later public reports. While the system was run with limited cases in live environments, that data wasn't taken into consideration for this version of the text. Matching cost at the thousands-of-brains scale the design assumes is not analyzed here.

The repo for the Adversary Brains reference implementation (appendix 3) can be found here: https://github.com/gadievron/adversary-brains.

References (37)