Trident: Improving Malware Detection with LLMs and Behavioral Features
> Paper: Trident: Improving Malware Detection with LLMs and Behavioral Features > Authors: Rebecca Saul, Jingzhi Jiang, Elliott Chia, David Wagner > arXiv: 2605.00297 | 2026-04-29
The Detection Arms Race
Traditional malware detection relies on static features:
- Byte histograms
- String information
- PE header contents
- Easily bypassed via packing, obfuscation, PE header edits
- Superficial: they look at what a file is, not what it does
- Hard to disguise: malicious intent requires action
- Deeper signal: based on what the program actually does
- Explainable: rules clearly state why a sample was flagged
The problem: malware can evade these through packing, obfuscation, and header modification, rendering static signatures ineffective.
Dynamic analysis runs suspicious files in a sandbox and records behavior—file operations, network connections, registry modifications, process creation—producing detailed behavior reports. However, these reports are semi-structured and complex, making them difficult for traditional ML to exploit.
What Trident Does
Trident's core idea:
> Use the latest generation of reasoning-capable LLMs to efficiently process sandbox behavior reports and generate behavior-based malware detection rules.
Pipeline: 1. Sandbox behavior reports — Run suspicious files in an isolated environment and log all behaviors (file operations, network connections, registry changes, process creation). 2. LLM interpretation — Rather than traditional ML, an LLM uses its reasoning ability to understand the semantics of observed behaviors and identify malicious patterns. 3. Rule generation — From few training samples, the LLM produces interpretable, updatable behavioral rules: "if behavior X appears, it may be malicious." 4. Static + dynamic combination — Static features plus behavioral features provide dual-layer coverage that is harder to evade.
An analogy: traditional detection is like identifying a suspect by appearance (easy to disguise), while Trident looks at behavior—"connecting to a remote server at midnight," "modifying system files," "creating hidden processes." Behavioral patterns are much harder to fake.
Why Behavioral Features Beat Static Features
Static features:
Behavioral features:
Takeaway
As the source post puts it: knowing a file's hash is looking at the surface; watching its behavior is understanding its essence. Malware can disguise its appearance, but it must *do* malicious things to achieve its goals—behavior is difficult to fully fake.
Questions worth asking when building detection systems: 1. Does detection rely only on static features? 2. Are behavior reports being fully utilized? 3. Can LLMs understand complex behavioral patterns? 4. Is combining static + dynamic more robust?
Shifting from "looking at files" to "looking at behavior" turns malware detection from a static gatekeeper into a dynamic detective. On the security battlefield, behavior is the most honest witness.