← Latest papers
🤖 machine learning

LLMs for Zero-Shot Threat Detection via Structured Risk Indicators

This paper proposes a two-stage LLM framework that leverages retrieval-augmented generation to create structured, interpretable risk indicators from user activity timelines, achieving state-of-the-art zero-shot detection of insider threats and APTs by demonstrating that the quality of these indicators is the primary driver of performance.

Original authors: Abdullah Alghamdi, Siamak Layeghy, Marius Portmann

Published 2026-08-18
📖 5 min read🧠 Deep dive

Original authors: Abdullah Alghamdi, Siamak Layeghy, Marius Portmann

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the digital fortresses of modern organizations, security systems constantly watch for intruders. Some of these systems scan the traffic flowing between computers, looking for suspicious patterns in the data stream. Others sit directly on the computers themselves, monitoring what happens inside: who logs in, what files are opened, which devices are plugged in, and what emails are sent. This internal monitoring is crucial because the most dangerous threats often come from within. When an attacker steals a legitimate password or convinces an employee to act against the company, they can move through the system looking exactly like a normal user. To catch them, security teams must distinguish between a person working late on a project and someone quietly stealing sensitive data, a task that requires understanding the full story of a person's behavior over time, not just a single moment.

A team of researchers at the University of Queensland has developed a new way to help computers make this distinction without needing years of training on specific examples of bad behavior. Instead of asking a computer to look at a messy pile of raw security logs and immediately shout "threat" or "safe," they built a two-step system that acts more like a careful analyst. First, the system organizes a user's activity into a timeline and asks a powerful language model to translate that timeline into a clear, structured list of risk factors. It asks the model to identify specific things that might be wrong, such as accessing files at unusual hours or connecting to strange servers. Then, a second model looks at the sequence of these risk lists over time to spot patterns that suggest an attack is unfolding. This approach allows the system to detect both insider threats, where a trusted employee turns malicious, and advanced persistent threats, where a sophisticated external attacker hides in the network for a long time.

The researchers tested this method on two different sets of security data. One dataset simulated an insider threat scenario involving nearly one hundred employees over eighteen months, capturing everything from email exchanges to file transfers. The other dataset simulated a stealthy external attack on a network, tracking thousands of connections between computers. In both cases, the new system significantly outperformed the previous best method that relied on language models. On the insider threat data, the new approach improved the ability to correctly identify attacks while reducing false alarms by more than eleven percentage points. On the network attack data, the improvement was even more dramatic, jumping by over thirty-one percentage points. The key to this success was not just using a larger computer brain, but changing how the information was processed. By forcing the first model to break down complex logs into simple, interpretable risk indicators before making a final judgment, the system became much better at spotting the subtle differences between normal work and malicious activity.

One of the most interesting discoveries was how the system handled the need for context. The researchers found that for the smaller, less powerful language models, providing a summary of the user's past behavior helped them generate much better risk indicators. It was as if the model needed to see the user's history to understand what was unusual about the present moment. However, for the larger, more capable models, this extra historical context made little difference; they were already able to generate high-quality risk indicators on their own. This suggests that the quality of the initial risk assessment is the most important factor in catching these threats. If the first step of the process produces a clear and accurate picture of the danger, the second step can easily recognize the attack pattern. If the first step is vague or confused, the system struggles, regardless of how powerful the final classifier is.

The study also revealed that the way data is grouped matters immensely. The system works best when it looks at all the activities of a single person as one continuous story, rather than looking at isolated events or connections between machines. When the researchers tried grouping data by the connection between two computers instead of by the person using them, the system's performance dropped significantly. This is because an attacker's behavior is defined by their actions across many different tools and logs, and only by viewing the whole picture can the system see the full scope of the threat. The researchers noted that while the system was excellent at spotting the insider threats in the first dataset, the second dataset, which involved very stealthy network attacks, presented a harder challenge where the signals were much fainter. Even so, the structured approach still provided a solid foundation for detection, proving that breaking down complex security data into manageable, interpretable pieces is a powerful strategy.

Ultimately, this work demonstrates that the future of automated threat detection may not lie in training computers to memorize every possible attack, but in teaching them to reason about behavior in a structured way. By using language models to translate raw data into clear risk indicators and then analyzing those indicators over time, security systems can become more accurate and reliable. The findings suggest that the most effective setup depends on the specific type of threat being hunted and the capabilities of the models used, but the core principle remains the same: clarity in the intermediate steps leads to better decisions in the final outcome. This approach offers a promising path forward for protecting organizations against both the insider who turns against them and the outsider who tries to hide in plain sight.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →