← Lab /AI/ML

LLM-derived behavior rules stay robust to concept drift, matching static detectors’ false-positive rates

LLM-generated behavior-based detection rules are more robust to concept drift than static-feature methods while keeping practical false positive rates

AI/ML arXiv 30 Apr 2026 Method Prototype evidence

Published as “Trident: Improving Malware Detection with LLMs and Behavioral Features”

Why it matters

Trident can improve malware detection accuracy and stability without the operational cost of monthly model retraining, making it attractive for security operations that need low false-positive rates and interpretability.

Summary

Behavior-based detection rules generated by an LLM are more robust to concept drift than a static-feature gradient-boosted decision tree, and the combined Trident system outperforms each component, achieving lower false-positive rates (<0.1% in 11/12 months) and stable F1 scores across a year of test data. The evidence is based on comparisons to a GBDT baseline and to active-learning retraining, but the paper notes that the rules fail when sandbox reports are sparse or crash.

What they found 4

  1. Trident matches or exceeds the F1 score of each individual component every month.

    “Trident’s F1 score equals or surpasses that of GBDT alone or Rules+LLM alone, in every month, driven by equivalent gains in recall.”

  2. Trident’s false-positive rate is lower than its components in most months and stays below 0.1% in 11 of 12 months.

    “Trident’s false positive rate is also lower than that of its components in 11 out of 12 months, and less than 0.1% in 11 out of 12 months.”

  3. Rule-based detection fails mainly when behavior reports are short or missing.

    “Samples that are missed by the rules (false negatives) have much shorter behavior reports than detected samples (true positives), supporting the intuition that Rules-based detection fails primarily when the behavior report contains insufficient data from which to make a decision.”

  4. Only a small fraction of decisions rely on the tie-breaking algorithm.

    “Only 1.20% of classification decisions are made by the tiebreak algorithm.”

Caveats 3

  • When we examined malware samples missed by the rules, we overwhelmingly found that their associated behavior reports were sparse, containing little-to-no data that could be leveraged by a detection rule.
  • We observed several rules that attempt to detect random strings (filenames, process names, etc.) as an indicator of malicious behavior. Unfortunately, with JQ, rules are confined to using regex filters to detect randomness; because regex operates on structural patterns rather than statistical properties, these filters are often more permissive than intended (e.g., \[a-z]{5,10}\.(exe|dll)).
  • The primary weakness in our experimental setup is that the publication date of the dataset we rely on, BODMAS [54], precedes the knowledge cutoff of the LLM we employ, Gemini-3-pro-preview, by several years.

What’s new here 4

  • Uses a large language model to automatically generate behavior-based detection rules from semi-structured sandbox reports.
  • Combines static-feature GBDT, LLM-generated rules, and direct LLM analysis via a majority-vote ensemble (Trident).
  • Achieves concept-drift resilience without monthly retraining, matching active-learning performance at lower cost.
  • Provides interpretable rule explanations and LLM-generated rationales for each malicious label.